:root {
  --bg:#0b0b10;
  --panel:#14141c;
  --panel2:#1b1b25;
  --text:#f8f7fb;
  --muted:#9998a8;
  --muted2:#6e6d7d;
  --accent:#ff496c;
  --accent2:#ff775b;
  --line:rgba(255,255,255,.09);
  --radius:18px;
  --content:1440px;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:90px;
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'DM Sans',system-ui,sans-serif;
  line-height:1.5;
  overflow-x:hidden;
}
button,
input,
select {
  font:inherit;
}
button {
  color:inherit;
  cursor:pointer;
}
a {
  color:inherit;
  text-decoration:none;
}
img {
  display:block;
  max-width:100%;
}
.hidden {
  display:none!important;
}
.muted {
  color:var(--muted);
  font-size:13px;
}
.topbar {
  height:78px;
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:54px;
  padding:0 clamp(20px,5vw,76px);
  background:rgba(11,11,16,.84);
  backdrop-filter:blur(22px);
  border-bottom:1px solid rgba(255,255,255,.045);
}
.brand {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-family:Manrope,sans-serif;
  font-weight:800;
  font-size:23px;
  letter-spacing:-1.1px;
  white-space:nowrap;
}
.brand-mark {
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:linear-gradient(140deg,var(--accent),#ff805c);
  font-size:19px;
  color:white;
  box-shadow:0 5px 24px #ff496c38;
}
.brand-accent {
  color:var(--accent);
}
.desktop-nav {
  display:flex;
  align-items:center;
  gap:28px;
  height:100%;
}
.nav-link {
  height:100%;
  position:relative;
  border:0;
  background:transparent;
  color:#a8a6b5;
  font-weight:600;
  font-size:14px;
}
.nav-link:hover,
.nav-link.active {
  color:white;
}
.nav-link.active:after {
  content:'';
  height:3px;
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  border-radius:3px 3px 0 0;
  background:var(--accent);
}
.search-box {
  margin-left:auto;
  width:min(270px,26vw);
  height:42px;
  border:1px solid var(--line);
  border-radius:13px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  background:rgba(255,255,255,.035);
  color:var(--muted);
}
.search-box svg,
.icon-button svg {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  flex-shrink:0;
}
.search-box input {
  min-width:0;
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:white;
  font-size:13px;
}
.search-box input::placeholder {
  color:#797887;
}
.search-box kbd {
  font-size:11px;
  padding:1px 5px;
  border:1px solid #383743;
  border-radius:5px;
  color:#8c8b99;
}
.icon-button {
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid var(--line);
  border-radius:50%;
  background:#ffffff08;
}
.mobile-search-toggle {
  display:none;
}
main {
  max-width:var(--content);
  margin:0 auto;
}
.hero {
  height:min(690px,68vw);
  min-height:510px;
  max-height:720px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#16121b;
  border-radius:0 0 25px 25px;
}
.hero-shade {
  position:absolute;
  inset:0;
  z-index:-2;
}
.hero-shade {
  z-index:-1;
  background:linear-gradient(90deg,#0b0b10 0%,rgba(11,11,16,.92) 20%,rgba(11,11,16,.48) 53%,rgba(11,11,16,.04) 100%),linear-gradient(0deg,#0b0b10 0%,transparent 35%,rgba(11,11,16,.05) 80%,rgba(11,11,16,.2) 100%);
}
.hero-content {
  position:absolute;
  left:clamp(24px,6vw,86px);
  bottom:76px;
  width:min(570px,60%);
}
.eyebrow,
.section-kicker {
  font-size:10px;
  font-weight:800;
  letter-spacing:2px;
  color:var(--accent);
  margin:0 0 10px;
}
.eyebrow {
  display:flex;
  align-items:center;
  gap:9px;
  color:#ffdce3;
}
.live-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 13px var(--accent);
}
.hero-badges {
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:14px;
}
.badge {
  display:inline-flex;
  align-items:center;
  border:1px solid #ffffff28;
  border-radius:7px;
  padding:4px 8px;
  color:#f6dfe5;
  background:#ffffff0d;
  font-size:10px;
  font-weight:700;
  letter-spacing:.4px;
}
.badge.hot {
  background:#ff496c25;
  border-color:#ff496c70;
  color:#ff9aad;
}
.hero h1 {
  font-family:Manrope,sans-serif;
  font-size:clamp(34px,4.4vw,62px);
  line-height:1.04;
  letter-spacing:-2.2px;
  margin:0 0 16px;
  font-weight:800;
  max-width:650px;
  text-wrap:balance;
}
.hero-content>p:not(.section-kicker) {
  font-size:14px;
  color:#c3c0cb;
  max-width:440px;
  line-height:1.7;
  margin:0 0 25px;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.hero-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.button {
  min-height:44px;
  border:1px solid transparent;
  border-radius:12px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:13px;
  font-weight:700;
  transition:transform .18s,background .18s,border-color .18s;
}
.button:hover {
  transform:translateY(-2px);
}
.button-primary {
  background:linear-gradient(120deg,var(--accent),#ff695e);
  color:white;
  box-shadow:0 7px 24px #ff496c2e;
}
.button-primary:hover {
  box-shadow:0 10px 30px #ff496c50;
}
.button-glass {
  background:#ffffff13;
  border-color:#ffffff1e;
  color:#fff;
  backdrop-filter:blur(12px);
}
.button-glass:hover {
  background:#ffffff20;
}
.play-triangle {
  font-size:12px;
}
.hero-foot {
  display:flex;
  align-items:center;
  gap:12px;
  color:#9995a3;
  font-size:9px;
  font-weight:800;
  letter-spacing:1.8px;
  margin-top:35px;
}
.foot-divider {
  height:13px;
  width:1px;
  background:#77717f;
}
.hero-counter {
  position:absolute;
  bottom:33px;
  right:clamp(24px,5vw,72px);
  display:flex;
  align-items:center;
  gap:10px;
  font-size:9px;
  letter-spacing:1.6px;
  color:#b5b1bf;
}
.counter-line {
  display:block;
  width:28px;
  height:2px;
  background:var(--accent);
}
.discovery-bar {
  padding:36px clamp(20px,5vw,70px) 16px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:25px;
}
.discovery-bar h2,
.section-heading h2,
.browse-tools h2 {
  font:800 22px/1.2 Manrope,sans-serif;
  letter-spacing:-.7px;
  margin:0;
}
.discovery-bar .section-kicker,
.section-heading .section-kicker,
.browse-tools .section-kicker {
  margin-bottom:6px;
}
.filters {
  display:flex;
  gap:8px;
  overflow-x:auto;
  max-width:62%;
  padding:3px 0 7px;
  scrollbar-width:none;
}
.filters::-webkit-scrollbar {
  display:none;
}
.chip {
  white-space:nowrap;
  padding:8px 13px;
  border:1px solid var(--line);
  border-radius:9px;
  background:#ffffff05;
  color:#aaa8b6;
  font-size:11px;
  font-weight:700;
  transition:.2s;
}
.chip:hover {
  color:white;
  border-color:#ffffff35;
}
.chip.active {
  background:#ff496c1b;
  border-color:#ff496c88;
  color:#ff9aab;
}
.content-section {
  padding:24px clamp(20px,5vw,70px) 12px;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  margin-bottom:18px;
}
.section-heading h2 {
  font-size:21px;
}
.story-rows {
  display:flex;
  flex-direction:column;
  gap:34px;
}
.story-row {
  min-width:0;
}
.row-heading {
  display:flex;
  align-items:baseline;
  gap:12px;
  margin-bottom:15px;
}
.row-heading h2 {
  font:800 19px Manrope,sans-serif;
  letter-spacing:-.5px;
  margin:0;
}
.row-heading span {
  color:var(--muted2);
  font-size:11px;
}
.poster-grid {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:20px 14px;
}
.compact-grid {
  grid-template-columns:repeat(6,minmax(0,1fr));
}
.poster-card {
  min-width:0;
  position:relative;
  border:0;
  padding:0;
  text-align:left;
  background:transparent;
  cursor:pointer;
  group:poster;
  animation:fade-up .35s both;
}
.poster-art {
  position:relative;
  aspect-ratio:2/3;
  overflow:hidden;
  border-radius:13px;
  background:linear-gradient(145deg,#30202d,#15151e);
  isolation:isolate;
  box-shadow:0 5px 15px #0003;
  transition:transform .22s,box-shadow .22s;
}
.poster-art:after {
  content:'';
  position:absolute;
  inset:40% 0 0;
  background:linear-gradient(0deg,#07070bd9,transparent);
  pointer-events:none;
}
.art-fallback {
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:14px;
  text-align:center;
  font:800 15px/1.2 Manrope,sans-serif;
  color:#ffd9e1;
  background:radial-gradient(ellipse at top,#512538,#17141d 70%);
}
.poster-art img {
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .45s,filter .3s;
}
.poster-card:hover .poster-art {
  transform:translateY(-4px);
  box-shadow:0 12px 28px #0008;
}
.poster-card:hover .poster-art img {
  transform:scale(1.055);
  filter:saturate(1.08);
}
.poster-overlay {
  position:absolute;
  inset:0;
  z-index:1;
  display:flex;
  align-items:flex-end;
  padding:11px;
  opacity:0;
  transition:opacity .2s;
}
.poster-card:hover .poster-overlay,
.poster-card:focus-visible .poster-overlay {
  opacity:1;
}
.quick-play {
  width:36px;
  height:36px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--accent);
  box-shadow:0 4px 18px #0008;
}
.card-badge {
  position:absolute;
  top:9px;
  left:8px;
  z-index:2;
  border-radius:6px;
  padding:4px 6px;
  font-size:8px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
  background:var(--accent);
  color:white;
}
.save-button {
  position:absolute;
  top:8px;
  right:8px;
  z-index:3;
  width:30px;
  height:30px;
  border-radius:50%;
  border:1px solid #ffffff3a;
  background:#0b0b10b8;
  backdrop-filter:blur(6px);
  font-size:17px;
  display:grid;
  place-items:center;
  opacity:0;
  transition:.2s;
}
.poster-card:hover .save-button,
.save-button.saved {
  opacity:1;
}
.save-button.saved {
  color:#ff7891;
  border-color:#ff496c80;
}
.poster-title {
  font-size:12px;
  font-weight:700;
  line-height:1.4;
  margin:10px 1px 4px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:34px;
}
.sub-dot {
  width:3px;
  height:3px;
  border-radius:50%;
  background:var(--accent);
  display:inline-block;
}
.poster-card:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px;
  border-radius:14px;
}
.browse-tools {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  padding:36px clamp(20px,5vw,70px) 4px;
}
.browse-tools h2 {
  margin-bottom:5px;
}
.browse-tools select {
  background:#171720;
  color:white;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
  font-size:12px;
  outline:none;
}
.browse-tools option {
  background:#171720;
}
.empty-state,
.loading-state {
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
.empty-icon {
  font-size:34px;
  color:#6b3446;
}
.loader {
  width:26px;
  height:26px;
  border:2px solid #ffffff20;
  border-top-color:var(--accent);
  border-radius:50%;
  animation:spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform:rotate(360deg);
  }
}
@keyframes fade-up {
  from {
    opacity:0;
    transform:translateY(7px);
  }
  to {
    opacity:1;
    transform:translateY(0);
  }
}
footer {
  margin:55px clamp(20px,5vw,70px) 0;
  padding:24px 0 35px;
  border-top:1px solid var(--line);
  display:flex;
  align-items:center;
  gap:20px;
  color:var(--muted2);
  font-size:11px;
}
.footer-brand {
  font-size:16px;
  margin-right:5px;
}
.footer-brand .brand-mark {
  width:25px;
  height:25px;
  border-radius:8px;
  font-size:14px;
}
#footer-count {
  margin-left:auto;
}
.footer-links {
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  width:100%;
  margin-top:6px;
}
.footer-links a {
  color:var(--muted);
  font-size:11px;
  font-weight:600;
}
.footer-links a:hover {
  color:#fff;
  text-decoration:underline;
}
.footer-disclaimer {
  width:100%;
  margin:8px 0 0;
  font-size:10px;
  line-height:1.6;
  color:var(--muted2);
}
.footer-install {
  border:1px solid #ff496c80;
  background:#ff496c20;
  color:#ff9daf;
  border-radius:8px;
  padding:4px 10px;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.install-popup {
  position:fixed;
  inset:0;
  z-index:200;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:#050509d9;
  backdrop-filter:blur(12px);
}
.install-popup.hidden { display:none; }
.install-popup-card {
  width:min(420px,100%);
  background:#14141c;
  border:1px solid #ffffff17;
  border-radius:18px;
  padding:24px 22px 20px;
  box-shadow:0 25px 80px #000b;
  text-align:center;
}
.install-popup-card h3 {
  margin:0 0 8px;
  font:800 20px Manrope,sans-serif;
  letter-spacing:-.5px;
}
.install-popup-card p {
  margin:0 0 18px;
  color:#b7b5c1;
  font-size:13px;
  line-height:1.6;
}
.install-popup-actions {
  display:flex;
  gap:10px;
  justify-content:center;
}
.mobile-nav {
  display:none;
}
@media(min-width:1450px) {
  main {
    border-left:1px solid #ffffff04;
    border-right:1px solid #ffffff04;
  }
  .hero {
    border-radius:0 0 28px 28px;
  }
}
@media(max-width:1100px) {
  .topbar {
    gap:32px;
  }
  .poster-grid,
  .compact-grid {
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
  .hero {
    min-height:480px;
  }
  .hero-content {
    width:65%;
  }
  .discovery-bar {
    align-items:flex-start;
    flex-direction:column;
    gap:16px;
  }
  .filters {
    max-width:100%;
    width:100%;
  }
}
@media(max-width:760px) {
  .topbar {
    height:64px;
    padding:0 18px;
    gap:18px;
  }
  .brand {
    font-size:20px;
    gap:8px;
  }
  .brand-mark {
    width:29px;
    height:29px;
    border-radius:9px;
  }
  .desktop-nav {
    display:none;
  }
  .search-box {
    width:min(250px,44vw);
    height:38px;
  }
  .search-box kbd {
    display:none;
  }
  .mobile-search-toggle {
    display:none;
  }
  .hero {
    height:590px;
    min-height:0;
    max-height:75vh;
    border-radius:0 0 18px 18px;
  }
  .hero-shade {
    background:linear-gradient(0deg,#0b0b10 0%,rgba(11,11,16,.9) 13%,rgba(11,11,16,.25) 65%,rgba(11,11,16,.08) 100%),linear-gradient(90deg,#0b0b1040,transparent);
  }
  .hero-content {
    left:22px;
    right:22px;
    bottom:45px;
    width:auto;
  }
  .hero h1 {
    font-size:clamp(34px,8vw,48px);
    letter-spacing:-1.5px;
    max-width:540px;
  }
  .hero-content>p:not(.section-kicker) {
    font-size:13px;
    max-width:390px;
    -webkit-line-clamp:2;
  }
  .hero-foot {
    margin-top:23px;
  }
  .hero-counter {
    display:none;
  }
  .discovery-bar {
    padding:29px 20px 8px;
  }
  .discovery-bar h2 {
    font-size:19px;
  }
  .content-section {
    padding:22px 20px 8px;
  }
  .poster-grid,
  .compact-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:19px 11px;
  }
  .poster-art {
    border-radius:11px;
  }
  .poster-title {
    font-size:11px;
    margin-top:8px;
    min-height:31px;
  }
  .save-button {
    opacity:1;
    width:27px;
    height:27px;
    top:6px;
    right:6px;
    font-size:15px;
  }
  .poster-overlay {
    display:none;
  }
  .story-rows {
    gap:27px;
  }
  .row-heading h2 {
    font-size:17px;
  }
  .browse-tools {
    padding:30px 20px 0;
  }
  .browse-tools h2 {
    font-size:20px;
  }
  .browse-tools select {
    max-width:145px;
    font-size:11px;
  }
  .mobile-nav {
    position:fixed;
    bottom:0;
    left:0;
    right:0;
    z-index:60;
    display:flex;
    justify-content:space-around;
    padding:8px 14px calc(8px + env(safe-area-inset-bottom));
    background:#101017f2;
    border-top:1px solid var(--line);
    backdrop-filter:blur(20px);
  }
  .mobile-nav-item {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:3px;
    min-width:72px;
    border:0;
    background:transparent;
    color:#858392;
    font-size:10px;
    font-weight:700;
  }
  .mobile-nav-item span {
    display:grid;
    place-items:center;
    width:22px;
    height:22px;
    line-height:1;
  }
  .mobile-nav-item span svg {
    width:22px;
    height:22px;
  }
  .mobile-nav-item.active {
    color:#ff7891;
  }
  .mobile-nav-item.active span {
    color:var(--accent);
  }
  footer {
    margin:35px 20px 80px;
    flex-wrap:wrap;
    gap:12px;
  }
  .footer-brand {
    width:100%;
  }
  #footer-count {
    margin-left:0;
  }
}
@media(max-width:380px) {
  .search-box {
    width:42vw;
    padding:0 8px;
  }
  .hero {
    height:550px;
  }
  .hero-actions .button {
    padding:0 12px;
    font-size:11px;
  }
  .poster-grid,
  .compact-grid {
    gap:16px 8px;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior:auto!important;
    animation-duration:.01ms!important;
    transition-duration:.01ms!important;
  }
}

/* ==========================================================================
   v2 additions (hero image, filters, cards, story modal, player, feed, toast)
   ========================================================================== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
button{font-family:inherit}
.hero-art{width:100%;height:100%;object-fit:cover;object-position:center 28%;transform:scale(1.015)}
.poster-subtitle{font-size:10px;color:var(--muted);margin:0 1px;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.poster-art img{aspect-ratio:2/3}
.card-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff33;z-index:2}
.card-progress i{display:block;height:100%;background:var(--accent)}
.card-badge.alt{background:#2d2d3a;color:#d9d7e4}
.nav-link,.mobile-nav-item{font-family:inherit}
.nav-link.feed-link{color:#ff9aab}
.icon-button.top-random{margin-left:8px}
.search-box{margin-left:auto}

/* filters */
.discovery-bar.expanded{flex-direction:column;align-items:flex-start}
.discovery-bar.expanded .filters{flex-wrap:wrap;max-width:100%;overflow:visible}
.chip.more{border-style:dashed}
.chip.clear{color:#ffb7c3;border-color:#ff496c55}
.row-heading{align-items:center}
.row-more{margin-left:auto;border:0;background:transparent;color:var(--accent);font-size:12px;font-weight:700;padding:4px 0}
.row-more:hover{text-decoration:underline}

/* browse */
.tool-group{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.browse-tools .button{min-height:38px;font-size:12px;padding:0 13px}
.az-bar{display:flex;gap:4px;flex-wrap:wrap;padding:14px clamp(20px,5vw,70px) 0}
.az-bar button{min-width:28px;height:28px;border-radius:7px;border:1px solid var(--line);background:#ffffff05;font-size:11px;font-weight:700;color:#aaa8b6}
.az-bar button:hover{color:#fff;border-color:#ffffff35}
.letter-head{grid-column:1/-1;font:800 18px Manrope,sans-serif;color:var(--accent);margin:12px 0 -6px;scroll-margin-top:96px}
.load-more{display:flex;justify-content:center;padding:26px 0 6px}

/* toast */
.toast{position:fixed;bottom:26px;left:50%;z-index:150;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:11px 16px;border:1px solid #ffffff20;border-radius:11px;background:#20202a;color:#fff;box-shadow:0 10px 30px #0006;font-size:12px;transition:.2s;display:flex;align-items:center;gap:6px}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast.has-action{pointer-events:auto}
.toast button{border:0;background:transparent;color:#ff9aab;font-weight:800;font-size:12px;padding:0 0 0 10px}

/* story modal */
.modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px}
.modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:#050509d9;backdrop-filter:blur(12px)}
.modal-panel{position:relative;width:min(1100px,100%);overflow:hidden;border:1px solid #ffffff17;border-radius:22px;background:#111118;box-shadow:0 25px 100px #000b;scrollbar-color:#353541 transparent}
.modal-scroll{overflow:auto;max-height:min(94vh,1000px);scrollbar-color:#353541 transparent;overscroll-behavior:contain}
.modal-close{position:absolute;top:14px;right:14px;z-index:8;font-size:25px;background:#111118d9}
.story{display:grid;grid-template-columns:minmax(300px,390px) minmax(0,1fr);background:radial-gradient(ellipse at 90% 0%,#5020333d,transparent 55%),#111118}
.stage{padding:30px 0 30px 30px;display:flex;flex-direction:column;align-items:center;min-width:0}
.player-wrap{position:relative;height:min(72vh,680px);aspect-ratio:9/16;max-width:100%;background:#050507;border-radius:16px;overflow:hidden;box-shadow:0 18px 40px #0008}
.player-wrap video{width:100%;height:100%;display:block;background:#050507;object-fit:contain}
.player-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border:0;color:#fff;font-size:12px;font-weight:700;background-size:cover;background-position:center;z-index:2}
.player-cover:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#000c,#0003 60%,#0006)}
.player-cover span,.player-cover b{position:relative}
.player-cover .big-play{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--accent);padding-left:4px;font-size:18px;box-shadow:0 8px 28px #ff496c66}
.player-busy{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1}
.player-error{position:absolute;left:10px;right:10px;bottom:56px;z-index:4;padding:11px 13px;border:1px solid #ff496c55;background:#2a1018f2;color:#ffb3c0;border-radius:10px;font-size:12px;line-height:1.5}
.player-error .row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.player-error button,.player-error a{border:1px solid #ff496c66;background:#ff496c22;color:#ffd0d8;border-radius:8px;padding:5px 10px;font-size:11px;font-weight:700}
.player-controls{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;margin-top:14px;width:min(100%,390px)}
.ctl{height:34px;min-width:34px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:#ffffff08;color:#d5d3df;font-size:12px;font-weight:700}
.ctl:hover:not(:disabled){background:#ffffff14;color:#fff}
.ctl:disabled{opacity:.35;cursor:default}
.ctl.on{background:#ff496c20;border-color:#ff496c80;color:#ff9daf}
select.ctl{padding:0 6px;background:#171720}
.now-playing{width:100%;text-align:center;margin-top:10px;font-size:12px;color:var(--muted)}
.now-playing b{color:#fff}
.kbd-hint{font-size:10px;color:var(--muted2);text-align:center;margin-top:6px}
.story-side{padding:34px 34px 30px 30px;min-width:0}
.story-side h2{font:800 clamp(24px,3vw,34px)/1.15 Manrope,sans-serif;letter-spacing:-1px;margin:0 38px 12px 0}
.story-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.story-tags .badge{font-size:9px}
.story-desc{color:#b7b5c1;font-size:13px;line-height:1.75;margin:12px 0 18px;max-width:620px}
.story-actions{display:flex;gap:9px;flex-wrap:wrap}
.eps-heading{display:flex;align-items:end;justify-content:space-between;margin:26px 0 10px}
.eps-heading h3{font:800 18px Manrope,sans-serif;margin:0}
.episode-grid{position:relative;display:grid;grid-template-columns:repeat(auto-fill,minmax(62px,1fr));gap:7px;max-height:236px;overflow:auto;padding:2px 4px 2px 0;scrollbar-color:#353541 transparent}
.ep-btn{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:9px;padding:10px 4px 11px;background:#ffffff05;color:#b8b6c2;font-size:12px;font-weight:700;transition:.2s}
.ep-btn:hover{background:#ffffff0d;color:#fff}
.ep-btn.active{background:#ff496c20;border-color:#ff496c80;color:#ff9daf}
.ep-btn.done{color:#7f7d8d}
.ep-btn.done:after{content:'✓';position:absolute;top:2px;right:5px;font-size:9px;color:#5fd18a}
.ep-btn.trailer{grid-column:span 2;color:#ffd9a8}
.ep-btn .ep-bar{position:absolute;left:0;bottom:0;height:3px;background:var(--accent)}
.ep-skel{height:38px;border-radius:9px}
.skeleton{background:linear-gradient(90deg,#ffffff08,#ffffff15,#ffffff08);background-size:200% 100%;animation:shimmer 1.2s infinite linear}
@keyframes shimmer{to{background-position:-200% 0}}
.similar{margin-top:26px}
.similar h3{font:800 16px Manrope,sans-serif;margin:0 0 12px}
.similar-row{display:flex;gap:12px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.similar-row .poster-card{flex:0 0 104px}
.similar-row .save-button{opacity:1;width:24px;height:24px;font-size:13px}

/* shorts feed */
.feed{position:fixed;inset:0;z-index:90;background:#000}
.feed-scroll{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;scrollbar-width:none;overscroll-behavior:contain;scroll-behavior:auto}
.feed-scroll::-webkit-scrollbar{display:none}
.feed-slide{position:relative;height:100vh;height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;overflow:hidden}
.feed-bg{position:absolute;inset:-30px;background-size:cover;background-position:center;filter:blur(28px) brightness(.4);transform:scale(1.1)}
.feed-stage{position:relative;height:100%;aspect-ratio:9/16;max-width:100vw;background:#000;cursor:pointer}
.feed-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.feed-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.feed-info{position:absolute;left:0;right:70px;bottom:0;padding:110px 16px calc(24px + env(safe-area-inset-bottom));background:linear-gradient(0deg,#000d,#0000);pointer-events:none}
.feed-info h3{font:800 18px/1.25 Manrope,sans-serif;margin:0 0 4px}
.feed-info p{margin:4px 0 0;font-size:12px;color:#d8d6e0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.feed-info .ep{font-size:11px;font-weight:800;color:#ff9aab;letter-spacing:.6px}
.feed-rail{position:absolute;right:10px;bottom:calc(120px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px;z-index:3}
.feed-rail button{width:46px;height:46px;border-radius:50%;border:1px solid #ffffff30;background:#0009;backdrop-filter:blur(8px);font-size:19px;display:grid;place-items:center}
.feed-rail button.saved{color:#ff7891;border-color:#ff496c80}
.feed-bar{position:absolute;left:0;right:0;bottom:0;height:3px;background:#ffffff30;z-index:3}
.feed-bar i{display:block;height:100%;width:0;background:var(--accent)}
.feed-top{position:fixed;top:0;left:0;right:0;z-index:95;display:flex;align-items:center;gap:12px;padding:calc(12px + env(safe-area-inset-top)) 14px 0;pointer-events:none}
.feed-top>*{pointer-events:auto}
.feed-top .icon-button{background:#0009;backdrop-filter:blur(8px)}
.feed-top strong{font:800 15px Manrope,sans-serif;text-shadow:0 1px 8px #000}
.feed-hint{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:2}
.feed-hint span{width:64px;height:64px;border-radius:50%;background:#0008;display:grid;place-items:center;font-size:22px;padding-left:4px}

@media(max-width:1100px){
  .story{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}
  .player-wrap{height:min(68vh,600px)}
}
@media(max-width:760px){
  .mobile-search-toggle{display:none}
  .modal{padding:0;align-items:flex-end}
  .modal-panel{width:100%;border-radius:20px 20px 0 0;border-bottom:0}
  .modal-scroll{max-height:95dvh}
  .search-box{flex:1;width:auto;max-width:none}
  .story{grid-template-columns:1fr}
  .stage{padding:16px 16px 0}
  .player-wrap{height:auto;width:min(100%,calc(64dvh * .5625));aspect-ratio:9/16;border-radius:14px}
  .story-side{padding:18px 18px 28px}
  .story-side h2{font-size:21px;letter-spacing:-.5px;margin-right:0}
  .story-desc{font-size:12px;line-height:1.65}
  .story-actions .button{min-height:40px;padding:0 13px;font-size:12px}
  .episode-grid{grid-template-columns:repeat(5,minmax(0,1fr));max-height:200px}
  .ep-btn.trailer{grid-column:span 2}
  .modal-close{top:10px;right:10px;width:34px;height:34px}
  .kbd-hint{display:none}
  .browse-tools{flex-direction:column;align-items:flex-start}
  .browse-tools select{max-width:none}
  .toast{bottom:83px;max-width:92vw}
  .hero-art{object-position:center top}
  .az-bar{padding:12px 20px 0}
}
@media(max-width:380px){
  .episode-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:761px) and (max-height:700px){
  .player-wrap{height:min(64vh,520px)}
}
.feed-stage video{opacity:0;transition:opacity .2s}
.feed-stage video.on{opacity:1}
.feed-bg{position:absolute;inset:-30px;width:calc(100% + 60px);height:calc(100% + 60px);object-fit:cover;filter:blur(28px) brightness(.4);max-width:none}
.feed-stage .feed-poster{pointer-events:none}
.poster-hit{display:block;color:inherit;border-radius:13px}
.poster-hit:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.card-progress[hidden]{display:none}
