:root {
  --cyan-50: #ecfeff;
  --cyan-100: #cffafe;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius: 24px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background: linear-gradient(180deg, var(--cyan-50), #ffffff 340px);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 16px 32px rgba(8, 145, 178, 0.28);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong,
.footer-brand strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan-600), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small,
.footer-brand small {
  color: var(--slate-500);
  font-size: 12px;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--slate-700);
  font-weight: 700;
}

.desktop-nav a,
.nav-dropdown > a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
  color: var(--cyan-600);
}

.nav-dropdown {
  position: relative;
  padding: 28px 0;
}

.dropdown-panel {
  position: absolute;
  top: 78px;
  left: -18px;
  width: 190px;
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-panel a,
.mobile-cats a {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--slate-700);
}

.dropdown-panel a:hover,
.mobile-cats a:hover {
  color: var(--cyan-600);
  background: var(--cyan-50);
}

.header-search {
  position: relative;
  display: flex;
  width: 280px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.toolbar input,
.toolbar select {
  width: 100%;
  border: 1px solid var(--slate-200);
  outline: 0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--slate-900);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
  height: 42px;
  padding: 0 48px 0 18px;
}

.header-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  cursor: pointer;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  display: none;
  padding: 8px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  max-height: 390px;
  overflow: auto;
}

.search-suggestions.open {
  display: grid;
  gap: 6px;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-suggestion-item:hover {
  background: var(--cyan-50);
}

.search-suggestion-item img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.search-suggestion-item strong {
  display: block;
  color: var(--slate-900);
  line-height: 1.3;
}

.search-suggestion-item small {
  color: var(--slate-500);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--cyan-50);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 10px;
  background: var(--slate-700);
}

.mobile-panel {
  display: none;
  padding: 14px 16px 22px;
  border-top: 1px solid var(--slate-200);
  background: #ffffff;
}

.mobile-panel.open {
  display: grid;
  gap: 12px;
}

.mobile-panel > a {
  padding: 10px 4px;
  font-weight: 700;
  color: var(--slate-700);
}

.mobile-search {
  display: flex;
  gap: 10px;
}

.mobile-search input {
  height: 42px;
  padding: 0 16px;
}

.mobile-search button,
.hero-search button,
.btn {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  cursor: pointer;
  font-weight: 800;
}

.mobile-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 54px;
  padding: 80px max(24px, calc((100vw - var(--max-width)) / 2)) 88px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(8, 145, 178, 0.94), rgba(37, 99, 235, 0.78) 46%, rgba(15, 23, 42, 0.62)), var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 32%), linear-gradient(0deg, rgba(15, 23, 42, 0.28), transparent 48%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-100);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  font-size: 13px;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero-content h2 {
  margin: 24px 0 10px;
  color: var(--cyan-100);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.hero-desc {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span,
.detail-meta span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  box-shadow: 0 18px 32px rgba(8, 145, 178, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px rgba(8, 145, 178, 0.32);
}

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

.btn.slim {
  min-height: 42px;
  padding: 0 18px;
}

.hero-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(15, 23, 42, 0.36);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-control {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

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

.stats-strip {
  position: relative;
  z-index: 5;
  margin-top: -40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.stats-grid div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.stats-grid strong {
  color: var(--cyan-600);
  font-size: 30px;
}

.stats-grid span {
  color: var(--slate-500);
  font-weight: 700;
}

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

.soft-bg {
  background: linear-gradient(180deg, var(--cyan-50), #ffffff);
}

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

.section-head h2,
.rank-title h2,
.player-section h2,
.content-card h2,
.site-footer h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--slate-500);
}

.section-link,
.rank-title a {
  color: var(--cyan-600);
  font-weight: 900;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: var(--shadow-lg);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--cyan-100), var(--slate-100));
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.7));
  opacity: 0.85;
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--cyan-500);
  font-size: 12px;
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(12px);
}

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

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h2 a:hover,
.ranking-info h2 a:hover {
  color: var(--cyan-600);
}

.movie-card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--slate-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta span,
.tag-row span {
  background: var(--slate-100);
  color: var(--slate-500);
}

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

.tag-row span {
  color: var(--cyan-600);
  background: var(--cyan-50);
}

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

.movie-card-compact .movie-card-body h2 {
  font-size: 16px;
}

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

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

.category-tile {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(even) {
  background: linear-gradient(135deg, #14b8a6, var(--cyan-600));
}

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

.category-tile strong {
  font-size: 24px;
}

.category-tile span {
  color: rgba(255, 255, 255, 0.86);
}

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

.rank-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
}

.rank-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

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

.mini-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  background: var(--cyan-50);
}

.mini-card img {
  width: 56px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
}

.mini-card strong,
.mini-card small {
  display: block;
}

.mini-card small {
  color: var(--slate-500);
}

.rank-num {
  position: absolute;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--cyan-500);
  transform: translate(-4px, -28px);
  font-size: 13px;
  font-weight: 900;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 98px 0 88px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.22), transparent 28%);
}

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

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.9);
}

.toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.toolbar input,
.toolbar select {
  height: 48px;
  padding: 0 18px;
}

.toolbar select {
  max-width: 190px;
}

.empty-state {
  display: none;
  padding: 38px;
  text-align: center;
  border-radius: 24px;
  color: var(--slate-500);
  background: var(--slate-100);
}

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

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

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

.ranking-row {
  display: grid;
  grid-template-columns: 86px 56px minmax(0, 1fr) 80px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ranking-cover img {
  width: 86px;
  height: 112px;
  border-radius: 18px;
  object-fit: cover;
}

.ranking-index {
  color: var(--cyan-600);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 12px;
  color: var(--slate-500);
}

.ranking-score {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  font-weight: 900;
  font-size: 22px;
}

.hero-search {
  display: flex;
  max-width: 660px;
  gap: 12px;
  margin-top: 28px;
}

.hero-search input {
  height: 54px;
  padding: 0 22px;
}

.hero-search button {
  min-width: 118px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(8, 145, 178, 0.92), rgba(37, 99, 235, 0.72), rgba(15, 23, 42, 0.8)), var(--detail-image);
  background-size: cover;
  background-position: center;
  filter: blur(4px) saturate(1.05);
  transform: scale(1.04);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.18), transparent 32%);
}

.detail-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 560px;
  padding: 72px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.42);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.detail-info h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-info > p {
  max-width: 760px;
  margin: 20px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.detail-tags span {
  color: var(--cyan-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
  padding: 74px 0 28px;
  background: #ffffff;
}

.player-section h2 {
  margin-bottom: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.58));
  cursor: pointer;
  z-index: 2;
}

.play-overlay span {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
  box-shadow: 0 24px 50px rgba(8, 145, 178, 0.36);
  font-size: 38px;
  padding-left: 6px;
}

.play-overlay.hidden {
  display: none;
}

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

.content-card {
  padding: 30px;
  border: 1px solid var(--slate-200);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.content-card p {
  margin: 16px 0 0;
  color: var(--slate-700);
  font-size: 17px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 56px 0;
}

.site-footer p {
  color: #94a3b8;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #94a3b8;
}

.site-footer a:hover {
  color: var(--cyan-400);
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--cyan-400);
  font-size: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 22px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 1100px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr 260px;
  }

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

  .two-column-section {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }

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

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

  .header-inner {
    height: 68px;
  }

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

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 24px 88px;
  }

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

  .hero-desc {
    font-size: 17px;
  }

  .hero-poster {
    width: min(260px, 70vw);
    margin: 0 auto;
    transform: rotate(0deg);
  }

  .hero-control {
    display: none;
  }

  .stats-strip {
    margin-top: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 0;
    width: 100%;
  }

  .section-block {
    padding: 52px 0;
  }

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

  .movie-grid,
  .featured-grid,
  .compact-grid,
  .all-grid,
  .category-grid,
  .category-grid.large,
  .mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .movie-meta span {
    font-size: 12px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar select {
    max-width: none;
  }

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

  .ranking-cover img {
    width: 70px;
    height: 92px;
  }

  .ranking-score {
    display: none;
  }

  .ranking-info p,
  .ranking-info .movie-meta {
    display: none;
  }

  .detail-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 46px 0;
  }

  .detail-poster {
    width: min(280px, 76vw);
    margin: 0 auto;
  }

  .detail-info h1 {
    font-size: 34px;
  }

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

  .player-shell {
    border-radius: 18px;
  }

  .play-overlay span {
    width: 76px;
    height: 76px;
  }

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