:root {
  --color-silver: #c0c0c0;
  --color-silver-light: #e8e8e8;
  --color-silver-dark: #a8a8a8;
  --color-moonlight: #f5f5f7;
  --color-night-blue: #1a1f35;
  --color-deep-blue: #0f1419;
  --color-star-white: #ffffff;
  --color-text-primary: #e2e8f0;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --gradient-silver: linear-gradient(135deg, #f8fafc 0%, #c0c0c0 52%, #8b95a5 100%);
  --gradient-moonlight: linear-gradient(180deg, #0f1419 0%, #1a1f35 50%, #2a3347 100%);
  --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.88));
  --shadow-glow: 0 0 30px rgba(192, 192, 192, 0.25);
  --border-soft: 1px solid rgba(148, 163, 184, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gradient-moonlight);
  color: var(--color-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 18% 12%, rgba(192, 192, 192, 0.16), transparent 28%),
    radial-gradient(circle at 82% 0%, rgba(96, 165, 250, 0.11), transparent 26%),
    linear-gradient(180deg, #0f1419 0%, #111827 48%, #0b1120 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.text-gradient {
  color: transparent;
  background: var(--gradient-silver);
  -webkit-background-clip: text;
  background-clip: text;
}

.glass-effect {
  background: rgba(15, 23, 42, 0.68);
  border: var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.silver-glow-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.silver-glow-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(226, 232, 240, 0.42);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-width: 0 0 1px 0;
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #111827;
  font-weight: 900;
  border-radius: 14px;
  background: var(--gradient-silver);
  box-shadow: 0 12px 30px rgba(192, 192, 192, 0.22);
}

.logo-text {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.03em;
}

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

.nav-link,
.mobile-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(310px, 28vw);
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input,
.mobile-search input {
  padding: 10px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(226, 232, 240, 0.62);
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.12);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  color: #111827;
  font-weight: 700;
  background: var(--gradient-silver);
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #e2e8f0;
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  padding: 14px 16px 18px;
  border-width: 1px 0 0 0;
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #0f1419;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transform: scale(1.025);
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero-slide::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(0deg, #0f1419 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 84px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag-row span {
  color: #e2e8f0;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 10px;
}

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

.primary-button,
.ghost-button,
.panel-link,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #0f172a;
  font-weight: 800;
  background: var(--gradient-silver);
  padding: 12px 22px;
}

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

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 36px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.24);
  border: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  background: var(--color-silver-light);
}

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

.page-main {
  padding-top: 96px;
}

.page-hero {
  padding: 72px 0 28px;
}

.small-hero,
.category-hero {
  max-width: 980px;
}

.page-hero p:last-child {
  max-width: 760px;
  color: #cbd5e1;
  font-size: 18px;
}

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

.section-heading h2,
.ranking-head h2,
.detail-article h2,
.detail-side h2,
.sitemap-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.section-more,
.panel-link,
.text-link {
  color: #cbd5e1;
  font-weight: 700;
}

.section-more:hover,
.panel-link:hover,
.text-link:hover {
  color: #ffffff;
}

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

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

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

.movie-card {
  overflow: hidden;
  background: var(--gradient-card);
  border: var(--border-soft);
  border-radius: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.36);
  border-color: rgba(226, 232, 240, 0.32);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 180px;
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.22), rgba(30, 41, 59, 0.7)),
    #111827;
}

.poster-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66) 100%);
}

.poster-img {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.25s ease;
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

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

.image-missing {
  opacity: 0;
}

.score-badge,
.type-badge,
.play-float {
  position: absolute;
  z-index: 2;
}

.score-badge {
  top: 12px;
  left: 12px;
  color: #111827;
  font-weight: 900;
  background: var(--gradient-silver);
  border-radius: 999px;
  padding: 4px 9px;
}

.type-badge {
  right: 12px;
  top: 12px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 4px 9px;
}

.play-float {
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #111827;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 50%;
}

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

.movie-card h3 {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
}

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

.movie-meta {
  margin: 7px 0 0;
  color: #94a3b8;
  font-size: 13px;
}

.movie-desc {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 12px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.category-tile {
  display: flex;
  min-height: 178px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(145deg, rgba(51, 65, 85, 0.82), rgba(15, 23, 42, 0.86));
  border: var(--border-soft);
  border-radius: 22px;
}

.category-name {
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.category-count,
.category-desc {
  color: #cbd5e1;
  font-size: 13px;
}

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

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

.ranking-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.ranking-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 16px;
}

.rank-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0f172a;
  font-weight: 900;
  background: var(--gradient-silver);
  border-radius: 50%;
}

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

.rank-views {
  color: #94a3b8;
  font-size: 13px;
}

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

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

.filter-bar strong {
  display: block;
  color: #ffffff;
}

.filter-bar span {
  color: #94a3b8;
  font-size: 14px;
}

.filter-controls {
  display: flex;
  gap: 10px;
  width: min(620px, 100%);
}

.filter-bar input,
.filter-bar select {
  padding: 12px 14px;
}

.filter-bar select {
  max-width: 190px;
  border-radius: 16px;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 24px;
}

.category-cover {
  display: flex;
  min-height: 190px;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  background-size: cover;
  background-position: center;
}

.category-cover span {
  color: #111827;
  font-size: 18px;
  font-weight: 900;
  background: var(--gradient-silver);
  border-radius: 999px;
  padding: 6px 11px;
}

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

.category-overview-body h2 {
  margin: 0 0 8px;
  color: #ffffff;
}

.category-overview-body p,
.category-stats {
  color: #cbd5e1;
}

.category-stats {
  margin: 14px 0;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
}

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

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

.ranking-table th {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.ranking-table td {
  color: #cbd5e1;
}

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

.search-page-form {
  display: flex;
  gap: 12px;
  max-width: 760px;
  padding: 10px;
  margin-top: 28px;
  border-radius: 999px;
}

.search-page-form input {
  padding: 14px 18px;
  border: 0;
  background: transparent;
}

.search-page-form button {
  min-width: 110px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  color: #94a3b8;
  font-size: 14px;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 38px 0 10px;
}

.detail-poster {
  min-height: 420px;
  border: var(--border-soft);
  border-radius: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
}

.detail-info h1 {
  max-width: 940px;
}

.detail-line {
  max-width: 780px;
  margin: 22px 0;
  color: #e2e8f0;
  font-size: 20px;
}

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

.detail-meta-grid span {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 10px 12px;
}

.large-tags {
  margin-top: 16px;
}

.compact-actions {
  margin-top: 22px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #05070d;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.video-element {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.16), transparent 26%),
    rgba(0, 0, 0, 0.48);
  border: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  margin: 0 auto;
  color: #111827;
  font-size: 30px;
  background: var(--gradient-silver);
  border-radius: 50%;
}

.video-overlay strong {
  font-size: 22px;
}

.video-overlay em {
  color: #cbd5e1;
  font-style: normal;
}

.player-message {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  color: #e2e8f0;
  font-size: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

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

.detail-article,
.detail-side,
.sitemap-card {
  padding: 26px;
  border-radius: 24px;
}

.detail-article p {
  color: #dbeafe;
  font-size: 17px;
}

.detail-article h2 + p {
  margin-top: 12px;
}

.detail-article p + h2 {
  margin-top: 28px;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px 14px;
  margin: 18px 0 0;
}

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

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

.pager-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 44px;
}

.sitemap-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.sitemap-card ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  color: #cbd5e1;
}

.sitemap-all-movies {
  grid-column: 1 / -1;
  max-height: 680px;
  overflow: auto;
}

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

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

.footer-logo {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 900;
}

.site-footer p,
.site-footer li,
.footer-bottom {
  color: #94a3b8;
  font-size: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

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

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

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

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: none;
  width: 44px;
  height: 44px;
  color: #111827;
  font-weight: 900;
  background: var(--gradient-silver);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.back-to-top.is-visible {
  display: block;
}

@media (max-width: 1100px) {
  .featured-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .header-inner {
    height: 68px;
  }

  .menu-button {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 76px;
  }

  .section-heading,
  .filter-bar,
  .pager-links {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-controls,
  .search-page-form {
    flex-direction: column;
  }

  .filter-bar select {
    max-width: none;
  }

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

  .detail-poster {
    max-width: 360px;
    min-height: 0;
  }

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

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

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

  .hero h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 42px;
  }

  .featured-grid,
  .compact-grid,
  .listing-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}
