:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.76);
  --bg-card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-light: #cbd5e1;
  --accent: #f59e0b;
  --accent-deep: #ea580c;
  --danger: #ef4444;
  --cyan: #06b6d4;
  --green: #10b981;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --blue: #3b82f6;
  --radius: 22px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.18), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.12), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.76);
  backdrop-filter: blur(18px);
}

.header-shell {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

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

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

.nav-link,
.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted-light);
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.16);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
}

.header-search input,
.mobile-search input,
.page-filter {
  width: 190px;
  border: 0;
  outline: 0;
  color: #ffffff;
  background: transparent;
}

.header-search button,
.mobile-search button,
.clear-filter {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
}

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

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.94);
}

.mobile-nav-link {
  display: block;
  margin-top: 6px;
}

.hero-slider {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.1) contrast(1.04);
}

.hero-shade,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 58%, rgba(2, 6, 23, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 72vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  transform: translateX(calc((100vw - min(1180px, calc(100vw - 32px))) / -2));
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.poster-badge,
.poster-score,
.tag-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.hero-kicker span:first-child,
.poster-badge {
  border-color: rgba(245, 158, 11, 0.32);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(239, 68, 68, 0.92));
}

.hero-kicker span {
  padding: 8px 14px;
  font-weight: 800;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero-content p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted-light);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted-light);
}

.hero-meta span {
  padding-right: 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.32);
}

.hero-meta span:last-child {
  border-right: 0;
}

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

.btn-primary,
.btn-ghost,
.side-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-ghost:hover,
.side-more:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-control {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

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

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

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

.main-shell,
.search-panel,
.category-section,
.overview-shell,
.ranking-feature-grid,
.category-layout,
.related-section,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.compact-panel {
  margin-top: 24px;
}

.search-panel h2,
.side-card h2,
.text-card h2,
.category-nav-card h2 {
  margin: 0;
  font-size: 22px;
}

.search-panel p,
.section-heading p,
.side-card p,
.text-card p,
.category-overview-card p,
.category-hero p,
.sub-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.filter-box {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: min(100%, 420px);
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
}

.page-filter {
  width: 100%;
  padding: 0 12px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
  margin-top: 44px;
}

.main-column,
.side-column {
  display: grid;
  gap: 36px;
}

.content-section,
.category-section,
.side-card,
.text-card,
.category-nav-card,
.category-results,
.player-shell,
.category-overview-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.content-section,
.category-section,
.side-card,
.text-card,
.category-results,
.category-nav-card {
  padding: 24px;
}

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

.section-heading.centered {
  justify-content: center;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.03em;
}

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

.movie-grid,
.compact-grid,
.category-grid,
.ranking-feature-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.one-column-grid {
  grid-template-columns: 1fr;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(2, 6, 23, 0.72);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 22px 42px rgba(245, 158, 11, 0.12);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 0%, rgba(245, 158, 11, 0.22), transparent 40%),
    linear-gradient(135deg, #111827, #020617);
}

.poster-frame img,
.rank-poster img,
.category-cover img,
.ranking-feature img,
.category-tile img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-card:hover .poster-frame img,
.category-tile:hover img,
.ranking-feature:hover img {
  transform: scale(1.05);
}

.poster-badge,
.poster-score {
  position: absolute;
  top: 10px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 10px;
}

.poster-score {
  right: 10px;
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item:hover strong,
.overview-links a:hover,
.info-list a:hover {
  color: var(--accent);
}

.movie-card p {
  min-height: 54px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  min-height: 26px;
  padding: 0 9px;
  color: var(--muted-light);
  font-size: 12px;
}

.wide-card {
  display: grid;
  grid-template-columns: 160px 1fr;
}

.wide-card .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.compact-card .movie-card-body p {
  display: none;
}

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

.side-card + .side-card {
  margin-top: 24px;
}

.rank-list {
  display: grid;
  gap: 10px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.52);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(15, 23, 42, 0.95);
}

.rank-number {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
}

.rank-poster {
  width: 52px;
  height: 70px;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy small {
  margin-top: 5px;
  color: var(--muted);
}

.rank-score {
  color: #facc15;
  font-weight: 900;
}

.side-more {
  width: 100%;
  margin-top: 18px;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
}

.category-section {
  margin-top: 44px;
  margin-bottom: 44px;
}

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

.category-tile,
.ranking-feature {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #0f172a;
}

.category-tile::after,
.ranking-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.category-tile span,
.category-tile strong,
.ranking-feature span,
.ranking-feature strong,
.ranking-feature small {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-tile span,
.ranking-feature span {
  bottom: 54px;
  color: #fbbf24;
  font-weight: 900;
}

.category-tile strong,
.ranking-feature strong {
  bottom: 18px;
  font-size: 18px;
  line-height: 1.35;
}

.category-mini-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.category-mini-list a,
.category-nav-card a {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted-light);
  background: rgba(148, 163, 184, 0.1);
}

.category-mini-list a:hover,
.category-nav-card a:hover,
.category-nav-card a.active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.2);
}

.sub-hero,
.category-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 0%, rgba(245, 158, 11, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.94));
  box-shadow: var(--shadow);
}

.sub-hero-copy {
  max-width: 760px;
  padding: 70px 42px;
}

.sub-hero span,
.sub-hero-copy span {
  color: #fbbf24;
  font-weight: 900;
}

.sub-hero h1,
.category-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.overview-shell {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
  margin-bottom: 44px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
}

.category-cover {
  display: block;
  min-height: 240px;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
}

.category-overview-card h2 {
  margin: 0;
  font-size: 24px;
}

.overview-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.overview-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-light);
}

.overview-links span {
  color: var(--muted);
}

.category-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: 38px;
}

.category-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.category-hero > div {
  position: relative;
  z-index: 2;
  max-width: 740px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-light);
  font-size: 14px;
}

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

.category-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  margin-top: 28px;
  margin-bottom: 44px;
}

.category-nav-card {
  position: sticky;
  top: 96px;
  align-self: start;
}

.category-nav-card div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.empty-state {
  margin-top: 18px;
  padding: 24px;
  border-radius: 18px;
  color: var(--muted-light);
  text-align: center;
  background: rgba(2, 6, 23, 0.62);
}

.ranking-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.ranking-feature {
  min-height: 260px;
}

.ranking-feature small {
  bottom: 18px;
  color: var(--muted-light);
}

.ranking-feature strong {
  bottom: 44px;
}

.ranking-feature span {
  bottom: 78px;
}

.large-rank-list .rank-item {
  grid-template-columns: 44px 72px 1fr auto;
}

.large-rank-list .rank-poster {
  width: 72px;
  height: 96px;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 58px;
}

.detail-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 34px;
  align-items: end;
  margin-top: 38px;
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-copy p {
  max-width: 760px;
  color: var(--muted-light);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta-grid span,
.info-list div {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.52);
}

.detail-meta-grid strong,
.info-list dt {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.player-section {
  margin-top: -72px;
  position: relative;
  z-index: 5;
}

.player-shell {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #000000;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.36), rgba(2, 6, 23, 0.78));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.video-play-button {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 18px 44px rgba(245, 158, 11, 0.34);
  font-size: 34px;
  text-indent: 6px;
}

.play-layer strong {
  font-size: 24px;
}

.play-layer small {
  color: var(--muted-light);
}

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

.text-card p {
  margin-bottom: 0;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: block;
}

.info-list dt,
.info-list dd {
  margin: 0;
}

.related-section {
  margin-top: 36px;
  margin-bottom: 44px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  color: var(--muted);
}

.footer-logo {
  color: #ffffff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0;
}

.footer-links a:hover {
  color: var(--accent);
}

.copyright {
  margin-bottom: 0;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .hero-content {
    transform: none;
  }

  .two-column,
  .detail-content,
  .category-layout {
    grid-template-columns: 1fr;
  }

  .side-card,
  .category-nav-card {
    position: static;
  }

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

@media (max-width: 860px) {
  .hero-slider,
  .hero-content {
    min-height: 660px;
  }

  .search-panel,
  .detail-intro,
  .overview-shell,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .filter-box {
    min-width: 0;
  }

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

  .wide-card {
    display: block;
  }

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

  .detail-poster {
    width: min(280px, 70vw);
  }
}

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

  .logo-text {
    font-size: 18px;
  }

  .hero-slider,
  .hero-content {
    min-height: 620px;
  }

  .hero-content h1,
  .detail-copy h1,
  .sub-hero h1,
  .category-hero h1 {
    font-size: 38px;
  }

  .hero-control {
    display: none;
  }

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

  .search-panel,
  .content-section,
  .category-section,
  .side-card,
  .text-card,
  .category-results,
  .category-nav-card {
    padding: 18px;
  }

  .filter-box {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .page-filter {
    min-height: 44px;
  }

  .sub-hero-copy,
  .category-hero {
    padding: 34px 22px;
  }

  .detail-hero-inner {
    padding-top: 28px;
  }

  .player-section {
    margin-top: -32px;
  }

  .rank-item,
  .large-rank-list .rank-item {
    grid-template-columns: 34px 52px 1fr;
  }

  .rank-score {
    grid-column: 3;
  }
}
