:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-950: #451a03;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(41, 37, 36, 0.12);
  --shadow-card: 0 12px 30px rgba(41, 37, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-900);
  background: linear-gradient(180deg, var(--stone-50) 0%, rgba(255, 251, 235, 0.78) 45%, var(--stone-100) 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(69, 26, 3, 0.96), rgba(120, 53, 15, 0.94), rgba(28, 25, 23, 0.96));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-50);
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-200), var(--amber-500));
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(251, 191, 36, 0.34);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.brand-copy em {
  margin-top: 5px;
  color: var(--amber-200);
  font-size: 12px;
  font-style: normal;
}

.top-search {
  position: relative;
  flex: 1 1 auto;
  max-width: 420px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(253, 230, 138, 0.28);
  border-radius: 999px;
  background: rgba(69, 26, 3, 0.48);
  overflow: hidden;
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 14px 11px 18px;
  color: var(--amber-50);
  background: transparent;
}

.top-search input::placeholder {
  color: rgba(253, 230, 138, 0.64);
}

.top-search button,
.search-page-form button {
  border: 0;
  padding: 10px 18px;
  color: var(--white);
  background: var(--amber-600);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.search-page-form button:hover {
  background: var(--amber-700);
  transform: translateY(-1px);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  color: var(--amber-50);
}

.top-nav > a,
.nav-drop > a {
  padding: 8px 0;
  font-weight: 700;
  font-size: 15px;
  transition: color 0.2s ease;
}

.top-nav a:hover,
.top-nav .is-active {
  color: var(--amber-200);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 168px;
  padding: 8px;
  border-radius: 14px;
  background: var(--white);
  color: var(--stone-700);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.nav-drop-menu a:hover {
  background: var(--amber-50);
  color: var(--amber-800);
}

.menu-toggle {
  display: none;
  border: 0;
  color: var(--amber-50);
  background: transparent;
  font-size: 24px;
}

.hero {
  position: relative;
  height: clamp(430px, 58vw, 640px);
  overflow: hidden;
  background: var(--stone-900);
}

.hero-slides,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.45) 48%, rgba(0, 0, 0, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(56px, 8vw, 92px);
  color: var(--white);
}

.hero-kicker,
.page-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--amber-200);
  background: rgba(180, 83, 9, 0.28);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero h1 {
  width: min(720px, 100%);
  margin: 18px 0 16px;
  font-size: clamp(34px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  width: min(660px, 100%);
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
}

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

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

.btn-primary {
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.4);
}

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

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

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

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

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

.section-heading > div {
  min-width: 0;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: var(--amber-100);
  color: var(--amber-700);
}

.section-heading h2 {
  margin: 0;
  color: var(--stone-900);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--stone-600);
}

.section-more {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 800;
}

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

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

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

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

.movie-card.is-hidden,
.wide-card.is-hidden,
.rank-page-item.is-hidden {
  display: none;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--amber-50), var(--stone-100));
  box-shadow: 0 10px 28px rgba(41, 37, 36, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-950), var(--stone-800));
}

.movie-card-large .movie-cover {
  aspect-ratio: 16 / 8.8;
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card-link:hover .movie-cover img,
.wide-card-link:hover img,
.category-overview-card:hover img {
  transform: scale(1.08);
}

.movie-cover-shade {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  gap: 8px;
  padding: 34px 13px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
  font-size: 12px;
  font-weight: 700;
}

.movie-cover-shade span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

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

.movie-card-body h3 {
  margin: 0 0 9px;
  color: var(--stone-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card-large .movie-card-body h3 {
  font-size: 21px;
}

.movie-card-link:hover h3 {
  color: var(--amber-800);
}

.movie-card-body p {
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  min-height: 3.3em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.movie-card-meta {
  justify-content: space-between;
  margin-bottom: 10px;
}

.type-pill,
.tag-pill,
.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.type-pill {
  color: var(--stone-700);
  background: var(--stone-200);
}

.tag-pill,
.detail-tag {
  color: var(--amber-800);
  background: var(--amber-100);
}

.genre-text {
  color: var(--stone-500);
  font-size: 12px;
}

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

.rank-box,
.side-card,
.text-panel,
.player-card,
.search-page-form,
.category-overview-card,
.page-hero {
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.rank-box {
  position: sticky;
  top: 98px;
  overflow: hidden;
}

.rank-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-800));
  font-weight: 900;
}

.rank-box-head a {
  color: var(--amber-100);
  font-size: 13px;
}

.rank-list,
.side-rank,
.rank-page-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compact-rank li + li,
.side-rank li + li {
  border-top: 1px solid var(--stone-200);
}

.compact-rank a,
.side-rank a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
}

.compact-rank strong,
.side-rank span {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--amber-800);
  background: var(--amber-100);
  font-size: 12px;
}

.compact-rank span {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
}

.compact-rank em {
  color: var(--stone-500);
  font-size: 12px;
  font-style: normal;
}

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

.category-tile {
  display: block;
  min-height: 150px;
  padding: 22px;
  border-radius: 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--stone-800));
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile span {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.7;
}

.wide-list {
  display: grid;
  gap: 16px;
}

.wide-card-link {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(41, 37, 36, 0.08);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.wide-card-link:hover {
  background: var(--amber-50);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.wide-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--stone-200);
}

.wide-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.wide-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.wide-info p {
  margin: 0 0 11px;
  color: var(--stone-600);
  line-height: 1.7;
}

.wide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 13px;
}

.wide-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--stone-100);
}

.page-hero {
  margin-top: 34px;
  padding: 38px;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.45), transparent 32%), linear-gradient(135deg, var(--amber-700), var(--stone-900));
  overflow: hidden;
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

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

.filter-bar {
  margin-bottom: 24px;
}

.filter-bar input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  outline: 0;
  padding: 14px 18px;
  color: var(--stone-800);
  background: var(--white);
  box-shadow: 0 8px 20px rgba(41, 37, 36, 0.06);
}

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

.category-overview-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-overview-card a {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 220px;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  overflow: hidden;
  background: var(--stone-200);
}

.category-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-overview-body {
  padding: 26px;
}

.category-overview-body h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.category-overview-body p {
  margin: 0 0 22px;
  color: var(--stone-600);
  line-height: 1.8;
}

.category-overview-body span {
  color: var(--amber-700);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  filter: blur(8px);
  transform: scale(1.04);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.96));
}

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

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

.detail-poster {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

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

.detail-copy h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.85;
}

.detail-tags,
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.detail-meta-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.detail-meta-list span {
  color: var(--amber-200);
}

.detail-meta-list strong,
.detail-meta-list a {
  color: var(--white);
}

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

.detail-primary,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--black);
}

.movie-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--black);
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: 0 18px 44px rgba(217, 119, 6, 0.46);
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-start:hover {
  background: var(--amber-700);
  transform: scale(1.06);
}

.text-panel {
  padding: 26px;
}

.text-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.text-panel p {
  margin: 0;
  color: var(--stone-700);
  font-size: 16px;
  line-height: 1.95;
}

.side-card {
  padding: 22px;
}

.side-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--stone-200);
}

.side-card dt {
  color: var(--stone-500);
}

.side-card dd {
  margin: 0;
  color: var(--stone-900);
  font-weight: 800;
}

.side-rank a {
  padding-left: 0;
  padding-right: 0;
  font-weight: 800;
}

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

.rank-page-item a {
  display: grid;
  grid-template-columns: 58px 140px minmax(0, 1fr) minmax(180px, 0.9fr) 120px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(41, 37, 36, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-page-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.rank-page-item strong {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  color: var(--amber-800);
  background: var(--amber-100);
}

.rank-page-item img {
  width: 140px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}

.rank-title {
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.6;
}

.rank-page-item em {
  color: var(--stone-500);
  font-style: normal;
  font-size: 13px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
}

.search-result-title {
  margin: 0 0 22px;
  color: var(--stone-700);
  font-weight: 800;
}

.site-footer {
  margin-top: 44px;
  color: var(--amber-100);
  background: linear-gradient(135deg, var(--amber-950), var(--stone-900));
}

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

.footer-about h2,
.footer-links h3 {
  margin: 0 0 14px;
  color: var(--amber-50);
}

.footer-about p {
  margin: 0;
  color: rgba(253, 230, 138, 0.72);
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(253, 230, 138, 0.76);
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(253, 230, 138, 0.16);
  color: rgba(253, 230, 138, 0.56);
  font-size: 14px;
}

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

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

  .rank-box {
    position: static;
  }

  .category-overview-card a,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .category-thumbs {
    min-height: 230px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .brand-copy em {
    display: none;
  }

  .top-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

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

  .top-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 8px;
  }

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

  .nav-drop-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
  }

  .hero-control {
    display: none;
  }

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

  .wide-card-link,
  .rank-page-item a {
    grid-template-columns: 1fr;
  }

  .wide-thumb,
  .rank-page-item img {
    width: 100%;
  }

  .rank-desc,
  .rank-page-item em {
    display: block;
  }

  .detail-layout {
    gap: 24px;
  }

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

@media (max-width: 540px) {
  .shell,
  .header-inner,
  .hero-content,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    height: 560px;
  }

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

  .btn {
    width: 100%;
  }

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

  .page-hero,
  .text-panel,
  .side-card {
    padding: 22px;
  }

  .search-page-form {
    grid-template-columns: 1fr;
  }

  .player-start {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
