:root {
  --color-cyan: #06b6d4;
  --color-blue: #3b82f6;
  --color-teal: #14b8a6;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-soft: #f8fafc;
  --shadow-soft: 0 20px 25px -5px rgb(0 0 0 / 0.10), 0 8px 10px -6px rgb(0 0 0 / 0.10);
  --shadow-card: 0 12px 30px rgb(15 23 42 / 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  border-bottom: 1px solid rgb(229 231 235 / 0.72);
  box-shadow: 0 8px 24px rgb(15 23 42 / 0.06);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
  box-shadow: 0 10px 24px rgb(6 182 212 / 0.25);
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #374151;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--color-cyan);
  transition: transform 0.2s ease;
}

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  color: #374151;
}

.hero-section {
  position: relative;
  overflow: hidden;
  padding: 72px 0 42px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.40)),
    linear-gradient(135deg, #ecfeff 0%, #eff6ff 48%, #ecfdf5 100%);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(15 23 42 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 23 42 / 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

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

.hero-glow-one {
  top: 32px;
  left: -90px;
  background: radial-gradient(circle, var(--color-cyan), transparent 68%);
}

.hero-glow-two {
  right: -120px;
  bottom: -90px;
  background: radial-gradient(circle, var(--color-teal), transparent 68%);
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border: 1px solid rgb(6 182 212 / 0.20);
  border-radius: 999px;
  color: #0891b2;
  background: rgb(255 255 255 / 0.78);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgb(6 182 212 / 0.08);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 3px 3px 6px rgb(0 0 0 / 0.12);
}

.hero-copy h2 {
  margin: 18px 0 12px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 0;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags {
  margin: 22px 0 26px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #0369a1;
  background: #ecfeff;
  font-size: 13px;
  font-weight: 650;
}

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

.btn-primary,
.btn-secondary,
.section-more,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  min-height: 48px;
  padding: 0 22px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-blue), var(--color-teal));
  box-shadow: 0 16px 28px rgb(6 182 212 / 0.24);
}

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

.btn-secondary {
  min-height: 48px;
  padding: 0 22px;
  color: #374151;
  border: 2px solid #d1d5db;
  background: #ffffff;
}

.btn-secondary:hover {
  color: #0891b2;
  border-color: var(--color-cyan);
}

.hero-poster {
  position: relative;
  display: block;
  min-height: 470px;
  overflow: hidden;
  border: 12px solid rgb(255 255 255 / 0.82);
  border-radius: 34px;
  background: linear-gradient(135deg, #cffafe, #dbeafe, #ccfbf1);
  box-shadow: 0 32px 72px rgb(15 23 42 / 0.18);
}

.hero-poster img,
.category-tile img,
.category-overview-card img,
.detail-poster-card img,
.poster-wrap img,
.ranking-poster img,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster img.is-missing,
.poster-img.is-missing {
  display: none;
}

.hero-poster::after,
.poster-wrap::after,
.detail-backdrop::after,
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgb(15 23 42 / 0.44) 100%);
  pointer-events: none;
}

.hero-play {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(6 182 212 / 0.88);
  box-shadow: 0 18px 36px rgb(8 145 178 / 0.30);
}

.hero-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 26px;
}

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 54px;
  background: var(--color-cyan);
}

.hero-category-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 0.62);
  border-radius: 24px;
  background: rgb(255 255 255 / 0.72);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.hero-category-strip > span {
  flex: 0 0 auto;
  color: #0f172a;
  font-weight: 800;
}

.hero-category-strip > div,
.inline-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: #0369a1;
  background: #ffffff;
  border: 1px solid #bae6fd;
  font-size: 14px;
  font-weight: 700;
}

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

.no-top-gap {
  padding-top: 48px;
}

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

.section-head.compact {
  align-items: center;
  margin-bottom: 20px;
}

.section-head h2,
.panel-card h2,
.article-card h2,
.sidebar-card h2 {
  margin: 0 0 8px;
  color: #111827;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p,
.panel-card p,
.article-card p,
.sidebar-card p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.8;
}

.section-more,
.text-link {
  color: #0891b2;
  white-space: nowrap;
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgb(15 23 42 / 0.06);
}

.card-hover {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

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

.poster-wrap img {
  transition: transform 0.36s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.05);
}

.movie-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgb(6 182 212 / 0.88);
  box-shadow: 0 8px 16px rgb(8 145 178 / 0.20);
}

.movie-badge {
  right: 12px;
  top: 12px;
}

.rank-badge {
  left: 12px;
  top: 12px;
  background: rgb(15 23 42 / 0.78);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: #111827;
  font-size: 18px;
  line-height: 1.34;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.tag-row {
  margin-top: auto;
}

.tag-row span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 24px;
  background: linear-gradient(135deg, #cffafe, #dbeafe, #ccfbf1);
  box-shadow: var(--shadow-card);
}

.category-tile img {
  position: absolute;
  inset: 0;
  transition: transform 0.36s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
  display: block;
  color: #ffffff;
  text-shadow: 0 2px 12px rgb(0 0 0 / 0.26);
}

.category-tile span {
  margin: 114px 18px 8px;
  font-size: 24px;
  font-weight: 850;
}

.category-tile p {
  margin: 0 18px 18px;
  font-size: 14px;
  line-height: 1.55;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
}

.panel-card,
.article-card,
.sidebar-card {
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.panel-card {
  padding: 26px;
}

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

.ranking-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-line:hover {
  transform: translateX(3px);
  background: #ecfeff;
}

.ranking-line span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  font-weight: 850;
}

.ranking-line strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-line em {
  color: #64748b;
  font-style: normal;
  font-size: 13px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgb(15 23 42 / 0.05);
}

.search-box.wide {
  max-width: 680px;
  margin-top: 24px;
}

.search-box span {
  color: #0891b2;
  font-size: 22px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  background: transparent;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.movie-card-compact h3 {
  min-height: 40px;
  font-size: 15px;
}

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

.movie-card.is-hidden,
.ranking-card.is-hidden {
  display: none;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 70px 0 52px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.86), rgb(255 255 255 / 0.58)),
    linear-gradient(135deg, #ecfeff, #eff6ff, #ecfdf5);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgb(15 23 42 / 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(15 23 42 / 0.035) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}

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

.slim-hero h1 {
  margin-bottom: 16px;
}

.inline-strip {
  margin-top: 22px;
}

.category-overview-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.category-overview-card::after {
  display: none;
}

.category-covers {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr;
  gap: 8px;
  height: 180px;
  margin-bottom: 18px;
}

.category-covers img {
  min-width: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #cffafe, #dbeafe, #ccfbf1);
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  flex: 1;
  margin: 0 0 16px;
  color: var(--color-muted);
  line-height: 1.7;
}

.category-overview-card span {
  color: #0891b2;
  font-weight: 800;
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgb(15 23 42 / 0.06);
}

.ranking-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  background: linear-gradient(135deg, #cffafe, #dbeafe, #ccfbf1);
}

.ranking-poster span {
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: rgb(15 23 42 / 0.78);
  font-weight: 900;
}

.ranking-card h2 {
  margin: 4px 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.ranking-card p {
  margin: 0 0 12px;
  color: var(--color-muted);
  line-height: 1.75;
}

.detail-main {
  background: #f8fafc;
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  filter: blur(2px);
}

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

.detail-backdrop::after {
  background:
    linear-gradient(90deg, #0f172a 0%, rgb(15 23 42 / 0.82) 42%, rgb(15 23 42 / 0.46) 100%),
    linear-gradient(180deg, rgb(15 23 42 / 0.20), #0f172a 100%);
}

.detail-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 46px;
  align-items: center;
  padding: 72px 0;
}

.detail-poster-card {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 12px solid rgb(255 255 255 / 0.18);
  border-radius: 30px;
  background: linear-gradient(135deg, #cffafe, #dbeafe, #ccfbf1);
  box-shadow: 0 30px 72px rgb(0 0 0 / 0.34);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
  color: rgb(255 255 255 / 0.78);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #67e8f9;
}

.detail-copy h1 {
  max-width: 900px;
  color: #ffffff;
  background: linear-gradient(90deg, #ffffff, #a5f3fc, #bfdbfe);
  -webkit-background-clip: text;
  background-clip: text;
}

.detail-one-line {
  margin-top: 18px;
  color: rgb(255 255 255 / 0.86);
}

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

.detail-meta-grid span {
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: rgb(255 255 255 / 0.10);
  backdrop-filter: blur(10px);
}

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

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

.detail-content {
  display: grid;
  gap: 22px;
}

.player-card,
.article-card,
.sidebar-card {
  overflow: hidden;
  border: 1px solid #e5e7eb;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: #000000;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 0.18), rgb(0 0 0 / 0.58));
}

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

.player-button {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(6 182 212 / 0.88);
  box-shadow: 0 18px 46px rgb(6 182 212 / 0.30);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
  transform: scale(1.05);
  background: rgb(8 145 178 / 0.94);
}

.player-error {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgb(0 0 0 / 0.74);
  font-weight: 700;
}

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

.article-card {
  padding: 28px;
}

.article-card p {
  color: #374151;
  font-size: 17px;
}

.sidebar-card {
  padding: 20px;
  position: sticky;
  top: 96px;
}

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

.site-footer {
  margin-top: 78px;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 36px;
  padding: 46px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #111827;
  font-size: 17px;
}

.footer-grid p {
  margin: 12px 0 0;
  color: #6b7280;
  line-height: 1.8;
}

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

.footer-grid li + li {
  margin-top: 10px;
}

.footer-grid a {
  color: #6b7280;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding: 18px 16px 28px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #e5e7eb;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-cyan);
  box-shadow: 0 14px 30px rgb(6 182 212 / 0.26);
}

.back-to-top.is-visible {
  display: block;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .nav-link {
    padding: 10px 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.is-active {
    background: #ecfeff;
  }

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

  .hero-slide,
  .detail-hero-grid,
  .detail-layout,
  .two-column-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    min-height: 920px;
  }

  .hero-poster {
    min-height: 440px;
  }

  .detail-sidebar .sidebar-card {
    position: static;
  }
}

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

  .brand {
    font-size: 20px;
  }

  .hero-section {
    padding-top: 42px;
  }

  .hero-carousel {
    min-height: 760px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster {
    min-height: 330px;
    border-width: 8px;
    border-radius: 26px;
  }

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

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

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

  .movie-card h3 {
    font-size: 15px;
    min-height: 41px;
  }

  .movie-card p {
    min-height: 40px;
    font-size: 13px;
  }

  .ranking-card {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
  }

  .ranking-card h2 {
    font-size: 19px;
  }

  .ranking-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .detail-hero-grid {
    padding: 42px 0;
  }

  .detail-poster-card {
    max-width: 260px;
  }

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