@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #0c0c10;
  --panel: #15151b;
  --panel-light: #202027;
  --line: #ffffff12;
  --text: #f7f6f8;
  --muted: #9e9ba8;
  --accent: #f02546;
  --accent-hover: #ff3c5b;
  --gold: #f4c470;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans TC",
    "Microsoft JhengHei",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 1px solid #ffffff66;
  outline-offset: 2px;
}
button,
input {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.03em;
}
h1,
h2 {
  font-weight: 800;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 16px;
}
.content-width {
  width: min(1320px, calc(100% - 88px));
  margin-inline: auto;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header {
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: #0c0c10ee;
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}
/* The home hero owns the top visual layer, matching the v1 composition. */
body[data-page="home"] .site-header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  background: linear-gradient(180deg, #08080bcc 0%, #08080b55 62%, transparent 100%);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
}
body[data-page="home"] .site-header.is-scrolled {
  background: #0c0c10f2;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px #00000028;
}
body[data-page="home"] .hero {
  min-height: 0;
}
.header-inner {
  width: min(1440px, calc(100% - 88px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.8px;
  flex-shrink: 0;
}
.brand-mark {
  background: var(--accent);
  color: #fff;
  width: 33px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 25px;
  font-weight: 900;
  font-style: italic;
  transform: skew(-7deg);
  line-height: 1;
}
.main-nav {
  display: flex;
  gap: 33px;
  height: auto;
  padding-bottom: 0;
  align-items: center;
  color: #a6a3ae;
  font-size: 14px;
  font-weight: 650;
}
.main-nav a {
  height: auto;
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
}
.main-nav a.active:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 30%;
  right: 30%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.header-discover {
  margin-left: auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff16;
  border-radius: 50%;
  color: #d1ced7;
}
.header-discover:hover {
  background: var(--panel-light);
}
.header-discover svg,
.search-form svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.hero {
  position: relative;
  overflow: hidden;
  display: block;
  width: calc(100% - 88px);
  max-width: 1320px;
  margin: 0 auto;
  height: min(366.67px, 27.7778vw);
  min-height: 0;
  background: #0d0d11;
  isolation: isolate;
}
.hero.loading {
  background:
    radial-gradient(ellipse at 70% 30%, #27121d, transparent 65%), #111115;
}
.hero-skeleton {
  position: absolute;
  left: max(44px, calc((100% - 1320px) / 2));
  top: 28%;
  width: 35%;
  display: grid;
  gap: 16px;
}
.hero-skeleton span,
.detail-skeleton span {
  height: 20px;
  border-radius: 5px;
  background: #ffffff08;
}
.hero-skeleton span:first-child {
  width: 30%;
  height: 12px;
}
.hero-skeleton span:nth-child(2) {
  height: 46px;
}
.hero-skeleton span:last-child {
  width: 70%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s,
    visibility 0.5s;
  background: #111115;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--desktop-position, 50%);
  transform: none;
  transition: none;
}
.hero-slide.is-active .hero-image {
  transform: none;
}
@media (min-width: 641px) {
  .hero-slide.mode-right .hero-image {
    width: 68%;
    margin-left: auto;
    display: block;
  }
  .hero-slide.mode-right .hero-shade {
    background:
      linear-gradient(90deg, #0c0c10 0%, #0c0c10ed 34%, #0c0c1050 62%, transparent 100%),
      linear-gradient(0deg, #0c0c10d0 0%, transparent 42%, #0c0c1020 100%);
  }
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #0c0c10b8 0%,
      #0c0c107e 24%,
      #0c0c1044 42%,
      #0c0c1018 65%,
      #0c0c1000 100%
    ),
    linear-gradient(0deg, #0c0c10de 0%, transparent 34%, #0c0c1028 100%),
    radial-gradient(ellipse at 76% 50%, #f0254610, transparent 42%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-block: 22px;
}
.hero-copy {
  width: min(560px, 51%);
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2.4px;
  color: var(--accent);
  margin: 0 0 13px;
  text-transform: uppercase;
}
.hero-copy .eyebrow {
  display: inline-block;
  background: #f0254618;
  border: 1px solid #f0254633;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.hero-copy h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.15;
  margin: 8px 0 14px;
  text-wrap: balance;
  letter-spacing: -0.05em;
  max-width: 11em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.hero-description {
  font-size: 14px;
  line-height: 1.7;
  color: #c7c2ce;
  max-width: 410px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 9px;
  min-height: 45px;
  padding: 10px 21px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.button-secondary {
  background: #ffffff0c;
  border: 1px solid #ffffff16;
  color: #eeeaf1;
}
.button-secondary:hover:not(:disabled) {
  background: #ffffff15;
}
.play-triangle {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #fff;
}
.hero-controls {
  position: absolute;
  bottom: 24px;
  right: max(44px, calc((100% - 1320px) / 2));
  display: flex;
  gap: 9px;
  align-items: center;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid #ffffff1c;
  border-radius: 999px;
  background: #0c0c1099;
  backdrop-filter: blur(10px);
}
.hero-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #ffffff2b;
  border-radius: 50%;
  background: #0c0c10a8;
  color: #fff;
  font-size: 25px;
  line-height: 1;
  padding: 0 0 3px;
  transition: background 0.2s, border-color 0.2s;
}
.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
}
.hero-dot {
  background: #ffffff55;
  width: 7px;
  height: 7px;
  border-radius: 10px;
  padding: 0;
  transition:
    width 0.2s,
    background 0.2s;
}
.hero-dot.is-active {
  width: 7px;
  background: var(--accent);
}
.hero-idle {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 90% 20%, #f0254612, transparent 60%);
}
.hero-idle .hero-copy {
  width: 100%;
  padding-block: 54px;
}
.hero-idle h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 0 0 16px;
}
.hero-idle p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
}
.hero.no-banners {
  min-height: 0;
  background: none;
}
.catalog-section {
  padding-top: 42px;
  padding-bottom: 62px;
  min-height: 440px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
}
.section-heading .eyebrow {
  margin-bottom: 9px;
  font-size: 9px;
  letter-spacing: 2px;
}
.heading-dot {
  color: var(--accent);
  margin-left: 3px;
}
.catalog-count {
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 5px;
  white-space: nowrap;
}
.search-form {
  display: flex;
  align-items: center;
  background: #15151b;
  border: 1px solid #ffffff13;
  border-radius: 11px;
  padding: 5px 6px 5px 17px;
  width: min(100%, 500px);
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.search-form:focus-within {
  border-color: #f0254666;
}
.search-form svg {
  flex-shrink: 0;
  color: #8b8796;
  width: 18px;
}
.search-form input {
  min-width: 0;
  width: 100%;
  background: none;
  border: 0;
  outline: none;
  padding: 9px 13px;
  font-size: 13px;
}
.search-form input:focus-visible {
  outline: none;
}
.search-form input::placeholder {
  color: #76727f;
}
.search-form button {
  background: #ffffff0b;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.search-form button:hover {
  background: #ffffff15;
}
.genre-filters {
  display: flex;
  gap: 9px;
  margin: 0 0 26px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: thin;
  scrollbar-color: #343039 transparent;
}
.genre-chip {
  flex-shrink: 0;
  background: transparent;
  color: #aaa5b3;
  border: 1px solid #ffffff12;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 12px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.genre-chip:hover {
  background: #ffffff08;
  color: #fff;
}
.genre-chip.is-active {
  background: #f025461b;
  color: #ff667e;
  border-color: #f0254650;
}
.series-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 30px 20px;
  min-height: 100px;
}
.series-grid[aria-busy="true"] {
  opacity: 0.55;
}
.series-card {
  display: block;
  min-width: 0;
}
.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2/3;
  border-radius: 11px;
  background: var(--panel);
  border: 1px solid #ffffff0a;
  margin-bottom: 13px;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.series-card:hover img {
  transform: scale(1.04);
}
.poster-overlay {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #000b);
  pointer-events: none;
}
.poster-rating {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1px;
}
.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f02546e8;
  display: grid;
  place-items: center;
  transform: translate(-50%, -35%);
  opacity: 0;
  transition:
    transform 0.2s,
    opacity 0.2s;
  box-shadow: 0 5px 25px #0006;
}
.poster-play .play-triangle {
  border-top-width: 7px;
  border-bottom-width: 7px;
  border-left-width: 11px;
  margin-left: 3px;
}
.series-card:hover .poster-play,
.series-card:focus-visible .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.series-card h3 {
  margin: 0 0 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}
.series-card:hover h3 {
  color: #ff6b81;
}
.card-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #8e8999;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.meta-separator {
  color: #4a4553;
}
.card-skeleton {
  aspect-ratio: 2/3;
  border-radius: 11px;
  background: linear-gradient(110deg, #17171d 30%, #202027 45%, #17171d 60%);
  background-size: 230% 100%;
  animation: shimmer 1.8s linear infinite;
}
.catalog-message {
  padding: 45px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121216;
  color: var(--muted);
  font-size: 14px;
}
.catalog-message h2 {
  color: var(--text);
  font-size: 20px;
  margin: 0 0 10px;
}
.catalog-message p {
  margin: 0 0 20px;
}
.catalog-message p:last-child {
  margin: 0;
}
.catalog-message .button {
  margin: 5px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 35px;
}
.pagination button {
  min-width: 36px;
  height: 36px;
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12px;
  padding: 0 12px;
}
.pagination button[aria-current="page"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination button:hover:not(:disabled) {
  color: #fff;
  background: #2d222d;
}
.pagination .page-summary {
  font-size: 12px;
  color: var(--muted);
  padding-inline: 12px;
}
.browse-all {
  display: flex;
  justify-content: center;
  margin-top: 33px;
}
.browse-all .button {
  min-width: 185px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
  color: #716b7b;
  font-size: 11px;
}
.footer-brand {
  font-size: 18px;
  letter-spacing: -0.5px;
  color: #b9b4c1;
}
.footer-brand .brand-mark {
  width: 24px;
  height: 25px;
  font-size: 18px;
  border-radius: 7px;
  background: #8f233a;
}
.site-footer p {
  margin: 0;
}
.admin-link {
  margin-left: auto;
  color: #716b7b;
  white-space: nowrap;
}
.admin-link:hover {
  color: #c9c4d0;
}
.detail-main {
  padding-top: 29px;
  padding-bottom: 55px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #a29bac;
  margin-bottom: 30px;
}
.back-link:hover {
  color: #fff;
}
.detail-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  position: relative;
}
.detail-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 25px 60px #0006;
  border: 1px solid #ffffff12;
}
.detail-copy {
  max-width: 710px;
}
.detail-copy h1 {
  font-size: clamp(32px, 4vw, 47px);
  margin: 10px 0 19px;
  letter-spacing: -0.05em;
}
.detail-copy .eyebrow {
  font-size: 10px;
  margin: 0;
}
.detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.detail-tag {
  font-size: 11px;
  color: #c7c0d0;
  background: #ffffff06;
  border: 1px solid #ffffff14;
  border-radius: 5px;
  padding: 4px 9px;
}
.detail-tag.rating-tag {
  color: var(--gold);
}
.detail-synopsis {
  font-size: 14px;
  color: #a9a2b2;
  line-height: 1.95;
  white-space: pre-line;
  margin-bottom: 27px;
}
.detail-copy .button {
  min-width: 145px;
}
.detail-skeleton {
  display: grid;
  gap: 25px;
  max-width: 600px;
}
.detail-skeleton span:first-child {
  height: 50px;
  width: 75%;
}
.detail-skeleton span:last-child {
  width: 85%;
}
.episode-section {
  margin-top: 55px;
  border-top: 1px solid var(--line);
  padding-top: 33px;
}
.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 10px;
}
.episode-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  background: #19181f;
  border: 1px solid #ffffff0a;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.episode-link:hover {
  border-color: #f0254677;
  background: #f0254615;
}
.episode-link.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.episode-link.is-active:after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: #fff8;
}
.episode-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 25px 0;
}
.watch-main {
  padding-top: 0;
  padding-bottom: 35px;
  height: calc(100vh - 64px);
  overflow: hidden;
}
.watch-main .back-link {
  position: absolute;
  top: 82px;
  left: 24px;
  z-index: 2;
}
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 38px;
  align-items: start;
  max-width: 1120px;
  margin: auto;
  height: 100%;
}
.watch-screen {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  top: 64px;
  left: 0;
  right: 368px;
  height: calc(100vh - 64px);
  padding-top: 0;
  overflow: hidden;
}
.player-frame {
  --player-center-size: 56px;
  position: relative;
  isolation: isolate;
  background: #030305;
  width: min(100%, 390px);
  aspect-ratio: 9/16;
  border: 1px solid #ffffff13;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 16px 60px #0008;
}
.player-frame video {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: contain;
  background: #000;
}
.player-feedback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  z-index: 3;
  background: #0b0b10e8;
  color: #b0a8bb;
  font-size: 13px;
}
.player-center-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: var(--player-center-size);
  height: var(--player-center-size);
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #0009;
  color: #fff;
  box-shadow: 0 2px 12px #0003;
  z-index: 2;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.player-center-play:hover {
  background: #000b;
}
.player-center-play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.player-center-play .play-triangle {
  margin-left: 3px;
  border-top-width: 10px;
  border-bottom-width: 10px;
  border-left-width: 16px;
}
.player-center-play.is-loading {
  border-color: transparent;
}
.player-center-play.is-loading::after {
  content: "";
  position: absolute;
  inset: -1px;
  box-sizing: border-box;
  border: 2px solid #ffffff30;
  border-top-color: #fff;
  border-radius: inherit;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
}
.player-feedback p {
  margin: 15px 0;
  max-width: 260px;
}
.player-feedback .button {
  font-size: 12px;
  min-height: 38px;
}
.watch-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 390px);
  padding-top: 19px;
  gap: 15px;
}
.watch-caption h1 {
  font-size: 19px;
  margin: 0 0 5px;
}
.watch-caption p {
  font-size: 12px;
  color: #8f879e;
  margin: 0;
}
.chapter-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 390px);
  gap: 8px;
  margin-top: 20px;
}
.chapter-nav .button {
  font-size: 12px;
  min-height: 39px;
  padding: 8px 12px;
  white-space: nowrap;
}
.chapter-feedback {
  color: #b1a6bc;
  font-size: 11px;
  text-align: center;
  line-height: 1.55;
}
.chapter-feedback.is-last {
  color: var(--gold);
}
.watch-episodes {
  background: #141319;
  border: 1px solid #ffffff0e;
  border-radius: 13px;
  padding: 23px;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  grid-column: 2;
  width: 330px;
}
.watch-episodes .section-heading {
  margin-bottom: 23px;
}
.watch-episodes .section-heading h2 {
  font-size: 20px;
}
.watch-episodes .section-heading .eyebrow {
  font-size: 9px;
}
.watch-episodes .episode-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding: 3px;
  scrollbar-width: thin;
  scrollbar-color: #443345 transparent;
}
.watch-episodes .episode-link {
  min-height: 43px;
}
.watch-hint {
  font-size: 11px;
  line-height: 1.7;
  color: #736a80;
  margin: 21px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.watch-main > .catalog-message {
  margin-top: 25px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1180px) {
  .series-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 25px 17px;
  }
  .header-inner {
    gap: 45px;
  }
  .detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
  .watch-layout {
    gap: 25px;
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}
@media (max-width: 900px) {
  .content-width,
  .header-inner {
    width: calc(100% - 48px);
  }
  .header-inner {
    gap: 35px;
  }
  .site-header {
    height: 50px !important;
    min-height: 50px;
  }
  .brand {
    font-size: 22px;
  }
  .main-nav {
    gap: 24px;
  }
  .hero-copy {
    width: 55%;
  }
  .hero-shade {
    background:
      linear-gradient(90deg, #0c0c10f0 0%, #0c0c10cc 30%, #0c0c1040 80%),
      linear-gradient(0deg, #0c0c10 0%, transparent 45%);
  }
  .hero-copy h2 {
    font-size: 32px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-controls {
    right: 24px;
    bottom: 27px;
  }
  .hero-skeleton {
    left: 24px;
  }
  .series-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px 16px;
  }
  .catalog-section {
    padding-top: 32px;
  }
  .section-heading h1 {
    font-size: 29px;
  }
  .detail-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
  }
  .detail-copy h1 {
    font-size: 32px;
  }
  .detail-synopsis {
    font-size: 13px;
  }
  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .watch-episodes {
    padding: 18px;
  }
  .chapter-nav {
    flex-wrap: wrap;
  }
  .chapter-feedback {
    order: 3;
    width: 100%;
    margin-top: 4px;
  }
}
@media (max-width: 640px) {
  .hero {
    width: 100%;
    margin-inline: 0;
    height: calc(100vw * 0.7692308);
    min-height: 300px;
  }
  body[data-page="home"] .hero {
    min-height: 0;
  }
  .content-width,
  .header-inner {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 50px !important;
    min-height: 50px;
  }
  .header-inner {
    gap: 25px;
  }
  .brand {
    font-size: 20px;
    gap: 7px;
  }
  .brand-mark {
    width: 27px;
    height: 29px;
    font-size: 21px;
    border-radius: 8px;
  }
  .main-nav {
    margin-left: auto;
    font-size: 12px;
    gap: 20px;
  }
  .header-discover {
    display: none;
  }
  .hero-image {
    object-position: 50% var(--mobile-position, 50%);
  }
  .hero-shade {
    background: linear-gradient(
      0deg,
      #0c0c10 0%,
      #0c0c10ed 12%,
      #0c0c1055 62%,
      #0c0c1010 100%
    );
  }
  .hero-content {
    align-items: flex-end;
    padding: 18px 0 36px;
  }
  .hero-copy {
    width: 100%;
    max-width: 400px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    padding: 3px 8px;
    letter-spacing: 1.7px;
    margin-bottom: 6px;
  }
  .hero-copy h2 {
    font-size: 28px;
    margin: 0 0 10px;
    max-width: 12em;
    text-shadow: 0 2px 25px #0008;
  }
  .hero-description {
    font-size: 12px;
    line-height: 1.75;
    max-width: 330px;
    -webkit-line-clamp: 2;
    margin-bottom: 12px;
    color: #c8c0cf;
  }
  .hero-copy .button {
    min-height: 40px;
    font-size: 12px;
    padding: 9px 17px;
  }
  .hero-controls {
    bottom: 12px;
    right: 18px;
  }
  .hero-skeleton {
    left: 18px;
    top: auto;
    bottom: 48px;
    width: 65%;
    gap: 12px;
  }
  .hero-skeleton span:nth-child(2) {
    height: 36px;
  }
  .hero-idle {
    min-height: 230px;
  }
  .hero-idle .hero-copy {
    padding-block: 38px;
  }
  .hero-idle h2 {
    font-size: 28px;
  }
  .hero-idle p:not(.eyebrow) {
    font-size: 13px;
  }
  .catalog-section {
    padding-top: 26px;
    padding-bottom: 30px;
  }
  .section-heading {
    margin-bottom: 18px;
    gap: 12px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 7px;
  }
  .section-heading h1 {
    font-size: 26px;
  }
  .section-heading h2 {
    font-size: 23px;
  }
  .catalog-count {
    font-size: 10px;
    padding-bottom: 3px;
  }
  .search-form {
    width: 100%;
    margin-bottom: 16px;
    padding-left: 12px;
  }
  .search-form input {
    font-size: 12px;
    padding: 8px 10px;
  }
  .search-form button {
    padding: 7px 14px;
  }
  .genre-filters {
    gap: 7px;
    margin-bottom: 20px;
  }
  .genre-chip {
    font-size: 11px;
    padding: 5px 12px;
  }
  .series-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 21px 10px;
  }
  .poster-wrap {
    border-radius: 8px;
    margin-bottom: 9px;
  }
  .series-card h3 {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 3px;
  }
  .card-meta {
    font-size: 10px;
    gap: 4px;
  }
  .poster-rating {
    font-size: 10px;
    bottom: 7px;
    left: 7px;
  }
  .poster-play {
    display: none;
  }
  .browse-all {
    margin-top: 26px;
  }
  .browse-all .button {
    min-height: 40px;
    font-size: 12px;
  }
  .catalog-message {
    padding: 35px 15px;
    font-size: 13px;
  }
  .catalog-message h2 {
    font-size: 19px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 10px 15px;
    padding-block: 23px;
    margin-top: 20px;
  }
  .footer-brand {
    font-size: 16px;
  }
  .footer-brand .brand-mark {
    width: 21px;
    height: 23px;
    font-size: 17px;
    border-radius: 6px;
  }
  .site-footer p {
    font-size: 10px;
  }
  .admin-link {
    font-size: 10px;
  }
  .pagination {
    gap: 5px;
    margin-top: 26px;
  }
  .pagination button {
    min-width: 32px;
    height: 33px;
    padding-inline: 9px;
  }
  .pagination .page-summary {
    padding-inline: 6px;
    font-size: 10px;
  }
  .detail-main {
    padding-top: 21px;
    padding-bottom: 30px;
  }
  .back-link {
    font-size: 11px;
    margin-bottom: 24px;
  }
  .detail-layout {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .detail-poster {
    border-radius: 9px;
  }
  .detail-copy h1 {
    font-size: 26px;
    margin: 7px 0 12px;
  }
  .detail-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .detail-tags {
    gap: 5px;
    margin-bottom: 14px;
  }
  .detail-tag {
    font-size: 10px;
    padding: 2px 6px;
  }
  .detail-copy .button {
    font-size: 11px;
    min-height: 37px;
    min-width: 115px;
    padding: 8px 11px;
  }
  .detail-synopsis {
    grid-column: 1/-1;
    font-size: 13px;
    line-height: 1.85;
    margin: 0;
  }
  .detail-layout .mobile-synopsis {
    grid-column: 1/-1;
    margin-top: 4px;
  }
  .detail-skeleton {
    gap: 15px;
    margin-top: 20px;
  }
  .detail-skeleton span:first-child {
    height: 32px;
    width: 90%;
  }
  .detail-skeleton span {
    height: 12px;
  }
  .episode-section {
    margin-top: 30px;
    padding-top: 24px;
  }
  .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
  }
  .episode-link {
    min-height: 43px;
    font-size: 12px;
  }
  .watch-main {
    padding-top: 0;
    height: auto;
    overflow: visible;
  }
  .watch-main .back-link {
    top: 52px;
  }
  .watch-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 12px;
  }
  .watch-screen {
    width: 100%;
    position: relative;
    top: 0;
    left: auto;
    right: auto;
    height: auto;
    padding-top: 0;
    padding-bottom: 18px;
    overflow: visible;
  }
  .player-frame {
    width: min(100%, 360px);
    border-radius: 9px;
    max-height: calc(100svh - 140px);
    aspect-ratio: 9/16;
  }
  .watch-caption,
  .chapter-nav {
    width: min(100%, 360px);
  }
  .watch-caption h1 {
    font-size: 18px;
  }
  .watch-caption {
    padding-top: 16px;
  }
  .watch-episodes {
    width: 100%;
    grid-column: auto;
    padding: 20px;
    height: auto;
    overflow: visible;
    margin-top: 0;
    position: relative;
    z-index: 1;
  }
  .watch-episodes .episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    max-height: 260px;
  }
  .watch-episodes .section-heading {
    margin-bottom: 18px;
  }
  .chapter-feedback {
    order: initial;
    width: auto;
    margin: 0;
    max-width: 100px;
  }
  .watch-hint {
    margin-top: 17px;
    padding-top: 12px;
  }
}
@media (max-width: 360px) {
  .content-width,
  .header-inner {
    width: calc(100% - 28px);
  }
  .main-nav {
    gap: 14px;
  }
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .hero-copy h2 {
    font-size: 26px;
  }
  .detail-layout {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 16px;
  }
  .detail-copy h1 {
    font-size: 22px;
  }
  .chapter-feedback {
    font-size: 10px;
    max-width: 80px;
  }
}
@media (max-height: 500px) {
  .hero {
    min-height: 240px;
  }
  .hero-content {
    padding-block: 16px 32px;
  }
  .hero-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 5px;
  }
  .hero-copy h2 {
    font-size: 26px;
    margin: 0 0 10px;
  }
  .hero-description {
    -webkit-line-clamp: 1;
    margin-bottom: 12px;
  }
  .hero-copy .button {
    min-height: 40px;
    font-size: 12px;
    padding: 8px 16px;
  }
  .hero-controls {
    bottom: 12px;
    padding: 6px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    transform: none;
    transition: none;
  }
  .hero-slide.is-active .hero-image {
    transform: none;
  }
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  /* Loading is a status indicator; retain a slower rotation while decorative
     motion stays disabled. Cover both initial loading and in-video buffering. */
  .player-center-play.is-loading::after {
    animation: spin 1.6s linear infinite !important;
  }
}
.brand-logo {
  width: 33px;
  height: 35px;
  object-fit: contain;
}
.footer-brand .brand-logo {
  width: 24px;
  height: 25px;
}
.mobile-synopsis {
  display: none;
}
@media (max-width: 640px) {
  .brand-logo {
    width: 27px;
    height: 29px;
  }
  .detail-copy > .detail-synopsis {
    display: none;
  }
  .mobile-synopsis {
    display: block;
  }
  .footer-brand .brand-logo {
    width: 21px;
    height: 23px;
  }
}
