:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(30, 41, 59, 0.72);
  --card-solid: #111827;
  --border: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #f59e0b;
  --accent-2: #f97316;
  --accent-soft: rgba(245, 158, 11, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.12), transparent 34%),
    radial-gradient(circle at 90% 18%, rgba(249, 115, 22, 0.14), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

body.is-nav-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 16px 42px rgba(245, 158, 11, 0.42);
}

.brand-text {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: #cbd5e1;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(51, 65, 85, 0.74);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
  cursor: pointer;
}

.nav-search,
.site-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search {
  max-width: 285px;
  margin-left: 8px;
}

.site-search input {
  width: 100%;
  min-width: 170px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  color: #fff;
  background: rgba(15, 23, 42, 0.75);
  outline: 0;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus {
  border-color: rgba(245, 158, 11, 0.68);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.site-search button,
.btn-primary,
.btn-ghost,
.card-actions a,
.pagination a,
.pagination strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.site-search button,
.btn-primary {
  padding: 11px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.site-search button:hover,
.btn-primary:hover,
.card-actions a:first-child:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.34);
}

.btn-ghost {
  padding: 11px 18px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.54);
  color: #fbbf24;
  transform: translateY(-2px);
}

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

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.3), transparent 32%);
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transform: scale(1.04);
}

.hero-bg img.image-missing,
.detail-bg img.image-missing,
.poster-frame img.image-missing {
  opacity: 0;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 35%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.56) 48%, rgba(2, 6, 23, 0.14) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: 96px;
}

.hero-copy {
  width: min(680px, 100%);
}

.hero-kicker,
.detail-meta,
.card-meta,
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-kicker span,
.eyebrow,
.poster-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 13px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.22);
}

.hero-kicker strong {
  color: #facc15;
  font-size: 1.05rem;
}

.hero h1,
.detail-copy h1,
.page-hero h1,
.player-info h1 {
  margin: 18px 0 14px;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 800px;
  font-size: clamp(2.9rem, 7vw, 6.2rem);
}

.hero p,
.page-hero p,
.detail-line,
.player-info > p {
  max-width: 720px;
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-tags,
.tag-row,
.genre-cloud,
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span,
.genre-cloud span,
.footer-badges span {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.52);
}

.hero-meta,
.detail-meta,
.card-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-actions,
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: max(20px, calc((100% - var(--container)) / 2));
}

.hero-next {
  right: max(20px, calc((100% - var(--container)) / 2));
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: var(--accent);
}

.search-band {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  align-items: center;
  gap: 24px;
  margin-top: -48px;
  padding: 28px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.search-band h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.search-band p {
  margin: 0;
  color: var(--muted);
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.category-tile {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.62)),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.18), transparent 42%);
  transition: transform 0.25s ease, border 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.category-tile strong {
  font-size: 1.24rem;
}

.category-tile span {
  color: var(--muted);
  font-size: 0.94rem;
}

.home-section {
  margin-top: 64px;
}

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

.section-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 34px rgba(245, 158, 11, 0.2);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.3), transparent);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.82));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.96)),
    radial-gradient(circle at 70% 20%, rgba(249, 115, 22, 0.24), transparent 40%);
}

.detail-poster {
  width: 320px;
  min-height: 430px;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.poster-badge {
  position: absolute;
  z-index: 3;
  left: 14px;
  top: 14px;
  padding: 5px 10px;
  font-size: 0.76rem;
}

.poster-rating {
  position: absolute;
  z-index: 3;
  right: 14px;
  top: 14px;
  display: inline-flex;
  border-radius: 10px;
  padding: 5px 9px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: #fbbf24;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 0;
  gap: 8px;
  font-size: 0.82rem;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted-2);
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  font-size: 0.78rem;
  padding: 3px 8px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.card-actions a {
  flex: 1;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.card-actions a:first-child {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.card-actions a:last-child {
  color: #e2e8f0;
  background: rgba(51, 65, 85, 0.72);
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 42% 1fr;
}

.movie-card-horizontal .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

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

.movie-card-minimal .card-body {
  padding: 14px;
}

.movie-card-large {
  display: grid;
  grid-template-columns: 48% 1fr;
}

.movie-list-column {
  display: grid;
  gap: 16px;
}

.two-column-section,
.split-feature {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 34px;
  align-items: start;
}

.split-feature {
  grid-template-columns: 1.2fr 0.8fr;
}

.rank-panel,
.watch-panel,
.detail-panel,
.player-info {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.2);
}

.rank-list,
.mini-rank,
.rank-columns {
  display: grid;
  gap: 10px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.55);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.rank-item:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.78);
  transform: translateX(4px);
}

.rank-num {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #94a3b8;
  font-weight: 900;
  background: rgba(71, 85, 105, 0.72);
}

.rank-num.top {
  color: #fff;
  background: linear-gradient(135deg, #facc15, var(--accent-2));
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-score {
  color: #facc15;
  font-size: 0.9rem;
}

.page-main {
  padding-bottom: 72px;
}

.page-hero {
  margin-top: 34px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.66)),
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.22), transparent 38%);
  box-shadow: var(--shadow);
}

.slim-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.eyebrow {
  width: fit-content;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.pagination a,
.pagination strong,
.pagination span {
  min-width: 42px;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 13px;
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.78);
}

.pagination strong {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.pagination a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.72);
  transform: translateY(-2px);
}

.detail-main {
  padding-bottom: 82px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.36) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.54), rgba(2, 6, 23, 0.92));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: 320px 1fr;
  align-items: center;
  gap: 42px;
  padding-block: 68px;
}

.detail-copy h1,
.player-info h1 {
  font-size: clamp(2.35rem, 5.5vw, 5rem);
}

.detail-copy .detail-line {
  margin: 0;
}

.detail-tags {
  margin-top: 22px;
}

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

.detail-panel h2,
.watch-panel h2,
.player-info h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
}

.detail-panel h2:not(:first-child) {
  margin-top: 30px;
}

.detail-panel p,
.watch-panel p,
.player-summary {
  margin: 0;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: #f8fafc;
}

.genre-cloud {
  margin-top: 22px;
}

.watch-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  margin: 20px 0 22px;
  padding: 16px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.24);
}

.watch-card span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.player-page {
  margin-top: 34px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 94px;
  height: 94px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 22px 48px rgba(245, 158, 11, 0.32);
}

.player-shell.is-playing .player-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-info {
  margin-top: 24px;
}

.player-summary {
  margin-top: 20px;
}

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

.title-index a {
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(30, 41, 59, 0.62);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.title-index a:hover {
  color: #fff;
  background: rgba(245, 158, 11, 0.72);
  transform: translateY(-2px);
}

.empty-text {
  color: var(--muted);
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-block: 54px 34px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
}

.site-footer h3 {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer p {
  margin: 0 0 18px;
  color: var(--muted);
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #cbd5e1;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-panel {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-panel.open {
    display: flex;
  }

  .nav-search {
    max-width: none;
    margin-left: 0;
    margin-top: 8px;
  }

  .hero-arrow {
    display: none;
  }

  .search-band,
  .slim-hero,
  .two-column-section,
  .split-feature,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-hero-inner {
    grid-template-columns: 240px 1fr;
  }

  .detail-poster {
    width: 240px;
    min-height: 330px;
  }

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

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .brand-text {
    font-size: 1.25rem;
  }

  .hero,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content {
    padding-block: 72px 96px;
  }

  .search-band {
    margin-top: -24px;
    padding: 20px;
  }

  .site-search,
  .nav-search {
    flex-direction: column;
    align-items: stretch;
  }

  .category-strip,
  .movie-grid,
  .compact-grid,
  .three-grid,
  .rank-columns,
  .title-index,
  .detail-hero-inner {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal,
  .movie-card-large {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    gap: 22px;
  }

  .detail-poster {
    width: min(100%, 280px);
    min-height: 360px;
  }

  .page-hero {
    padding: 24px;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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