  :root {
    --bg-deep: #eef0f6;
    --bg-deep-2: #e6e9f2;
    --glass: rgba(255,255,255,0.55);
    --glass-strong: rgba(255,255,255,0.8);
    --glass-border: rgba(17,24,39,0.08);
    --text: #1c1e26;
    --text-muted: #565b6b;
    --text-dim: #8a8fa0;
    --accent-dynamic: #ff8a5b;
    --accent-2: #7c6cff;
    --radius: 18px;
  }

  * { box-sizing: border-box; }
  html, body { height: 100%; }

  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--bg-deep);
    min-height: 100vh;
    overflow-x: hidden;
  }

  .ambient-bg {
    position: fixed;
    inset: -10%;
    background-size: cover;
    background-position: center;
    filter: blur(10px) saturate(1.1) brightness(1.05);
    transform: scale(1.1);
    transition: background-image 0.6s ease;
    z-index: -2;
  }
  .ambient-overlay {
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 0%, rgba(255,255,255,0.4), transparent 55%),
      linear-gradient(180deg, rgba(238,240,246,0.55), rgba(238,240,246,0.88));
    z-index: -1;
  }

  .app {
    max-width: 1080px;
    margin: 0 auto;
    padding: 28px 20px 40px;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }

  h1.app-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin: 0;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 20px;
  }
  .topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .site-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
  }

  /* ---------- Sidebar ---------- */
  .sidebar {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px;
    height: fit-content;
    max-height: 72vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 8px 10px;
  }
  .search-box svg { flex-shrink: 0; opacity: 0.5; }
  .search-box input {
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    width: 100%;
  }
  .search-box input::placeholder { color: var(--text-dim); }

  .channel-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 2px;
  }
  .channel-list::-webkit-scrollbar { width: 5px; }
  .channel-list::-webkit-scrollbar-thumb { background: rgba(17,24,39,0.18); border-radius: 4px; }

  .channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease;
  }
  .channel-row:hover { background: rgba(17,24,39,0.05); }
  .channel-row.active {
    background: rgba(255,255,255,0.85);
    border-color: var(--glass-border);
  }
  .channel-row .avatar {
    width: 34px; height: 34px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #22212e;
  }
  .channel-row .meta { min-width: 0; flex: 1; }
 .channel-row .cname {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .channel-row .csub {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .channel-row.active .cname { color: var(--accent-dynamic); }
  .live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-dynamic);
    flex-shrink: 0;
    box-shadow: 0 0 6px 1px var(--accent-dynamic);
  }

  /* ---------- Player card ---------- */
  .player-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    min-height: 72vh;
  }

  /* ---------- Channel identity row ---------- */
  .channel-identity {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .channel-logo-sm {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 6px 16px -8px rgba(17,24,39,0.3), 0 0 0 1px rgba(255,255,255,0.6);
  }
  img#stationLogo:hover {
    transform: scale(2);
    border-radius: 12px;
  }
  .channel-identity-text { min-width: 0; }
  .channel-name {
/*    font-family: 'Space Grotesk', sans-serif; */
    font-size: 25px;
/*    font-weight: 600; */
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .channel-genre {
/*    font-family: 'Inter', sans-serif; */
    font-size: 20px;
    color: var(--text-muted);
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .channel-audio {
/*    font-family: 'Inter', sans-serif; */
    font-size: 15px;
    color: var(--text-dim);
    margin-top: 2px;
  }
  .channel-stats {
/*    font-family: 'Inter', sans-serif; */
    font-size: 15px;
    color: var(--text-dim);
    margin-top: 2px;
  }

  .now-playing {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid var(--glass-border);
  }
.cover-wrap {
    width: 120px;
    height: 120px;
    border-radius: 14px;
    flex-shrink: 0;
  }
  .cover-wrap img#cover {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 14px;
    box-shadow: 0 16px 32px -14px rgba(17,24,39,0.25), 0 0 0 1px rgba(255,255,255,0.6);
  }
  img#cover:hover {
    transform: scale(2);
  }
  .track-meta { min-width: 0; flex: 1; }
  .track-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .track-artist {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ---------- Up next ---------- */
  .up-next {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--glass-border);
  }
  .up-next-cover-wrap {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .up-next-cover {
    width: 100%; height: 100%; object-fit: cover; display: block;
    border-radius: 10px;
    box-shadow: 0 6px 14px -8px rgba(17,24,39,0.25), 0 0 0 1px rgba(255,255,255,0.6);
  }
  img#nextCover:hover {
    transform: scale(2);
  }
  .up-next-meta { min-width: 0; }
  .up-next-label {
/*    font-family: 'Inter', sans-serif; */
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-dynamic);
/*    text-transform: uppercase; */
    letter-spacing: 0.04em;
    margin-bottom: 2px;
  }
  .up-next-title {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .up-next-artist {
    font-size: 16px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }


  /* ---------- Transport ---------- */
  .transport {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
  }
  .play-btn {
    width: 52px; height: 52px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    background: var(--glass-strong);
    color: var(--text);
    box-shadow: 0 8px 20px -12px rgba(17,24,39,0.3);
    flex-shrink: 0;
    transition: transform 0.1s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .play-btn:hover { border-color: var(--accent-dynamic); color: var(--accent-dynamic); }
  .play-btn:active { transform: scale(0.94); }
  .play-btn svg { width: 18px; height: 18px; }

  .nav-btn {
    width: 40px; height: 40px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .nav-btn:hover { background: rgba(17,24,39,0.06); color: var(--text); }
  .nav-btn:active { transform: scale(0.94); }

  .volume-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 140px;
    color: var(--text-dim);
  }
  .volume-wrap svg { flex-shrink: 0; }
  .mute-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .mute-btn:hover { background: rgba(17,24,39,0.06); color: var(--text); }
  .vol-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--text-dim);
    min-width: 30px;
    text-align: right;
    flex-shrink: 0;
  }
  input[type="range"] {
    -webkit-appearance: none;
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(17,24,39,0.12);
    outline: none;
  }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-dynamic);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.06);
    cursor: pointer;
  }
  input[type="range"]::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent-dynamic);
    border: none;
    cursor: pointer;
  }

  @media (max-width: 760px) {
    .app { grid-template-columns: 1fr; }
    .sidebar {
      max-height: none;
      flex-direction: row;
      overflow-x: auto;
      align-items: center;
    }
    .search-box { display: none; }
    .channel-list { flex-direction: row; overflow-x: auto; overflow-y: visible; }
    .channel-row { flex-direction: column; min-width: 76px; text-align: center; }
    .channel-row .meta { width: 100%; }
    .channel-row .csub { display: none; }
    .now-playing { flex-direction: column; text-align: center; }
    .track-title, .track-artist { white-space: normal; }
    .channel-identity { justify-content: center; text-align: center; }
    .up-next { justify-content: center; text-align: center; }
    .transport { justify-content: center; }
  }

