:root {
  --bg: #f5f7fb;
  --bg-soft: #eef8f8;
  --surface: #ffffff;
  --surface-muted: rgba(255, 255, 255, 0.86);
  --text: #102033;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.10);
  --emerald: #059669;
  --teal: #0d9488;
  --cyan: #0891b2;
  --yellow: #facc15;
  --rose: #f43f5e;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-small: 14px;
  --max-width: 1180px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.18), transparent 32rem),
    linear-gradient(180deg, #f6fffd 0%, var(--bg) 34rem, #ffffff 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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 {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #059669 0%, #0d9488 48%, #0891b2 100%);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(8, 145, 178, 0.28);
}

.header-inner {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.95);
  color: #064e3b;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.04);
}

.brand-text {
  font-size: 24px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--yellow);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.header-search input,
.mobile-search input,
.big-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  padding: 11px 16px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.10);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 220px;
}

.header-search input:focus,
.mobile-search input:focus,
.big-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.34);
}

.header-search button,
.mobile-search button,
.big-search button,
.filter-panel button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.big-search button,
.primary-button {
  background: linear-gradient(135deg, #facc15, #fb923c);
  color: #172033;
  box-shadow: 0 12px 28px rgba(251, 146, 60, 0.28);
}

.header-search button:hover,
.big-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.filter-panel button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-menu {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
  background: linear-gradient(180deg, #0d9488, #0e7490);
}

.mobile-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-menu nav {
  display: grid;
  gap: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 30%, rgba(20, 184, 166, 0.36), transparent 24rem),
    linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(15, 23, 42, 0.20) 100%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.86) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  min-height: 78vh;
  margin: 0 auto;
  padding: 92px 20px 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 850;
  color: #facc15;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.hero-content h2 {
  margin: 24px 0 0;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 850;
}

.hero-content p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.tag-row,
.category-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.category-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 32px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--yellow);
}

.search-hero-panel,
.content-section,
.page-hero,
.detail-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.search-hero-panel {
  position: relative;
  z-index: 5;
  margin-top: -42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  border-radius: var(--radius);
  padding-top: 28px;
  padding-bottom: 28px;
  background: rgba(255, 255, 255, 0.90);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-hero-panel h2,
.section-heading h2,
.spotlight-panel h2,
.episode-panel h2,
.detail-text-grid h2,
.text-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.search-hero-panel p,
.section-heading p,
.spotlight-panel p,
.page-hero p,
.text-card p,
.detail-text-grid p,
.episode-panel p {
  color: var(--muted);
  line-height: 1.8;
}

.big-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.content-section {
  padding-top: 64px;
  padding-bottom: 12px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading p {
  margin: 8px 0 0;
  max-width: 720px;
}

.section-link {
  flex-shrink: 0;
  color: var(--emerald);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.featured-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.all-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.related-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.movie-row .movie-card {
  scroll-snap-align: start;
}

.movie-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.movie-card-wide .card-cover {
  aspect-ratio: auto;
  height: 100%;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .card-cover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.66), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--rose);
  color: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) scale(0.84);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--emerald);
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meta-row span:first-child {
  color: var(--emerald);
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body h3 a:hover {
  color: var(--emerald);
}

.card-body p {
  margin: 0 0 12px;
  min-height: 46px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.ranking-list,
.ranking-page-list {
  display: grid;
  gap: 12px;
}

.ranking-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-item {
  display: grid;
  grid-template-columns: 52px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.rank-number {
  font-size: 20px;
  font-weight: 950;
  color: var(--rose);
}

.ranking-item img {
  width: 64px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info em,
.rank-action {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.rank-action {
  color: var(--emerald);
  font-weight: 800;
}

.spotlight-panel,
.text-card,
.detail-text-grid article,
.episode-panel,
.filter-panel,
.search-hero-panel,
.page-hero {
  border: 1px solid var(--line);
  background: var(--surface-muted);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.spotlight-panel {
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.22), transparent 16rem),
    linear-gradient(135deg, #0f766e, #0891b2);
  color: #ffffff;
}

.spotlight-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.category-grid,
.category-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-tile,
.category-detail-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-detail-tile {
  min-height: 250px;
}

.category-tile:hover,
.category-detail-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-detail-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.category-tile::after,
.category-detail-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.12));
}

.category-tile span,
.category-tile strong,
.category-tile em,
.category-detail-tile span,
.category-detail-tile h2,
.category-detail-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span,
.tile-count {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.95);
  color: #172033;
  font-size: 12px;
  font-weight: 850;
}

.category-tile strong,
.category-detail-tile h2 {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
}

.category-tile em,
.category-detail-tile p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.6;
}

.page-hero {
  margin-top: 36px;
  border-radius: 28px;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(250, 204, 21, 0.22), transparent 18rem),
    linear-gradient(135deg, #064e3b, #0891b2);
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.small-page-hero {
  min-height: 280px;
  display: flex;
  align-items: center;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-mini-grid a {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.hero-mini-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-mini-grid span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  color: #ffffff;
  font-weight: 850;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero-mini-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), transparent 58%);
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
}

.search-filter-panel {
  grid-template-columns: minmax(260px, 1.2fr) minmax(160px, 0.5fr) minmax(160px, 0.5fr) auto;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border-radius: 14px;
  background: #ffffff;
}

.filter-panel button {
  min-height: 46px;
  background: #0f766e;
  color: #ffffff;
}

.filter-count {
  margin: 10px 0 20px;
  color: var(--muted);
  font-weight: 750;
}

.ranking-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1fr);
  gap: 30px;
  align-items: center;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.podium-card {
  position: relative;
  min-height: 270px;
  border-radius: 22px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-soft);
}

.podium-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.podium-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.86), transparent 54%);
}

.podium-card span,
.podium-card strong,
.podium-card em {
  position: relative;
  z-index: 2;
}

.podium-card span {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #172033;
  font-weight: 900;
  font-size: 12px;
}

.podium-card strong {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.podium-card em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  font-size: 13px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.detail-backdrop,
.detail-backdrop::after,
.detail-backdrop img {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.04);
}

.detail-backdrop::after {
  content: "";
  background:
    radial-gradient(circle at 75% 25%, rgba(20, 184, 166, 0.32), transparent 22rem),
    linear-gradient(90deg, rgba(3, 7, 18, 0.96), rgba(15, 23, 42, 0.70)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.96), transparent 42%);
}

.detail-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-one-line {
  margin: 20px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 750;
}

.large-tags {
  margin-top: 18px;
}

.large-tags span {
  min-height: 34px;
  padding: 7px 13px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: stretch;
}

.video-shell {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 24px;
  background: #020617;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle at center, rgba(20, 184, 166, 0.20), transparent 18rem),
    rgba(2, 6, 23, 0.42);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--emerald);
  font-size: 30px;
  box-shadow: var(--shadow);
}

.player-start strong {
  font-size: 18px;
}

.video-shell.is-playing .player-start {
  opacity: 0;
  visibility: hidden;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 4;
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
  font-size: 13px;
}

.episode-panel {
  border-radius: 22px;
  padding: 20px;
}

.episode-button {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: #eef8f8;
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.episode-button.is-active {
  background: linear-gradient(135deg, #059669, #0891b2);
  color: #ffffff;
}

.detail-text-grid,
.text-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.detail-text-grid article,
.text-card {
  border-radius: 22px;
  padding: 24px;
}

.category-link-row a {
  background: rgba(8, 145, 178, 0.12);
  color: #0e7490;
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #d1d5db;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid section {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-grid h2 {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  line-height: 1.8;
  color: #aab3c2;
}

.footer-grid a {
  color: #cbd5e1;
}

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #94a3b8;
  font-size: 13px;
}

.footer-bottom p {
  margin: 0;
}

.is-hidden-by-filter {
  display: none !important;
}

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 12px;
  }

  .header-search input {
    width: 180px;
  }

  .movie-grid,
  .featured-grid,
  .all-grid,
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-grid,
  .category-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .search-hero-panel,
  .split-layout,
  .category-hero,
  .ranking-hero,
  .detail-content,
  .player-layout,
  .detail-text-grid,
  .text-page-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-panel {
    position: static;
  }

  .detail-poster {
    max-width: 260px;
  }

  .ranking-page-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

  .hero-content {
    padding-top: 84px;
  }

  .hero-controls {
    bottom: 16px;
  }

  .search-hero-panel {
    margin-top: 0;
    border-radius: 0;
  }

  .big-search,
  .mobile-search {
    grid-template-columns: 1fr;
  }

  .content-section {
    padding-top: 46px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .movie-grid,
  .featured-grid,
  .all-grid,
  .related-grid,
  .compact-grid,
  .category-grid,
  .category-detail-grid,
  .podium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card-wide {
    grid-template-columns: 1fr;
  }

  .movie-card-wide .card-cover {
    aspect-ratio: 3 / 4;
  }

  .filter-panel,
  .search-filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-item {
    grid-template-columns: 42px 54px minmax(0, 1fr);
  }

  .rank-action {
    display: none;
  }

  .ranking-item img {
    width: 54px;
    height: 72px;
  }

  .video-shell,
  .video-shell video {
    min-height: 260px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .featured-grid,
  .all-grid,
  .related-grid,
  .compact-grid,
  .category-grid,
  .category-detail-grid,
  .podium-grid {
    grid-template-columns: 1fr;
  }

  .hero-mini-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-button,
  .ghost-button {
    text-align: center;
  }
}
