:root {
  color-scheme: light;
  --page-bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --dark: #020617;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%, #f1f5f9 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.2);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38bdf8, #06b6d4, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.32);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

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

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

.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: #22d3ee;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 20px;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.25), transparent 34%), #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 48%, rgba(2, 6, 23, 0.28) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1180px) / 2 + 24px));
  top: 50%;
  max-width: 760px;
  transform: translateY(-46%);
  color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.inner-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.hero-content h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

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

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, #06b6d4, #2563eb);
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.28);
}

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

.btn.slim {
  min-height: 42px;
  white-space: nowrap;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-50%) scale(1.06);
}

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

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

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #ffffff;
}

.search-band {
  max-width: 1180px;
  margin: -40px auto 70px;
  position: relative;
  z-index: 5;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px) auto;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.search-band span {
  display: block;
  color: #0891b2;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-band strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

input,
select {
  width: 100%;
  height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 0 16px;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.content-section {
  max-width: 1180px;
  margin: 0 auto 86px;
  padding: 0 24px;
}

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

.section-head > span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.section-head.amber > span {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.section-head.red > span {
  background: linear-gradient(135deg, #ef4444, #ec4899);
}

.section-head.green > span {
  background: linear-gradient(135deg, #10b981, #22c55e);
}

.section-head.blue > span {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.full-grid {
  align-items: stretch;
}

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card:hover .poster-wrap img,
.movie-list-card:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 58%);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge,
.type-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.type-badge {
  left: 12px;
  right: auto;
  top: auto;
  bottom: 12px;
  background: #06b6d4;
}

.card-body,
.compact-info,
.list-body {
  display: block;
}

.card-body {
  padding: 18px;
}

.card-body strong,
.compact-info strong,
.list-body strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.card-body .line-clamp,
.list-body em {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-body small,
.list-body small,
.compact-info span {
  color: #0891b2;
  font-size: 13px;
  font-weight: 800;
}

.highlight-block {
  max-width: 1240px;
  padding: 44px 48px;
  border-radius: 36px;
  background: linear-gradient(135deg, #ecfeff, #eff6ff);
}

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

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

.compact-poster {
  aspect-ratio: 16 / 9;
}

.compact-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 14px 14px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent);
}

.compact-info strong {
  color: #ffffff;
  font-size: 15px;
}

.compact-info span {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
}

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

.category-card {
  display: block;
  min-height: 220px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.15);
}

.category-covers,
.category-cover-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-covers img,
.category-cover-wall img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
  background: #0f172a;
}

.category-card strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
}

.category-card em,
.category-overview-card p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 32px;
  align-items: start;
}

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

.rank-row,
.movie-list-card,
.ranking-card {
  display: grid;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-row {
  grid-template-columns: 52px 76px 1fr;
  padding: 12px;
}

.rank-row:hover,
.movie-list-card:hover,
.ranking-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.13);
}

.rank-num,
.ranking-number {
  color: #06b6d4;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.rank-row img {
  width: 76px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.rank-row strong,
.rank-row em {
  display: block;
}

.rank-row em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.movie-list-card {
  grid-template-columns: 150px 1fr;
  padding: 14px;
}

.list-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  background: #0f172a;
}

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

.list-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.more-link {
  display: inline-flex;
  margin-top: 18px;
  color: #0891b2;
  font-weight: 900;
}

.inner-hero {
  padding: 78px 24px;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.35), transparent 36%), linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0891b2);
}

.inner-hero > div {
  max-width: 1180px;
  margin: 0 auto;
}

.inner-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.inner-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  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: 220px 1fr;
  gap: 22px;
  padding: 20px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-cover-wall {
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 0;
}

.category-cover-wall img {
  height: 100px;
}

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

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mini-links a {
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  color: #0e7490;
  font-size: 13px;
  font-weight: 700;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 150px 150px;
  gap: 12px;
  margin-bottom: 30px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.filter-bar.single {
  grid-template-columns: 1fr;
}

.is-hidden {
  display: none !important;
}

.ranking-list {
  gap: 16px;
}

.ranking-card {
  grid-template-columns: 68px 140px 1fr;
  padding: 16px;
}

.ranking-card img {
  width: 140px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  background: #0f172a;
  transition: transform 0.35s ease;
}

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

.ranking-body strong {
  font-size: 20px;
  font-weight: 900;
}

.ranking-body em {
  margin: 8px 0;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.ranking-body small {
  color: #0891b2;
  font-weight: 800;
}

.detail-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 90px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 800;
}

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

.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.player-card {
  margin-bottom: 26px;
  background: #020617;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.1));
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(6, 182, 212, 0.78);
  font-size: 36px;
  box-shadow: 0 18px 44px rgba(6, 182, 212, 0.36);
  backdrop-filter: blur(12px);
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: flex !important;
}

.detail-card {
  padding: 30px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.detail-title-row h1 {
  margin: 16px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-title-row img {
  width: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
  background: #0f172a;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.detail-meta {
  color: #0f172a;
  margin: 0 0 28px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
}

.detail-card section {
  margin-top: 26px;
}

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

.detail-card p {
  margin: 0;
  color: #334155;
  line-height: 1.9;
}

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

.tag-list span {
  padding: 8px 13px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.related-section {
  padding: 0;
  margin: 34px 0 0;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-card {
  padding: 24px;
}

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

.side-card dt {
  color: var(--muted);
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.side-card dd a {
  color: #0891b2;
}

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

.side-rank a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  font-weight: 800;
}

.side-rank img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  background: #0f172a;
}

.site-footer {
  color: rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-brand {
  color: #ffffff;
  font-size: 18px;
}

.footer-inner p {
  max-width: 520px;
  margin: 14px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-copy {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.3);
  cursor: pointer;
}

.back-top.is-visible {
  display: flex;
}

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

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

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

  .hero-content {
    left: 24px;
    right: 24px;
    max-width: none;
  }

  .hero-arrow {
    display: none;
  }

  .search-band,
  .filter-bar,
  .split-section,
  .detail-layout,
  .footer-inner,
  .category-overview-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

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

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

  .detail-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    height: 64px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 17px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

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

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

  .search-band {
    margin: -28px 16px 52px;
    padding: 18px;
  }

  .content-section {
    margin-bottom: 58px;
    padding: 0 16px;
  }

  .highlight-block {
    padding: 28px 18px;
    border-radius: 28px;
  }

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

  .movie-list-card,
  .ranking-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-row img,
  .ranking-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

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

  .detail-title-row img {
    width: 100%;
  }

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

  .footer-links {
    display: grid;
  }
}

.movie-card.compact {
  position: relative;
}
