:root {
  --bg: #0b0b0d;
  --panel: #151518;
  --line: #26262b;
  --text: #ececf0;
  --muted: #9a9aa3;
  --accent: #e8b03a;   /* marquee gold */
  --red: #ff3b30;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--bg);
  --page-bg: url("img/bg_skyline.webp");
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, sans-serif;
}
a { color: inherit; }

/* Nano Banana Pro backdrop, fixed behind the whole page */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--page-bg) center / cover no-repeat;
}
main { background: linear-gradient(rgba(11, 11, 13, 0), rgba(11, 11, 13, .88) 240px); }
footer { background: rgba(11, 11, 13, .86); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(11, 11, 13, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: .02em; }
.brand span { color: var(--accent); }
.topbar nav { display: flex; gap: 22px; align-items: center; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.yt { color: #fff; background: var(--red); padding: 6px 14px; border-radius: 999px; }

/* Hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(300px, 1fr) 1.6fr;
  gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 6vw, 96px);
  overflow: hidden;
}
.hero::before { /* darken behind the title, fading out at the bottom */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 7, 8, .85) 0%, rgba(7, 7, 8, .35) 45%, rgba(7, 7, 8, .1) 100%);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
}
.hero-text { position: relative; z-index: 1; }
.hero::after { /* film grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .08;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
          mask-image: linear-gradient(#000 60%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.kicker { margin: 0 0 6px; color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 {
  margin: 0; font: 400 clamp(5rem, 11vw, 9.5rem)/.85 "Bebas Neue", Impact, sans-serif;
  letter-spacing: .02em;
  text-shadow: 0 0 40px rgba(232, 176, 58, .25);
}
.tagline { max-width: 34ch; font-size: 1.15rem; color: #c9c9d0; }
.pick { margin: 26px 0 0; color: var(--muted); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.cta .btn { font-size: 1.05rem; padding: 14px 26px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  border: 1px solid #3a3a42; text-decoration: none; font-weight: 600;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: #1f1f24; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #111; }
.btn.primary:hover { background: #f3c255; }
.btn.small { padding: 8px 16px; font-size: .9rem; }

.film {
  position: relative; z-index: 1;
  aspect-ratio: 16 / 9; width: 100%;
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 1px #2c2c33;
}
.film iframe { width: 100%; height: 100%; border: 0; display: block; }
/* Playlists */
main { padding: 0 max(clamp(16px, 4vw, 48px), (100% - 1400px) / 2); }
.playlist { padding: 64px 0 24px; border-bottom: 1px solid var(--line); }
.pl-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: end; }
.pl-head h2 { margin: 0; font: 400 clamp(3rem, 7vw, 4.5rem)/.9 "Bebas Neue", Impact, sans-serif; letter-spacing: .03em; }
.pl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filter { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.filter button {
  background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem;
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.filter button.on { background: #2b2b31; color: var(--text); }
.weeks { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.weeks a {
  text-decoration: none; font-size: .85rem; color: var(--muted);
  border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px;
}
.weeks a:hover { color: var(--text); border-color: #444; }

.week h3 { margin: 34px 0 14px; font-size: 1.1rem; display: flex; gap: 6px; align-items: baseline; }
.week h3 span { color: var(--muted); font-weight: 500; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card {
  text-decoration: none; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: #45454e; }
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0, 0, 0, .65); font-size: .95rem;
  opacity: 0; transition: opacity .15s;
}
.card:hover .play { opacity: 1; }
.meta { padding: 10px 12px 14px; }
.meta p { margin: 4px 0 0; font-size: .92rem; line-height: 1.35; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.card.lecture .tag { color: var(--accent); }
.card.lecture { border-color: #3a3220; }

footer { text-align: center; color: var(--muted); padding: 48px 16px 64px; font-size: .9rem; }

/* Player */
dialog {
  width: min(1000px, 94vw); padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); color: var(--text);
}
dialog::backdrop { background: rgba(0, 0, 0, .8); }
.player-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.player-head h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; font-size: .9rem; }
.player-nav a { color: var(--muted); }
dialog button {
  background: #24242a; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; font: inherit; cursor: pointer;
}
dialog button:disabled { opacity: .35; cursor: default; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero::before { background: rgba(7, 7, 8, .6); }
  body::before { background-position: 75% center; }
  .tagline { margin-inline: auto; }
  .cta { justify-content: center; }
  .topbar nav { gap: 14px; }
  .topbar nav a { font-size: .9rem; }
  .brand span { display: none; }
}
