:root {
  --bg: #f8fbff;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.78);
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --teal: #14b8a6;
  --rose: #f43f5e;
  --yellow: #f59e0b;
  --dark: #0f172a;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 48%, #ecfeff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 24px rgba(15, 23, 42, 0.08);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

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

.nav-link {
  position: relative;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #0f172a;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 54%, #14b8a6 100%);
}

.hero-pattern,
.hero::before,
.hero::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
}

.hero-pattern {
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.2) 0 2px, transparent 3px), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.18), transparent 30%), radial-gradient(circle at 10% 90%, rgba(15, 23, 42, 0.16), transparent 38%);
  background-size: 58px 58px, 760px 760px, 620px 620px;
  opacity: 0.95;
}

.hero::before {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.05));
}

.hero::after {
  top: auto;
  height: 150px;
  background: linear-gradient(0deg, rgba(248, 250, 252, 0.98), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-slides {
  width: 100%;
  position: relative;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: 54px;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide:not(.active) {
  position: absolute;
  inset: 0;
}

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

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0891b2;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

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

.hero p {
  width: min(650px, 100%);
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2.4vw, 24px);
}

.hero-feature {
  width: min(640px, 100%);
  padding: 18px 20px;
  margin-bottom: 28px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.14);
}

.hero-feature span {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 700;
}

.hero-feature h2 {
  margin: 4px 0 6px;
  font-size: 28px;
  line-height: 1.2;
}

.hero-feature em {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

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

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

.primary-button {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

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

.ghost-button.dark {
  color: var(--blue);
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.75);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.2);
}

.hero-poster {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.22);
  border-radius: 34px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.3);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-poster:hover img {
  transform: scale(1.08);
}

.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fff;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
  text-align: center;
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 48px;
  display: flex;
  gap: 10px;
}

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

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

.quick-strip {
  position: relative;
  z-index: 3;
  margin-top: -42px;
}

.quick-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.search-box span {
  color: var(--blue);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.quick-cats {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
}

.quick-cats a,
.filter-button {
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  background: #eff6ff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quick-cats a:hover,
.filter-button:hover,
.filter-button.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform: translateY(-1px);
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
}

.blue-section {
  width: 100%;
  padding-left: max(16px, calc((100% - 1180px) / 2));
  padding-right: max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.86), rgba(236, 254, 255, 0.9));
}

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

.section-heading.slim {
  margin-bottom: 20px;
}

.section-heading h2,
.page-hero h1,
.category-hero h1,
.detail-copy h1 {
  margin: 6px 0 8px;
  color: #0f172a;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.category-hero p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  font-weight: 900;
  white-space: nowrap;
}

.text-link:hover {
  color: #0891b2;
}

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

.feature-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  isolation: isolate;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.feature-card:hover img {
  transform: scale(1.1);
}

.feature-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.18), transparent);
}

.feature-copy {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
}

.feature-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.feature-copy em {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feature-copy span,
.rank-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  color: #fff;
  background: linear-gradient(90deg, var(--rose), var(--yellow));
}

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

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
}

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

.movie-card.compact .poster-frame,
.movie-card.mini .poster-frame {
  aspect-ratio: 4 / 5;
}

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

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

.play-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.9);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.movie-info {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.movie-card.compact .movie-info,
.movie-card.mini .movie-info {
  min-height: 132px;
  padding: 12px;
}

.movie-info strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card.compact .movie-info strong,
.movie-card.mini .movie-info strong {
  font-size: 14px;
}

.movie-meta,
.movie-desc,
.movie-tags {
  color: var(--muted);
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  margin-top: auto;
  color: #0891b2;
  font-weight: 800;
}

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

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

.category-tile {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 120px;
  overflow: hidden;
}

.category-covers img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.category-text {
  display: block;
  padding: 18px;
}

.category-text strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  margin-bottom: 6px;
}

.category-text em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ranking-section {
  width: min(1180px, calc(100% - 32px));
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 62px 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.ranking-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: var(--blue);
  background: #eff6ff;
  font-weight: 900;
}

.ranking-number.gold,
.ranking-number.silver,
.ranking-number.bronze {
  color: #fff;
}

.ranking-number.gold {
  background: linear-gradient(135deg, #f97316, #facc15);
}

.ranking-number.silver {
  background: linear-gradient(135deg, #64748b, #cbd5e1);
}

.ranking-number.bronze {
  background: linear-gradient(135deg, #92400e, #f59e0b);
}

.ranking-row img {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
}

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

.ranking-copy strong {
  display: block;
  font-size: 18px;
}

.ranking-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.ranking-meta {
  color: #0891b2;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.page-hero,
.category-hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.page-hero::before,
.category-hero::before {
  position: absolute;
  content: "";
  width: 460px;
  height: 460px;
  right: -160px;
  top: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 64%);
}

.page-hero-inner,
.category-hero,
.detail-page,
.toolbar,
.content-grid {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
  background: transparent;
}

.category-poster-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-poster-stack img {
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.category-poster-stack img:nth-child(2) {
  transform: translateY(24px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.category-preview {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--blue);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 30px;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.detail-copy h1 {
  margin-top: 8px;
}

.detail-one-line {
  color: #334155;
  font-size: 18px;
}

.detail-meta,
.tag-cloud,
.genre-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta span,
.tag-cloud span,
.genre-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.tag-cloud {
  margin-top: 20px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #020617;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  isolation: isolate;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #020617;
  cursor: pointer;
}

.play-mask {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.62));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-mask.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 24px 58px rgba(37, 99, 235, 0.42);
  font-size: 34px;
}

.play-title {
  font-size: 20px;
  font-weight: 900;
}

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

.story-card {
  padding: 28px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.story-card.accent {
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.story-card h2 {
  margin: 6px 0 12px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: #334155;
  font-size: 16px;
}

.genre-cloud {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px dashed rgba(37, 99, 235, 0.34);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
  text-align: center;
  font-weight: 800;
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 40px;
  color: #e2e8f0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-logo {
  color: #fff;
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
}

.footer-brand p,
.footer-column p,
.footer-column a,
.footer-bottom {
  color: #94a3b8;
}

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

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 14px;
}

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

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

  .hero-slide,
  .category-hero,
  .detail-hero,
  .toolbar,
  .content-grid,
  .quick-inner {
    grid-template-columns: 1fr;
  }

  .filter-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .site-nav {
    flex-wrap: wrap;
    min-height: 64px;
    padding: 12px 0;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 4px;
    border-top: 1px solid var(--line);
  }

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

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

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

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

  .hero,
  .hero-inner {
    min-height: 760px;
  }

  .hero-slide {
    gap: 28px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 320px;
  }

  .hero-dots {
    bottom: 26px;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .category-grid.large,
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-row {
    grid-template-columns: 48px 58px minmax(0, 1fr);
  }

  .ranking-meta {
    grid-column: 3;
  }

  .detail-hero {
    padding: 18px;
  }

  .detail-poster {
    max-width: 280px;
  }
}

@media (max-width: 560px) {
  .site-logo,
  .footer-logo {
    font-size: 19px;
  }

  .hero {
    min-height: 820px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-feature h2 {
    font-size: 22px;
  }

  .quick-strip {
    margin-top: -24px;
  }

  .section {
    padding: 50px 0;
  }

  .feature-grid,
  .movie-grid,
  .compact-grid,
  .mini-grid,
  .category-grid,
  .category-grid.large,
  .footer-inner,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .movie-card {
    flex-direction: row;
  }

  .poster-frame {
    width: 116px;
    flex: 0 0 116px;
    aspect-ratio: 2 / 3;
  }

  .movie-info {
    min-height: 0;
  }

  .category-poster-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-meta span,
  .tag-cloud span,
  .genre-cloud span {
    font-size: 12px;
  }

  .play-circle {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
