:root {
  --color-brand: #d97706;
  --color-brand-strong: #f97316;
  --color-brand-soft: #fffbeb;
  --color-dark: #111827;
  --color-darker: #030712;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-card: #ffffff;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f8fafc;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, #d97706 0%, #f97316 50%, #d97706 100%);
  box-shadow: 0 10px 30px rgba(124, 45, 18, 0.26);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-text {
  font-size: 24px;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--color-brand);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

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

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.92;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.header-search,
.mobile-search,
.search-strip form,
.big-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input {
  width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 10px 14px;
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.header-search input::placeholder,
.mobile-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.mobile-search button,
.search-strip button,
.big-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  color: var(--color-brand);
  background: #ffffff;
  cursor: pointer;
}

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

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

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
}

.mobile-panel.is-open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.26);
}

.subnav {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.subnav-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 11px 0;
}

.subnav-track a {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.45), transparent 32%), #111827;
}

.hero-slider {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
  min-height: 620px;
}

.hero-slide.is-active {
  display: block;
  animation: heroFade 0.65s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: scale(1.015);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-media,
.hero-backdrop,
.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-slide.image-missing .hero-media {
  background: linear-gradient(135deg, #111827, #92400e 48%, #f97316);
}

.hero-backdrop {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.70) 42%, rgba(3, 7, 18, 0.16) 100%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.86) 0%, rgba(3, 7, 18, 0.05) 48%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 72px 0;
}

.hero-copy {
  max-width: 760px;
}

.hero-eyebrow,
.inner-hero span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.inner-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.inner-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags {
  margin-bottom: 30px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: #fff7ed;
  background: rgba(249, 115, 22, 0.70);
}

.tag-list span {
  padding: 5px 9px;
  color: #92400e;
  background: #fffbeb;
}

.hero-actions,
.detail-copy .btn {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn-light {
  color: var(--color-brand);
  background: #ffffff;
}

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

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  transform: rotate(2deg);
}

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

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

.hero-card span {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-brand-strong);
  font-weight: 900;
}

.hero-card.image-missing {
  background: linear-gradient(135deg, #92400e, #f97316);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
}

.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot,
.hero-arrows button {
  border: 0;
  cursor: pointer;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.40);
}

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

.hero-arrows button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.section {
  padding: 56px 0;
}

.section-heading,
.panel-heading,
.filter-bar,
.player-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2,
.panel-heading h2,
.filter-bar h1,
.player-heading h2,
.content-card h2,
.side-card h2 {
  margin: 0;
  color: #111827;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading h2::before,
.panel-heading h2::before {
  content: "";
  display: inline-block;
  width: 44px;
  height: 4px;
  margin-right: 14px;
  vertical-align: middle;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-strong));
}

.section-heading p,
.filter-bar p,
.player-heading p {
  margin: 8px 0 0;
  color: var(--color-muted);
}

.section-heading a,
.panel-heading a {
  color: var(--color-brand);
  font-weight: 900;
}

.search-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 24px;
  align-items: center;
  margin-top: -34px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-strong);
}

.search-strip h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.search-strip p {
  margin: 6px 0 0;
  color: var(--color-muted);
}

.search-strip input,
.big-search input,
.filter-fields input,
.filter-fields select,
.search-tools select {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: 13px 16px;
  outline: none;
  color: var(--color-dark);
  background: #ffffff;
}

.search-strip button,
.big-search button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-strong));
}

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

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

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

.movie-card {
  position: relative;
  min-width: 0;
}

.movie-card-link {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: inherit;
  background: var(--color-card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #111827, #92400e 55%, #f97316);
}

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

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02) 55%);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.poster-wrap.image-missing .poster-fallback {
  display: flex;
}

.poster-duration,
.poster-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
}

.poster-duration {
  right: 12px;
  top: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.92);
  font-size: 12px;
}

.poster-play {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-brand);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

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

.movie-meta-row,
.movie-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: 13px;
}

.category-pill {
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-brand-strong);
  font-weight: 900;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 54px;
  margin: 13px 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-summary {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-stats {
  margin-top: 14px;
  font-weight: 800;
}

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

.ranking-panel,
.content-card,
.side-card,
.table-wrap {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 110px;
  padding: 24px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-list a:hover {
  background: #fffbeb;
  transform: translateX(4px);
}

.rank-number {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: var(--color-brand);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111827;
  font-weight: 900;
}

.rank-info {
  color: var(--color-muted);
  font-size: 13px;
}

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

.category-card,
.category-overview-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card {
  display: block;
  padding: 24px;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.category-card span,
.category-overview-main span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-strong));
  font-size: 12px;
  font-weight: 900;
}

.category-card h3,
.category-overview-main h2 {
  margin: 14px 0 8px;
  color: #111827;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.category-card p,
.category-overview-main p {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 14px;
}

.category-card small {
  display: -webkit-box;
  overflow: hidden;
  color: #92400e;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.inner-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 20%, rgba(251, 191, 36, 0.40), transparent 28%),
    linear-gradient(135deg, #111827 0%, #7c2d12 55%, #f97316 100%);
}

.inner-hero .container {
  padding: 86px 0;
}

.inner-hero h1 {
  max-width: 880px;
}

.inner-hero p {
  max-width: 780px;
}

.category-overview-card {
  display: grid;
  grid-template-rows: minmax(230px, auto) auto;
}

.category-overview-main {
  display: block;
  padding: 26px;
  color: inherit;
  background: linear-gradient(180deg, #ffffff, #fffbeb);
}

.category-overview-main strong {
  color: var(--color-brand);
}

.category-overview-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 18px 26px 24px;
  list-style: none;
}

.category-overview-card li a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.filter-bar {
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-fields,
.search-tools {
  display: flex;
  gap: 10px;
  min-width: min(520px, 100%);
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--color-muted);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

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

.detail-bg {
  opacity: 0.42;
  filter: blur(2px);
  transform: scale(1.04);
}

.detail-overlay {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.56)),
    linear-gradient(0deg, rgba(3, 7, 18, 0.94), rgba(3, 7, 18, 0.04));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 54px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

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

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

.detail-poster {
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  max-width: 900px;
}

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

.detail-meta span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-section,
.content-card,
.side-card {
  padding: 24px;
}

.player-section {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.video-overlay-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 999px;
  color: var(--color-brand);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-strong);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-overlay-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-overlay-play.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-message {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.54);
  font-size: 13px;
  font-weight: 800;
}

.source-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.source-buttons button {
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 9px 14px;
  color: #9a3412;
  background: #fff7ed;
  cursor: pointer;
  font-weight: 900;
}

.source-buttons button.active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-strong));
}

.content-card p {
  margin: 16px 0 0;
  color: #374151;
  font-size: 16px;
}

.detail-side {
  position: sticky;
  top: 110px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.side-card dt {
  color: var(--color-muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.side-card a {
  color: var(--color-brand);
}

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

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

.ranking-table th {
  color: #92400e;
  background: #fffbeb;
}

.ranking-table a {
  color: var(--color-brand);
  font-weight: 900;
}

.search-page {
  max-width: 1180px;
}

.big-search {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.big-search input {
  border-radius: 18px;
  font-size: 18px;
}

.big-search button {
  border-radius: 18px;
  min-width: 110px;
}

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

.search-summary {
  margin: 24px 0;
  color: var(--color-muted);
  font-weight: 800;
}

.site-footer {
  margin-top: 56px;
  color: #d1d5db;
  background: linear-gradient(180deg, #111827, #030712);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.site-footer p {
  max-width: 360px;
  color: #9ca3af;
}

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

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

.site-footer a:hover {
  color: #fbbf24;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 1120px) {
  .movie-grid,
  .compact-grid,
  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

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

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

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

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

  .hero,
  .hero-slider,
  .hero-slide {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 720px;
    padding: 48px 0 90px;
  }

  .hero-card {
    width: min(260px, 70vw);
    min-height: auto;
    transform: none;
  }

  .hero-card img {
    height: 330px;
  }

  .search-strip {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .section-heading,
  .filter-bar,
  .player-heading {
    align-items: start;
    flex-direction: column;
  }

  .filter-fields,
  .search-tools {
    width: 100%;
    min-width: 0;
    flex-direction: column;
  }

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

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

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .subnav-track {
    gap: 16px;
  }

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .listing-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .inner-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero p,
  .inner-hero p,
  .detail-one-line {
    font-size: 17px;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrows {
    display: none;
  }

  .section {
    padding: 38px 0;
  }

  .search-strip,
  .filter-bar,
  .player-section,
  .content-card,
  .side-card,
  .big-search {
    padding: 18px;
  }

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