
:root {
  --amber-50: #fffbeb;
  --rose-50: #fff1f2;
  --sky-50: #f0f9ff;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --purple-600: #9333ea;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-900);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, var(--amber-50), var(--rose-50) 48%, var(--sky-50));
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.92), rgba(255, 241, 242, 0.92), rgba(240, 249, 255, 0.92));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.25);
}

.brand-text {
  font-size: 25px;
  background: linear-gradient(90deg, var(--amber-600), var(--rose-600), var(--sky-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-700);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--rose-600);
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--gray-700);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 0 0 18px 18px;
}

.mobile-link {
  display: block;
  padding: 10px 4px;
}

main {
  min-height: 70vh;
}

.page-main {
  padding-top: 68px;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

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

.hero-slide img.image-empty,
.detail-bg img.image-empty,
.detail-poster img.image-empty,
.poster-wrap img.image-empty,
.compact-card img.image-empty,
.ranking-row img.image-empty,
.category-card img.image-empty {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.95), rgba(136, 19, 55, 0.82), rgba(12, 74, 110, 0.72));
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(900px, calc(100% - 32px));
  margin: 80px auto 0;
  color: var(--white);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h2,
.quick-search-card h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-content p:not(.eyebrow),
.quick-search-card p,
.page-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 22px auto 0;
  color: #ffedd5;
  font-size: clamp(17px, 2.4vw, 24px);
  line-height: 1.7;
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff7ed;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.small-actions {
  justify-content: flex-start;
}

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

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.28);
}

.btn.ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.30);
  backdrop-filter: blur(12px);
}

.btn.text {
  color: #fde68a;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
}

.quick-search-shell {
  margin-top: -70px;
  position: relative;
  z-index: 10;
}

.quick-search-card {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 28px;
  align-items: center;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.quick-search-card h1 {
  font-size: clamp(27px, 4vw, 46px);
  background: linear-gradient(90deg, var(--amber-600), var(--rose-600), var(--sky-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quick-search-card p {
  margin: 14px 0 0;
  color: var(--gray-600);
  font-size: 16px;
}

.quick-search {
  display: flex;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.24), var(--soft-shadow);
}

.quick-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--gray-700);
  background: transparent;
}

.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  color: var(--white);
  font-weight: 800;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

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

.section-title.compact {
  align-items: center;
  margin-bottom: 22px;
}

.section-title p {
  margin: 0 0 5px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--rose-600), var(--sky-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title a {
  color: var(--gray-600);
  font-weight: 800;
}

.section-title a:hover {
  color: var(--rose-600);
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-link:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f59e0b, #f43f5e 52%, #0ea5e9);
}

.poster-wrap.large {
  aspect-ratio: 16 / 9;
}

.poster-wrap.normal {
  aspect-ratio: 16 / 10;
}

.poster-wrap img,
.compact-card img,
.ranking-row img,
.category-card img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.rank-badge {
  left: 14px;
  top: 14px;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 900;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-link:hover h3 {
  color: var(--rose-600);
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 800;
}

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

.tag-row {
  justify-content: flex-start;
  margin-top: 12px;
}

.tag-row span {
  color: var(--rose-600);
  background: #fff1f2;
  padding: 6px 9px;
  font-size: 12px;
}

.soft-panel {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(14px);
}

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

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

.category-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f59e0b, #f43f5e 50%, #0ea5e9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-card img {
  position: absolute;
  inset: 0;
}

.category-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.78));
}

.category-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 22px;
  color: var(--white);
}

.category-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
}

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

.category-content em {
  display: block;
  margin-top: 8px;
  color: #e5e7eb;
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

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

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.compact-card {
  display: grid;
  grid-template-columns: 34px 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, #fffbeb, #fff1f2);
}

.compact-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.compact-rank.subtle {
  color: var(--rose-600);
  background: #fff1f2;
}

.compact-card img {
  width: 62px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

.compact-body {
  min-width: 0;
}

.compact-body strong,
.compact-body em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-body strong {
  font-size: 14px;
  font-weight: 900;
}

.compact-body em {
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.compact-score {
  color: var(--amber-600);
  font-weight: 900;
}

.category-showcase {
  display: grid;
  gap: 50px;
}

.home-category-block,
.category-preview {
  padding: 30px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: var(--soft-shadow);
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 56px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background: linear-gradient(120deg, rgba(120, 53, 15, 0.95), rgba(136, 19, 55, 0.90), rgba(12, 74, 110, 0.86));
}

.page-hero.compact-hero {
  min-height: 330px;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.45;
}

.page-hero::before {
  width: 320px;
  height: 320px;
  left: -90px;
  top: -90px;
  background: #f59e0b;
}

.page-hero::after {
  width: 280px;
  height: 280px;
  right: -60px;
  bottom: -90px;
  background: #0ea5e9;
}

.page-hero > div {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
}

.page-hero h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.page-hero p:not(.eyebrow) {
  color: #ffedd5;
  font-size: clamp(16px, 2vw, 21px);
}

.lead-text {
  margin: -10px 0 24px;
  color: var(--gray-600);
  line-height: 1.8;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.filter-fields {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(130px, 1fr));
  gap: 14px;
  align-items: end;
}

.filter-fields label {
  display: grid;
  gap: 7px;
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 900;
}

.filter-input,
.filter-select,
.sort-select {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  outline: 0;
  padding: 0 12px;
  color: var(--gray-700);
  background: var(--white);
}

.filter-input:focus,
.filter-select:focus,
.sort-select:focus {
  border-color: rgba(244, 63, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.10);
}

.filter-card.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-900);
}

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

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

.detail-bg span {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(136, 19, 55, 0.74), rgba(12, 74, 110, 0.72));
  backdrop-filter: blur(3px);
}

.detail-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 60px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
}

.breadcrumbs em {
  color: #e5e7eb;
  font-style: normal;
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #f59e0b, #f43f5e 52%, #0ea5e9);
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.detail-one-line {
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.detail-tags {
  justify-content: flex-start;
  margin-top: 20px;
}

.player-card,
.story-card {
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.player-card {
  overflow: hidden;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  background: linear-gradient(90deg, #111827, #1e293b);
  color: var(--white);
}

.player-head p {
  margin: 0 0 4px;
  color: #fbbf24;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-head h2 {
  margin: 0;
  font-size: 23px;
}

.player-head span {
  color: #fed7aa;
  font-weight: 800;
}

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

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 999px;
  padding-left: 7px;
  font-size: 42px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
  box-shadow: 0 22px 44px rgba(244, 63, 94, 0.28);
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

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

.article-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.story-card {
  padding: 30px;
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 27px;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rose-600), var(--sky-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-card p {
  margin: 0;
  color: var(--gray-700);
  font-size: 16px;
  line-height: 1.9;
}

.prev-next {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.prev-next a {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.prev-next span,
.prev-next strong {
  display: block;
}

.prev-next span {
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 900;
}

.prev-next strong {
  margin-top: 6px;
  color: var(--gray-900);
  font-size: 18px;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 52px 96px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.ranking-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.ranking-row img {
  width: 96px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #f43f5e);
}

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

.ranking-main strong,
.ranking-main em,
.ranking-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main strong {
  font-size: 18px;
  font-weight: 900;
}

.ranking-main em {
  margin-top: 5px;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.ranking-main small {
  margin-top: 5px;
  color: var(--gray-600);
  font-size: 13px;
}

.ranking-score {
  color: var(--amber-600);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #111827, #1e293b, #0f172a);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 34px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
}

.site-footer p {
  margin: 16px 0 0;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 17px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 10px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1080px) {
  .movie-grid.featured,
  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .rank-panel {
    position: static;
  }

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

  .filter-search {
    grid-column: 1 / -1;
  }
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

  .hero-content {
    text-align: left;
  }

  .hero-tags,
  .hero-actions {
    justify-content: flex-start;
  }

  .quick-search-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .quick-search {
    display: grid;
    gap: 8px;
    border-radius: 20px;
  }

  .quick-search input,
  .quick-search button {
    min-height: 44px;
  }

  .movie-grid.featured,
  .movie-grid.three,
  .movie-grid.four,
  .category-grid,
  .category-grid.wide,
  .filter-fields,
  .prev-next {
    grid-template-columns: 1fr;
  }

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

  .detail-shell {
    padding-top: 92px;
  }

  .detail-grid {
    gap: 24px;
  }

  .detail-poster {
    width: min(260px, 100%);
  }

  .ranking-row a {
    grid-template-columns: 42px 72px minmax(0, 1fr);
  }

  .ranking-row img {
    width: 72px;
    height: 52px;
  }

  .ranking-score {
    display: none;
  }

  .player-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
