:root {
  color-scheme: dark;
  --bg: #100e17;
  --panel: #191624;
  --line: #302a3d;
  --text: #faf8ff;
  --muted: #b9b1c7;
  --accent: #b39aff;
  --ink: #1b102d;
  --shell: 1280px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-height: 62vh; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 2px solid #d7c5ff; outline-offset: 4px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; }
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: 0 0 auto; }
.shell { width: min(calc(100% - 80px), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 10; background: #100e17f5; border-bottom: 1px solid #272231; }
.topbar { min-height: 72px; display: flex; align-items: center; gap: clamp(22px, 4vw, 54px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.34rem; font-weight: 820; letter-spacing: -.065em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--accent); color: var(--ink); border-radius: 11px; }
.brand-mark .icon { font-size: 1.12rem; }
.brand-accent { color: var(--accent); }
.main-nav, .header-tools { display: flex; align-items: center; }
.main-nav { align-self: stretch; gap: clamp(16px, 2.5vw, 34px); }
.main-nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: .88rem; font-weight: 650; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav a[aria-current]::after { content: ''; position: absolute; bottom: 0; inset-inline: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--accent); }
.header-tools { margin-left: auto; gap: 10px; }
.search, .language { min-height: 40px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.search { display: flex; align-items: center; width: clamp(128px, 19vw, 245px); }
.search:focus-within, .language:focus-within { border-color: var(--accent); }
.search input { min-width: 0; width: 100%; border: 0; padding: 9px 0 9px 12px; outline: none; background: transparent; font-size: .84rem; }
.search input::placeholder { color: var(--muted); }
.search button { display: grid; place-items: center; flex: 0 0 38px; align-self: stretch; border: 0; background: none; color: var(--muted); }
.search button:hover { color: var(--text); }
.language { position: relative; display: flex; align-items: center; color: var(--muted); }
.language > svg { position: absolute; left: 10px; pointer-events: none; }
.language > .caret { left: auto; right: 8px; width: .85em; }
.language select { min-height: 38px; appearance: none; background: none; color: var(--text); border: 0; padding: 0 24px 0 34px; font-size: .77rem; font-weight: 740; }
select option { background: var(--panel); color: var(--text); }

.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 475px; margin-top: 28px; padding: clamp(25px, 4.5vw, 58px); border: 1px solid #3b304e; border-radius: 23px; background: radial-gradient(ellipse at 75% 20%, #3f2b56, #1b1327 70%); }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 36%; overflow: hidden; background: #352448; }
.hero-backdrop { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center 35%; filter: blur(23px); transform: scale(1.15); opacity: .54; }
.hero-poster { position: absolute; right: 12%; top: 50%; transform: translateY(-50%); height: 104%; width: 58%; object-fit: cover; object-position: center 36%; mask-image: linear-gradient(90deg, transparent, black 14% 91%, transparent); }
.hero::after { content: ''; z-index: -1; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #1c1328 0%, #1c1328 23%, #1c1328f5 37%, #1c132849 66%, transparent 90%), linear-gradient(0deg, #191021da 0%, transparent 47%); }
.hero-content { width: min(56%, 540px); margin-block: auto; }
.hero h2 { margin: 15px 0 13px; max-width: 15ch; font-size: clamp(2rem, 4.3vw, 3.7rem); line-height: 1.06; letter-spacing: -.052em; text-wrap: balance; }
.eyebrow { display: flex; gap: 7px; align-items: center; margin: 0; color: #c5acff; font-size: .69rem; font-weight: 800; letter-spacing: .14em; }
.hero-label { display: inline-flex; padding: 7px 10px; border: 1px solid #5c4875; border-radius: 6px; background: #37274b; }
.meta { display: flex; gap: 8px 13px; flex-wrap: wrap; align-items: center; color: #d4c6e6; font-size: .8rem; font-weight: 650; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .status-tag { color: #e5d5ff; background: #3d2c52; border: 1px solid #54406e; padding: 3px 8px; border-radius: 5px; font-size: .72rem; }
.hero-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: #e0d3eb; font-size: .93rem; line-height: 1.65; margin: 15px 0 23px; max-width: 48ch; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; border-radius: 9px; border: 1px solid transparent; font-size: .87rem; font-weight: 750; white-space: nowrap; }
.primary { color: var(--ink); background: var(--accent); }
.primary:hover { background: #c9b5ff; }
.secondary { color: var(--text); background: #231d30; border-color: #443751; }
.secondary:hover { background: #30243e; border-color: #6a5483; }
.hero-controls { display: flex; gap: 10px; margin-top: 25px; align-items: center; }
.slide-dot { display: grid; place-items: center; min-width: 17px; height: 24px; padding: 0; border: 0; background: transparent; }
.slide-dot::before { content: ''; display: block; width: 8px; height: 8px; border-radius: 15px; background: #a493b6; }
.slide-dot[aria-pressed="true"]::before { width: 24px; background: var(--accent); }
.hero-count { position: absolute; right: clamp(18px, 3vw, 33px); bottom: clamp(18px, 2.5vw, 28px); font-size: .73rem; color: #e1d4ed; background: #1a1327d9; border: 1px solid #68567b; border-radius: 6px; padding: 6px 9px; font-weight: 650; font-variant-numeric: tabular-nums; }

.shelf { margin-top: 40px; }
.section-title { display: flex; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 19px; }
.section-title h1, .section-title h2 { margin: 5px 0 0; font-size: clamp(1.48rem, 3vw, 2rem); letter-spacing: -.038em; line-height: 1.18; }
.section-note { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.poster-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 16px; row-gap: 24px; }
.card { min-width: 0; display: block; border-radius: 11px; }
.card-art { display: grid; place-items: center; aspect-ratio: 2 / 3; position: relative; overflow: hidden; border-radius: 11px; border: 1px solid #393044; background: radial-gradient(ellipse at 50% 28%, #3d2c55, #21192c 70%); color: #b49cdb; }
.card-art > .icon { width: 30px; height: 30px; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-art { border-color: var(--accent); }
.card h3 { font-size: .9rem; line-height: 1.35; font-weight: 720; margin: 9px 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.card:hover h3 { color: #d4c0ff; }
.card p { margin: 0; font-size: .78rem; color: var(--muted); }
.card-badge { position: absolute; top: 8px; left: 8px; background: #17101fed; padding: 4px 6px; border: 1px solid #635174; border-radius: 5px; font-size: .58rem; font-weight: 780; letter-spacing: .06em; color: #f0e3ff; }
.pagination { display: flex; justify-content: center; margin: 29px 0 0; }
.status { color: var(--muted); line-height: 1.55; padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.status .button { margin-top: 13px; }

#watch { padding-top: 25px; }
.back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 18px; font-size: .88rem; font-weight: 700; color: #d4c0ff; }
.back:hover { text-decoration: underline; }
.watch-heading .eyebrow { margin-bottom: 6px; }
.watch-heading h1 { font-size: clamp(1.65rem, 3.6vw, 2.65rem); letter-spacing: -.045em; line-height: 1.12; margin: 0 0 20px; }
.watch-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(265px, 330px); gap: 20px; align-items: start; }
.player { position: relative; background: #08070b; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; aspect-ratio: 16 / 10; display: grid; place-items: center; }
.player video { width: 100%; height: 100%; min-height: 0; min-width: 0; position: absolute; inset: 0; }
.player-message { margin: 12px; position: relative; max-width: 36ch; text-align: center; background: #191624f5; padding: 16px; border-radius: 10px; color: #ebe2f6; }
.player-message .button { margin-top: 10px; }
.player-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.quality, .autoplay { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.autoplay { min-height: 38px; padding: 0 8px; cursor: pointer; }
.autoplay input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.quality select { border-radius: 7px; padding: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.episode-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.episode-panel h2, .synopsis h2 { margin: 0 0 8px; letter-spacing: -.025em; font-size: 1.15rem; }
.episode-panel > p, .synopsis > p { color: var(--muted); margin: 0 0 13px; line-height: 1.6; font-size: .88rem; }
.episode-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; max-height: 390px; overflow-y: auto; padding: 5px; margin: -5px; }
.episode-link { display: grid; place-items: center; min-height: 38px; color: #eae1f5; border: 1px solid #3f354d; border-radius: 8px; font-size: .85rem; font-weight: 680; background: #221b2f; }
.episode-link:hover { border-color: var(--accent); }
.episode-link[aria-current] { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.synopsis { margin: 26px 0 0; }
.synopsis p { margin-top: 12px; max-width: 75ch; }
.site-footer { margin-top: 50px; border-top: 1px solid #272231; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; font-size: .8rem; }
.footer-inner .brand { font-size: 1.05rem; color: var(--text); }
.footer-inner .brand-mark { width: 27px; height: 27px; border-radius: 8px; }

@media (max-width: 1050px) {
  .shell { width: calc(100% - 52px); }
  .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hero { min-height: 410px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 14px; padding-top: 11px; }
  .header-tools { grid-column: 2; grid-row: 1; min-width: 0; }
  .main-nav { grid-column: 1 / -1; gap: 23px; min-height: 43px; }
  .search { width: min(35vw, 220px); }
  .hero { margin-top: 18px; min-height: 395px; padding: 23px; }
  .hero-content { width: min(73%, 390px); }
  .hero-art { left: 29%; }
  .hero-poster { right: -3%; width: 76%; }
  .hero::after { background: linear-gradient(90deg, #1c1328 0%, #1c1328f4 25%, #1c13288a 61%, #1c13281c), linear-gradient(0deg, #191021e8 0%, transparent 57%); }
  .poster-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px 11px; }
  .watch-layout { grid-template-columns: minmax(0, 1fr); }
  .episode-grid { grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); max-height: 230px; }
  .player { aspect-ratio: 4 / 3; }
}
@media (max-width: 485px) {
  .brand { font-size: 1.17rem; }
  .brand-mark { width: 30px; height: 30px; }
  .header-tools { gap: 6px; }
  .language > svg:first-child { display: none; }
  .language select { padding-left: 8px; }
  .search input { padding-left: 8px; }
  .search button { flex-basis: 29px; }
  .hero { border-radius: 15px; padding: 130px 15px 15px; min-height: 390px; }
  .hero-art { inset: 0 0 0 22%; }
  .hero-poster { top: -9%; right: -6%; transform: none; height: 95%; width: 86%; }
  .hero::after { background: linear-gradient(90deg, #1c1328 0%, #1c132877 42%, transparent), linear-gradient(0deg, #1c1328 19%, #1c1328e8 45%, transparent 91%); }
  .hero-content { width: 100%; }
  .hero h2 { margin: 10px 0; }
  .hero-description { -webkit-line-clamp: 2; margin: 11px 0 16px; }
  .hero-controls { margin-top: 13px; }
  .poster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shelf { margin-top: 28px; }
  .player { aspect-ratio: 4 / 5; max-height: 68vh; }
}
@media (max-width: 335px) {
  .shell { width: calc(100% - 20px); }
  .topbar { column-gap: 7px; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .button { padding-inline: 8px; }
}
