:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #14213b;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --teal-300: #5eead4;
  --teal-500: #14b8a6;
  --border: rgba(148, 163, 184, 0.22);
  --panel: rgba(30, 41, 59, 0.58);
  --panel-strong: rgba(15, 23, 42, 0.82);
  --shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-100);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.13), transparent 32rem),
    linear-gradient(135deg, var(--slate-900), var(--slate-800) 45%, var(--slate-900));
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  width: min(1280px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.22);
}

.brand-text,
.footer-brand {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, var(--emerald-400), var(--teal-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--emerald-400);
}

.search-panel {
  position: relative;
  width: min(320px, 28vw);
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.search-input,
.filter-input,
.filter-select {
  width: 100%;
  color: white;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  outline: none;
  padding: 11px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  background: rgba(15, 23, 42, 0.95);
}

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

.search-results.open {
  display: grid;
  gap: 8px;
}

.search-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  color: var(--gray-300);
  transition: background 0.2s ease, color 0.2s ease;
}

.search-item:hover {
  color: white;
  background: rgba(30, 41, 59, 0.84);
}

.search-item img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.search-item strong {
  display: block;
  margin-bottom: 4px;
  color: white;
}

.search-item span {
  color: var(--gray-400);
  font-size: 0.85rem;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.9);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gray-100);
}

main {
  padding-top: 64px;
}

.hero-slider {
  position: relative;
  height: min(620px, calc(100vh - 64px));
  min-height: 520px;
  overflow: hidden;
}

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

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.82) 44%, rgba(15, 23, 42, 0.2)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.02) 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
  margin-left: max(16px, calc((100vw - 1280px) / 2));
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--emerald-400);
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald-400);
  box-shadow: 0 0 18px var(--emerald-400);
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  color: var(--gray-300);
  font-size: clamp(1rem, 2vw, 1.3rem);
  line-height: 1.75;
}

.hero-tags,
.detail-tags,
.poster-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.poster-tags span {
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  padding: 5px 11px;
  color: var(--emerald-300);
  background: rgba(16, 185, 129, 0.16);
  font-size: 0.82rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.feature-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.feature-copy a {
  color: white;
  background: linear-gradient(90deg, var(--emerald-500), var(--teal-500));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.22);
}

.primary-button:hover,
.feature-copy a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 38px rgba(16, 185, 129, 0.38);
}

.ghost-button {
  color: var(--gray-100);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.58);
}

.ghost-button:hover {
  background: rgba(30, 41, 59, 0.92);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.feature-arrow,
.rail-buttons button {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.76);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  font-size: 1.6rem;
}

.hero-arrow:hover,
.feature-arrow:hover,
.rail-buttons button:hover {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.22);
}

.hero-dots,
.feature-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot,
.feature-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--slate-600);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active,
.feature-dot.active {
  width: 30px;
  background: var(--emerald-500);
}

.content-section,
.page-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-head h2,
.article-panel h2,
.footer-inner h2 {
  margin: 0;
  color: white;
}

.section-head h2,
.article-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.section-head a {
  color: var(--emerald-400);
  font-weight: 700;
}

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

.movie-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.1);
  background: rgba(30, 41, 59, 0.78);
}

.poster-frame {
  position: relative;
  height: 280px;
  margin: 0;
  overflow: hidden;
  background: var(--slate-850);
}

.movie-card.large .poster-frame {
  height: 340px;
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.2), transparent);
}

.poster-tags {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.06rem;
  transition: color 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.movie-card:hover h3 {
  color: var(--emerald-400);
}

.movie-body p {
  height: 44px;
  margin: 0 0 14px;
  color: var(--gray-400);
  font-size: 0.93rem;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: var(--gray-500);
  font-size: 0.84rem;
}

.feature-section {
  width: 100%;
  padding-left: max(16px, calc((100vw - 1280px) / 2));
  padding-right: max(16px, calc((100vw - 1280px) / 2));
  background: rgba(30, 41, 59, 0.25);
}

.feature-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.feature-stage {
  position: relative;
  height: 440px;
  background: var(--slate-850);
}

.feature-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

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

.feature-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.42), transparent);
}

.feature-copy {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 2;
  max-width: 760px;
}

.feature-copy h3 {
  margin: 0 0 10px;
  color: white;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.feature-copy p {
  margin: 0 0 18px;
  color: var(--gray-300);
  line-height: 1.7;
}

.feature-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.feature-arrow.left {
  left: 18px;
}

.feature-arrow.right {
  right: 18px;
}

.feature-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  transform: translateX(-50%);
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--panel);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  transition: opacity 0.2s ease, transform 0.35s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.35));
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
}

.category-tile p {
  margin: 8px 0 0;
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.55;
}

.category-tile:hover img {
  opacity: 0.55;
  transform: scale(1.07);
}

.movie-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px 22px;
  scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
  display: none;
}

.rail-card {
  flex: 0 0 320px;
}

.rail-buttons {
  display: flex;
  gap: 8px;
}

.rail-buttons button {
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
}

.ranking-preview .rank-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.54);
}

.rank-row span {
  color: var(--emerald-400);
  font-size: 1.2rem;
  font-weight: 900;
}

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

.rank-row strong {
  display: block;
  color: white;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-row em {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-style: normal;
  font-size: 0.84rem;
}

.page-main {
  padding-top: 100px;
  padding-bottom: 80px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(30px, 7vw, 68px);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(20, 184, 166, 0.05)),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.page-hero.compact h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--gray-400);
  font-size: 0.92rem;
}

.crumb a {
  color: var(--emerald-400);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 14px;
  margin: 28px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
}

.filter-select {
  border-radius: 14px;
}

.empty-state {
  margin: 42px 0;
  color: var(--gray-400);
  text-align: center;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
}

.overview-cover {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
}

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

.overview-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88), transparent);
}

.overview-cover span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  color: white;
  font-weight: 800;
}

.category-overview-card h2 {
  margin: 8px 0 10px;
  color: white;
}

.category-overview-card p {
  margin: 0 0 18px;
  color: var(--gray-400);
  line-height: 1.65;
}

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

.overview-links a {
  color: var(--gray-300);
  transition: color 0.2s ease;
}

.overview-links a:hover {
  color: var(--emerald-400);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  box-shadow: 0 10px 22px rgba(16, 185, 129, 0.35);
}

.player-shell {
  margin-bottom: 28px;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: black;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.16), rgba(2, 6, 23, 0.3));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
  font-size: 2rem;
  box-shadow: 0 22px 50px rgba(16, 185, 129, 0.38);
}

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

.detail-card {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
}

.detail-poster img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin: 0 0 16px;
  color: white;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-bottom: 18px;
  color: var(--gray-400);
}

.detail-tags {
  margin-bottom: 22px;
}

.lead {
  margin: 0;
  color: var(--gray-300);
  font-size: 1.1rem;
  line-height: 1.75;
}

.article-panel {
  margin-bottom: 46px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.66);
}

.article-panel h2 {
  margin: 0 0 14px;
}

.article-panel p {
  margin: 0 0 26px;
  color: var(--gray-300);
  line-height: 1.85;
}

.article-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.82);
}

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

.footer-inner p {
  color: var(--gray-400);
  line-height: 1.7;
}

.footer-inner h2 {
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

.footer-links a:hover {
  color: var(--emerald-400);
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  color: var(--gray-500);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

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

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

@media (max-width: 860px) {
  .site-nav {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 12px;
  }

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

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

  .site-header.menu-open .nav-menu {
    display: flex;
  }

  .nav-link {
    padding: 12px 0;
  }

  .search-panel {
    width: 100%;
    order: 5;
  }

  main {
    padding-top: 118px;
  }

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

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

  .hero-content {
    margin-left: auto;
    padding: 0 8px;
  }

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

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

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

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .content-section,
  .page-main,
  .footer-inner,
  .copyright {
    width: min(100% - 24px, 1280px);
  }

  .movie-grid,
  .category-grid,
  .ranking-preview .rank-list,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .poster-frame {
    height: 360px;
  }

  .feature-stage {
    height: 520px;
  }

  .feature-copy {
    left: 18px;
    right: 18px;
  }

  .feature-arrow {
    display: none;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.035em;
  }

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

  .detail-card,
  .article-panel,
  .page-hero {
    padding: 22px;
  }
}
