:root {
  --bg: #000;
  --panel: #141414;
  --panel-2: #1c1c1c;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.12);
  --red: #e52e2e;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
body.modal-open { overflow: hidden; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 80px;
  padding: 0 clamp(18px, 2vw, 34px);
  color: #fff;
  background: linear-gradient(180deg, rgba(0,0,0,.74), rgba(0,0,0,.08));
}
.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--red);
  overflow: hidden;
}
.brand-mark i {
  display: block;
  width: 5px;
  height: 18px;
  margin: 0 1.5px;
  border-radius: 3px;
  background: #fff;
  transform: skew(-12deg);
}
.brand-mark i:nth-child(2) { height: 26px; }
.brand-mark i:nth-child(3) { height: 13px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  height: 100%;
  margin-left: clamp(32px, 4vw, 58px);
  font-size: 17px;
  font-weight: 800;
}
.main-nav a { display: flex; align-items: center; height: 100%; color: rgba(255,255,255,.92); }
.main-nav .is-active, .main-nav a:hover { color: var(--red); }
.header-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 20px;
}
.language, .download-link {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.download-link {
  padding: 10px 16px;
  border-radius: 22px;
  background: #fff;
  color: #000;
}
.download-link:hover { background: var(--red); color: #fff; }
.menu-toggle { display: none; }
.search-panel {
  position: absolute;
  top: 88px;
  right: clamp(18px, 2vw, 34px);
  display: none;
  align-items: center;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 24px;
  background: rgba(22,22,22,.96);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.search-panel.is-open { display: flex; }
.search-panel input { flex: 1; min-width: 0; border: 0; outline: 0; color: #fff; background: transparent; }
.search-panel button { border: 0; color: #fff; background: transparent; font-size: 22px; }

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #000;
}
.hero::before {
  content: "";
  display: block;
  width: 100%;
  padding-top: 33.333%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: #fff;
  background: #000;
  text-align: left;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  display: block;
  background: url("assets/heiress-cover.png") center 18% / cover no-repeat;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  display: block;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.26) 55%, rgba(0,0,0,.08)),
    linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,0) 32%, #000 100%);
}
.hero-content {
  position: absolute;
  left: 6vw;
  bottom: clamp(34px, 6vw, 74px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: min(560px, 48vw);
}
.hero-title {
  display: block;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span {
  max-width: 170px;
  padding: 5px 13px;
  border-radius: 20px;
  color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(5px);
  font-size: 14px;
  font-weight: 700;
}
.hero-tags .hot-tag { background: var(--red); color: #fff; }
.hero-copy {
  display: block;
  max-width: 520px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
}
.play-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 220px;
  height: 56px;
  border-radius: 30px;
  color: #000;
  background: #fff;
  font-size: 18px;
  font-weight: 900;
}
.hero-slide:hover .play-pill { color: #fff; background: var(--red); }

.category-band {
  padding: 26px clamp(16px, 4vw, 64px) 8px;
}
.category-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.category-chip {
  flex: none;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.1);
  font-size: 14px;
  font-weight: 800;
}
.category-chip.is-active { border-color: var(--red); color: var(--red); background: rgba(229,46,46,.2); }

.movie-section {
  padding: 22px clamp(16px, 4vw, 64px) 4px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 900;
}
.section-heading button {
  border: 0;
  color: rgba(255,255,255,.64);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.poster-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 14.2vw, 218px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.poster-card {
  display: block;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
}
.poster-image {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: #222;
}
.poster-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.68));
}
.poster-tag {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}
.poster-play {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: #000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.85);
  transition: .18s ease;
}
.poster-card:hover .poster-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.poster-card h3 {
  display: -webkit-box;
  min-height: 41px;
  margin: 10px 0 3px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.32;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.poster-card p {
  margin: 0;
  overflow: hidden;
  color: rgba(255,255,255,.56);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.episode-block {
  margin: 28px clamp(16px, 4vw, 64px);
  padding: clamp(18px, 3vw, 32px);
  border-radius: 16px;
  background: var(--panel);
}
.episode-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.episode-head p { margin: 0 0 6px; color: var(--red); font-weight: 900; }
.episode-head h2 { margin: 0; font-size: clamp(24px, 3vw, 42px); line-height: 1.05; }
.play-small {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 24px;
  color: #000;
  background: #fff;
  font-weight: 900;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.episode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.06);
}
.episode-card.is-open { background: rgba(229,46,46,.16); border-color: rgba(229,46,46,.45); }
.episode-card span:first-child { font-weight: 900; }
.episode-card small { color: rgba(255,255,255,.58); }

.app-callout, .studio-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: clamp(24px, 5vw, 72px);
  margin: 36px clamp(16px, 4vw, 64px);
  padding: clamp(28px, 5vw, 58px);
  border-radius: 18px;
  background: linear-gradient(135deg, #1a1a1a, #090909);
}
.app-callout h2, .studio-section h2 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 52px); line-height: 1; }
.app-callout p, .studio-section p { margin: 0; color: var(--muted); font-size: 16px; }
.join-form { display: grid; align-content: end; gap: 10px; }
.join-form input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  color: #fff;
  outline: 0;
  background: rgba(255,255,255,.08);
}
.join-form button, .studio-section a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}
.join-form p { font-size: 12px; color: var(--muted); }
.studio-section { grid-template-columns: 1fr auto; align-items: center; background: var(--panel); }

.site-footer {
  display: grid;
  gap: 18px;
  padding: 36px clamp(16px, 4vw, 64px) 44px;
  color: rgba(255,255,255,.56);
  background: #050505;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 28px; font-size: 12px; font-weight: 900; }

.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.88); }
.player-dialog { position: relative; width: min(460px, 100%); padding: 14px; border-radius: 14px; background: #101010; }
.player-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.player-dialog h2 { margin: 0; font-size: 16px; }
.player-dialog iframe { display: block; width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 8px; background: #000; }
.toast {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 18px;
  width: min(340px, calc(100vw - 36px));
  padding: 13px 15px;
  border-left: 4px solid var(--red);
  color: #fff;
  background: #181818;
  box-shadow: 0 16px 44px rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: .2s ease;
}
.toast.is-showing { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .site-header { height: 62px; padding: 0 14px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .main-nav, .download-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.menu-open .main-nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: grid;
    height: auto;
    margin: 0;
    padding: 12px 18px;
    background: rgba(0,0,0,.94);
  }
  .site-header.menu-open .main-nav a { height: 40px; }
  .search-panel { top: 68px; right: 14px; }
  .hero { min-height: 0; margin-top: 0; }
  .hero::before { padding-top: 122.667%; }
  .hero-backdrop { background-position: center 15%; }
  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(0,0,0,.38), rgba(0,0,0,.12) 38%, #000 100%);
  }
  .hero-content {
    left: 16px;
    right: 16px;
    bottom: 30px;
    align-items: center;
    width: auto;
    text-align: center;
  }
  .hero-title { font-size: 28px; }
  .hero-copy { display: none; }
  .play-pill { width: 168px; height: 42px; font-size: 16px; }
  .category-band { padding: 22px 16px 4px; }
  .movie-section { padding: 20px 16px 2px; }
  .poster-rail { grid-auto-columns: 132px; gap: 10px; }
  .poster-card h3 { font-size: 13px; min-height: 36px; }
  .episode-block { margin: 24px 16px; padding: 18px; }
  .episode-head { align-items: start; flex-direction: column; }
  .episode-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .episode-card { min-height: 48px; padding: 8px 10px; }
  .episode-card small { display: none; }
  .app-callout, .studio-section { grid-template-columns: 1fr; margin: 28px 16px; padding: 26px 18px; }
}
