  :root{
    /* palette pulled from the bus photo: terracotta-red body, sandstone fort,
       cream roof/paint, deep umber shadow, dusty sky blue accent */
    --bg: #1a0f08;
    --surface: #2b1a10;
    --surface-2: #3a2415;
    --line: #6e4726;
    --gold: #d9a54a;
    --gold-soft: #b17f36;
    --red: #a53f2e;
    --terracotta: #c1552f;
    --sandstone: #c98f5a;
    --sky: #6f9db0;
    --cream: #f6e9d2;
    --muted: #cdac86;
    --shadow: rgba(0,0,0,0.6);
    --container-max: 1280px;
  }

  * { box-sizing: border-box; }

  html, body{
    margin:0; padding:0;
    min-height:100vh;
    background: var(--bg);
    color: var(--cream);
    font-family: 'DM Sans', sans-serif;
    overflow-x:hidden;
  }
  body {
  background-image: url('bus-hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; 
  position: relative;
}

  /* ---------- Full-screen hero with bus photo ---------- */
  .hero{
    position:relative;
    width:100%;
    height: 100%;
    min-height: 360px;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    overflow:hidden;
  }
  .hero img{
    position:absolute;
    inset:0;
    width:100%; height:100%;
    object-fit:cover;
    object-position: center 42%;
    filter: saturate(1.08) contrast(1.03);
  }
body::before{
    content:"";
    position:absolute; inset:0;
    background:
      linear-gradient(180deg, rgba(15,8,3,0.35) 0%, rgba(15,8,3,0.4) 40%, rgba(15,8,3,0.75) 78%, var(--bg) 100%),
      linear-gradient(90deg, rgba(15,8,3,0.65) 0%, rgba(15,8,3,0.15) 30%, rgba(15,8,3,0.15) 70%, rgba(15,8,3,0.65) 100%),
      radial-gradient(120% 90% at 50% 100%, rgba(15,8,3,0.2), transparent 60%);
  }

  /* top nav overlaid on hero */
  .navbar{
    position:absolute;
    top:0; left:0; right:0;
    z-index:5;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding: 18px clamp(16px, 4vw, 48px);
    max-width: var(--container-max);
    margin: 0 auto;
    width:100%;
  }
  .nav-brand{
    font-family:'Yeseva One', serif;
    font-size: clamp(15px, 2.4vw, 19px);
    color: var(--cream);
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
    white-space:nowrap;
  }
  .nav-brand span{ color: var(--gold); }

  .nav-online{
    display:flex;
    align-items:center;
    gap:8px;
    font-family:'DM Mono', monospace;
    font-size: 12px;
    color: var(--cream);
    background: rgba(20,11,5,0.45);
    border: 1px solid rgba(246,233,210,0.18);
    padding: 7px 14px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    white-space:nowrap;
  }
  .nav-online .dot{
    width:7px; height:7px;
    border-radius:50%;
    background: #6fbf73;
    box-shadow: 0 0 0 3px rgba(111,191,115,0.25);
    flex-shrink:0;
    animation: pulse-dot 1.8s ease-in-out infinite;
  }
  @keyframes pulse-dot{ 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }

  .nav-sources{
    display:flex;
    align-items:center;
    gap:8px;
    flex-shrink:0;
  }
  .source-btn{
    display:flex;
    align-items:center;
    gap:6px;
    font-family:'DM Sans', sans-serif;
    font-size: 12px;
    font-weight:600;
    color: var(--cream);
    background: rgba(20,11,5,0.45);
    border: 1px solid rgba(246,233,210,0.18);
    padding: 7px 12px 7px 10px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    cursor:pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  }
  .source-btn:hover{ background: rgba(20,11,5,0.7); transform: translateY(-1px); }
  .source-btn.active{
    background: linear-gradient(160deg, var(--gold), var(--gold-soft));
    color: var(--bg);
    border-color: transparent;
  }
  .source-btn svg{ width:14px; height:14px; flex-shrink:0; }
  .source-btn .label{ display:none; }
  @media (min-width:560px){ .source-btn .label{ display:inline; } }

  .hero-content{
    position:relative;
    z-index:2;
    text-align:center;
    padding: 40px clamp(16px,4vw,20px) 64px;
    max-width: 640px;
  }
  .eyebrow{
    font-family:'DM Mono', monospace;
    letter-spacing:0.22em;
    text-transform:uppercase;
    font-size: clamp(10px, 2vw, 11px);
    color: var(--gold);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-bottom:16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  }
  .eyebrow::before, .eyebrow::after{
    content:"";
    width: 26px; height:1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft));
  }
  .eyebrow::after{ background: linear-gradient(90deg, var(--gold-soft), transparent); }

  h1{
    font-family:'Yeseva One', serif;
    font-weight:400;
    font-size: clamp(32px, 7vw, 58px);
    margin: 0 0 14px;
    line-height:1.08;
    color: var(--cream);
    text-shadow: 0 4px 18px rgba(0,0,0,0.65);
  }
  h1 span{ color: var(--gold); }

  .hero-content p{
    color: var(--muted);
    font-size: clamp(13px, 2.2vw, 15px);
    line-height:1.6;
    max-width: 460px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  }

  /* ---------- Main content ---------- */
  main{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding: 0 clamp(16px,4vw,20px) 48px;
    margin-top: -34px;
    position:relative;
    z-index:3;
    max-width: var(--container-max);
    margin-left:auto;
    margin-right:auto;
  }

  /* ---------- Player card ---------- */
  .player{
    width:100%;
    max-width: 460px;
    background: linear-gradient(180deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 24px 60px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.05);
    position:relative;
  }
  .player::before{
    content:"";
    position:absolute; inset:0;
    border-radius:20px;
    padding:1px;
    background: linear-gradient(160deg, rgba(224,168,63,0.4), transparent 40%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events:none;
  }

  .now-row{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap: wrap;
  }

  .disc{
    position:relative;
    width:64px; height:64px;
    border-radius:50%;
    flex-shrink:0;
    background:
      radial-gradient(circle at 50% 50%, var(--bg) 0 8px, transparent 8.5px),
      conic-gradient(from 0deg, #241408, #34200f 8%, #241408 16%);
    border: 1px solid var(--line);
    box-shadow: 0 6px 16px rgba(0,0,0,0.5);
    animation: spin 6s linear infinite paused;
  }
  .disc img{
    position:absolute; inset:9px;
    width: calc(100% - 18px); height: calc(100% - 18px);
    border-radius:50%;
    object-fit:cover;
    border: 2px solid var(--bg);
  }
  .disc.spinning{ animation-play-state: running; }
  @keyframes spin{ to{ transform: rotate(360deg); } }

  .meta{ min-width:0; flex:1 1 140px; }
  .meta .title{
    font-family:'Yeseva One', serif;
    font-size: 17px;
    color: var(--cream);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .meta .artist{
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .controls{
    display:flex;
    align-items:center;
    gap: 14px;
    flex-shrink:0;
    margin-left:auto;
  }
  .ctrl-btn{
    background: transparent;
    border: none;
    color: var(--cream);
    cursor:pointer;
    padding:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    opacity:0.8;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .ctrl-btn:hover{ opacity:1; transform: translateY(-1px); }
  .ctrl-btn:focus-visible{ outline: 2px solid var(--gold); outline-offset:3px; border-radius:6px; }

  .play-btn{
    width:44px; height:44px;
    border-radius:50%;
    background: linear-gradient(160deg, var(--gold), var(--gold-soft));
    color: var(--bg);
    opacity:1;
    box-shadow: 0 8px 20px rgba(224,168,63,0.3);
  }
  .play-btn:hover{ transform: translateY(-1px) scale(1.03); }
  .play-btn svg{ width:18px; height:18px; }

  /* progress */
  .progress-row{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-top: 18px;
  }
  .time{
    font-family:'DM Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    width: 38px;
    text-align:center;
    flex-shrink:0;
  }
  .bar{
    flex:1;
    height: 6px;
    border-radius: 6px;
    background: repeating-linear-gradient(45deg, #55371c 0 6px, #432b16 6px 12px);
    position:relative;
    cursor:pointer;
    overflow:hidden;
  }
  .bar-fill{
    position:absolute; left:0; top:0; bottom:0;
    width:0%;
    background: linear-gradient(90deg, var(--red), var(--gold));
    border-radius:6px;
  }
  .bar-knob{
    position:absolute; top:50%; left:0%;
    width:12px; height:12px;
    background: var(--cream);
    border-radius:50%;
    transform: translate(-50%,-50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    transition: left 0.1s linear;
  }

  /* ---------- Playlist ---------- */
  .playlist{
    width:100%;
    max-width: 460px;
    margin-top: 30px;
  }
  .playlist-label{
    font-family:'DM Mono', monospace;
    font-size:11px;
    letter-spacing:0.16em;
    text-transform:uppercase;
    color: var(--muted);
    margin-bottom: 12px;
    padding-left: 4px;
  }
  .track{
    display:flex;
    align-items:center;
    gap: 14px;
    padding: 11px 14px;
    border-radius: 12px;
    cursor:pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  .track:hover{ background: rgba(255,255,255,0.04); }
  .track.active{
    background: rgba(224,168,63,0.09);
    border-color: rgba(224,168,63,0.32);
  }
  .track-num{
    font-family:'DM Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    width: 18px;
    text-align:center;
    flex-shrink:0;
  }
  .track.active .track-num{ color: var(--gold); }
  .track-thumb{
    width: 38px; height:38px;
    border-radius:8px;
    object-fit:cover;
    flex-shrink:0;
    border: 1px solid var(--line);
  }
  .track-info{ min-width:0; flex:1; }
  .track-info .t{
    font-size:14px;
    color: var(--cream);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .track-info .a{
    font-size:11.5px;
    color: var(--muted);
    margin-top:2px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .track-eq{
    width:16px; height:14px;
    display:flex;
    align-items:flex-end;
    gap:2px;
    flex-shrink:0;
    opacity:0;
  }
  .track.active .track-eq{ opacity:1; }
  .track-eq span{
    width:3px;
    background: var(--gold);
    border-radius:1px;
    animation: eq 0.9s ease-in-out infinite;
  }
  .track-eq span:nth-child(1){ height:40%; animation-delay:0s; }
  .track-eq span:nth-child(2){ height:100%; animation-delay:0.2s; }
  .track-eq span:nth-child(3){ height:65%; animation-delay:0.4s; }
  @keyframes eq{ 0%,100%{ transform: scaleY(0.4);} 50%{ transform: scaleY(1);} }

  footer{
    margin-top: 46px;
    font-size: 11.5px;
    color: var(--muted);
    text-align:center;
    max-width:420px;
    line-height:1.7;
  }
    footer .footer-links a {
        color: #FFFFFF;
        text-decoration:none;
        font-size:12px;
        font-family:'Yeseva One', serif;
    }

  #yt-hidden{
    position:absolute;
    width:1px; height:1px;
    top:-9999px; left:-9999px;
    opacity:0;
    pointer-events:none;
  }

  /* ---------- Responsive (standard breakpoints) ---------- */

  /* Large desktop / wide screens */
  @media (min-width: 1280px){
    .player{ max-width: 520px; }
    .playlist{ max-width: 520px; }
  }

  /* Tablet landscape */
  @media (max-width: 1024px){
    .hero{ height: 86vh; }
  }

  /* Tablet portrait */
  @media (max-width: 768px){.hero{ height: auto !important; min-height: unset !important;   padding-top: 100px; }
    .navbar{ padding: 14px 20px; }
    .nav-online .label-text{ display:none; }
    .navbar{ padding: 14px 20px; }
    .nav-online .label-text{ display:none; }

    .nav-brand{ order:1; flex: 1 1 auto; }
    .nav-online{ order:3; flex: 1 1 100%; justify-content:center; }
    .nav-sources{ order:2; }
    .now-row{ gap:12px; }
    .controls{ width:100%; justify-content:center; margin-left:0; order:3; margin-top:6px; }
    .meta{ order:2; }
    .disc{ order:1; }
    .player{ padding:18px; border-radius:16px; }
  }

  /* Small mobile */
  @media (max-width: 380px){
    .meta .title{ font-size:15px; }
    .track-info .t{ font-size:13px; }
    .source-btn{ padding: 6px 9px; }
  }

  @media (prefers-reduced-motion: reduce){
    .disc, .track-eq span{ animation: none !important; }
  }