:root {
  --color-primary: #0891b2;
  --color-primary-dark: #0e7490;
  --color-secondary: #2563eb;
  --color-accent: #06b6d4;
  --color-dark: #0f172a;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 34%, #f8fafc 100%);
  min-height: 100vh;
  -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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.nav-shell {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.28);
}

.brand-name {
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--color-primary);
  background: #ecfeff;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  width: 268px;
  display: flex;
  align-items: center;
}

.nav-search input,
.mobile-search input,
.search-panel input,
.catalog-controls input,
.catalog-controls select,
.search-panel select {
  width: 100%;
  border: 1px solid #d1d5db;
  outline: none;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
  height: 40px;
  padding: 0 44px 0 18px;
  font-size: 14px;
}

.nav-search button {
  position: absolute;
  right: 5px;
  width: 31px;
  height: 31px;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: var(--color-primary);
}

.nav-search input:focus,
.mobile-search input:focus,
.search-panel input:focus,
.catalog-controls input:focus,
.catalog-controls select:focus,
.search-panel select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
}

.mobile-nav {
  border-top: 1px solid var(--color-line);
  padding: 16px 24px 18px;
  background: #fff;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
}

.mobile-search button {
  border: 0;
  border-radius: 14px;
  padding: 0 16px;
  color: #fff;
  background: var(--color-primary);
}

.mobile-link {
  display: flex;
  margin: 4px 0;
}

.hero {
  position: relative;
  height: 72vh;
  min-height: 560px;
  overflow: hidden;
  background: #020617;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 28%, rgba(6, 182, 212, 0.28), transparent 28%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.55) 44%, rgba(2, 6, 23, 0.18)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 55%);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 82px;
  display: flex;
  align-items: flex-end;
}

.hero-copy {
  max-width: 720px;
  color: #fff;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0 0 22px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-list a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #fff;
  background: var(--color-primary);
  box-shadow: 0 16px 32px rgba(8, 145, 178, 0.32);
}

.primary-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 40px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.04);
}

.hero-control.prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-control.next {
  right: 24px;
  transform: translateY(-50%);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.content-section,
.detail-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.content-section + .content-section {
  padding-top: 38px;
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading span {
  display: block;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-heading a,
.text-link {
  color: var(--color-primary);
  font-weight: 800;
}

.section-heading.inverse h2,
.section-heading.inverse a,
.section-heading.inverse span {
  color: #fff;
}

.soft-panel,
.dark-panel {
  max-width: calc(1280px - 48px);
  border-radius: 32px;
  margin-top: 28px;
  margin-bottom: 28px;
}

.soft-panel {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

.dark-panel {
  color: #fff;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.22), transparent 34%), #111827;
}

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

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
  box-shadow: var(--shadow-soft);
}

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

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.1));
  transition: opacity 0.25s ease;
}

.poster-play {
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  transform: scale(0.86);
  transition: transform 0.25s ease;
}

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

.movie-card:hover .poster-overlay {
  opacity: 1;
}

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

.card-badge,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
}

.card-badge {
  top: 12px;
  left: 12px;
}

.card-year {
  top: 12px;
  right: 12px;
}

.rank-badge {
  left: 12px;
  bottom: 12px;
  background: var(--color-primary);
}

.movie-info {
  padding: 14px 2px 0;
}

.movie-info h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-info h2 a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-info h2 a {
  color: var(--color-primary);
}

.movie-line {
  margin: 0 0 10px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.movie-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta span,
.movie-bottom a {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-bottom {
  margin-top: 10px;
}

.score {
  color: #92400e;
  font-weight: 900;
}

.movie-bottom a {
  color: var(--color-primary);
  font-weight: 800;
}

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

.category-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #155e75 58%, #2563eb);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card strong,
.category-card em,
.category-card small {
  position: relative;
  display: block;
}

.category-card strong {
  margin-bottom: 12px;
  font-size: 22px;
}

.category-card em {
  color: #dff7ff;
  font-style: normal;
  line-height: 1.65;
}

.category-card small {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

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

.ranking-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.ranking-board {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.large-board {
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
}

.ranking-board h2,
.ranking-board h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 42px 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 86px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.ranking-row:hover {
  background: rgba(8, 145, 178, 0.08);
}

.dark-panel .ranking-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ranking-number {
  font-weight: 900;
  font-size: 18px;
  color: var(--color-accent);
}

.ranking-thumb {
  width: 70px;
  height: 66px;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
}

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

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

.ranking-info strong,
.ranking-info em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-info strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.ranking-info em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.large-board .ranking-info em {
  color: #6b7280;
}

.page-hero {
  color: #fff;
  background: radial-gradient(circle at 75% 30%, rgba(6, 182, 212, 0.34), transparent 28%), linear-gradient(135deg, #0f172a, #155e75 55%, #2563eb);
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-cover {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #e5e7eb;
}

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

.category-cover span {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  font-weight: 900;
  text-align: center;
}

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

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.7;
}

.category-overview-body ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.category-overview-body li a {
  color: #374151;
}

.category-overview-body li a:hover {
  color: var(--color-primary);
}

.catalog-controls,
.search-panel {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.catalog-controls label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.catalog-controls input,
.catalog-controls select,
.search-panel input,
.search-panel select {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
}

.search-panel button {
  min-width: 110px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--color-primary);
  font-weight: 900;
}

.empty-state {
  padding: 52px 24px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  margin: 0;
  color: var(--color-muted);
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.82fr);
  gap: 28px;
  align-items: start;
}

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

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

.player-card {
  padding: 12px;
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
}

.video-player {
  width: 100%;
  height: 100%;
  background: #020617;
  object-fit: contain;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(8, 145, 178, 0.24), transparent 28%), rgba(2, 6, 23, 0.5);
  backdrop-filter: blur(2px);
  font-weight: 900;
  font-size: 18px;
}

.player-cover[hidden] {
  display: none;
}

.big-play {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s ease;
}

.player-cover:hover .big-play {
  transform: scale(1.06);
}

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

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.detail-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--color-primary);
  background: #ecfeff;
  font-size: 13px;
  font-weight: 900;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.detail-score {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
}

.detail-one-line {
  margin: 18px 0 22px;
  color: #374151;
  font-size: 17px;
  line-height: 1.8;
}

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

.detail-meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.detail-meta-list dt {
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta-list dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.tag-list a {
  color: #0e7490;
  background: #ecfeff;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.detail-card p,
.side-card p {
  margin: 0;
  color: #374151;
  line-height: 1.9;
  white-space: pre-line;
}

.review-card {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.related-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: #f0fdfa;
}

.related-thumb {
  flex: 0 0 112px;
  height: 72px;
  overflow: hidden;
  border-radius: 12px;
  background: #e5e7eb;
}

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

.related-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-body strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
}

.related-body em {
  margin-top: 8px;
  color: #6b7280;
  font-style: normal;
  font-size: 13px;
}

.side-channel {
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

.site-footer {
  color: #cbd5e1;
  background: #111827;
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo .brand-name {
  color: #fff;
  background: none;
  -webkit-text-fill-color: #fff;
}

.footer-brand p {
  max-width: 520px;
  margin: 18px 0 0;
  line-height: 1.75;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
}

.footer-column ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a:hover {
  color: #67e8f9;
}

.footer-bottom {
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

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

  .ranking-page-grid {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-bottom: 86px;
  }

  .hero-control {
    width: 42px;
    height: 42px;
    font-size: 32px;
  }

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

  .ranking-columns,
  .detail-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }

  .catalog-controls,
  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .category-cover {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .nav-shell {
    padding: 0 16px;
  }

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

  .content-section,
  .detail-shell,
  .page-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    height: 76vh;
    min-height: 560px;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1,
  .hero h2 {
    font-size: 38px;
  }

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

  .hero-control {
    display: none;
  }

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

  .movie-grid,
  .category-grid,
  .mini-grid {
    gap: 16px;
  }

  .movie-info h2 {
    font-size: 15px;
  }

  .movie-line,
  .movie-meta {
    font-size: 12px;
  }

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

  .detail-title-row {
    display: grid;
  }

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

  .ranking-row {
    grid-template-columns: 34px 62px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-thumb {
    width: 62px;
  }
}
