/* =========================
       Modern, clean redesign
       ========================= */
    :root{
      --bg: #0b0f14;
      --surface: rgba(255,255,255,0.06);
      --surface-2: rgba(255,255,255,0.10);
      --border: rgba(255,255,255,0.10);
      --text: rgba(255,255,255,0.92);
      --muted: rgba(255,255,255,0.68);
      --muted-2: rgba(255,255,255,0.52);
      --accent: #34d399; /* emerald */
      --accent-2: #60a5fa; /* blue */
      --danger: #fb7185;
      --shadow: 0 14px 50px rgba(0,0,0,.45);
      --shadow-soft: 0 10px 30px rgba(0,0,0,.28);
      --radius-lg: 20px;
      --radius-md: 14px;
      --radius-sm: 12px;
      --container: 1120px;

      --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    }

    /* Light theme */
    [data-theme="light"]{
      --bg: #f6f7fb;
      --surface: rgba(15, 23, 42, 0.04);
      --surface-2: rgba(15, 23, 42, 0.06);
      --border: rgba(15, 23, 42, 0.10);
      --text: rgba(15, 23, 42, 0.92);
      --muted: rgba(15, 23, 42, 0.70);
      --muted-2: rgba(15, 23, 42, 0.55);
      --shadow: 0 14px 40px rgba(2, 6, 23, .12);
      --shadow-soft: 0 10px 26px rgba(2, 6, 23, .10);
    }

    *{ box-sizing:border-box; }
    html,body{ height:100%; }
    body{
      margin:0;
      font-family: var(--font);
      color: var(--text);
      background:
        radial-gradient(1200px 600px at 20% 0%, rgba(52,211,153,0.18), transparent 55%),
        radial-gradient(1000px 700px at 90% 10%, rgba(96,165,250,0.18), transparent 50%),
        radial-gradient(900px 600px at 50% 100%, rgba(251,113,133,0.10), transparent 55%),
        var(--bg);
      overflow-x:hidden;
    }

    a{ color: inherit; text-decoration:none; }
    img{ max-width:100%; display:block; }

    .container{
      width: min(var(--container), calc(100% - 40px));
      margin: 0 auto;
    }

    /* ---------- Header ---------- */
    .topbar{
      position: sticky;
      top:0;
      z-index: 50;
      backdrop-filter: blur(14px);
      background: color-mix(in srgb, var(--bg) 70%, transparent);
      border-bottom: 1px solid var(--border);
    }
    .topbar-inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 14px;
      padding: 14px 0;
    }

    .brand{
      display:flex;
      align-items:center;
      gap: 12px;
      min-width: 240px;
    }
    .brand-badge{
      width: 38px;
      height: 38px;
      border-radius: 12px;
      background: linear-gradient(135deg, rgba(52,211,153,0.9), rgba(96,165,250,0.9));
      box-shadow: var(--shadow-soft);
    }
    .brand-logo{
      width: 38px;
      height: 38px;
      border-radius: 12px;
      object-fit: contain;
      background: color-mix(in srgb, var(--surface) 70%, transparent);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }
    .brand-title{
      line-height: 1.1;
    }
    .brand-title strong{
      display:block;
      font-weight: 800;
      letter-spacing: 0.2px;
    }
    .brand-title span{
      display:block;
      font-size: 12px;
      color: var(--muted);
      margin-top: 2px;
    }

    .controls{
      display:flex;
      align-items:center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .field{
      display:flex;
      align-items:center;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 999px;
      background: var(--surface);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
    }
    .field label{
      font-size: 12px;
      color: var(--muted);
      white-space: nowrap;
    }
    select, input{
      appearance: none;
      border: none;
      outline: none;
      background: transparent;
      color: var(--text);
      font-size: 14px;
      min-width: 120px;
    }
    input::placeholder{ color: var(--muted-2); }

    .btn{
      border: 1px solid var(--border);
      background: var(--surface);
      color: var(--text);
      border-radius: 999px;
      padding: 10px 14px;
      font-weight: 700;
      font-size: 13px;
      cursor:pointer;
      box-shadow: var(--shadow-soft);
      transition: transform .15s ease, background .2s ease, border-color .2s ease;
    }
    .btn:hover{ transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
    .btn:active{ transform: translateY(0px); }
    .btn-primary{
      background: linear-gradient(135deg, rgba(52,211,153,0.95), rgba(96,165,250,0.95));
      border-color: transparent;
      color: #0b0f14;
    }
    .btn-primary:hover{ filter: brightness(1.02); }

    /* ---------- Hero ---------- */
    .hero{
      padding: 26px 0 10px 0;
    }
    .hero-card{
      position:relative;
      overflow:hidden;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background: var(--surface);
      box-shadow: var(--shadow);
    }
    .hero-media{
      position: relative;
      aspect-ratio: 21/9;
      min-height: 220px;
      background-size: cover;
      background-position: center;
      transition: background-image 1s ease-in-out;
    }
    .hero-media::after{
      content:"";
      position:absolute;
      inset:0;
      background:
        linear-gradient(90deg, rgba(0,0,0,0.70), rgba(0,0,0,0.05) 55%),
        linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.60));
      pointer-events:none;
    }
    [data-theme="light"] .hero-media::after{
      background:
        linear-gradient(90deg, rgba(15,23,42,0.72), rgba(15,23,42,0.08) 55%),
        linear-gradient(180deg, rgba(15,23,42,0.08), rgba(15,23,42,0.50));
    }
    .hero-content{
      position:absolute;
      inset: 0;
      display:flex;
      align-items:flex-end;
      padding: 18px 18px 18px 18px;
    }
    .hero-content-inner{
      max-width: 680px;
    }
    .hero-h1{
      margin: 0;
      font-size: clamp(22px, 3vw, 34px);
      letter-spacing: -0.3px;
      font-weight: 900;
    }
    .hero-sub{
      margin: 8px 0 0 0;
      color: color-mix(in srgb, var(--text) 65%, transparent);
      font-size: 14px;
      line-height: 1.4;
    }

    /* ---------- Player ---------- */
    .player{
      margin-top: 16px;
    }
    .player-card{
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background: var(--surface);
      box-shadow: var(--shadow);
      overflow:hidden;
    }
    .player-inner{
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #000;
    }
    .main-media{
      position:absolute;
      inset:0;
      width:100%;
      height:100%;
    }
    .hidden{ display:none !important; }
    #mainLocalVideo{ object-fit: cover; background:#000; }

    .thumbbar{
      display:flex;
      gap: 10px;
      padding: 12px;
      overflow-x:auto;
      scroll-snap-type: x mandatory;
      border-top: 1px solid var(--border);
      background: color-mix(in srgb, var(--surface) 60%, transparent);
    }
    .thumbbar::-webkit-scrollbar{ height: 10px; }
    .thumbbar::-webkit-scrollbar-thumb{
      background: color-mix(in srgb, var(--text) 16%, transparent);
      border-radius: 999px;
    }

    .thumb{
      scroll-snap-align: start;
      flex: 0 0 auto;
      width: 180px;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--surface) 75%, transparent);
      padding: 10px;
      cursor:pointer;
      transition: transform .15s ease, border-color .2s ease, background .2s ease;
      outline: none;
      text-align:left;
    }
    .thumb:hover{ transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
    .thumb.active{
      border-color: color-mix(in srgb, var(--accent) 75%, var(--border));
      background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    }
    .thumb img{
      width: 100%;
      aspect-ratio: 16/9;
      object-fit: cover;
      border-radius: 12px;
      background:#111;
      box-shadow: var(--shadow-soft);
    }
    .thumb span{
      display:block;
      margin-top: 8px;
      font-size: 12px;
      line-height: 1.25;
      color: var(--muted);
      font-weight: 700;
    }

    /* ---------- Promo ---------- */
    .promo{
      margin-top: 16px;
    }
    .promo-card{
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      background: linear-gradient(135deg,
        color-mix(in srgb, var(--accent) 18%, var(--surface)),
        color-mix(in srgb, var(--accent-2) 14%, var(--surface))
      );
      box-shadow: var(--shadow-soft);
      padding: 18px;
      display:flex;
      align-items:center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }
    .promo-copy strong{ font-size: 16px; }
    .promo-copy p{
      margin: 6px 0 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.4;
      max-width: 640px;
    }
    .promo-actions{
      display:flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    /* ---------- Albums ---------- */
    .section-head{
      display:flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
      margin: 20px 0 10px 0;
    }
    .section-head h2{
      margin:0;
      font-size: 16px;
      letter-spacing: 0.1px;
    }
    .count{
      font-size: 12px;
      color: var(--muted);
    }

    .grid{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 14px;
      padding-bottom: 22px;
    }

    .card{
      grid-column: span 3;
      border-radius: var(--radius-lg);
      overflow:hidden;
      border: 1px solid var(--border);
      background: var(--surface);
      box-shadow: var(--shadow-soft);
      cursor:pointer;
      transition: transform .15s ease, border-color .2s ease;
      position:relative;
      min-height: 255px;
    }
    .card:hover{ transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }

    .cover{
      width:100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      background: #111;
    }
    .card-body{
      padding: 12px 12px 12px 12px;
    }
    .title{
      margin: 0;
      font-size: 14px;
      font-weight: 900;
      letter-spacing: -0.1px;
    }
    .meta{
      margin: 6px 0 0 0;
      color: var(--muted);
      font-size: 12px;
      display:flex;
      align-items:center;
      gap: 10px;
      flex-wrap: wrap;
    }
    .pill{
      display:inline-flex;
      align-items:center;
      gap: 6px;
      border-radius: 999px;
      padding: 6px 10px;
      background: color-mix(in srgb, var(--surface) 70%, transparent);
      border: 1px solid var(--border);
      font-weight: 800;
      font-size: 11px;
      color: var(--muted);
    }

    .links{
      display:flex;
      gap: 10px;
      padding: 10px 12px 12px 12px;
      align-items:center;
      justify-content: space-between;
    }
    .icon-row{
      display:flex;
      gap: 10px;
      align-items:center;
    }
    .icon-btn{
      width: 34px;
      height: 34px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--surface) 70%, transparent);
      display:grid;
      place-items:center;
      transition: transform .15s ease, border-color .2s ease;
    }
    .icon-btn:hover{ transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
    .icon-btn img{ width: 18px; height: 18px; }

    .play-in-player{
      width: 42px;
      height: 42px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: color-mix(in srgb, var(--accent) 92%, black);
      color: #0b0f14;
      font-weight: 950;
      font-size: 16px;
      padding: 0;
      cursor:pointer;
      transition: transform .15s ease, filter .2s ease;
      display:grid;
      place-items:center;
      line-height: 1;
    }
    .play-in-player:hover{ transform: translateY(-1px) scale(1.04); filter: brightness(1.03); }

    /* ---------- Modal ---------- */
    .modal{
      position:fixed;
      inset: 0;
      display:none;
      place-items:center;
      background: rgba(0,0,0,0.70);
      z-index: 80;
      padding: 18px;
    }
    .modal.open{ display:grid; }
    .modal-dialog{
      width: min(920px, 100%);
      border-radius: 22px;
      border: 1px solid var(--border);
      background: color-mix(in srgb, var(--bg) 55%, var(--surface));
      box-shadow: var(--shadow);
      overflow:hidden;
      max-height: 92vh;
      display:grid;
      grid-template-columns: 1.1fr 1fr;
    }
    .modal-media{
      background:#000;
      position:relative;
    }
    .modal-media img{
      width:100%;
      height:100%;
      object-fit: cover;
      min-height: 360px;
    }
    .modal-body{
      padding: 16px;
      overflow:auto;
    }
    .modal-body h3{
      margin: 0;
      font-size: 20px;
      letter-spacing: -0.2px;
      font-weight: 950;
    }
    .modal-body p{
      margin: 8px 0 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }
    .modal-actions{
      margin-top: 12px;
      display:flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items:center;
      justify-content: space-between;
    }
    .modal-actions .icon-row{ gap: 8px; }
    .modal-close{
      position:absolute;
      top: 10px;
      right: 10px;
      width: 40px;
      height: 40px;
      border-radius: 14px;
      border: 1px solid var(--border);
      background: rgba(0,0,0,0.35);
      color: #fff;
      font-size: 18px;
      cursor:pointer;
      display:grid;
      place-items:center;
      backdrop-filter: blur(10px);
    }

    .spotify-embed{
      margin-top: 12px;
      border-radius: 16px;
      overflow:hidden;
      border: 1px solid var(--border);
      background: var(--surface);
    }
    .spotify-embed iframe{
      width:100%;
      height: 352px;
      border: 0;
      display:block;
    }

    /* ---------- Footer ---------- */
    footer{
      border-top: 1px solid var(--border);
      background: color-mix(in srgb, var(--bg) 75%, transparent);
      padding: 22px 0;
      color: var(--muted);
    }
    .footer-inner{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap: 14px;
      flex-wrap: wrap;
    }
    .footer-left{
      display:flex;
      align-items:center;
      gap: 10px;
    }
    .footer-left img{ height: 28px; width:auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.25)); }
    .footer-links a{
      color: var(--muted);
      font-weight: 700;
      font-size: 12px;
      margin-left: 10px;
    }
    .footer-links a:hover{ text-decoration: underline; }

    /* ---------- Responsive ---------- */
    @media (max-width: 980px){
      .card{ grid-column: span 4; }
      .thumb{ width: 160px; }
      .modal-dialog{ grid-template-columns: 1fr; }
      .modal-media img{ min-height: 280px; }
    }
    @media (max-width: 680px){
      .brand{ min-width: unset; }
      .hero-media{ aspect-ratio: 16/10; }
      .grid{ gap: 12px; }
      .card{ grid-column: span 6; }
      .thumb{ width: 150px; }
      select, input{ min-width: 95px; }
    }
    @media (max-width: 420px){
      .card{ grid-column: span 12; }
    }

    /* Reduce motion */
    @media (prefers-reduced-motion: reduce){
      *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
    }
