
:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --cyan-500: #06b6d4;
  --emerald-500: #10b981;
  --orange-500: #f97316;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-strong: 0 26px 70px rgba(15, 23, 42, 0.24);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: var(--white);
  background: linear-gradient(90deg, var(--slate-900), #17337a 52%, var(--slate-900));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding-left: 2px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.desktop-nav > a,
.nav-dropdown > button {
  padding: 22px 0;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.desktop-nav a:hover,
.nav-dropdown button:hover,
.desktop-nav .is-active {
  color: var(--white);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% - 4px);
  left: -18px;
  width: 190px;
  padding: 10px;
  border-radius: 14px;
  background: var(--white);
  color: var(--gray-700);
  box-shadow: var(--shadow-strong);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.22s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.dropdown-menu a:hover {
  color: var(--blue-600);
  background: #eff6ff;
}

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

.site-search input {
  width: 220px;
  height: 40px;
  padding: 0 16px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  outline: none;
  transition: all 0.2s ease;
}

.site-search input::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.site-search input:focus {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.site-search button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search button,
.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.site-search button:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.36);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 12px;
}

.mobile-panel {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-panel nav,
.mobile-category-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mobile-panel a {
  padding: 11px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(15, 23, 42, 0.36);
}

.mobile-search input {
  flex: 1;
  width: auto;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-track,
.hero-slide,
.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 32%, rgba(6, 182, 212, 0.34), transparent 30%),
    linear-gradient(0deg, rgba(248, 250, 252, 0.98) 0, rgba(248, 250, 252, 0) 32%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  min-height: 640px;
  margin: 0 auto;
  padding: 90px 24px 120px;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 650px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.8;
}

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

.hero-poster {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  border: 0;
  border-radius: 99px;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 74px 24px;
}

.section-light {
  background: var(--gray-50);
}

.section-tint {
  max-width: none;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff 58%, #f0fdfa);
}

.section-tint > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark-call {
  max-width: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #164e63 50%, var(--slate-950));
}

.section-dark-call > * {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-head.inverse h2 {
  color: var(--white);
}

.text-link {
  color: var(--blue-600);
  font-weight: 800;
}

.inverse .text-link,
.section-dark-call .text-link {
  color: #93c5fd;
}

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

.movie-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
}

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card-link:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), rgba(2, 6, 23, 0));
  opacity: 0.76;
}

.movie-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  color: var(--white);
  background: rgba(37, 99, 235, 0.92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.movie-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding-left: 3px;
  color: var(--white);
  background: rgba(59, 130, 246, 0.88);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: all 0.24s ease;
}

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

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.movie-tags span {
  padding: 4px 8px;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

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

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

.rank-card-link {
  position: relative;
  display: grid;
  grid-template-columns: 56px 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 124px;
  padding: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(249, 115, 22, 0.18);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), #ef4444);
  border-radius: 50%;
  font-weight: 900;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 12px;
  background: #ffedd5;
}

.rank-thumb img {
  width: 132px;
  height: 82px;
  object-fit: cover;
}

.rank-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-info strong {
  overflow: hidden;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info em {
  color: var(--orange-500);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.rank-info span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.category-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.category-card:hover .category-cover {
  transform: scale(1.08);
}

.category-card strong,
.category-card em {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 20px;
}

.category-card strong {
  margin-top: 106px;
  color: var(--white);
  font-size: 24px;
}

.category-card em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 25%, rgba(6, 182, 212, 0.35), transparent 30%),
    linear-gradient(135deg, var(--slate-950), #1e3a8a 56%, #0e7490);
}

.page-hero > div {
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 24px 70px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.80);
  font-size: 18px;
  line-height: 1.8;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  display: inline-flex;
  padding: 9px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.22);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-panel.compact {
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
  height: 46px;
  padding: 0 14px;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.empty-state {
  margin-bottom: 24px;
  padding: 28px;
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-overview-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-overview-cover {
  display: flex;
  align-items: flex-end;
  min-height: 190px;
  padding: 20px;
  color: var(--white);
  background-size: cover;
  background-position: center;
  font-size: 28px;
  font-weight: 900;
}

.category-overview-body {
  padding: 20px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-overview-body p {
  margin: 0 0 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.mini-links {
  display: grid;
  gap: 8px;
}

.mini-links a {
  overflow: hidden;
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-page-form {
  max-width: 720px;
  margin-top: 28px;
}

.search-page-form input {
  flex: 1;
  width: auto;
  min-width: 0;
  color: var(--gray-900);
  background: var(--white);
}

.player-section {
  background: var(--slate-950);
}

.player-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  background: #000;
}

.movie-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--white);
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.16), transparent 35%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18));
  border: 0;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
  border-radius: 50%;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.42);
  font-size: 34px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.player-overlay:hover .player-button {
  transform: scale(1.08);
}

.player-overlay-text {
  max-width: min(760px, 88vw);
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 24px 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--blue-600);
  font-weight: 700;
}

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

.detail-card,
.side-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-card {
  padding: 28px;
}

.detail-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 24px;
  align-items: start;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.detail-badges span {
  padding: 6px 10px;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.detail-card h1 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.detail-one-line {
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.7;
}

.detail-cover {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

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

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.detail-info-grid div {
  padding: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
}

.detail-info-grid strong,
.detail-info-grid span {
  display: block;
}

.detail-info-grid strong {
  margin-bottom: 6px;
  color: var(--gray-500);
  font-size: 13px;
}

.detail-info-grid span {
  color: var(--gray-900);
  font-weight: 800;
}

.article-section {
  margin-top: 26px;
}

.article-section h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-section p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 1.9;
}

.review-box {
  padding: 22px;
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  border-radius: 18px;
}

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

.tag-list span {
  padding: 7px 11px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.side-card {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-card:hover {
  background: var(--gray-50);
}

.related-thumb {
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-100);
}

.related-thumb img {
  width: 112px;
  height: 72px;
  object-fit: cover;
}

.related-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.related-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 15px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-info em {
  overflow: hidden;
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
}

.footer-logo {
  margin-bottom: 16px;
  color: var(--white);
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.7;
}

.footer-links h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 18px;
}

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.66);
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 30px;
  color: rgba(255, 255, 255, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 14px;
  text-align: center;
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand {
    font-size: 20px;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 18px 110px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-poster {
    max-width: 230px;
    margin: 0 auto;
  }

  .hero-arrow {
    display: none;
  }

  .section,
  .page-hero > div,
  .detail-container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .filter-panel,
  .filter-panel.compact {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    max-width: 220px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .movie-grid,
  .category-grid,
  .category-overview-grid,
  .rank-grid {
    grid-template-columns: 1fr;
  }

  .rank-card-link {
    grid-template-columns: 42px 96px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .rank-thumb img {
    width: 96px;
    height: 64px;
  }

  .related-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-thumb img {
    width: 96px;
    height: 64px;
  }

  .player-button {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }

  .player-overlay-text {
    font-size: 18px;
  }
}
