:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e5e7eb;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #111827;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --red: #dc2626;
  --blue: #2563eb;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: var(--gray-50);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.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: 100;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

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

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

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--red));
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.32);
  transition: transform 0.2s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
}

.brand-text {
  display: grid;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 21px;
  letter-spacing: 0.02em;
  color: #fb923c;
}

.brand-text small {
  color: #cbd5e1;
  font-size: 12px;
}

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

.desktop-nav a,
.nav-dropdown > button,
.mobile-nav a {
  color: #e2e8f0;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > button,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fb923c;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: 180px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-search {
  width: 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 6px 8px;
}

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search button,
.primary-button,
.large-search button,
.quick-search-panel button {
  border: 0;
  color: var(--white);
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(90deg, var(--orange), var(--red));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
  padding: 6px 14px;
  font-size: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  font-weight: 700;
}

.primary-button:hover,
.header-search button:hover,
.large-search button:hover,
.quick-search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.38);
}

.ghost-button {
  border-radius: 999px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.mobile-menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.mobile-nav {
  display: none;
  padding: 12px 20px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: var(--slate-900);
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  color: var(--white);
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.28), transparent 32%), linear-gradient(135deg, #020617, #111827 52%, #1f2937);
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20px 20px, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
  background-size: 42px 42px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: center;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 86px 20px 88px;
  transform: translateX(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100vw;
  margin-left: calc((var(--max-width) - 100vw) / 2);
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.17;
  filter: blur(2px) saturate(1.1);
}

.hero-backdrop::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.85));
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.42);
  font-weight: 700;
  font-size: 14px;
}

.eyebrow.dark {
  color: var(--orange-dark);
  background: #ffedd5;
  border-color: #fed7aa;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0 0 18px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.hero-content p {
  max-width: 600px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
}

.hero-tags,
.detail-tags,
.tag-row,
.quick-links,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.detail-tags span {
  padding: 6px 11px;
  border-radius: 999px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-poster {
  position: relative;
  z-index: 2;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.46);
  background: linear-gradient(135deg, #fb923c, #dc2626 50%, #0f172a);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border-radius: 32px;
  background: linear-gradient(90deg, var(--orange), var(--red));
  filter: blur(24px);
  opacity: 0.35;
}

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

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--orange);
}

.content-section,
.quick-filter-section,
.split-section,
.filter-bar,
.search-page-panel,
.player-section,
.rank-feature-grid {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 64px 20px;
}

.white-section {
  background: var(--white);
}

.soft-section {
  background: linear-gradient(180deg, var(--gray-50), var(--white));
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-link {
  color: var(--orange-dark);
  font-weight: 800;
}

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

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

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #dc2626 48%, #111827);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.42s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.1);
}

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.56));
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-wrap::after,
.poster-wrap.is-missing::after {
  opacity: 1;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  color: var(--white);
  text-align: center;
  font-weight: 800;
}

.poster-wrap.is-missing .poster-fallback,
.hero-poster.is-missing span {
  display: grid;
}

.duration-badge,
.play-badge {
  position: absolute;
  z-index: 3;
  color: var(--white);
}

.duration-badge {
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  font-size: 12px;
}

.play-badge {
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: var(--orange-dark);
}

.movie-desc {
  min-height: 44px;
  margin: 10px 0 14px;
  color: var(--gray-500);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row {
  margin-top: 12px;
}

.tag-row a,
.tag-row span,
.quick-links a,
.filter-chips button {
  border-radius: 999px;
  padding: 5px 10px;
  color: #c2410c;
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.quick-search-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.quick-search-panel form,
.large-search {
  display: flex;
  gap: 12px;
}

.quick-search-panel input,
.large-search input,
.filter-search input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  outline: 0;
  padding: 14px 18px;
  background: var(--gray-50);
}

.quick-search-panel button,
.large-search button {
  padding: 0 26px;
}

.quick-links {
  margin-top: 16px;
}

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

.category-tile {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #7c2d12);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-cover-stack {
  position: relative;
  display: flex;
  min-height: 92px;
}

.category-cover-stack img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  margin-right: -28px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.category-cover-stack span {
  align-self: end;
  margin-left: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile strong {
  font-size: 23px;
}

.category-tile em {
  color: #fed7aa;
  font-style: normal;
  font-size: 14px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 28px;
}

.latest-panel,
.ranking-panel {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.update-item {
  display: flex;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  background: var(--gray-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.update-item:hover {
  background: #fff7ed;
  transform: translateX(3px);
}

.update-thumb {
  position: relative;
  flex: 0 0 96px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #dc2626);
}

.update-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-thumb span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--white);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.update-content {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.update-content strong,
.update-content small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.update-content em,
.update-content small {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: var(--gray-50);
}

.ranking-list span,
.rank-index {
  color: var(--orange-dark);
  font-weight: 900;
}

.ranking-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-list em {
  color: var(--gray-500);
  font-style: normal;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: radial-gradient(circle at 15% 30%, rgba(249, 115, 22, 0.3), transparent 33%), linear-gradient(135deg, #020617, #111827 55%, #7c2d12);
}

.small-hero {
  padding: 82px 20px;
}

.small-hero > div {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
}

.page-hero p {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

.category-overview-list {
  display: grid;
  gap: 22px;
}

.category-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  padding: 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: var(--white);
}

.category-row h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.category-row p {
  color: var(--gray-500);
}

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

.category-mini-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: var(--gray-50);
  font-weight: 800;
}

.category-mini-list span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 500;
}

.filter-bar,
.search-page-panel {
  padding-bottom: 24px;
}

.filter-search {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.filter-search button,
.filter-chips button {
  border: 0;
  cursor: pointer;
}

.filter-search button {
  padding: 0 18px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-200);
}

.filter-chips button.is-active,
.filter-chips button:hover {
  color: var(--white);
  background: var(--orange);
}

.filter-count {
  color: var(--gray-500);
}

.movie-card.is-hidden {
  display: none;
}

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

.rank-feature {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background: linear-gradient(135deg, #fb923c, #dc2626 50%, #0f172a);
  box-shadow: var(--shadow);
}

.rank-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.rank-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.rank-number,
.rank-feature strong,
.rank-feature em {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
}

.rank-number {
  top: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--orange);
  font-size: 24px;
  font-weight: 900;
}

.rank-feature strong {
  bottom: 54px;
  font-size: 25px;
}

.rank-feature em {
  bottom: 24px;
  color: #fed7aa;
  font-style: normal;
}

.table-wrap {
  overflow-x: auto;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.rank-table th,
.rank-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.rank-table th {
  color: var(--gray-500);
  background: var(--gray-50);
}

.rank-table a {
  font-weight: 800;
}

.rank-table a:hover {
  color: var(--orange-dark);
}

.detail-hero {
  min-height: 560px;
}

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

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(1px);
}

.detail-layout {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 78px 20px;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.42);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: #fdba74;
}

.breadcrumb em {
  font-style: normal;
  color: var(--white);
}

.detail-info h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.detail-one-line {
  max-width: 780px;
  color: #e2e8f0;
  font-size: 19px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.detail-meta span {
  padding: 7px 12px;
  border-radius: 12px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.1);
}

.player-section {
  padding-top: 54px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: var(--shadow);
}

.video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.28), rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease;
}

.video-overlay span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
}

.video-overlay strong {
  font-size: 20px;
}

.video-shell.is-playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-message {
  margin: 0;
  padding: 12px 16px;
  color: #cbd5e1;
  background: #0f172a;
  font-size: 14px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-content article,
.detail-content aside {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.detail-content h2 {
  margin-top: 0;
}

.detail-content p {
  color: var(--gray-700);
  font-size: 17px;
}

.info-list {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
}

.info-list dt {
  color: var(--gray-500);
}

.info-list dd {
  margin: 0;
  font-weight: 700;
}

.info-list a {
  color: var(--orange-dark);
}

.search-page-panel {
  padding-bottom: 18px;
}

.large-search {
  padding: 10px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.large-search input {
  border-radius: 20px;
  background: var(--gray-50);
}

.search-presets {
  margin-top: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px;
  border-radius: var(--radius-xl);
  color: var(--gray-500);
  text-align: center;
  background: var(--gray-50);
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
  margin-top: 40px;
}

.footer-grid {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 48px 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.site-footer h2 {
  color: var(--white);
  margin: 0 0 14px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #fb923c;
}

.footer-bottom {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
}

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 10px;
  }

  .hero-slide,
  .detail-layout,
  .detail-content,
  .split-section,
  .category-row {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    gap: 30px;
  }

  .hero-poster {
    max-width: 620px;
  }

  .movie-grid,
  .category-grid,
  .rank-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-list,
  .category-mini-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    padding-top: 50px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .content-section,
  .quick-filter-section,
  .split-section,
  .filter-bar,
  .search-page-panel,
  .player-section,
  .rank-feature-grid {
    padding: 40px 14px;
  }

  .section-head,
  .quick-search-panel form,
  .large-search,
  .filter-search,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .category-grid,
  .rank-feature-grid {
    grid-template-columns: 1fr;
  }

  .detail-layout {
    padding: 46px 14px;
  }

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

  .quick-search-panel button,
  .large-search button,
  .filter-search button {
    min-height: 44px;
  }
}
