:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.16);
  --radius-lg: 16px;
  --radius-xl: 22px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber-50), #ffffff, var(--amber-50));
  border-bottom: 1px solid var(--amber-200);
  box-shadow: var(--shadow-sm);
}

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

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  color: var(--amber-900);
  font-size: 20px;
}

.brand-text small {
  color: var(--amber-700);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1 1 auto;
}

.nav-primary,
.nav-secondary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-secondary {
  padding-left: 14px;
  border-left: 1px solid var(--amber-200);
}

.nav-link,
.nav-sub-link {
  color: var(--gray-700);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-sub-link {
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.is-active,
.nav-sub-link:hover {
  color: var(--amber-700);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--amber-900);
  border-radius: 999px;
}

.site-search {
  position: relative;
  min-width: 220px;
}

.site-search input,
.filter-search input {
  width: 100%;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 10px 16px;
  outline: none;
  color: var(--gray-800);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.site-search input:focus,
.filter-search input:focus {
  border-color: var(--amber-600);
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.14);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 460px;
  overflow: auto;
  display: none;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--amber-200);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
}

.search-result-item:hover {
  background: var(--amber-50);
}

.search-result-item img {
  width: 54px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--amber-100), var(--gray-100));
}

.search-result-item strong,
.search-result-item small {
  display: block;
}

.search-result-item small {
  color: var(--gray-500);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: var(--gray-900);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at top left, #fbbf24, #111827 55%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.10)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.02));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  max-width: 1180px;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-badge,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 700;
}

.hero-badge {
  margin-bottom: 18px;
  padding: 7px 14px;
  color: var(--white);
  background: var(--amber-600);
}

.section-kicker {
  margin-bottom: 8px;
  padding: 5px 12px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 13px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-tags span {
  border-radius: 999px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(10px);
}

.hero-actions,
.player-header,
.section-header,
.update-row,
.detail-main {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.28);
}

.button-primary:hover {
  background: var(--amber-700);
}

.button-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.42);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

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

.site-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.site-stats div {
  padding: 22px;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.site-stats strong,
.site-stats span {
  display: block;
}

.site-stats strong {
  color: var(--amber-800);
  font-size: 30px;
  line-height: 1.1;
}

.site-stats span {
  color: var(--gray-600);
  margin-top: 4px;
}

.section-block {
  padding: 42px 0;
}

.section-header {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
}

.section-header p,
.page-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--gray-600);
}

.section-link {
  color: var(--amber-700);
  font-weight: 800;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--gray-200));
}

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

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

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65), transparent 60%);
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-media::after {
  opacity: 1;
}

.play-mark {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--white);
  background: rgba(217, 119, 6, 0.88);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration,
.rank-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 34px;
  padding: 6px 8px;
  text-align: center;
  background: var(--amber-600);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.rating {
  color: var(--amber-700);
  font-weight: 800;
}

.movie-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card h3 a:hover {
  color: var(--amber-700);
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--gray-600);
  font-size: 14px;
}

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

.tag-row span,
.tag-row a {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--amber-800);
  background: var(--amber-50);
  font-size: 12px;
  font-weight: 700;
}

.soft-panel {
  width: min(100% - 32px, var(--max-width));
  margin: 30px auto;
  padding: 34px;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #eff6ff, #ecfeff 45%, #fff7ed);
}

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

.category-tile {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

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

.category-tile span {
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 800;
}

.category-tile strong {
  margin: 6px 0;
  color: var(--amber-700);
  font-size: 30px;
}

.category-tile small {
  color: var(--gray-600);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}

.update-list {
  display: grid;
  gap: 14px;
}

.update-row {
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--gray-100);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.update-row:hover {
  box-shadow: var(--shadow-md);
}

.update-row img {
  width: 138px;
  height: 82px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  background: var(--amber-100);
}

.update-info {
  flex: 1 1 auto;
  min-width: 0;
}

.update-info strong,
.update-info em {
  display: block;
}

.update-info em {
  color: var(--gray-600);
  font-size: 14px;
  font-style: normal;
}

.update-meta {
  color: var(--gray-500);
  white-space: nowrap;
  font-size: 13px;
}

.ranking-box {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.ranking-title {
  margin-bottom: 12px;
  color: var(--amber-900);
  font-size: 22px;
  font-weight: 900;
}

.ranking-box ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

.ranking-box li + li {
  border-top: 1px solid var(--gray-100);
}

.ranking-box a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 11px 0;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-score {
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 52px 0 28px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.15;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  color: var(--gray-500);
  font-size: 14px;
}

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

.breadcrumb-light {
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb-light a:hover {
  color: #ffffff;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
  gap: 18px;
  align-items: end;
  padding: 20px;
  border: 1px solid var(--amber-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-search label {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-700);
  font-weight: 800;
}

.filter-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-years button {
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--gray-700);
  background: var(--amber-50);
}

.filter-years button.is-active,
.filter-years button:hover {
  color: #ffffff;
  background: var(--amber-600);
}

.empty-message {
  display: none;
  padding: 24px;
  border: 1px dashed var(--amber-200);
  border-radius: var(--radius-lg);
  color: var(--gray-600);
  background: var(--amber-50);
  text-align: center;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.category-cover-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-cover-stack img {
  width: 100%;
  height: 82px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--amber-100);
}

.category-overview-card h2 {
  margin: 0 0 6px;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--gray-600);
}

.category-count {
  margin-bottom: 14px;
  color: var(--gray-600);
}

.category-count strong {
  color: var(--amber-700);
  font-size: 24px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

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

.ranking-table th {
  color: var(--amber-900);
  background: var(--amber-50);
}

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

.ranking-table a:hover {
  color: var(--amber-700);
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--gray-900);
}

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

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) scale(1.05);
  opacity: 0.58;
}

.detail-bg-mask {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.30)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 50%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 0 44px;
}

.detail-main {
  gap: 28px;
  align-items: flex-end;
  min-height: 390px;
  color: #ffffff;
}

.detail-poster {
  width: 260px;
  aspect-ratio: 3 / 4;
  border: 4px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: var(--amber-100);
  box-shadow: var(--shadow-lg);
}

.detail-info h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
}

.detail-info p {
  max-width: 760px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 38px 0 56px;
}

.detail-content,
.related-panel {
  min-width: 0;
}

.player-panel,
.text-panel,
.related-panel {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.player-panel {
  overflow: hidden;
  margin-bottom: 22px;
}

.player-header {
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.player-header h2,
.text-panel h2,
.related-panel h2 {
  margin: 0;
  font-size: 22px;
}

.player-header span {
  color: var(--gray-500);
  font-weight: 800;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050505;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

.player-note {
  margin: 0;
  padding: 12px 20px 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.text-panel {
  padding: 22px;
  margin-bottom: 22px;
}

.text-panel p {
  margin: 12px 0 0;
  color: var(--gray-700);
}

.movie-facts dl {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.movie-facts dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.movie-facts dt {
  color: var(--gray-500);
  font-weight: 800;
}

.movie-facts dd {
  margin: 0;
}

.related-panel {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 18px;
}

.related-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.movie-card-compact .card-media {
  aspect-ratio: auto;
  min-height: 104px;
}

.movie-card-compact .card-body {
  padding: 12px;
}

.movie-card-compact h3 {
  font-size: 15px;
}

.movie-card-compact p,
.movie-card-compact .tag-row,
.movie-card-compact .duration {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--gray-200);
  background: #ffffff;
}

.footer-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
  padding: 34px 0;
  color: var(--gray-600);
}

.footer-logo {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--amber-900);
  font-size: 22px;
  font-weight: 900;
}

.footer-links strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.footer-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

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

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

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

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

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

  .ranking-box,
  .related-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-nav {
    min-height: 64px;
  }

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

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--amber-200);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-primary {
    flex-direction: column;
    align-items: stretch;
  }

  .site-search {
    width: 100%;
  }

  .search-results {
    left: 0;
    right: auto;
    width: 100%;
  }

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

  .hero-arrow {
    display: none;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 74px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .site-stats,
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .filter-panel,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .soft-panel {
    padding: 24px;
  }

  .section-header,
  .update-row,
  .detail-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .update-row img {
    width: 100%;
    height: 160px;
  }

  .update-meta {
    white-space: normal;
  }

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-main {
    min-height: auto;
    padding-top: 40px;
  }

  .detail-poster {
    width: 190px;
  }

  .movie-facts dl div {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .brand-text small {
    display: none;
  }

  .hero-tags span {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
