:root {
  --teal: #14b8a6;
  --teal-dark: #0f766e;
  --cyan: #0891b2;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f9fafb;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  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;
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e, #0891b2, #2563eb);
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.28);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

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

.brand-mark,
.footer-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #0f766e;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.05;
}

.brand-text em {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-style: normal;
}

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

.desktop-nav a,
.nav-menu button {
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.nav-menu button:hover {
  color: #fef08a;
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 2px;
  width: 300px;
  margin-top: 18px;
  padding: 12px;
  color: #1f2937;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

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

.nav-menu-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #334155;
}

.nav-menu-panel a:hover {
  color: #0f766e;
  background: #ecfeff;
}

.search-box {
  position: relative;
  width: 280px;
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 44px 0 18px;
  color: #111827;
  background: #ffffff;
  border: 0;
  border-radius: 999px;
  outline: 0;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.3);
}

.search-box button {
  position: absolute;
  top: 5px;
  right: 8px;
  width: 32px;
  height: 32px;
  color: #64748b;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  color: #111827;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.suggestions.is-open {
  display: block;
}

.suggestion-link {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.suggestion-link:hover {
  background: #ecfeff;
}

.suggestion-link img {
  width: 64px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.suggestion-link strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-link em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  color: #ffffff;
  background: transparent;
  border: 0;
  font-size: 28px;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: linear-gradient(120deg, #172554, #0f766e);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 1180px;
  color: #ffffff;
}

.hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 16px;
  color: #ffffff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 16px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 660px;
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
  color: #d1d5db;
}

.hero-meta span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.primary-btn,
.ghost-btn {
  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, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.28);
}

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

.primary-btn:hover {
  background: var(--teal-dark);
}

.primary-btn.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  border: 0;
  border-radius: 999px;
  font-size: 34px;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  background: #ffffff;
}

.section-block {
  padding: 54px 0;
}

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

.section-title > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.section-title p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-link {
  margin-left: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

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

.movie-card {
  display: block;
}

.thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.poster-thumb {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
}

.wide-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 16px 0 0 16px;
}

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

.movie-card:hover .thumb img,
.editor-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
}

.thumb::after,
.editor-cover::after,
.category-tile::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.02));
}

.play-symbol {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: all 0.24s ease;
}

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

.region-badge,
.year-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  padding: 4px 9px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.region-badge {
  top: 10px;
  left: 10px;
  background: var(--teal);
}

.year-badge {
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.68);
}

.card-title {
  display: -webkit-box;
  min-height: 44px;
  margin-top: 12px;
  overflow: hidden;
  color: #1f2937;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover .card-title,
.editor-card:hover strong,
.rank-row:hover strong,
.side-related:hover strong,
.ranking-item:hover strong {
  color: var(--teal-dark);
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #6b7280;
  font-size: 13px;
}

.card-meta b {
  color: #ca8a04;
}

.card-meta em {
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 52px 1fr 86px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rank-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
}

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

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

.rank-info em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-row img {
  width: 86px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.horizontal-strip {
  display: grid;
  grid-auto-columns: minmax(300px, 360px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.movie-card-wide {
  display: grid;
  grid-template-columns: 145px 1fr;
  min-height: 120px;
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.movie-card-wide .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 16px;
}

.movie-card-wide strong,
.movie-card-wide em,
.movie-card-wide span:last-child {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-wide strong {
  font-size: 18px;
  white-space: nowrap;
}

.movie-card-wide em {
  margin: 6px 0;
  color: var(--teal-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.movie-card-wide span:last-child {
  display: -webkit-box;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.editor-panel {
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.editor-card {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.editor-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

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

.editor-cover b {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 12px;
  color: #ffffff;
  background: #eab308;
  border-radius: 999px;
  font-size: 12px;
}

.editor-card strong,
.editor-card em {
  display: block;
  margin: 0 18px;
}

.editor-card strong {
  margin-top: 16px;
  font-size: 18px;
}

.editor-card em {
  display: -webkit-box;
  margin-top: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

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

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 3;
  left: 20px;
}

.category-tile span {
  bottom: 46px;
  font-size: 26px;
  font-weight: 900;
}

.category-tile em {
  bottom: 20px;
  font-style: normal;
}

.page-hero {
  padding: 56px 0;
  color: #ffffff;
  background: linear-gradient(90deg, #0f766e, #2563eb);
}

.page-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 5vw, 48px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-hero-stats span {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

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

.crumb a:hover {
  color: #fef08a;
}

.category-overview-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  overflow: hidden;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.category-overview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  transition: transform 0.28s ease;
}

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

.category-overview-body strong,
.category-overview-body em,
.category-overview-body small {
  display: block;
}

.category-overview-body strong {
  font-size: 24px;
}

.category-overview-body em {
  margin: 6px 0 10px;
  color: var(--teal-dark);
  font-style: normal;
  font-weight: 800;
}

.category-overview-body small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px 20px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.filter-bar strong {
  font-size: 20px;
}

.filter-bar span {
  color: var(--muted);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 120px 1fr 120px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 16px;
  font-size: 24px;
  font-weight: 900;
}

.ranking-item img {
  width: 120px;
  height: 76px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.ranking-main {
  min-width: 0;
}

.ranking-main strong,
.ranking-main em,
.ranking-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.ranking-main em {
  margin: 5px 0;
  color: var(--muted);
  font-style: normal;
}

.ranking-main small {
  color: #0f766e;
}

.ranking-item > b {
  color: #ca8a04;
  text-align: right;
}

.player-shell {
  padding: 32px 0;
  background: #000000;
}

.player-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.player-stage video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  border: 0;
  cursor: pointer;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding-left: 7px;
  background: rgba(20, 184, 166, 0.86);
  border-radius: 999px;
  box-shadow: 0 20px 44px rgba(20, 184, 166, 0.34);
  font-size: 42px;
}

.player-stage.is-playing .player-overlay {
  display: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 34px 0 0;
}

.detail-crumb {
  margin-bottom: 18px;
  color: #64748b;
}

.detail-card,
.side-card {
  margin-bottom: 24px;
  padding: 26px;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.detail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #475569;
}

.detail-meta span {
  padding: 6px 10px;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.tag-row span {
  padding: 6px 12px;
  color: #334155;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 14px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

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

.detail-card .lead-text {
  color: #1f2937;
  font-weight: 800;
}

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

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

.side-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

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

.side-related {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
}

.side-related:hover {
  background: #f8fafc;
}

.side-related img {
  width: 112px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.side-related strong,
.side-related em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-related strong {
  display: -webkit-box;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-related em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

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

.site-footer {
  margin-top: 42px;
  color: #cbd5e1;
  background: linear-gradient(180deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.2fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
}

.footer-brand span {
  width: 32px;
  height: 32px;
  color: #111827;
}

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

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 9px;
  color: #cbd5e1;
  line-height: 1.75;
}

.site-footer a:hover {
  color: #5eead4;
}

.search-empty {
  grid-column: 1 / -1;
  padding: 60px 20px;
  text-align: center;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.search-empty strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
}

@media (min-width: 700px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .poster-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .desktop-nav,
  .search-box {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .hero {
    height: 560px;
  }

  .rank-grid,
  .editor-grid,
  .category-grid,
  .category-overview-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    display: block;
  }

  .side-card {
    position: static;
  }

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

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

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

  .hero {
    height: 540px;
  }

  .hero-content {
    padding: 0 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-arrow {
    display: none;
  }

  .section-block {
    padding: 36px 0;
  }

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

  .ranking-panel,
  .editor-panel {
    padding: 22px;
    border-radius: 24px;
  }

  .rank-grid,
  .editor-grid,
  .category-grid,
  .category-overview-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 1fr 70px;
    gap: 10px;
  }

  .rank-no {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .rank-row img {
    width: 70px;
    height: 48px;
  }

  .movie-card-wide {
    grid-template-columns: 116px 1fr;
  }

  .wide-thumb {
    border-radius: 16px 0 0 16px;
  }

  .ranking-item {
    grid-template-columns: 48px 82px 1fr;
  }

  .ranking-item > b {
    display: none;
  }

  .ranking-number {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .ranking-item img {
    width: 82px;
    height: 58px;
  }

  .detail-heading {
    display: block;
  }

  .detail-heading .primary-btn {
    margin-top: 12px;
  }

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

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