:root {
  --fog-950: #070b12;
  --fog-900: #0d1117;
  --fog-850: #151b23;
  --fog-800: #212529;
  --fog-700: #343a40;
  --fog-600: #495057;
  --fog-500: #6c757d;
  --fog-400: #adb5bd;
  --fog-300: #ced4da;
  --fog-200: #dee2e6;
  --fog-100: #e9ecef;
  --fog-50: #f8f9fa;
  --frost-700: #004080;
  --frost-600: #005ab3;
  --frost-500: #0073e6;
  --frost-400: #1a8cff;
  --frost-300: #66b3ff;
  --mist-900: #102132;
  --mist-800: #243b53;
  --mist-700: #314b66;
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 16px 34px rgba(0, 0, 0, 0.24);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fog-100);
  background:
    radial-gradient(circle at top left, rgba(0, 115, 230, 0.24), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(36, 59, 83, 0.62), transparent 28rem),
    linear-gradient(180deg, var(--fog-950), var(--fog-900) 28rem, var(--fog-950));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(52, 58, 64, 0.9);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(18px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--frost-400), var(--frost-700));
  box-shadow: 0 12px 28px rgba(0, 115, 230, 0.32);
}

.logo-text {
  font-size: 19px;
  color: var(--fog-50);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--fog-700);
  border-radius: 12px;
  background: rgba(33, 37, 41, 0.88);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--fog-100);
  border-radius: 999px;
}

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

.nav-link {
  color: var(--fog-200);
  font-size: 15px;
  font-weight: 650;
  transition: color 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--frost-300);
}

.top-search {
  display: flex;
  align-items: center;
  width: min(360px, 32vw);
  border: 1px solid rgba(73, 80, 87, 0.9);
  border-radius: 999px;
  background: rgba(33, 37, 41, 0.88);
  overflow: hidden;
}

.top-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--fog-50);
  background: transparent;
  padding: 11px 14px;
}

.top-search button,
.search-page-form button {
  border: 0;
  color: white;
  background: var(--frost-500);
  padding: 11px 18px;
  cursor: pointer;
  transition: background-color 0.22s ease;
}

.top-search button:hover,
.search-page-form button:hover {
  background: var(--frost-600);
}

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

.home-shell {
  padding-top: 28px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  max-height: 780px;
  border: 1px solid rgba(73, 80, 87, 0.72);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--fog-800);
  box-shadow: var(--shadow-strong);
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.78) 42%, rgba(13, 17, 23, 0.16)),
    linear-gradient(0deg, rgba(13, 17, 23, 0.72), transparent 48%);
}

.hero-content {
  position: absolute;
  left: clamp(28px, 7vw, 86px);
  top: 50%;
  width: min(680px, calc(100% - 56px));
  transform: translateY(-50%);
}

.hero-badge,
.page-hero span,
.feature-copy span,
.ranking-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(102, 179, 255, 0.5);
  border-radius: 999px;
  color: var(--frost-300);
  background: rgba(0, 115, 230, 0.18);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  margin: 20px 0 18px;
  color: var(--fog-50);
  font-size: clamp(40px, 7vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  color: var(--fog-200);
  max-width: 640px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.card-meta,
.feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--fog-300);
}

.hero-meta a,
.card-kicker a,
.ranking-copy a,
.info-card a {
  color: var(--frost-300);
}

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

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

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--frost-500), var(--frost-600));
  box-shadow: 0 14px 30px rgba(0, 115, 230, 0.32);
}

.btn.ghost {
  border: 1px solid rgba(222, 226, 230, 0.24);
  color: var(--fog-100);
  background: rgba(33, 37, 41, 0.7);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(222, 226, 230, 0.18);
  border-radius: 999px;
  color: var(--fog-100);
  background: rgba(33, 37, 41, 0.82);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.hero-arrow:hover {
  background: rgba(52, 58, 64, 0.9);
}

.hero-arrow.prev {
  left: 18px;
}

.hero-arrow.next {
  right: 18px;
}

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

.hero-dot {
  width: 18px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--fog-500);
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease;
}

.hero-dot.is-active {
  width: 38px;
  background: var(--frost-400);
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--fog-50);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
}

.section-heading i {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(0, 115, 230, 0.7), transparent);
}

.section-heading > a,
.text-link {
  color: var(--frost-300);
  font-weight: 700;
}

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

.movie-grid.compact {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(52, 58, 64, 0.8);
  border-radius: var(--radius-sm);
  background: rgba(33, 37, 41, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: border-color 0.26s ease, transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
  border-color: rgba(0, 115, 230, 0.86);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.poster-link,
.poster-frame {
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--fog-700);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.24) 56%, rgba(13, 17, 23, 0.06));
}

.poster-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin: auto;
  border-radius: 999px;
  color: white;
  background: rgba(0, 115, 230, 0.86);
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 8px;
  color: var(--fog-50);
  background: rgba(13, 17, 23, 0.82);
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
}

.poster-title {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: var(--fog-50);
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.card-body {
  padding: 15px;
}

.card-kicker {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--fog-400);
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 0 0 8px;
  color: var(--fog-50);
  font-size: 16px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--frost-300);
}

.card-body p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--fog-300);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  color: var(--fog-400);
  font-size: 12px;
}

.rail {
  display: grid;
  grid-auto-columns: minmax(230px, 280px);
  grid-auto-flow: column;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

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

.rail-card a {
  display: block;
}

.rail-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background: var(--fog-800);
}

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

.rail-card:hover img {
  transform: scale(1.08);
}

.rail-poster span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border-radius: 999px;
  color: var(--frost-300);
  background: rgba(13, 17, 23, 0.78);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.rail-card strong {
  display: -webkit-box;
  margin: 12px 0 4px;
  overflow: hidden;
  color: var(--fog-50);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rail-card em {
  color: var(--fog-400);
  font-size: 13px;
  font-style: normal;
}

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

.category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid rgba(52, 58, 64, 0.8);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--fog-800);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 115, 230, 0.72);
}

.category-card img,
.category-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-card img {
  object-fit: cover;
  opacity: 0.58;
}

.category-mask {
  background: linear-gradient(0deg, rgba(13, 17, 23, 0.97), rgba(13, 17, 23, 0.38));
}

.category-card strong,
.category-card p,
.category-card div {
  position: relative;
}

.category-card strong {
  color: var(--fog-50);
  font-size: 22px;
}

.category-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--fog-300);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.category-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-card div span {
  border-radius: 999px;
  color: var(--fog-200);
  background: rgba(52, 58, 64, 0.72);
  padding: 4px 8px;
  font-size: 12px;
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(280px, 42%) 1fr;
  gap: 0;
  overflow: hidden;
  margin-top: 64px;
  border: 1px solid rgba(73, 80, 87, 0.76);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(36, 59, 83, 0.95), rgba(33, 37, 41, 0.96));
  box-shadow: var(--shadow-card);
}

.feature-cover {
  min-height: 440px;
}

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

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
}

.feature-copy h2 {
  margin: 20px 0;
  color: var(--fog-50);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
}

.feature-copy p {
  color: var(--fog-200);
  font-size: 17px;
  line-height: 1.8;
}

.feature-meta {
  margin: 8px 0 28px;
}

.feature-meta b {
  color: #fcd34d;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  border: 1px solid rgba(52, 58, 64, 0.78);
  border-radius: 16px;
  background: rgba(33, 37, 41, 0.86);
  padding: 12px;
}

.rank-cover {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

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

.rank-cover span {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--frost-500);
  font-weight: 900;
}

.rank-info h3 {
  margin: 4px 0 8px;
  color: var(--fog-50);
  font-size: 17px;
}

.rank-info p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--fog-300);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.rank-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--fog-400);
  font-size: 12px;
}

.page-hero,
.ranking-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(52, 58, 64, 0.86);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(36, 59, 83, 0.9), rgba(13, 17, 23, 0.96)),
    radial-gradient(circle at top right, rgba(0, 115, 230, 0.4), transparent 24rem);
  padding: clamp(30px, 6vw, 72px);
  box-shadow: var(--shadow-card);
}

.page-hero h1,
.ranking-hero h1 {
  margin: 18px 0 14px;
  color: var(--fog-50);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}

.page-hero p,
.ranking-hero p {
  max-width: 760px;
  color: var(--fog-200);
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--fog-400);
  font-size: 14px;
}

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

.category-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 20px 0 0;
}

.category-nav a {
  flex: 0 0 auto;
  border: 1px solid rgba(73, 80, 87, 0.8);
  border-radius: 999px;
  color: var(--fog-200);
  background: rgba(33, 37, 41, 0.72);
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
}

.category-nav a:hover,
.category-nav a.is-current {
  color: white;
  border-color: var(--frost-500);
  background: rgba(0, 115, 230, 0.8);
}

.filter-bar,
.search-page-form {
  display: flex;
  max-width: 680px;
  margin-top: 24px;
  border: 1px solid rgba(102, 179, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(13, 17, 23, 0.4);
}

.filter-bar input,
.search-page-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--fog-50);
  background: transparent;
  padding: 15px 18px;
}

.empty-state {
  display: none;
  margin: 40px 0 0;
  border: 1px solid rgba(73, 80, 87, 0.76);
  border-radius: 16px;
  color: var(--fog-300);
  background: rgba(33, 37, 41, 0.72);
  padding: 24px;
  text-align: center;
}

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

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 36px;
}

.overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  border: 1px solid rgba(52, 58, 64, 0.8);
  border-radius: 18px;
  background: rgba(33, 37, 41, 0.86);
  padding: 16px;
}

.overview-image {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
}

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

.overview-card h2 {
  margin: 4px 0 10px;
  color: var(--fog-50);
}

.overview-card p {
  color: var(--fog-300);
  line-height: 1.7;
}

.overview-card ul {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.overview-card li a {
  color: var(--fog-200);
}

.overview-card li a:hover {
  color: var(--frost-300);
}

.ranking-hero {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  align-items: center;
}

.ranking-hero img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 56px 92px 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(52, 58, 64, 0.78);
  border-radius: 16px;
  background: rgba(33, 37, 41, 0.78);
  padding: 12px 16px;
}

.ranking-no {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--frost-400), var(--frost-700));
  font-weight: 900;
}

.ranking-thumb {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 3 / 4;
}

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

.ranking-copy h2 {
  margin: 0 0 8px;
  color: var(--fog-50);
  font-size: 20px;
}

.ranking-copy p {
  margin: 0 0 10px;
  color: var(--fog-300);
  line-height: 1.65;
}

.ranking-copy div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--fog-400);
  font-size: 13px;
}

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

.detail-main,
.detail-side {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(73, 80, 87, 0.8);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  background: black;
  box-shadow: var(--shadow-strong);
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28));
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.big-play {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: white;
  background: rgba(0, 115, 230, 0.92);
  box-shadow: 0 18px 40px rgba(0, 115, 230, 0.35);
  cursor: pointer;
  font-size: 36px;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.big-play:hover {
  transform: scale(1.08);
  background: var(--frost-600);
}

.play-overlay strong {
  max-width: 86%;
  text-align: center;
  font-size: clamp(20px, 3vw, 30px);
}

.detail-title {
  padding: 26px 0 12px;
}

.detail-title h1 {
  margin: 0 0 14px;
  color: var(--fog-50);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.detail-meta span,
.card-meta span,
.feature-meta em {
  font-style: normal;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}

.tag-row a {
  border: 1px solid rgba(73, 80, 87, 0.78);
  border-radius: 999px;
  color: var(--fog-200);
  background: rgba(33, 37, 41, 0.86);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row a:first-child,
.tag-row a:hover {
  color: var(--frost-300);
  border-color: rgba(0, 115, 230, 0.64);
  background: rgba(0, 115, 230, 0.14);
}

.story-block,
.info-card {
  border: 1px solid rgba(52, 58, 64, 0.78);
  border-radius: var(--radius-md);
  background: rgba(33, 37, 41, 0.86);
  padding: 24px;
  margin-bottom: 20px;
}

.story-block h2,
.info-card h2 {
  margin: 0 0 14px;
  color: var(--fog-50);
  font-size: 22px;
}

.story-block p {
  margin: 0;
  color: var(--fog-200);
  font-size: 16px;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 98px;
  align-self: start;
}

.side-poster {
  width: 100%;
  border: 1px solid rgba(52, 58, 64, 0.78);
  border-radius: var(--radius-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.info-card {
  margin-top: 20px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
  margin: 0;
}

.info-card dt {
  color: var(--fog-400);
}

.info-card dd {
  margin: 0;
  color: var(--fog-100);
}

.site-footer {
  border-top: 1px solid rgba(52, 58, 64, 0.82);
  background: rgba(7, 11, 18, 0.9);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--fog-400);
}

.footer-logo {
  color: var(--fog-50);
  font-size: 18px;
  font-weight: 900;
}

.footer-inner p {
  margin: 0;
}

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

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

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
  }

  .info-card {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .nav-shell {
    min-height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }

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

  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding: 8px 0 0;
  }

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

  .top-search {
    order: 4;
    width: 100%;
  }

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

  .hero-overlay {
    background: linear-gradient(0deg, rgba(13, 17, 23, 0.98), rgba(13, 17, 23, 0.58));
  }

  .hero-content {
    top: auto;
    left: 22px;
    right: 22px;
    bottom: 78px;
    width: auto;
    transform: none;
  }

  .hero-arrow {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .hero-dots {
    bottom: 36px;
  }

  .feature-panel,
  .ranking-hero,
  .overview-card {
    grid-template-columns: 1fr;
  }

  .feature-cover {
    min-height: 360px;
  }

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

  .overview-image {
    max-height: 360px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 1280px);
    padding-top: 20px;
  }

  .movie-grid,
  .movie-grid.compact,
  .rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .rank-item {
    grid-template-columns: 76px 1fr;
  }

  .rank-cover {
    width: 76px;
  }

  .rank-info p,
  .card-body p {
    display: none;
  }

  .detail-side {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 42px 72px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .ranking-copy p {
    display: none;
  }

  .story-block,
  .info-card {
    padding: 18px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
