:root{
  --bg:#071a2a;
  --text:#eaf2ff;
  --muted:#b9c7dd;
  --line:rgba(255,255,255,.10);
  --brand:#6ea8ff;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* Top bar */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(7,26,42,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  font-weight:900;
  letter-spacing:2px;
}
.brand-dot{
  width:10px;height:10px;border-radius:999px;
  background:var(--brand);
  box-shadow:0 0 18px rgba(110,168,255,.55);
}
.brand-text{
  font-size:14px;
  text-transform:uppercase;
}

/* Top menu */
.topmenu{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.topmenu a{
  text-decoration:none;
  color:var(--muted);
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
}
.topmenu a:hover{
  color:var(--text);
  border-color:var(--line);
  background:rgba(255,255,255,.04);
}
.topmenu a.active{
  color:var(--text);
  font-weight:800;
  border-color:rgba(110,168,255,.45);
  background:rgba(110,168,255,.16);
}

/* Hero image */
.hero{
  width:100%;
  height:200px;
  background:
    linear-gradient(90deg, rgba(7,26,42,.78), rgba(7,26,42,.18)),
    url("./assets/header.jpg") center/cover no-repeat;
  border-bottom:1px solid var(--line);
}

/* Main */
.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:20px 16px 60px;
}
.panel{
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
}

/* Home welcome */
.home-welcome{
  padding:28px 18px;
  border-bottom:1px solid var(--line);
  background:
    radial-gradient(420px 220px at 20% 20%, rgba(110,168,255,.18), transparent 60%),
    rgba(255,255,255,.02);
}
.home-welcome-inner{
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.home-welcome-title{
  font-weight: 950;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 28px;          /* was 22px */
  line-height: 1.1;
}

.home-welcome-text{
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;          /* was 14px */
  line-height: 1.55;
}
@media (max-width: 580px){
  .home-welcome-title{ font-size: 22px; }
  .home-welcome-text{ font-size: 14px; }
}


/* Section tabs + dropdown wrapper */
.section-tabs-wrap{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.02);
}

/* Desktop tabs (2nd tier) — wraps */
.section-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  row-gap:8px;
  overflow:visible;
}
.section-tabs a{
  flex:0 0 auto;
  text-decoration:none;
  color:var(--muted);
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
}
.section-tabs a:hover{
  color:var(--text);
  border-color:var(--line);
  background:rgba(255,255,255,.04);
}
.section-tabs a.active{
  color:var(--text);
  font-weight:900;
  border-color:rgba(110,168,255,.45);
  background:rgba(110,168,255,.16);
}

/* Section dropdown (mobile) — custom light arrow */
.section-select{
  display:none;                 /* shown via media query */
  width:100%;
  padding:12px 44px 12px 12px;  /* space for custom arrow */
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:#082238;           /* dark blue */
  color:#eaf2ff;

  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  outline:none;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(234,242,255,.95) 50%),
    linear-gradient(135deg, rgba(234,242,255,.95) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 52%,
    calc(100% - 12px) 52%;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.section-select:focus{
  border-color:rgba(110,168,255,.55);
  box-shadow:0 0 0 3px rgba(110,168,255,.12);
}
.section-select option{
  background:#082238;
  color:#eaf2ff;
}

/* Album row (horizontal scroll) */
.album-grid-wrap{
  padding:12px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.01);
}
.album-grid-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.album-grid-title{
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
  font-size:12px;
}
.album-grid-controls{
  display:flex;
  align-items:center;
  gap:10px;
}
.album-grid-meta{
  color:var(--muted);
  font-size:12px;
}
.scroll-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(110,168,255,.45);
  background:rgba(110,168,255,.14);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.scroll-btn:hover{
  border-color:rgba(110,168,255,.70);
  background:rgba(110,168,255,.20);
}

.album-grid{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:6px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
}
.album-grid::-webkit-scrollbar{ height:8px; }
.album-grid::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.10); border-radius:999px; }
.album-grid::-webkit-scrollbar-track{ background: transparent; }

/* Album cards */
.album-card{
  flex:0 0 auto;
  width:205px;
  scroll-snap-align:start;

  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:14px;
  overflow:hidden;
  cursor:pointer;
  transition: transform .08s ease, border-color .12s ease, background .12s ease;
}
.album-card:hover{
  border-color:rgba(110,168,255,.35);
  transform: translateY(-1px);
}
.album-card.active{
  border:4px solid rgba(255,255,255,.92);
  background:rgba(255,255,255,.06);
  box-shadow:none;
}

.album-cover{
  width:100%;
  aspect-ratio: 1 / 1;
  background:rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
}
.album-cover img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.album-cover.placeholder{
  background:
    radial-gradient(120px 120px at 30% 30%, rgba(110,168,255,.10), transparent 60%),
    rgba(255,255,255,.03);
}
.album-info{
  padding:10px 10px 12px;
}
.album-artist{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.8px;
  text-transform:uppercase;
  margin-bottom:4px;
}
.album-title{
  font-weight:900;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:uppercase;
  line-height:1.25;
}

/* Album viewer */
.content{
  padding:14px;
}
.album-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  border-bottom:1px dashed rgba(255,255,255,.12);
}
.album-name{
  font-size:16px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}
.album-meta{
  margin-top:6px;
  color:var(--muted);
  font-size:12px;
}
.btn{
  display:inline-block;
  border:1px solid rgba(110,168,255,.45);
  background:rgba(110,168,255,.14);
  color:var(--text);
  text-decoration:none;
  padding:10px 12px;
  border-radius:12px;
  font-size:12px;
  white-space:nowrap;
}
.btn:hover{
  border-color:rgba(110,168,255,.70);
  background:rgba(110,168,255,.20);
}

/* Embed container uses the existing #trackList */
.tracks{
  padding-top:14px;
  width:100%;
}

/* Album embed + spinner */
.album-embed{
  width:100%;
  position:relative;
  /*border:1px solid rgba(255,255,255,.10);*/
  border-radius:14px;
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.album-embed iframe{
  width:100%;
  height: clamp(420px, 60vh, 720px);
  border:0;
}

/* Spinner overlay */
.embed-spinner{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(7,26,42,.55);
  backdrop-filter: blur(2px);
}
.embed-spinner::before{
  content:"";
  width:34px;
  height:34px;
  border-radius:999px;
  border:3px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.92);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{
  to{ transform:rotate(360deg); }
}
.album-embed.loaded .embed-spinner{
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
}

/* No-embed placeholder */
.no-embed{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:14px;
  padding:14px;
  color:var(--muted);
  background:rgba(255,255,255,.02);
}
.no-embed-title{
  color:var(--text);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
  font-size:12px;
  margin-bottom:6px;
}
.no-embed-text code{
  color:var(--text);
}

/* Footer */
.footer{
  margin-top:14px;
  color:var(--muted);
  font-size:12px;
}
.footer-inner{
  padding:10px 6px;
  opacity:.9;
}

/* Switch tabs -> dropdown on smaller screens */
@media (max-width: 980px){
  .section-tabs{ display:none; }
  .section-select{ display:block; }
}

/* Responsive */
@media (max-width: 980px){
  .hero{ height:170px; }
}
@media (max-width: 520px){
  .topbar-inner{ align-items:flex-start; flex-direction:column; }
}
