:root {
  --color-cyan: #06b6d4;
  --color-blue: #3b82f6;
  --color-teal: #14b8a6;
  --color-dark: #0f172a;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-line: #e5e7eb;
  --color-soft: #f8fafc;
  --shadow-soft: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.gradient-text {
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bg-pattern {
  background-image:
    linear-gradient(to right, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.03) 1px, transparent 1px),
    linear-gradient(135deg, #ecfeff 0%, #ffffff 45%, #eff6ff 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.site-logo {
  font-size: 26px;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.28);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #0891b2;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-subline {
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  background: rgba(248, 250, 252, 0.75);
}

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

.nav-sublink {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.nav-sublink:hover {
  color: #0891b2;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: #f1f5f9;
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #0f172a;
  border-radius: 99px;
}

.hero-section {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  padding: 72px 0 58px;
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.30;
  pointer-events: none;
}

.hero-glow-one {
  left: -120px;
  top: 90px;
  background: #67e8f9;
}

.hero-glow-two {
  right: -120px;
  bottom: 30px;
  background: #93c5fd;
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-slider {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 52px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #0891b2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}

.hero-copy h1 {
  margin: 0;
  max-width: 780px;
  color: #0f172a;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 6px 28px rgba(14, 165, 233, 0.10);
}

.hero-one-line {
  max-width: 760px;
  margin: 24px 0 10px;
  color: #334155;
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 750;
  line-height: 1.35;
}

.hero-summary {
  max-width: 720px;
  color: #64748b;
  font-size: 17px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
  box-shadow: 0 16px 30px rgba(6, 182, 212, 0.28);
}

.btn-secondary {
  color: #334155;
  background: #ffffff;
  border: 2px solid #e5e7eb;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  color: #0891b2;
  border-color: #67e8f9;
}

.hero-poster-card {
  position: relative;
  display: block;
  width: min(420px, 100%);
  margin-left: auto;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #cffafe, #dbeafe);
  border: 12px solid rgba(255, 255, 255, 0.92);
  border-radius: 34px;
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.20);
  transform: rotate(2deg);
}

.hero-poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent 52%);
}

.hero-poster-card img,
.poster-frame img,
.detail-poster img,
.category-preview img,
.category-large-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster-year,
.hero-poster-play {
  position: absolute;
  z-index: 2;
}

.hero-poster-year {
  top: 18px;
  right: 18px;
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.70);
  border-radius: 999px;
  font-weight: 800;
}

.hero-poster-play {
  left: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(6, 182, 212, 0.35);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.hero-dots,
.hero-arrow-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  background: #cbd5e1;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  color: #0f172a;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-size: 28px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  max-width: 760px;
  margin-top: 34px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(207, 250, 254, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.hero-search input,
.filter-input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
}

.hero-search input {
  min-height: 48px;
  padding: 0 14px;
}

.hero-search button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
}

.stats-section {
  position: relative;
  margin-top: -36px;
  z-index: 2;
}

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

.stat-card {
  padding: 26px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.stat-card strong {
  display: block;
  color: #0f172a;
  font-size: 34px;
  line-height: 1.1;
}

.stat-card span {
  color: #64748b;
  font-weight: 700;
}

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

.soft-section {
  padding-bottom: 76px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

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

.section-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 720px;
  margin: 0;
  color: #64748b;
}

.section-head > a {
  flex: 0 0 auto;
  color: #0891b2;
  font-weight: 800;
}

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: #a5f3fc;
  box-shadow: var(--shadow-soft);
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ecfeff, #dbeafe);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.50), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.poster-frame img {
  transition: transform 0.45s ease, opacity 0.25s ease;
}

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

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  padding: 6px 10px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  right: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
  left: 12px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  border-radius: 999px;
  box-shadow: 0 16px 28px rgba(6, 182, 212, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
  padding: 17px;
}

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  display: -webkit-box;
  overflow: hidden;
  min-height: 54px;
  margin: 8px 0;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 0 0 13px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  min-height: 30px;
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 22px;
}

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

.category-card,
.category-large-card a {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-large-card a:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  height: 116px;
  padding: 10px;
  background: #f8fafc;
}

.category-preview img {
  overflow: hidden;
  border-radius: 12px;
}

.category-card h3,
.category-large-body h2 {
  margin: 18px 18px 8px;
  color: #0f172a;
}

.category-card p,
.category-large-body p {
  margin: 0 18px 14px;
  color: #64748b;
}

.category-card span,
.category-large-body strong {
  display: inline-flex;
  margin: 0 18px 18px;
  color: #0891b2;
  font-weight: 800;
}

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

.movie-card-compact .movie-card-body {
  padding: 13px;
}

.movie-card-compact h3 {
  min-height: auto;
  font-size: 15px;
  -webkit-line-clamp: 1;
}

.movie-card-compact p,
.movie-card-compact .tag-row {
  display: none;
}

.page-hero {
  padding: 76px 0;
  background: linear-gradient(135deg, #ecfeff, #ffffff 48%, #eff6ff);
  border-bottom: 1px solid #e2e8f0;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 840px;
  margin: 0;
  color: #64748b;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #0891b2;
}

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

.category-large-card a {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 220px;
}

.category-large-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 10px;
  background: #f1f5f9;
}

.category-large-preview img {
  border-radius: 14px;
}

.category-large-body {
  padding: 26px 10px 18px 8px;
}

.category-count {
  display: inline-flex;
  padding: 5px 10px;
  color: #0e7490;
  background: #ecfeff;
  border: 1px solid #cffafe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
}

.filter-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
}

.filter-search:focus-within {
  border-color: #67e8f9;
}

.filter-count {
  color: #64748b;
  font-weight: 700;
}

.filter-count strong {
  color: #0891b2;
}

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

.filter-chip {
  padding: 9px 14px;
  border: 0;
  color: #475569;
  background: #f1f5f9;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
}

.empty-state {
  margin-top: 36px;
  padding: 48px 20px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 24px;
}

.empty-state strong {
  display: block;
  color: #0f172a;
  font-size: 24px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #ffffff;
  background: #0f172a;
}

.detail-bg,
.detail-overlay {
  position: absolute;
  inset: 0;
}

.detail-bg {
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.42;
}

.detail-overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.38), transparent 36%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82) 50%, rgba(15, 23, 42, 0.58));
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0;
}

.detail-title-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 42px;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #155e75, #1e3a8a);
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30);
}

.detail-copy h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 860px;
  color: #e0f2fe;
  font-size: 22px;
  font-weight: 750;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 8px 12px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 700;
}

.detail-tags a {
  color: #cffafe;
  background: rgba(6, 182, 212, 0.16);
  border-color: rgba(103, 232, 249, 0.28);
}

.detail-copy .btn-primary {
  margin-top: 28px;
}

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

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

.player-card,
.article-card,
.side-card {
  margin-bottom: 24px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

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

.section-mini-head h2,
.article-card h2,
.side-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.section-mini-head p {
  margin: 0 0 10px;
  color: #64748b;
}

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

.movie-video {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(6, 182, 212, 0.24), transparent 36%),
    rgba(2, 6, 23, 0.62);
}

.player-cover.is-hidden {
  display: none;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 26px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue));
  border-radius: 999px;
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.34);
  font-weight: 900;
  cursor: pointer;
}

.player-cover p,
.player-status {
  color: #cbd5e1;
}

.player-status {
  margin: 12px 0 0;
  font-size: 14px;
}

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

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-list div {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.info-list dt {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.info-list dd {
  margin: 4px 0 0;
  color: #0f172a;
  font-weight: 750;
}

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

.side-card + .side-card {
  position: static;
}

.side-card a {
  display: block;
  padding: 12px 0;
  color: #0e7490;
  border-top: 1px solid #e5e7eb;
  font-weight: 750;
}

.side-related {
  display: grid;
  gap: 14px;
}

.side-related .movie-card {
  display: grid;
  grid-template-columns: 92px 1fr;
}

.side-related .movie-card a {
  display: contents;
}

.side-related .poster-frame {
  aspect-ratio: 3 / 4;
}

.side-related .movie-card-body {
  padding: 12px;
}

.side-related .movie-meta-line,
.side-related .type-badge,
.side-related .poster-play {
  display: none;
}

.site-footer {
  margin-top: 80px;
  color: #475569;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

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

.footer-logo {
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #0f172a;
  font-size: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #0891b2;
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
}

.footer-bottom .container-custom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  font-size: 20px;
}

.back-to-top.is-visible {
  display: grid;
  place-items: center;
}

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

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

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

  .detail-side,
  .side-card {
    position: static;
  }
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

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

  .nav-link {
    padding: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 42px 0;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 26px;
  }

  .hero-poster-card {
    width: min(320px, 86vw);
    margin: 0 auto;
  }

  .hero-search,
  .filter-panel {
    grid-template-columns: 1fr;
  }

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

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

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

  .category-large-grid,
  .category-large-card a,
  .detail-title-grid {
    grid-template-columns: 1fr;
  }

  .category-large-preview {
    height: 180px;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container-custom {
    width: min(100% - 22px, 1280px);
  }

  .site-logo {
    font-size: 21px;
  }

  .logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 12px;
  }

  .nav-subline-inner {
    gap: 14px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

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

  .hero-summary {
    display: none;
  }

  .hero-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid,
  .movie-grid,
  .category-grid,
  .ranking-strip {
    grid-template-columns: 1fr;
  }

  .movie-card {
    border-radius: 18px;
  }

  .poster-frame {
    aspect-ratio: 16 / 10;
  }

  .detail-hero-inner {
    padding: 34px 0;
  }

  .player-card,
  .article-card,
  .side-card {
    padding: 18px;
  }

  .footer-bottom .container-custom {
    flex-direction: column;
  }
}
