@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;700;900&display=swap");

:root {
  --sunrise-50: #fff7ed;
  --sunrise-100: #ffedd5;
  --sunrise-300: #fdba74;
  --sunrise-400: #fb923c;
  --sunrise-500: #ff6916;
  --sunrise-600: #ea580c;
  --sunrise-700: #c2410c;
  --morning-500: #f59e0b;
  --dawn-50: #fffaf0;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --dark: #111827;
  --dark-2: #1f2937;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 24px 80px rgba(15, 23, 42, 0.22);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--dawn-50), #ffffff 28%, #f8fafc 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  box-shadow: 0 12px 28px rgba(255, 105, 22, 0.35);
}

.brand-name {
  font-size: 24px;
  line-height: 1;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
  font-size: 15px;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--sunrise-600);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 6s ease;
}

.hero-slide.is-active img {
  transform: scale(1.09);
}

.hero-slide.image-missing {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 105, 22, 0.38), transparent 30%),
    radial-gradient(circle at 74% 18%, rgba(245, 158, 11, 0.28), transparent 26%),
    linear-gradient(135deg, #111827, #431407 55%, #0f172a);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0.12)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 48%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2));
  right: 24px;
  bottom: clamp(40px, 8vw, 100px);
  width: min(680px, calc(100% - 48px));
  color: #ffffff;
  animation: fadeUp 0.7s ease both;
}

.hero-kicker,
.eyebrow,
.section-title span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sunrise-500);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: #fed7aa;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-content h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  max-width: 620px;
  margin: 0 0 26px;
  color: #e5e7eb;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  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: #ffffff;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  box-shadow: 0 16px 35px rgba(255, 105, 22, 0.38);
}

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

.hero-pills {
  margin-top: 22px;
}

.hero-pills span,
.meta-pills span,
.meta-pills a {
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-pills span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 38px;
  line-height: 1;
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-nav.prev {
  left: 22px;
}

.hero-nav.next {
  right: 22px;
}

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

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

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

.search-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.search-strip-inner {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.search-strip strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
}

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

.mini-search {
  flex: 0 1 500px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f9fafb;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.mini-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 20px;
  background: transparent;
}

.mini-search button {
  border: 0;
  padding: 13px 24px;
  color: #ffffff;
  font-weight: 900;
  background: var(--sunrise-500);
}

.page-section {
  padding: 72px 0;
}

.soft-section {
  background: linear-gradient(135deg, var(--sunrise-50), #fff7ed 36%, #ffffff);
}

.dark-section {
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

.section-title h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-action {
  color: var(--sunrise-600);
  font-weight: 900;
}

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

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

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

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

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

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

.movie-card a {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card a:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 105, 22, 0.35), transparent 34%),
    linear-gradient(135deg, #111827, #431407 70%);
}

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

.poster-frame img,
.category-collage img,
.compact-cover img,
.ranking-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card a:hover .poster-frame img,
.category-card a:hover img,
.compact-card:hover img,
.ranking-row a:hover img {
  transform: scale(1.08);
}

img.is-missing {
  opacity: 0;
}

.poster-badge,
.poster-year {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.poster-badge {
  left: 12px;
  background: var(--sunrise-500);
}

.poster-year {
  right: 12px;
  background: rgba(0, 0, 0, 0.48);
}

.card-content {
  padding: 16px;
}

.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--sunrise-700);
  background: var(--sunrise-100);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.card-line {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.card-meta {
  margin: 0 0 7px;
}

.card-line {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-stack {
  display: grid;
  gap: 38px;
}

.category-rail {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.rail-heading {
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rail-heading h3 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.rail-heading p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.rail-heading a {
  color: var(--sunrise-600);
  font-weight: 900;
}

.movie-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 190px;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  scrollbar-width: thin;
}

.rail-card .card-content {
  padding: 13px;
}

.rail-card h3 {
  font-size: 16px;
}

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

.rank-panel,
.sticky-card,
.text-card,
.detail-card,
.filter-box {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.rank-panel h2,
.sticky-card h2,
.detail-card h2,
.text-card h2 {
  margin: 8px 0 18px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  background: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: var(--sunrise-50);
  transform: translateX(3px);
}

.compact-cover {
  position: relative;
  overflow: hidden;
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.rank-num {
  position: absolute;
  left: 6px;
  top: 6px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--sunrise-500);
  font-size: 11px;
  font-weight: 900;
}

.compact-info {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.compact-info strong,
.compact-info small,
.compact-info em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-info em,
.compact-info small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.page-hero {
  padding: 70px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 105, 22, 0.35), transparent 28%),
    linear-gradient(135deg, #111827, #7c2d12 58%, #1f2937);
}

.page-hero h1 {
  max-width: 900px;
  margin: 10px 0 16px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #f3f4f6;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card a {
  display: block;
  overflow: hidden;
  height: 100%;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.category-collage img {
  min-width: 0;
  height: 100%;
}

.category-card-body {
  padding: 20px;
}

.category-card-body span {
  color: var(--sunrise-600);
  font-weight: 900;
}

.category-card-body h2 {
  margin: 8px 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.category-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.filter-box {
  padding: 22px;
  margin-bottom: 26px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(130px, 1fr));
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  padding: 0 14px;
  background: #f9fafb;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--sunrise-500);
  box-shadow: 0 0 0 4px rgba(255, 105, 22, 0.12);
}

.filter-summary {
  margin-top: 14px;
  color: var(--muted);
}

.filter-summary span {
  color: var(--sunrise-600);
  font-weight: 900;
}

.filter-empty {
  margin: 18px 0 0;
  padding: 16px;
  border-radius: 14px;
  color: #92400e;
  background: #fffbeb;
}

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

.ranking-row a {
  display: grid;
  grid-template-columns: 64px 118px minmax(0, 1fr) 90px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-number {
  color: var(--sunrise-500);
  font-size: 24px;
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  background: linear-gradient(135deg, #111827, #7c2d12);
}

.ranking-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-body strong {
  font-size: 18px;
}

.ranking-body em,
.ranking-body small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.ranking-score {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  font-weight: 900;
}

.player-hero {
  padding: 42px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 105, 22, 0.25), transparent 30%),
    linear-gradient(135deg, #030712, #111827 58%, #431407);
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: center;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64));
  font-size: 22px;
  font-weight: 900;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
  width: 72px;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sunrise-500), var(--morning-500));
  box-shadow: 0 18px 40px rgba(255, 105, 22, 0.36);
}

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

.player-message {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 5;
  padding: 14px 16px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.player-side h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.player-side p {
  color: #e5e7eb;
  line-height: 1.8;
  font-size: 17px;
}

.meta-pills span,
.meta-pills a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--sunrise-600);
  font-weight: 800;
}

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

.detail-card {
  padding: 26px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.lead-text {
  margin-top: 0;
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 700;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-meta-grid p {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.detail-meta-grid strong {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid span {
  color: var(--ink);
  font-weight: 800;
}

.detail-sidebar {
  min-width: 0;
}

.sticky-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.narrow-content {
  max-width: 900px;
}

.text-card {
  padding: 32px;
}

.text-card p {
  color: #374151;
  line-height: 1.9;
  font-size: 17px;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

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

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

.footer-grid p {
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.footer-grid a:hover {
  color: var(--sunrise-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  text-align: center;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

  .rank-panel,
  .sticky-card {
    position: static;
  }

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

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

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

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

  .hero-content {
    left: 20px;
    bottom: 72px;
    width: calc(100% - 40px);
  }

  .hero-nav {
    display: none;
  }

  .search-strip-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .mini-search {
    flex-basis: auto;
  }

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

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

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

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

  .ranking-score {
    grid-column: 3;
    justify-self: start;
  }

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

@media (max-width: 560px) {
  .container,
  .nav-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

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

  .page-section {
    padding: 48px 0;
  }

  .featured-grid,
  .movie-grid,
  .latest-grid,
  .all-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .filter-row,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .movie-rail {
    grid-auto-columns: 72%;
  }

  .hero-content h1,
  .page-hero h1,
  .player-side h1 {
    letter-spacing: -0.04em;
  }

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

  .btn {
    width: 100%;
  }

  .player-start {
    flex-direction: column;
    font-size: 18px;
  }

  .player-start span {
    width: 60px;
    height: 60px;
  }

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