:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --yellow: #facc15;
  --pink: #f472b6;
  --green: #34d399;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 1.15rem;
  --radius-lg: 1.6rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 32rem), var(--bg);
  color: var(--text);
  font-family: inherit;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(30, 41, 59, 0.95);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 2rem, 80rem);
  height: 4rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
  color: #00131a;
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.42);
  font-size: 0.9rem;
}

.brand-text {
  font-size: 1.2rem;
  color: #ffffff;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link,
.mobile-nav-link {
  color: #cbd5e1;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--cyan);
}

.mobile-menu-button {
  display: none;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 1.15rem;
  height: 0.12rem;
  border-radius: 99px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.98);
  padding: 0.75rem 1rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.mobile-nav.open {
  display: grid;
}

.mobile-nav-link {
  display: block;
  padding: 0.72rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(30, 41, 59, 0.55);
}

.site-main {
  padding-top: 4rem;
  min-height: 70vh;
}

.container {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #020617;
}

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

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.78) 35%, rgba(2, 6, 23, 0.2) 100%),
    linear-gradient(to right, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.2));
}

.hero-content {
  position: absolute;
  left: max(1rem, calc((100vw - 80rem) / 2));
  right: max(1rem, calc((100vw - 80rem) / 2));
  bottom: 8.5rem;
  max-width: 52rem;
  z-index: 2;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 48rem;
  margin: 1.25rem 0 0;
  color: #dbeafe;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.85;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.primary-button,
.ghost-button,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: #00131a;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-strong));
  box-shadow: 0 15px 35px rgba(6, 182, 212, 0.28);
}

.ghost-button,
.more-link {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.68);
  color: #e2e8f0;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 2.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
  left: 1rem;
}

.hero-next {
  right: 1rem;
}

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

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: var(--cyan);
}

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 5;
  width: min(calc(100% - 2rem), 46rem);
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.84);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  outline: none;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.8);
  color: #ffffff;
  padding: 0.85rem 1rem;
}

.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: #64748b;
}

.hero-search button {
  border: 0;
  border-radius: 999px;
  background: var(--cyan);
  color: #00131a;
  padding: 0 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.content-section {
  padding: 4rem 0;
  background: #0f172a;
}

.content-section:nth-of-type(even) {
  background: #020617;
}

.gradient-section {
  background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.dark-section {
  background: #020617;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 0.85rem;
  align-items: center;
}

.section-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.22);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  grid-column: 2;
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 25px 55px rgba(6, 182, 212, 0.16);
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.movie-card.compact .poster-frame {
  aspect-ratio: 16 / 11;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 58%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.corner-badge,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.76rem;
  font-weight: 800;
}

.year-badge {
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.32rem 0.6rem;
}

.type-badge {
  left: 0.65rem;
  bottom: 0.65rem;
  padding: 0.32rem 0.6rem;
}

.rank-badge {
  top: 0.65rem;
  left: 0.65rem;
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, var(--yellow), #f97316);
  color: #1f1300;
}

.play-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  color: #00131a;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.65);
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 0 35px rgba(34, 211, 238, 0.38);
}

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

.movie-card-body {
  padding: 1rem;
}

.movie-card-body h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1.04rem;
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

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

.movie-card-body p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  min-height: 3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.tag-row,
.detail-tags,
.detail-genre {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.movie-meta {
  margin-top: 0.75rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.movie-meta span,
.tag-row span,
.detail-tags span,
.detail-genre span {
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.tag-row {
  margin-top: 0.75rem;
}

.tag-row span {
  font-size: 0.75rem;
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(34, 211, 238, 0.15);
}

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

.category-tile {
  min-height: 9rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(15, 23, 42, 0.92)),
    rgba(30, 41, 59, 0.75);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.45);
}

.category-tile span {
  display: block;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.category-tile p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 2rem;
  align-items: start;
}

.ranking-panel {
  position: sticky;
  top: 5.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.84);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.ranking-heading {
  padding: 0.5rem 0.75rem 1rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
}

.rank-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.8rem 0.75rem;
  border-radius: 0.85rem;
  transition: background 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.88);
}

.rank-row span {
  color: var(--cyan);
  font-weight: 900;
}

.rank-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #ffffff;
}

.rank-row em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.more-link {
  margin: 1rem 0.75rem 0.25rem;
  width: calc(100% - 1.5rem);
}

.horizontal-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-color: #334155 #0f172a;
}

.wide-card {
  flex: 0 0 22rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(30, 41, 59, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.wide-card a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  min-height: 9rem;
}

.wide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-card div {
  padding: 1rem;
  min-width: 0;
}

.wide-card strong {
  display: block;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wide-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--cyan);
  font-size: 0.82rem;
}

.wide-card p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.22), transparent 28rem),
    linear-gradient(135deg, #020617, #0f172a 70%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.small-hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.page-hero p {
  max-width: 48rem;
  margin: 1rem 0 0;
  color: #cbd5e1;
  line-height: 1.85;
  font-size: 1.06rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, minmax(10rem, 13rem));
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.82rem;
}

.filter-search {
  min-width: 0;
}

.empty-state {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: var(--radius);
}

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

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

.category-overview-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.13);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category-overview-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.category-overview-head p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-overview-head a {
  flex-shrink: 0;
  color: var(--cyan);
  font-weight: 900;
}

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

.category-samples a {
  position: relative;
  overflow: hidden;
  border-radius: 0.95rem;
  aspect-ratio: 16 / 11;
  background: #020617;
}

.category-samples img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.category-samples span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.65rem 0.65rem;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-list {
  display: grid;
  gap: 1rem;
}

.ranking-card {
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.13);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ranking-card:hover {
  border-color: rgba(34, 211, 238, 0.38);
  transform: translateY(-2px);
}

.ranking-card a {
  display: grid;
  grid-template-columns: 4.5rem 12rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
}

.ranking-number {
  font-size: 1.5rem;
  font-weight: 950;
  color: var(--cyan);
  text-align: center;
}

.ranking-card img {
  width: 12rem;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.9rem;
}

.ranking-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.15rem;
}

.ranking-copy p {
  margin: 0.5rem 0 0.8rem;
  color: var(--muted);
  line-height: 1.7;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 36rem;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px);
  transform: scale(1.08);
  opacity: 0.48;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.74) 50%, rgba(2, 6, 23, 0.5)),
    radial-gradient(circle at 15% 40%, rgba(34, 211, 238, 0.2), transparent 32rem);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 2rem 0 4rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: #cbd5e1;
}

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

.breadcrumb strong {
  color: #ffffff;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
}

.detail-poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
  background: #0f172a;
}

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

.detail-copy h1 {
  font-size: clamp(2.35rem, 5vw, 4.8rem);
}

.detail-one-line {
  max-width: 58rem;
  margin: 1rem 0 1.2rem;
  color: #e2e8f0;
  font-size: 1.12rem;
  line-height: 1.8;
}

.detail-tags span {
  color: #67e8f9;
  background: rgba(8, 145, 178, 0.16);
  border-color: rgba(34, 211, 238, 0.2);
}

.player-section {
  padding-top: 3rem;
  background: #020617;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(34, 211, 238, 0.18);
  background: #000000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16 / 9;
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 24rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-play-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cyan);
  color: #00131a;
  font-size: 2rem;
  box-shadow: 0 0 45px rgba(34, 211, 238, 0.48);
}

.player-cover strong {
  font-size: clamp(1.1rem, 3vw, 1.65rem);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 2rem;
  align-items: start;
}

.detail-article,
.detail-sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.13);
  background: rgba(15, 23, 42, 0.82);
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.detail-article h2,
.detail-sidebar h2 {
  margin: 0 0 1rem;
  color: #ffffff;
  font-size: 1.35rem;
}

.detail-article h2:not(:first-child) {
  margin-top: 2rem;
}

.detail-article p {
  margin: 0;
  color: #cbd5e1;
  line-height: 2;
  font-size: 1.02rem;
}

.detail-sidebar dl {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.2rem;
}

.detail-sidebar dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  padding-bottom: 0.75rem;
}

.detail-sidebar dt {
  color: var(--muted);
}

.detail-sidebar dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  text-align: right;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: #0f172a;
}

.footer-inner {
  width: min(100% - 2rem, 80rem);
  margin: 0 auto;
  padding: 3rem 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-column h3 {
  margin: 0 0 1rem;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.footer-column a {
  color: var(--muted);
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.25rem 1rem;
  color: #64748b;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1180px) {
  .desktop-nav {
    max-width: 62vw;
  }

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

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

  .ranking-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-content {
    bottom: 9rem;
  }

  .hero-arrow {
    display: none;
  }

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

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

  .filter-search {
    grid-column: 1 / -1;
  }

  .detail-layout {
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: center;
  }

  .ranking-card a {
    grid-template-columns: 3.5rem 8rem minmax(0, 1fr);
  }

  .ranking-card img {
    width: 8rem;
  }

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

@media (max-width: 620px) {
  .container,
  .header-inner,
  .footer-inner {
    width: min(100% - 1.2rem, 80rem);
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .hero-section {
    min-height: 76vh;
  }

  .hero-content {
    bottom: 9.5rem;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    letter-spacing: -0.04em;
  }

  .hero-search {
    border-radius: 1.2rem;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 2.75rem;
  }

  .content-section {
    padding: 3rem 0;
  }

  .movie-grid,
  .four-grid,
  .category-grid,
  .category-overview-grid,
  .category-samples {
    grid-template-columns: 1fr;
  }

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

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

  .detail-poster {
    max-width: 16rem;
  }

  .ranking-card a {
    grid-template-columns: 3rem minmax(0, 1fr);
  }

  .ranking-card img {
    width: 100%;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .ranking-copy {
    grid-column: 1 / -1;
  }

  .wide-card {
    flex-basis: 19rem;
  }
}
