/*
  Static movie site styling.
  The visual system follows the uploaded source bundle: dark slate background,
  emerald accent color, rounded cards, sticky gradient navigation, hero carousel,
  horizontal recommendation rail, ranking rows and responsive grids.
*/

:root {
  --slate-950: #020617;
  --slate-925: #06111f;
  --slate-900: #0f172a;
  --slate-850: #152033;
  --slate-800: #1e293b;
  --slate-750: #263449;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --white: #ffffff;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --purple-500: #8b5cf6;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --yellow-400: #facc15;
  --ring-emerald: 0 0 0 2px rgba(52, 211, 153, 0.82);
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 16px 34px rgba(2, 6, 23, 0.34);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34rem),
    linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #04111f;
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-500));
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.45);
}

.brand-name {
  font-size: 1.18rem;
  transition: color 0.2s ease;
}

.brand:hover .brand-name {
  color: var(--emerald-400);
}

.site-search {
  position: relative;
  flex: 1 1 420px;
  max-width: 560px;
}

.site-search input,
.search-page-form input,
.hero-search-form input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--white);
  background: rgba(51, 65, 85, 0.84);
  border-radius: 999px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-search input {
  padding: 10px 48px 10px 18px;
}

.site-search input::placeholder,
.search-page-form input::placeholder,
.hero-search-form input::placeholder,
.filter-panel input::placeholder {
  color: var(--slate-400);
}

.site-search input:focus,
.search-page-form input:focus,
.hero-search-form input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald-400);
  box-shadow: var(--ring-emerald);
  background: rgba(30, 41, 59, 0.95);
}

.site-search button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  color: var(--slate-300);
  background: transparent;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-search button:hover {
  color: var(--emerald-400);
  background: rgba(15, 23, 42, 0.55);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--slate-300);
  white-space: nowrap;
}

.desktop-nav a,
.nav-dropdown > button {
  border: 0;
  color: var(--slate-300);
  background: transparent;
  transition: color 0.2s ease;
}

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

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 170px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.98);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
}

.dropdown-menu a:hover {
  background: rgba(51, 65, 85, 0.95);
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-sm);
  color: var(--white);
  background: rgba(51, 65, 85, 0.6);
}

.mobile-menu {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu a {
  display: block;
  padding: 14px 24px;
  color: var(--slate-300);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.mobile-menu a:hover {
  color: var(--white);
  background: rgba(30, 41, 59, 0.9);
}

.hero-slider {
  position: relative;
  height: min(78vh, 600px);
  min-height: 500px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s ease-out;
}

.hero-slide {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.22)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.26), rgba(2, 6, 23, 0.05));
}

.hero-content {
  padding: 56px 0 72px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-500);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-title {
  max-width: 820px;
  margin: 16px 0 14px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}

.hero-description {
  max-width: 740px;
  margin: 0 0 22px;
  color: var(--slate-300);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 26px;
  color: var(--slate-300);
}

.hero-meta span:first-child {
  color: var(--yellow-400);
  font-weight: 800;
}

.hero-actions,
.detail-title-row,
.section-heading,
.category-overview-top,
.filter-panel,
.card-meta,
.detail-meta {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
}

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

.btn:hover,
.hero-search-form button:hover,
.search-page-form button:hover {
  transform: translateY(-1px);
}

.btn-primary,
.hero-search-form button,
.search-page-form button {
  color: var(--white);
  background: var(--emerald-500);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover,
.hero-search-form button:hover,
.search-page-form button:hover {
  background: var(--emerald-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  background: rgba(30, 41, 59, 0.86);
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.48);
  font-size: 2rem;
  line-height: 1;
  transition: background 0.2s ease;
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.76);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

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

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.search-ribbon {
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
}

.search-ribbon-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 26px;
  padding: 28px 0;
}

.search-ribbon h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.hero-search-form,
.search-page-form {
  display: flex;
  gap: 12px;
}

.hero-search-form input,
.search-page-form input {
  padding: 12px 18px;
}

.page-sections {
  padding: 56px 0;
}

.content-section {
  margin-bottom: 64px;
}

.section-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0 auto 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-heading a,
.section-heading span[data-search-count] {
  color: var(--slate-300);
  font-size: 0.95rem;
}

.section-heading a:hover {
  color: var(--emerald-400);
}

.section-icon {
  font-size: 1.6rem;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.94);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, outline 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.018);
  outline: 2px solid var(--emerald-400);
  box-shadow: 0 22px 42px rgba(2, 6, 23, 0.5);
}

.movie-card-link {
  display: block;
  height: 100%;
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.28), transparent 42%),
    linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

.poster-frame.is-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--slate-300);
  text-align: center;
  font-weight: 700;
  background:
    radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.2), transparent 35%),
    linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

.card-badge,
.card-duration {
  position: absolute;
  z-index: 2;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 800;
}

.card-badge {
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  color: var(--white);
  background: var(--emerald-500);
}

.card-duration {
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.75);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 3.05rem;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover h3 {
  color: var(--emerald-400);
}

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

.card-meta {
  justify-content: space-between;
  gap: 8px;
  color: var(--slate-400);
  font-size: 0.86rem;
}

.card-meta span:first-child {
  color: var(--yellow-400);
  font-weight: 800;
}

.category-panel {
  margin-bottom: 64px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  box-shadow: var(--shadow-soft);
}

.category-panel h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 2rem;
}

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

.category-tile,
.category-overview-link {
  display: block;
  min-height: 132px;
  padding: 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.category-tile:hover,
.category-overview-link:hover {
  transform: translateY(-4px) scale(1.02);
  filter: brightness(1.05);
}

.category-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 2.3rem;
}

.category-tile strong,
.category-overview-link strong {
  display: block;
  font-size: 1.18rem;
}

.category-tile small,
.category-overview-link small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
}

.cat-gradient-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.cat-gradient-purple {
  background: linear-gradient(135deg, #7c3aed, #a21caf);
}

.cat-gradient-emerald {
  background: linear-gradient(135deg, #059669, #0f766e);
}

.cat-gradient-amber {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.cat-gradient-rose {
  background: linear-gradient(135deg, #e11d48, #9f1239);
}

.cat-gradient-pink {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.cat-gradient-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.cat-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4, #0e7490);
}

.horizontal-scroll {
  display: grid;
  grid-auto-columns: minmax(280px, 320px);
  grid-auto-flow: column;
  gap: 18px;
  padding-bottom: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--slate-700) transparent;
}

.ranking-list {
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.ranking-row {
  display: grid;
  grid-template-columns: 40px 92px minmax(0, 1fr) minmax(120px, 190px) 72px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: background 0.2s ease;
}

.ranking-row:hover {
  background: rgba(51, 65, 85, 0.55);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--slate-400);
  background: var(--slate-700);
  font-weight: 900;
}

.ranking-number.top-three {
  color: var(--white);
  background: linear-gradient(135deg, var(--yellow-400), #f97316);
}

.ranking-thumb {
  width: 92px;
  border-radius: 8px;
}

.ranking-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.ranking-category {
  overflow: hidden;
  color: var(--slate-400);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.ranking-score {
  color: var(--yellow-400);
  font-weight: 900;
  text-align: right;
}

.page-hero {
  padding: 62px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.page-hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}

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

.page-hero-emerald {
  background: linear-gradient(110deg, rgba(5, 150, 105, 0.92), rgba(8, 145, 178, 0.72));
}

.page-hero-cyan {
  background: linear-gradient(110deg, rgba(8, 145, 178, 0.9), rgba(5, 150, 105, 0.7));
}

.page-hero-amber {
  background: linear-gradient(110deg, rgba(217, 119, 6, 0.92), rgba(234, 88, 12, 0.72));
}

.page-hero-purple {
  background: linear-gradient(110deg, rgba(124, 58, 237, 0.9), rgba(219, 39, 119, 0.72));
}

.page-hero-slate {
  background: linear-gradient(110deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.breadcrumb a:hover {
  color: var(--emerald-400);
}

.page-stat {
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.32);
  font-weight: 800;
}

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

.category-overview-card {
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.94);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.category-overview-link {
  min-height: 190px;
  border-radius: 0;
}

.category-overview-top {
  gap: 14px;
  margin-bottom: 14px;
}

.category-overview-top span {
  font-size: 2.4rem;
}

.category-overview-link p {
  min-height: 54px;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.category-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
}

.category-preview-thumb {
  border-radius: 10px;
}

.filter-panel {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.94);
}

.filter-panel label {
  display: grid;
  flex: 1 1 260px;
  gap: 8px;
  color: var(--slate-300);
}

.filter-panel input,
.filter-panel select {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
}

.filter-panel select {
  color-scheme: dark;
}

.filter-count {
  color: var(--emerald-400);
  font-weight: 900;
  white-space: nowrap;
}

.search-page-form {
  max-width: 760px;
  margin-top: 24px;
}

.detail-shell {
  padding: 34px 0 64px;
}

.detail-breadcrumb {
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 30px;
}

.detail-main {
  min-width: 0;
}

.player-card {
  position: relative;
  border-radius: var(--radius-md);
  background: #000;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.46);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-card.is-playing .player-cover {
  opacity: 0;
  visibility: hidden;
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.54;
}

.player-start {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.16), 0 18px 45px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-start:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 16px rgba(16, 185, 129, 0.16), 0 22px 56px rgba(0, 0, 0, 0.5);
}

.play-icon {
  margin-left: 5px;
  font-size: 2.1rem;
}

.player-status {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  margin: 0;
  color: var(--slate-300);
  text-align: center;
}

.detail-card,
.sidebar-card {
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.95);
  box-shadow: var(--shadow-card);
}

.detail-title-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.22;
}

.pill-link {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--white);
  background: var(--emerald-500);
  font-weight: 800;
}

.detail-meta {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--slate-300);
}

.detail-meta span:first-child {
  color: var(--yellow-400);
  font-weight: 900;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}

.info-list div {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.48);
}

.info-list dt {
  margin-bottom: 4px;
  color: var(--slate-400);
  font-size: 0.85rem;
}

.info-list dd {
  margin: 0;
  color: var(--white);
  font-weight: 700;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.tag-cloud span {
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--slate-300);
  background: rgba(51, 65, 85, 0.8);
  font-size: 0.9rem;
}

.tag-cloud .tag-primary {
  color: var(--white);
  background: var(--emerald-500);
}

.detail-copy {
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 1.35rem;
}

.detail-copy p,
.review-text {
  margin: 0;
  color: var(--slate-300);
  line-height: 1.9;
  white-space: pre-line;
}

.sticky-card {
  position: sticky;
  top: 88px;
}

.sidebar-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card h2 span {
  display: inline-block;
  width: 5px;
  height: 24px;
  border-radius: 999px;
  background: var(--emerald-500);
}

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

.related-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}

.related-item:hover {
  background: rgba(51, 65, 85, 0.72);
}

.related-thumb {
  border-radius: 9px;
}

.related-text {
  min-width: 0;
}

.related-text strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.96rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-item:hover strong {
  color: var(--emerald-400);
}

.related-text span {
  display: block;
  margin-top: 6px;
  color: var(--slate-400);
  font-size: 0.82rem;
}

.sitemap-page {
  display: grid;
  gap: 26px;
}

.sitemap-group {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(30, 41, 59, 0.95);
}

.sitemap-group h2 {
  margin: 0 0 18px;
}

.sitemap-group h2 a:hover {
  color: var(--emerald-400);
}

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

.sitemap-links a {
  min-width: 0;
  overflow: hidden;
  color: var(--slate-300);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sitemap-links a:hover {
  color: var(--emerald-400);
}

.sitemap-links span {
  color: var(--slate-500);
  font-size: 0.82rem;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
  padding: 44px 0;
}

.footer-brand {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--slate-400);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: var(--slate-400);
}

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

.footer-bottom {
  padding: 18px 0;
  color: var(--slate-500);
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

[data-movie-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .grid-large,
  .grid-medium,
  .grid-category,
  .category-grid,
  .sitemap-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .sticky-card {
    position: static;
  }
}

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

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

  .mobile-menu.is-open {
    display: block;
  }

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

  .hero-content {
    padding: 40px 0 72px;
  }

  .hero-description {
    font-size: 0.98rem;
  }

  .search-ribbon-inner,
  .footer-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .hero-search-form,
  .search-page-form,
  .filter-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

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

  .ranking-category {
    display: none;
  }
}

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

  .brand-name {
    font-size: 1rem;
  }

  .hero-slider {
    height: 520px;
    min-height: 520px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-control {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 220px;
  }

  .category-panel {
    padding: 22px;
  }

  .grid-large,
  .grid-medium,
  .grid-category,
  .category-grid,
  .category-preview-grid,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

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

  .ranking-row {
    grid-template-columns: 34px 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .ranking-score {
    grid-column: 3;
    text-align: left;
  }

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

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

  .player-start {
    width: 68px;
    height: 68px;
  }

  .player-status {
    font-size: 0.86rem;
  }
}
