<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0" />
  <meta name="format-detection" content="telephone=no" />
  <title>{{TITLE}} — {{COLLECTION_TYPE}} — Collaborhythm AIO</title>
  <link rel="preconnect" href="https://fonts.googleapis.com" />
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  <link href="https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Barlow+Condensed:wght@300;500;700;900&display=swap" rel="stylesheet" />
  <style>

    /* ── YOLA RESET — neutralize host site interference ── */
    .crhm-aio *,
    .crhm-aio *::before,
    .crhm-aio *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      font-family: inherit;
      line-height: inherit;
    }

    .crhm-aio a { text-decoration: none; }
    .crhm-aio img { max-width: 100%; display: block; }
    .crhm-aio ul, .crhm-aio ol { list-style: none; }

    /* ── CSS VARIABLES — scoped to wrapper ── */
    .crhm-aio {
      --bg:       #0a0a0c;
      --surface:  #111116;
      --border:   #222228;
      --accent:   #c8ff00;
      --accent2:  #ff4444;
      --text:     #e8e8e8;
      --muted:    #666672;
      --mono:     'Space Mono', 'Courier New', monospace;
      --display:  'Barlow Condensed', 'Arial Narrow', sans-serif;
      --max-w:    900px;
      --pad-x:    24px;

      display: block;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      background: var(--bg);
      color: var(--text);
      font-family: var(--mono);
      font-size: 13px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* ── NAV ── */
    .crhm-nav {
      position: relative; /* NOT sticky — Yola has its own sticky header */
      z-index: 10;
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 var(--pad-x);
      height: 48px;
      overflow: hidden;
    }

    .crhm-nav-brand {
      font-family: var(--display);
      font-weight: 900;
      font-size: 11px;
      letter-spacing: 0.2em;
      color: var(--accent);
      text-transform: uppercase;
      margin-right: auto;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .crhm-nav a {
      color: var(--muted);
      font-family: var(--mono);
      font-size: 10px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      padding: 0 14px;
      height: 48px;
      display: flex;
      align-items: center;
      border-left: 1px solid var(--border);
      white-space: nowrap;
      transition: color 0.15s;
      flex-shrink: 0;
    }
    .crhm-nav a:hover { color: var(--accent); }

    /* ── HERO ── */
    .crhm-hero {
      padding: 48px var(--pad-x) 40px;
      border-bottom: 1px solid var(--border);
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 24px;
      align-items: end;
      overflow: hidden;
    }

    .crhm-hero-type {
      font-family: var(--display);
      font-weight: 300;
      font-size: 11px;
      letter-spacing: 0.3em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .crhm-hero-title {
      font-family: var(--display);
      font-weight: 900;
      font-size: clamp(36px, 7vw, 88px);
      line-height: 0.92;
      letter-spacing: -0.02em;
      text-transform: uppercase;
      color: var(--text);
      word-break: break-word;
      overflow-wrap: break-word;
    }

    .crhm-hero-artist {
      font-family: var(--display);
      font-weight: 500;
      font-size: 17px;
      letter-spacing: 0.1em;
      color: var(--muted);
      margin-top: 10px;
    }

    .crhm-hero-summary {
      margin-top: 16px;
      max-width: 520px;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.75;
      word-break: break-word;
    }

    /* ── BADGES ── */
    .crhm-badges {
      display: flex;
      flex-direction: column;
      gap: 10px;
      align-items: flex-end;
      flex-shrink: 0;
    }

    .crhm-rating-badge {
      background: var(--accent);
      color: #000;
      padding: 14px 18px;
      text-align: center;
      min-width: 88px;
      flex-shrink: 0;
    }

    .crhm-rating-score {
      font-family: var(--display);
      font-weight: 900;
      font-size: 40px;
      line-height: 1;
      letter-spacing: -0.03em;
      color: #000;
    }

    .crhm-rating-max {
      font-family: var(--display);
      font-weight: 300;
      font-size: 10px;
      color: rgba(0,0,0,0.5);
      letter-spacing: 0.1em;
    }

    .crhm-rating-label {
      font-family: var(--display);
      font-weight: 900;
      font-size: 9px;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: #000;
      margin-top: 4px;
      border-top: 1px solid rgba(0,0,0,0.2);
      padding-top: 4px;
    }

    .crhm-gx-badge {
      border: 1px solid var(--border);
      padding: 10px 14px;
      text-align: center;
      min-width: 88px;
      flex-shrink: 0;
    }

    .crhm-gx-value {
      font-family: var(--display);
      font-weight: 900;
      font-size: 30px;
      color: var(--accent2);
      line-height: 1;
    }

    .crhm-gx-label {
      font-family: var(--display);
      font-weight: 700;
      font-size: 9px;
      letter-spacing: 0.22em;
      color: var(--muted);
      margin-top: 2px;
    }

    /* ── SECTIONS ── */
    .crhm-section {
      border-bottom: 1px solid var(--border);
      width: 100%;
      overflow: hidden;
    }

    .crhm-inner {
      max-width: var(--max-w);
      margin: 0 auto;
      padding: 36px var(--pad-x);
    }

    .crhm-section-label {
      font-family: var(--display);
      font-weight: 700;
      font-size: 9px;
      letter-spacing: 0.28em;
      color: var(--accent);
      text-transform: uppercase;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .crhm-section-label::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
      min-width: 0;
    }

    /* ── TRACKS ── */
    .crhm-track-row {
      display: grid;
      grid-template-columns: 28px 1fr auto;
      gap: 14px;
      align-items: start;
      padding: 14px 0;
      border-bottom: 1px solid var(--border);
    }
    .crhm-track-row:last-child { border-bottom: none; }

    .crhm-track-num {
      font-family: var(--display);
      font-weight: 700;
      font-size: 18px;
      color: var(--muted);
      line-height: 1.2;
      padding-top: 3px;
    }

    .crhm-track-body { min-width: 0; overflow: hidden; }

    .crhm-track-title {
      font-family: var(--display);
      font-weight: 900;
      font-size: 20px;
      letter-spacing: 0.03em;
      text-transform: uppercase;
      line-height: 1.1;
      word-break: break-word;
    }

    .crhm-track-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 4px;
    }

    .crhm-track-meta-item {
      font-size: 10px;
      color: var(--muted);
      letter-spacing: 0.08em;
      white-space: nowrap;
    }

    .crhm-track-note {
      margin-top: 5px;
      font-size: 11px;
      color: var(--muted);
      font-style: italic;
      word-break: break-word;
    }

    .crhm-track-tags {
      display: flex;
      gap: 5px;
      flex-wrap: wrap;
      margin-top: 5px;
    }

    .crhm-tag {
      font-size: 9px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      border: 1px solid var(--border);
      padding: 2px 5px;
      color: var(--muted);
      white-space: nowrap;
    }

    .crhm-track-duration {
      font-family: var(--display);
      font-weight: 700;
      font-size: 17px;
      color: var(--muted);
      white-space: nowrap;
      padding-top: 3px;
      flex-shrink: 0;
    }

    /* ── PROSE / NOTES ── */
    .crhm-prose {
      font-size: 13px;
      line-height: 1.9;
      color: var(--text);
      max-width: 660px;
      word-break: break-word;
    }

    .crhm-critical-note {
      margin-top: 20px;
      border-left: 3px solid var(--accent2);
      padding-left: 14px;
    }

    .crhm-critical-note-label {
      font-family: var(--display);
      font-weight: 700;
      font-size: 9px;
      letter-spacing: 0.22em;
      color: var(--accent2);
      text-transform: uppercase;
      margin-bottom: 5px;
    }

    .crhm-critical-note-text {
      font-size: 12px;
      color: var(--muted);
      font-style: italic;
      word-break: break-word;
    }

    /* ── SCORE GRID ── */
    .crhm-score-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
      gap: 1px;
      background: var(--border);
      overflow: hidden;
    }

    .crhm-score-cell {
      background: var(--surface);
      padding: 18px;
    }

    .crhm-score-label {
      font-family: var(--display);
      font-size: 9px;
      letter-spacing: 0.18em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 6px;
    }

    .crhm-score-value {
      font-family: var(--display);
      font-weight: 900;
      font-size: 34px;
      color: var(--accent);
      line-height: 1;
    }

    .crhm-score-bar-bg {
      margin-top: 7px;
      height: 2px;
      background: var(--border);
    }

    .crhm-score-bar-fill {
      height: 2px;
      background: var(--accent);
    }

    /* ── WARNINGS ── */
    .crhm-warning-list {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .crhm-warning-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 11px 14px;
      border: 1px solid rgba(255,68,68,0.3);
      background: rgba(255,68,68,0.04);
    }

    .crhm-warning-icon {
      color: var(--accent2);
      font-size: 11px;
      flex-shrink: 0;
      margin-top: 1px;
    }

    .crhm-warning-text {
      font-size: 11px;
      color: var(--text);
      word-break: break-word;
    }

    /* ── METADATA ── */
    .crhm-meta-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 16px 28px;
    }

    .crhm-meta-key {
      font-size: 9px;
      letter-spacing: 0.18em;
      color: var(--muted);
      text-transform: uppercase;
      margin-bottom: 3px;
    }

    .crhm-meta-val {
      font-family: var(--display);
      font-weight: 700;
      font-size: 14px;
      letter-spacing: 0.03em;
      color: var(--text);
      word-break: break-word;
    }

    /* ── TAGS CLOUD ── */
    .crhm-tags-cloud {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }

    .crhm-tag-cloud-item {
      font-family: var(--display);
      font-weight: 700;
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      border: 1px solid var(--border);
      padding: 5px 11px;
      color: var(--text);
      white-space: nowrap;
    }

    /* ── FOOTER ── */
    .crhm-footer {
      padding: 28px var(--pad-x);
      text-align: center;
    }

    .crhm-footer-text {
      font-size: 9px;
      letter-spacing: 0.18em;
      color: var(--muted);
      text-transform: uppercase;
    }

    /* ── MOBILE ── */
    @media screen and (max-width: 600px) {
      .crhm-aio { --pad-x: 16px; font-size: 12px; }

      .crhm-nav a { display: none; }
      .crhm-nav a:last-of-type { display: flex; }

      .crhm-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 32px;
      }
      .crhm-badges {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-start;
      }

      .crhm-track-row { grid-template-columns: 24px 1fr; }
      .crhm-track-duration { display: none; }

      .crhm-score-grid { grid-template-columns: repeat(2, 1fr); }
      .crhm-meta-grid  { grid-template-columns: repeat(2, 1fr); }
    }

    @media screen and (max-width: 380px) {
      .crhm-hero-title { font-size: 32px; }
      .crhm-badges { flex-direction: column; }
    }

  </style>
</head>
<body>

<!-- COLLABORHYTHM AIO — ALL CONTENT SCOPED TO .crhm-aio TO AVOID YOLA CONFLICTS -->
<div class="crhm-aio">

  <!-- NAV -->
  <nav class="crhm-nav">
    <span class="crhm-nav-brand">COLLABORHYTHM AIO</span>
    {{NAV_LINKS}}
  </nav>

  <!-- HERO -->
  <header class="crhm-hero">
    <div class="crhm-hero-left">
      <div class="crhm-hero-type">{{COLLECTION_TYPE}}</div>
      <h1 class="crhm-hero-title">{{TITLE}}</h1>
      <div class="crhm-hero-artist">{{ARTIST}}</div>
      <p class="crhm-hero-summary">{{SHORT_SUMMARY}}</p>
    </div>
    <div class="crhm-badges">
      <div class="crhm-rating-badge">
        <div class="crhm-rating-score">{{RATING_SCORE}}</div>
        <div class="crhm-rating-max">/ {{RATING_MAX}}</div>
        <div class="crhm-rating-label">{{RATING_LABEL}}</div>
      </div>
      <div class="crhm-gx-badge">
        <div class="crhm-gx-value">{{GX_VALUE}}</div>
        <div class="crhm-gx-label">{{GX_LABEL}}</div>
      </div>
    </div>
  </header>

  <!-- TRACKS -->
  <section id="tracks" class="crhm-section">
    <div class="crhm-inner">
      <div class="crhm-section-label">Tracks</div>
      {{TRACKS}}
    </div>
  </section>

  <!-- CRITICAL NOTES -->
  <section id="notes" class="crhm-section">
    <div class="crhm-inner">
      <div class="crhm-section-label">Critical Notes</div>
      <p class="crhm-prose">{{LONG_SUMMARY}}</p>
      {{CRITICAL_NOTE}}
    </div>
  </section>

  <!-- SCORES -->
  <section id="scores" class="crhm-section">
    <div class="crhm-inner">
      <div class="crhm-section-label">GX Breakdown</div>
      {{GX_BREAKDOWN}}
    </div>
  </section>

  <!-- WARNINGS -->
  {{WARNINGS_SECTION}}

  <!-- TAGS -->
  <section id="tags" class="crhm-section">
    <div class="crhm-inner">
      <div class="crhm-section-label">Tags</div>
      {{TAGS_CLOUD}}
    </div>
  </section>

  <!-- METADATA -->
  <section id="metadata" class="crhm-section">
    <div class="crhm-inner">
      <div class="crhm-section-label">Metadata</div>
      {{METADATA_GRID}}
    </div>
  </section>

  <!-- FOOTER -->
  <footer class="crhm-footer">
    <p class="crhm-footer-text">Collaborhythm AIO &mdash; {{CATALOG_ID}}</p>
  </footer>

</div><!-- /.crhm-aio -->

</body>
</html>
