/*
  Static movie site stylesheet
  Visual system rebuilt from uploaded CSS: moonlight background, silver glow, glass panels,
  rounded cards, dark navigation, large hero, horizontal rails, responsive grids.
*/
:root {
  --color-silver: #c0c0c0;
  --color-silver-light: #e8e8e8;
  --color-silver-dark: #a8a8a8;
  --color-night-blue: #1a1f35;
  --color-deep-blue: #0f1419;
  --color-panel: rgba(15, 23, 42, 0.58);
  --color-panel-strong: rgba(15, 23, 42, 0.82);
  --color-line: rgba(148, 163, 184, 0.22);
  --color-text: #e2e8f0;
  --color-muted: #94a3b8;
  --color-soft: #64748b;
  --gradient-moonlight: linear-gradient(180deg, #0f1419 0%, #1a1f35 52%, #2a3347 100%);
  --gradient-silver: linear-gradient(135deg, #ffffff 0%, #d4d4d8 45%, #94a3b8 100%);
  --shadow-card: 0 22px 50px rgba(0, 0, 0, 0.35);
  --radius-large: 28px;
  --radius-card: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  background: var(--color-deep-blue);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 12% 8%, rgba(192, 192, 192, 0.13), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(96, 165, 250, 0.12), transparent 26%),
    radial-gradient(circle at 45% 90%, rgba(148, 163, 184, 0.14), transparent 34%),
    var(--gradient-moonlight);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.18));
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.moonlight-bg {
  background: transparent;
}

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

.glass-effect {
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.silver-border {
  border: 1px solid var(--color-line);
}

.silver-glow-hover,
.card-hover {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.silver-glow-hover:hover,
.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 232, 240, 0.34);
  box-shadow: 0 0 32px rgba(192, 192, 192, 0.18), var(--shadow-card);
}

.text-gradient,
.brand-text,
.hero-copy h1,
.page-hero h1 {
  color: transparent;
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  background-clip: text;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  border-right: 0;
  border-left: 0;
  border-top: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 22px;
}

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

.brand-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #0f1419;
  background: var(--gradient-silver);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(226, 232, 240, 0.22);
}

.brand-text {
  font-size: 23px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  color: #cbd5e1;
  font-size: 15px;
  transition: color 180ms ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--gradient-silver);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

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

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(300px, 26vw);
}

.header-search input,
.mobile-search input,
.filter-toolbar input,
.search-page-form input {
  width: 100%;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.28);
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-search input {
  height: 42px;
  padding: 0 46px 0 18px;
  border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-toolbar input:focus,
.search-page-form input:focus {
  border-color: rgba(226, 232, 240, 0.55);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.9);
}

.header-search button {
  position: absolute;
  right: 7px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 18px;
  border-right: 0;
  border-left: 0;
  border-bottom: 0;
}

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

.mobile-search input {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-search button,
.search-page-form button,
.filter-toolbar button {
  padding: 0 18px;
  color: #0f1419;
  font-weight: 700;
  background: var(--gradient-silver);
  border: 0;
  border-radius: 14px;
}

.mobile-link,
.mobile-category-grid a {
  display: block;
  padding: 10px 0;
  color: #cbd5e1;
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 8px;
}

.mobile-category-grid a {
  padding: 9px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.hero-section {
  position: relative;
  min-height: 78vh;
  padding-top: 78px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 20, 25, 0.92), rgba(15, 20, 25, 0.55) 46%, rgba(15, 20, 25, 0.88)),
    linear-gradient(0deg, #0f1419 0%, rgba(15, 20, 25, 0.2) 42%, rgba(15, 20, 25, 0.6) 100%);
}

.hero-backdrop::before,
.detail-bg::before,
.poster::before,
.rail-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 30% 22%, rgba(226, 232, 240, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(71, 85, 105, 0.92), rgba(15, 23, 42, 0.98));
}

.hero-backdrop::after,
.detail-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 20, 25, 0.96), rgba(15, 20, 25, 0.34) 48%, rgba(15, 20, 25, 0.82)),
    linear-gradient(0deg, #0f1419 0%, rgba(15, 20, 25, 0.12) 48%, rgba(15, 20, 25, 0.58) 100%);
}

.hero-backdrop img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.42) saturate(1.08);
}

.hero-backdrop.is-missing::before,
.detail-bg.is-missing::before {
  content: attr(data-title);
  display: grid;
  place-items: center;
  padding: 8vw;
  color: rgba(226, 232, 240, 0.15);
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 900;
  letter-spacing: -0.08em;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(78vh - 78px);
  padding: 72px 0 132px;
}

.hero-copy {
  max-width: 780px;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #d4d4d8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-label::before,
.section-kicker::before {
  width: 26px;
  height: 1px;
  content: "";
  background: var(--gradient-silver);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.hero-copy h2 {
  margin: 0 0 20px;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.04;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
  padding: 7px 11px;
  color: #dbeafe;
  font-size: 13px;
  background: rgba(148, 163, 184, 0.14);
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 999px;
}

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

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

.primary-button {
  color: #0f1419;
  background: var(--gradient-silver);
  box-shadow: 0 14px 30px rgba(226, 232, 240, 0.18);
}

.ghost-button {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.hero-thumbs {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 10px 14px;
  color: #cbd5e1;
  text-align: left;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}

.hero-thumb span {
  color: #94a3b8;
  font-weight: 900;
}

.hero-thumb strong {
  overflow: hidden;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-thumb.is-active {
  color: #ffffff;
  border-color: rgba(226, 232, 240, 0.38);
  background: rgba(255, 255, 255, 0.13);
}

.hero-search-card {
  position: absolute;
  right: max(16px, calc((100vw - 1280px) / 2));
  bottom: 130px;
  z-index: 6;
  width: min(380px, calc(100% - 32px));
  padding: 18px;
  border-radius: 22px;
}

.hero-search-card label {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 700;
}

.hero-search-card form div {
  display: flex;
  gap: 10px;
}

.hero-search-card input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  outline: none;
}

.hero-search-card button {
  padding: 0 18px;
  color: #0f1419;
  font-weight: 800;
  background: var(--gradient-silver);
  border: 0;
  border-radius: 14px;
}

.content-section {
  padding: 66px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--color-muted);
  line-height: 1.75;
}

.section-more,
.panel-more {
  flex: 0 0 auto;
  color: #cbd5e1;
  font-weight: 700;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-card);
}

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

.poster,
.rail-cover {
  position: relative;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.85);
}

.poster {
  aspect-ratio: 16 / 10;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  width: min(300px, 42vw);
  flex: 0 0 auto;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.poster img,
.rail-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 460ms ease;
}

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

.poster.is-missing::after,
.rail-cover.is-missing::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  color: rgba(226, 232, 240, 0.78);
  font-weight: 900;
  text-align: center;
  content: attr(data-title);
  background: linear-gradient(180deg, rgba(15,23,42,0.1), rgba(15,23,42,0.72));
}

.duration-badge,
.view-badge,
.rank-badge,
.rail-cover span {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
}

.view-badge {
  left: 10px;
  bottom: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  justify-content: center;
  padding: 0;
  color: #0f1419;
  background: var(--gradient-silver);
}

.movie-card-body {
  display: flex;
  min-height: 184px;
  flex-direction: column;
  padding: 16px;
}

.movie-card-body h3 {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: #cbd5e1;
  font-size: 12px;
}

.meta-line span:first-child {
  max-width: 68%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

.tag-row span {
  padding: 5px 8px;
  color: #aebed0;
  font-size: 11px;
}

.horizontal-rail {
  display: flex;
  gap: 18px;
  padding: 4px 0 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.rail-card {
  width: 320px;
  flex: 0 0 auto;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.52);
  border-radius: var(--radius-card);
  scroll-snap-align: start;
}

.rail-cover {
  aspect-ratio: 16 / 9;
}

.rail-cover span {
  top: 10px;
  right: 10px;
  background: rgba(239, 68, 68, 0.86);
}

.rail-content {
  padding: 15px;
}

.rail-content h3 {
  margin: 0 0 8px;
  color: #ffffff;
}

.rail-content p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 10px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rail-content small {
  color: #64748b;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

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

.category-tile {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: end;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(226,232,240,0.12), transparent 38%),
    rgba(15, 23, 42, 0.54);
  border-radius: 20px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 232, 240, 0.34);
}

.category-tile span {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong,
.category-tile small {
  margin-top: 6px;
  color: #94a3b8;
}

.ranking-panel {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: 24px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #0f1419;
  font-weight: 900;
  background: var(--gradient-silver);
  border-radius: 14px;
}

.panel-title h2 {
  margin: 0;
  color: #ffffff;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
}

.ranking-num {
  color: #e2e8f0;
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-meta {
  grid-column: 2;
  margin-top: -5px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel-more {
  display: inline-block;
  margin-top: 18px;
}

.index-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
}

.index-cta span {
  color: #94a3b8;
  font-weight: 800;
}

.index-cta h2 {
  margin: 6px 0 8px;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 40px);
}

.index-cta p {
  margin: 0;
  color: #94a3b8;
}

.page-hero {
  position: relative;
  padding: 150px 0 64px;
  overflow: hidden;
}

.compact-page-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 18% 12%, rgba(226, 232, 240, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0));
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.08em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.filter-toolbar {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 18px;
}

.sticky-filter {
  position: sticky;
  top: 92px;
}

.filter-toolbar input {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
}

.filter-toolbar span {
  flex: 0 0 auto;
  color: #94a3b8;
}

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

.category-overview-card {
  padding: 22px;
  background: rgba(15, 23, 42, 0.52);
  border-radius: 22px;
}

.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-card-head span {
  color: #ffffff;
  font-size: 28px;
  font-weight: 900;
}

.category-card-head strong {
  color: #0f1419;
  padding: 6px 10px;
  background: var(--gradient-silver);
  border-radius: 999px;
}

.category-overview-card p {
  color: #94a3b8;
  line-height: 1.7;
}

.category-overview-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.category-overview-card li a {
  color: #cbd5e1;
}

.category-overview-card li a:hover {
  color: #ffffff;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(15, 23, 42, 0.52);
  border-radius: 22px;
}

.ranking-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.ranking-table th {
  color: #cbd5e1;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
}

.ranking-table td {
  color: #94a3b8;
}

.ranking-table td a {
  color: #ffffff;
  font-weight: 700;
}

.table-rank {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0f1419;
  font-weight: 900;
  background: var(--gradient-silver);
  border-radius: 12px;
}

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

.search-page-form {
  display: flex;
  max-width: 700px;
  gap: 12px;
  margin-top: 28px;
}

.search-page-form input {
  height: 54px;
  padding: 0 18px;
  border-radius: 16px;
}

.search-status {
  margin-bottom: 24px;
  padding: 16px 18px;
  color: #cbd5e1;
  border-radius: 18px;
}

.detail-hero {
  position: relative;
  padding: 130px 0 72px;
  overflow: hidden;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: #94a3b8;
  font-size: 14px;
}

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

.detail-layout {
  display: flex;
  gap: 34px;
  align-items: center;
}

.detail-copy {
  max-width: 850px;
}

.detail-copy h1 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  letter-spacing: -0.07em;
}

.detail-copy p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.detail-meta-grid span {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
}

.detail-meta-grid strong {
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
}

.detail-tags {
  margin-bottom: 28px;
}

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

.movie-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(226, 232, 240, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.72));
  transition: opacity 220ms ease, visibility 220ms ease;
}

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

.play-trigger {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  color: #0f1419;
  background: var(--gradient-silver);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 44px rgba(226, 232, 240, 0.28);
}

.play-trigger span {
  margin-left: 5px;
  font-size: 34px;
}

.player-overlay strong {
  color: #ffffff;
  font-size: clamp(22px, 3vw, 42px);
}

.player-overlay small,
.player-message {
  color: #cbd5e1;
}

.player-message {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 8;
  margin: 0;
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(15, 23, 42, 0.64);
  border-radius: 999px;
}

.detail-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.detail-article article,
.detail-side-box {
  padding: 28px;
  border-radius: 24px;
}

.detail-article h2,
.detail-side-box h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 24px;
}

.detail-article p {
  margin: 0 0 24px;
  color: #cbd5e1;
  line-height: 1.95;
}

.detail-side-box dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
}

.detail-side-box dt {
  color: #94a3b8;
}

.detail-side-box dd {
  margin: 0;
  color: #e2e8f0;
}

.site-footer {
  margin-top: 70px;
  padding: 54px 0 26px;
  background: rgba(2, 6, 23, 0.42);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  margin: 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 540ms ease both;
}

.is-filtered-out,
tr.is-filtered-out {
  display: none !important;
}

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

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

  .split-section,
  .detail-article {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

  .hero-search-card {
    display: none;
  }
}

@media (max-width: 880px) {
  .header-inner {
    height: 66px;
  }

  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

  .hero-section {
    min-height: auto;
    padding-top: 66px;
  }

  .hero-content {
    min-height: 72vh;
    padding: 56px 0 118px;
  }

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

  .hero-thumbs {
    grid-template-columns: repeat(5, 190px);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .hero-thumb {
    min-height: 58px;
  }

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

  .section-heading,
  .index-cta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-poster {
    width: min(260px, 72vw);
  }

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

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

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

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

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy h2,
  .detail-copy h1,
  .page-hero h1 {
    font-size: 34px;
    letter-spacing: -0.04em;
  }

  .hero-actions,
  .page-hero-actions,
  .search-page-form {
    flex-direction: column;
  }

  .hero-actions a,
  .page-hero-actions a,
  .search-page-form button {
    width: 100%;
  }

  .hero-thumbs {
    grid-template-columns: repeat(5, 170px);
  }

  .content-section {
    padding: 46px 0;
  }

  .movie-grid-large,
  .movie-grid,
  .hot-grid,
  .podium-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-body {
    min-height: auto;
  }

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

  .detail-meta-grid,
  .detail-side-box dl {
    grid-template-columns: 1fr;
  }

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

  .play-trigger {
    width: 70px;
    height: 70px;
  }

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