:root {
  --amber-50: #fff8eb;
  --amber-100: #ffedcc;
  --amber-200: #fedc8a;
  --amber-400: #f59e0b;
  --amber-500: #f97316;
  --orange-500: #ea580c;
  --orange-600: #c2410c;
  --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;
  --shadow-soft: 0 18px 45px rgba(146, 64, 14, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50) 0%, #ffffff 36%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 247, 237, 0.96));
  border-bottom: 1px solid rgba(251, 146, 60, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
  transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(2deg);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(90deg, #b45309, var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  display: block;
  margin-top: 2px;
  color: var(--gray-500);
  font-size: 12px;
}

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

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.14);
  color: var(--gray-800);
}

.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.32), transparent 34%),
    radial-gradient(circle at 90% 20%, rgba(249, 115, 22, 0.18), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 44px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-kicker,
.detail-kicker {
  align-self: flex-start;
  padding: 8px 14px;
  color: var(--orange-600);
  background: linear-gradient(90deg, #ffedd5, #fef3c7);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #b45309, var(--orange-500), #d97706);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  max-width: 680px;
}

.hero-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

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

.hero-search button,
.btn,
.cta-inner a,
.category-overview-head a,
.side-link,
.hero-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-search button,
.btn.primary,
.cta-inner a,
.category-overview-head a,
.hero-detail {
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-400));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.hero-search button {
  padding: 13px 22px;
}

.btn {
  min-height: 50px;
  padding: 0 24px;
}

.btn.secondary {
  color: var(--gray-700);
  background: var(--white);
  border: 2px solid rgba(251, 146, 60, 0.28);
}

.btn.ghost {
  color: var(--orange-600);
  background: #fff7ed;
}

.hero-search button:hover,
.btn:hover,
.cta-inner a:hover,
.category-overview-head a:hover,
.side-link:hover,
.hero-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(249, 115, 22, 0.26);
}

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

.hero-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-mini-links a,
.related-cats a {
  display: inline-flex;
  padding: 9px 13px;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-stage {
  position: relative;
}

.hero-glow {
  position: absolute;
  inset: -18px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.28), rgba(245, 158, 11, 0.22));
  filter: blur(26px);
  border-radius: 34px;
}

.hero-slides {
  position: relative;
  height: 510px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.22);
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.65s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.28) 58%, rgba(15, 23, 42, 0.05));
}

.hero-slide-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: var(--white);
}

.hero-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  background: rgba(249, 115, 22, 0.94);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-slide h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
}

.hero-slide p {
  max-width: 620px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-detail {
  padding: 11px 18px;
}

.hero-controls {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-controls button {
  width: 42px;
  height: 42px;
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  backdrop-filter: blur(12px);
  font-size: 30px;
  line-height: 1;
}

.hero-thumbs {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  color: var(--gray-700);
  box-shadow: 0 8px 18px rgba(124, 45, 18, 0.08);
}

.hero-thumb.is-active {
  color: var(--orange-600);
  border-color: rgba(249, 115, 22, 0.62);
  background: #fff7ed;
}

.hero-thumb img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
}

.hero-thumb span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 800;
}

.section {
  padding: 70px 0;
}

.section.soft {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.9));
}

.section.warm {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.9), rgba(254, 243, 199, 0.9), rgba(255, 237, 213, 0.9));
}

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

.section-heading h2,
.rank-title h2,
.story-card h2,
.detail-side h2,
.cta-inner h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--gray-500);
}

.section-link,
.rank-title a {
  color: var(--orange-600);
  font-weight: 800;
}

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

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(251, 146, 60, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.36);
  box-shadow: var(--shadow-card);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

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

.poster-badge {
  position: absolute;
  top: 12px;
  max-width: 56%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-badge.left {
  left: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.poster-badge.right {
  right: 12px;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-card h3 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--orange-600);
}

.movie-card p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--gray-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-500);
  font-size: 12px;
}

.movie-card.horizontal {
  flex-direction: row;
}

.movie-card.horizontal .poster-wrap {
  width: 220px;
  flex: 0 0 220px;
  aspect-ratio: auto;
}

.movie-card.horizontal .movie-card-body {
  justify-content: center;
}

.movie-card.minimal {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.movie-card.minimal:hover {
  transform: none;
  box-shadow: none;
}

.movie-card.minimal .poster-wrap {
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.10);
}

.movie-card.minimal .movie-card-body {
  padding: 10px 0 0;
}

.movie-card.minimal p,
.movie-card.minimal .card-meta,
.movie-card.minimal .poster-badge {
  display: none;
}

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

.category-tile {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid rgba(251, 146, 60, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong {
  color: var(--gray-800);
  font-size: 20px;
}

.category-tile span {
  color: var(--gray-600);
  font-size: 14px;
}

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

.rank-panel,
.story-card,
.detail-side,
.filter-card,
.category-overview-card {
  border: 1px solid rgba(251, 146, 60, 0.15);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

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

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.rank-title h2 {
  font-size: 26px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: auto 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.74);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
  background: #ffedd5;
  transform: translateX(4px);
}

.rank-number {
  width: 28px;
  color: var(--orange-600);
  font-weight: 900;
  text-align: center;
}

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

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-info strong {
  color: var(--gray-800);
}

.rank-info small {
  color: var(--gray-500);
  font-size: 12px;
}

.cta-band {
  padding: 70px 0;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-400), var(--orange-500));
}

.cta-inner {
  text-align: center;
}

.cta-inner h2 {
  color: var(--white);
}

.cta-inner p {
  margin: 12px auto 26px;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
}

.cta-inner a {
  min-height: 52px;
  padding: 0 28px;
  color: var(--orange-600);
  background: var(--white);
}

.page-hero,
.detail-hero {
  padding: 58px 0;
  background:
    linear-gradient(90deg, rgba(234, 88, 12, 0.92), rgba(245, 158, 11, 0.9)),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 38%);
  color: var(--white);
}

.page-hero p,
.page-hero h1,
.page-hero span {
  margin: 0;
}

.page-hero p {
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.86;
}

.page-hero h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.16;
}

.page-hero span {
  display: block;
  margin-top: 12px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
}

.filter-card {
  display: grid;
  grid-template-columns: 1fr 170px 170px 170px;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
}

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

.filter-card input,
.filter-card select {
  width: 100%;
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 14px;
  outline: 0;
  padding: 13px 14px;
  color: var(--gray-700);
  background: var(--white);
}

.filter-card input:focus,
.filter-card select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.result-line {
  margin: 0 0 18px;
  color: var(--gray-600);
}

.result-line strong {
  color: var(--orange-600);
}

.empty-state {
  display: none;
  padding: 60px 0;
  color: var(--gray-500);
  text-align: center;
  font-size: 18px;
}

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

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

.category-overview-list {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.category-overview-head h2 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: 28px;
}

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

.category-overview-head a {
  min-height: 44px;
  padding: 0 18px;
}

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

.related-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.rank-page-list .rank-list.large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-hero {
  padding-bottom: 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

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

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

.detail-poster {
  margin: 0;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(124, 45, 18, 0.26);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.detail-meta span,
.tag-list span {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 800;
}

.tag-list span {
  color: var(--orange-600);
  background: #fff7ed;
  border-color: rgba(251, 146, 60, 0.22);
}

.player-wrap {
  padding-top: 0;
  margin-top: -40px;
}

.player-wrap h2 {
  margin: 0 0 18px;
}

.player-section {
  position: relative;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 30px 72px rgba(15, 23, 42, 0.30);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.10));
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.player-start {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-400));
  box-shadow: 0 18px 38px rgba(249, 115, 22, 0.35);
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
}

.player-start span {
  display: block;
  margin-left: 4px;
  font-size: 36px;
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
}

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

.story-card,
.detail-side {
  padding: 28px;
}

.story-card h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

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

.story-card p:last-child {
  margin-bottom: 0;
}

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

.detail-side h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
}

.detail-side dd {
  margin: 0;
  color: var(--gray-800);
  font-weight: 700;
}

.side-link {
  width: 100%;
  min-height: 46px;
  margin-top: 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--orange-500), var(--amber-400));
}

.site-footer {
  border-top: 1px solid rgba(251, 146, 60, 0.18);
  background: linear-gradient(180deg, #fff7ed, #fffbeb);
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--gray-800);
}

.site-footer p {
  margin: 0;
  color: var(--gray-600);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--gray-600);
}

.footer-links a:hover {
  color: var(--orange-600);
}

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(251, 146, 60, 0.18);
  color: var(--gray-500);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-grid,
  .detail-grid,
  .split-layout,
  .content-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .header-inner {
    min-height: 66px;
  }

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
  }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link.active,
  .nav-link:hover {
    background: #fff7ed;
  }

  .hero {
    padding: 34px 0 46px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-search {
    flex-direction: column;
    padding: 10px;
  }

  .hero-search input {
    min-height: 44px;
  }

  .hero-slides {
    height: 430px;
    border-radius: 24px;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
  }

  .hero-thumb:nth-child(n+4) {
    display: none;
  }

  .section {
    padding: 46px 0;
  }

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

  .movie-grid.three,
  .movie-grid.four,
  .all-movies-grid,
  .category-grid,
  .movie-grid.six,
  .category-preview-grid,
  .rank-page-list .rank-list.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .movie-card.horizontal {
    flex-direction: column;
  }

  .movie-card.horizontal .poster-wrap {
    width: 100%;
    flex-basis: auto;
    aspect-ratio: 16 / 9;
  }

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

  .detail-info h1 {
    font-size: 36px;
  }

  .player-start {
    width: 72px;
    height: 72px;
  }

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

@media (max-width: 520px) {
  .movie-grid.three,
  .movie-grid.four,
  .all-movies-grid,
  .category-grid,
  .movie-grid.six,
  .category-preview-grid,
  .rank-page-list .rank-list.large {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-mini-links {
    flex-direction: column;
  }

  .btn,
  .hero-mini-links a {
    width: 100%;
  }

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

  .rank-row img {
    width: 56px;
    height: 42px;
  }
}
