:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #2563eb;
  --dark: #0f172a;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #111827;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

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

.nav-link,
.mobile-nav-link {
  color: #475569;
  font-weight: 700;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-link {
  padding: 10px 15px;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(340px, 32vw);
  padding: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-width: 0;
  color: #111827;
  border: 0;
  outline: none;
  background: transparent;
}

.header-search input {
  padding: 0 6px 0 12px;
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-bar button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
  transition: 0.2s ease;
}

.header-search button {
  padding: 8px 14px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.filter-bar button:hover,
.primary-button:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  background: #111827;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.mobile-nav-link {
  display: block;
  padding: 12px 14px;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mobile-search button {
  padding: 9px 14px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: #111827;
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(124, 45, 18, 0.96), rgba(146, 64, 14, 0.85), rgba(180, 83, 9, 0.68));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(10px) saturate(1.05);
  transform: scale(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(251, 191, 36, 0.24), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(120, 53, 15, 0.8), rgba(15, 23, 42, 0.35));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  align-items: center;
  gap: 52px;
  padding: 70px 0 120px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ea580c;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fed7aa;
  margin-bottom: 18px;
}

.hero-copy h1,
.page-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-copy p,
.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.7;
}

.hero-tags,
.detail-tags,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags .tag-pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.28);
}

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

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
  transform: rotate(1.5deg);
}

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

.hero-poster span,
.play-chip {
  position: absolute;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.35);
}

.hero-poster span {
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  font-size: 30px;
}

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

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

.hero-dot.is-active {
  width: 36px;
  background: #ffffff;
}

.hero-search {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.hero-search input {
  padding: 0 16px;
}

.hero-search button {
  min-height: 48px;
  padding: 0 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: clamp(34px, 5vw, 70px);
  color: #ffffff;
  border-radius: 32px;
  background:
    radial-gradient(circle at 82% 18%, rgba(251, 191, 36, 0.38), transparent 28%),
    linear-gradient(135deg, #7c2d12, #c2410c 52%, #f59e0b);
  box-shadow: var(--shadow);
}

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

.category-hero {
  min-height: 300px;
}

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

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.soft-panel {
  width: min(1220px, calc(100% - 24px));
  margin-top: 10px;
  padding: 42px 20px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 237, 0.9));
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.16);
}

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

.section-heading h2 {
  margin: 6px 0 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
}

.compact-heading {
  margin-bottom: 18px;
}

.compact-heading h2 {
  font-size: 28px;
}

.section-link {
  min-height: 42px;
  color: #ea580c;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.18);
}

.section-link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}

.movie-grid,
.wide-grid,
.category-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

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

.poster-link,
.wide-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111827;
}

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

.wide-media {
  width: 220px;
  flex-shrink: 0;
  aspect-ratio: 16 / 10;
}

.poster-link img,
.wide-media img,
.category-tile img,
.mini-card img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.mini-card:hover img {
  transform: scale(1.08);
}

.duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}

.play-chip {
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: 0.22s ease;
}

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

.card-body,
.wide-body {
  padding: 16px;
}

.card-body h3,
.wide-body h3 {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.38;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.card-body a:hover h3,
.wide-body a:hover h3 {
  color: #ea580c;
}

.card-body p,
.wide-body p {
  min-height: 44px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card-meta {
  margin-top: 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.card-meta span {
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 999px;
}

.movie-card-wide {
  display: flex;
}

.category-tile {
  position: relative;
  min-height: 236px;
  overflow: hidden;
  display: block;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  background: #111827;
}

.category-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%),
    linear-gradient(135deg, rgba(249, 115, 22, 0.62), rgba(15, 23, 42, 0.2));
}

.category-content {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 24px;
  color: #ffffff;
}

.category-content strong {
  display: block;
  font-size: 24px;
  font-weight: 950;
}

.category-content em,
.category-content small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
  line-height: 1.55;
}

.category-content small {
  color: #fed7aa;
  font-size: 12px;
  font-weight: 800;
}

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

.quick-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-weight: 800;
}

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

.rank-panel,
.side-card,
.detail-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 34px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.rank-row:hover {
  background: #fff7ed;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  font-weight: 950;
}

.rank-row img {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-title {
  overflow: hidden;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-region {
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 150px 170px auto;
  gap: 12px;
  margin-bottom: 28px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--soft-shadow);
}

.filter-bar input,
.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.filter-bar button {
  min-height: 46px;
  padding: 0 18px;
}

.empty-state {
  display: none;
  padding: 42px;
  color: var(--muted);
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 22px;
}

.empty-state.is-visible {
  display: block;
}

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

.detail-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
  color: #64748b;
  font-size: 14px;
  font-weight: 800;
}

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

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

.detail-main {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.26);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.62));
  cursor: pointer;
}

.player-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 18px 48px rgba(249, 115, 22, 0.35);
  font-size: 34px;
  transition: 0.22s ease;
}

.player-overlay:hover .player-icon {
  transform: scale(1.08);
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: none;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 12px;
  font-size: 14px;
}

.player-message.is-visible {
  display: block;
}

.detail-card {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.detail-card h1 {
  margin: 0;
  color: #111827;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-top: 18px;
}

.detail-meta span {
  padding: 7px 12px;
  color: #475569;
  background: #f8fafc;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.detail-tags {
  margin-top: 20px;
}

.story-block {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid #e5e7eb;
}

.story-block h2,
.side-card h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 950;
}

.story-block p {
  margin: 0;
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.highlight-block,
.review-block {
  padding: 22px;
  border: 0;
  border-left: 5px solid var(--orange);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 18px;
}

.poster-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
}

.full-button {
  width: 100%;
  margin-top: 16px;
}

.mini-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: 0.2s ease;
}

.mini-card:hover {
  background: #fff7ed;
}

.mini-card img {
  width: 92px;
  height: 62px;
  border-radius: 12px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-card em {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
}

.detail-related-section {
  width: 100%;
  padding-bottom: 0;
}

.site-footer {
  margin-top: 40px;
  color: #cbd5e1;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  gap: 48px;
}

.footer-logo {
  color: #ffffff;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  color: #94a3b8;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-links h2 {
  margin: 0 0 14px;
  color: #fdba74;
  font-size: 18px;
}

.footer-links a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 16px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

  .hero-inner {
    grid-template-columns: 1fr 320px;
  }

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

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

  .split-section,
  .detail-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

  .site-nav {
    min-height: 66px;
  }

  .hero {
    min-height: 700px;
  }

  .hero-inner {
    min-height: 700px;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0 140px;
  }

  .hero-poster {
    width: min(260px, 74vw);
    margin: 0 auto;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

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

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

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

  .movie-card-wide {
    display: block;
  }

  .wide-media {
    width: 100%;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: 36px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 16px;
  }

  .content-section {
    padding: 38px 0;
  }

  .movie-grid,
  .compact-grid,
  .wide-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 30px 52px minmax(0, 1fr);
  }

  .rank-region {
    display: none;
  }

  .detail-wrap {
    width: min(100% - 20px, 1180px);
  }

  .player-shell,
  .detail-card,
  .side-card,
  .page-hero {
    border-radius: 20px;
  }
}
