:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.84);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --emerald: #10b981;
  --emerald-bright: #34d399;
  --cyan: #22d3ee;
  --rose: #fb7185;
  --amber: #f59e0b;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #00130d;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.34);
}

.logo-text,
.footer-logo {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--emerald-bright), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  padding: 10px 0;
  border: 0;
  color: var(--muted-strong);
  background: transparent;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: 0.18s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  transition: 0.2s ease;
}

.nav-dropdown-panel a:hover {
  color: white;
  background: rgba(148, 163, 184, 0.12);
}

.header-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.search-panel input,
.search-panel select,
.local-filter {
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.8);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  color: #022c22;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  font-weight: 900;
}

input:focus,
select:focus {
  border-color: rgba(52, 211, 153, 0.82);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 99px;
}

.mobile-panel {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 20px;
  border-top: 1px solid var(--line);
}

.mobile-search {
  margin: 18px 0;
}

.mobile-search input {
  flex: 1;
  padding: 12px 16px;
}

.mobile-link {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--muted-strong);
  font-weight: 800;
}

.mobile-link:hover {
  background: rgba(148, 163, 184, 0.12);
}

.hero-carousel {
  position: relative;
  height: 620px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-track,
.hero-slide,
.hero-backdrop,
.hero-backdrop img,
.hero-backdrop span {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 60px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

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

.hero-backdrop {
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.62);
  transform: scale(1.05);
}

.hero-backdrop span,
.detail-bg span {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.36) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.12) 48%, rgba(2, 6, 23, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--emerald-bright);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.hero-content h1 {
  max-width: 700px;
  font-size: clamp(3rem, 7vw, 5.9rem);
}

.hero-content p,
.page-hero p,
.side-panel p,
.detail-one-line {
  color: var(--muted-strong);
  line-height: 1.8;
}

.hero-content p {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: 1.18rem;
}

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

.hero-tags {
  margin: 24px 0 0;
}

.hero-tags span,
.tag-row span {
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(6, 78, 59, 0.32);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
}

.tag-row span {
  padding: 5px 9px;
}

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

.primary-button,
.secondary-button,
.ghost-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  padding: 14px 24px;
  color: #022c22;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 16px 38px rgba(16, 185, 129, 0.28);
}

.secondary-button,
.ghost-link {
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
}

.secondary-button {
  padding: 14px 22px;
}

.secondary-button.full,
.ghost-link.full {
  width: 100%;
}

.ghost-link {
  padding: 10px 16px;
  white-space: nowrap;
}

.text-link {
  color: var(--emerald-bright);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-link:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 20px 48px rgba(34, 211, 238, 0.26);
}

.secondary-button:hover,
.ghost-link:hover {
  border-color: rgba(52, 211, 153, 0.46);
  background: rgba(15, 23, 42, 0.94);
}

.hero-poster {
  position: relative;
  z-index: 3;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) translateY(-6px);
}

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

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

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: var(--emerald-bright);
}

.section-wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.compact-section {
  padding: 64px 0;
}

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

.section-title-row h2,
.side-panel h2,
.article-card h2,
.meta-card h2,
.player-section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.dense-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.62));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(52, 211, 153, 0.44);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  transform: translateY(-6px);
}

.poster-link,
.category-cover,
.ranking-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-link {
  aspect-ratio: 2 / 3;
}

.poster-link img,
.category-cover img,
.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-overview-card:hover .category-cover img,
.ranking-row:hover .ranking-thumb img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 900;
}

.play-mark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #022c22;
  background: var(--emerald-bright);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
  transform: translateY(6px);
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .play-mark {
  transform: translateY(0);
  opacity: 1;
}

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

.movie-card-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.small-card .movie-card-body h3 {
  font-size: 0.98rem;
}

.movie-card-body h3 a:hover,
.ranking-content h3 a:hover,
.mini-links a:hover {
  color: var(--emerald-bright);
}

.movie-card-body p {
  min-height: 62px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.movie-meta {
  color: #cbd5e1;
  font-size: 0.82rem;
  line-height: 1.5;
}

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

.category-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.86));
}

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

.category-card {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px) scale(1.01);
  filter: saturate(1.1);
}

.category-card span {
  display: block;
  font-size: 1.38rem;
  font-weight: 950;
}

.category-card small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.gradient-pink { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.gradient-violet { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.gradient-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.gradient-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gradient-emerald { background: linear-gradient(135deg, #10b981, #14b8a6); }
.gradient-cyan { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.gradient-rose { background: linear-gradient(135deg, #be123c, #fb7185); }
.gradient-indigo { background: linear-gradient(135deg, #4338ca, #7c3aed); }
.gradient-orange { background: linear-gradient(135deg, #ea580c, #facc15); }
.gradient-teal { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.gradient-lime { background: linear-gradient(135deg, #65a30d, #bef264); color: #10210a; }
.gradient-fuchsia { background: linear-gradient(135deg, #a21caf, #f0abfc); }

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}

.ranking-stack {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 64px 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  border-color: rgba(52, 211, 153, 0.36);
  background: rgba(15, 23, 42, 0.96);
  transform: translateY(-2px);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: #022c22;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  font-weight: 950;
}

.ranking-thumb {
  width: 86px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
}

.ranking-content h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.ranking-content p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
}

.side-panel,
.article-card,
.meta-card,
.search-panel,
.player-shell,
.filter-bar {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.side-panel {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.side-panel .hero-search {
  margin: 24px 0 16px;
  flex-direction: column;
  align-items: stretch;
}

.side-panel .hero-search input {
  width: 100%;
  padding: 14px 16px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero {
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 84px 16px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.18), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.page-hero p {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 1.08rem;
}

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: var(--shadow);
}

.category-cover {
  height: 190px;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.08));
}

.category-cover span {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  font-size: 1.45rem;
  font-weight: 950;
}

.category-overview-body {
  padding: 22px;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.mini-links {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-links a {
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px;
}

.filter-bar input {
  width: min(520px, 100%);
  padding: 14px 18px;
}

.filter-bar span {
  color: var(--muted);
  line-height: 1.6;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px 220px;
  gap: 14px;
  margin-bottom: 26px;
  padding: 16px;
}

.search-panel input,
.search-panel select {
  width: 100%;
  padding: 14px 16px;
}

.search-results:empty::before {
  content: "输入关键词后即可查看匹配影片";
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.74);
  text-align: center;
}

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

.detail-bg,
.detail-bg img,
.detail-bg span {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.58);
}

.detail-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--emerald-bright);
}

.detail-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info h1 {
  max-width: 790px;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
}

.detail-one-line {
  max-width: 790px;
  margin: 26px 0 0;
  font-size: 1.18rem;
}

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

.detail-meta span {
  padding: 9px 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.52);
}

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

.player-section h2 {
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-video,
.player-cover,
.player-cover img,
.player-cover-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  background: #000;
}

.player-cover {
  z-index: 2;
  border: 0;
  padding: 0;
  overflow: hidden;
  color: white;
  background: #000;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  object-fit: cover;
  filter: brightness(0.58) saturate(1.08);
}

.player-cover-shade {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.16), rgba(2, 6, 23, 0.42));
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  color: #022c22;
  background: linear-gradient(135deg, var(--emerald-bright), var(--cyan));
  box-shadow: 0 24px 70px rgba(16, 185, 129, 0.35);
  transform: translate(-50%, -50%);
  font-size: 2rem;
  transition: transform 0.22s ease;
}

.player-cover:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
}

.content-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding-top: 0;
}

.article-card,
.meta-card {
  padding: 28px;
}

.article-card p {
  margin: 18px 0 0;
  color: var(--muted-strong);
  line-height: 2;
  font-size: 1.02rem;
}

.meta-card {
  position: sticky;
  top: 96px;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 20px 0 24px;
}

.meta-card dt {
  color: var(--muted);
}

.meta-card dd {
  margin: 0;
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  padding: 44px 0;
}

.footer-inner p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
}

.footer-links a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.54);
}

.footer-links a:hover {
  color: white;
  border-color: rgba(52, 211, 153, 0.4);
}

.footer-bottom {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

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

  .two-column-section,
  .content-section {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .meta-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    padding: 64px 0 86px;
  }

  .hero-poster {
    width: min(300px, 72vw);
    justify-self: center;
    transform: none;
  }

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

  .detail-poster {
    width: min(320px, 80vw);
  }

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

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .hero-content h1,
  .detail-info h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 1rem;
  }

  .movie-grid,
  .dense-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card-body p {
    min-height: 0;
    font-size: 0.86rem;
  }

  .ranking-row {
    grid-template-columns: 46px 66px minmax(0, 1fr);
    gap: 12px;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 0.82rem;
  }

  .ranking-thumb {
    width: 66px;
  }

  .ranking-row .ghost-link {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .play-button {
    width: 74px;
    height: 74px;
  }
}
