:root {
  --dark-950: #1a1f2e;
  --dark-900: #202638;
  --dark-850: #263044;
  --mirror-900: #213044;
  --mirror-800: #283b53;
  --mirror-700: #334e68;
  --realm-300: #eec078;
  --realm-400: #e8a84d;
  --realm-500: #d8902c;
  --text: #f8fafc;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.10);
  --glass: rgba(26, 31, 46, 0.72);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(232, 168, 77, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 10%, rgba(51, 78, 104, 0.45), transparent 34rem),
    linear-gradient(180deg, #121722 0%, var(--dark-950) 42%, #111827 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 23, 34, 0.78);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, var(--realm-300), var(--realm-500));
  box-shadow: 0 12px 35px rgba(232, 168, 77, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-link,
.mobile-panel a {
  padding: 0.58rem 0.9rem;
  border-radius: 999px;
  color: #d1d5db;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-panel a:hover {
  color: var(--realm-300);
  background: rgba(255, 255, 255, 0.08);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
}

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

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(18, 23, 34, 0.92);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
}

.hero {
  position: relative;
  min-height: 82vh;
  overflow: hidden;
  background: #121722;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 23, 34, 0.96) 0%, rgba(18, 23, 34, 0.74) 42%, rgba(18, 23, 34, 0.22) 100%),
    linear-gradient(0deg, var(--dark-950) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  align-items: center;
  gap: 3rem;
  padding-top: 6rem;
  padding-bottom: 7rem;
}

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

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--realm-300);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.category-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.hero-copy p,
.page-hero p,
.category-hero p {
  max-width: 680px;
  margin: 0 0 1.4rem;
  color: #d1d5db;
  font-size: 1.08rem;
}

.hero-tags,
.detail-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span,
.detail-tags span {
  padding: 0.36rem 0.68rem;
  border: 1px solid rgba(238, 192, 120, 0.26);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #f3f4f6;
  font-size: 0.85rem;
}

.hero-actions,
.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.7rem;
}

.btn-primary,
.btn-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  color: #111827;
  background: linear-gradient(135deg, var(--realm-300), var(--realm-500));
  box-shadow: 0 16px 38px rgba(232, 168, 77, 0.25);
}

.btn-ghost,
.section-more {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
}

.btn-primary:hover,
.btn-ghost:hover,
.section-more:hover,
.movie-card:hover,
.intro-card:hover,
.category-card:hover,
.ranking-card:hover,
.horizontal-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  background: var(--glass);
}

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

.hero-poster span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.56);
  color: var(--realm-300);
  font-size: 0.86rem;
  backdrop-filter: blur(10px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--realm-400);
}

.hero-thumbs {
  display: flex;
  gap: 0.7rem;
}

.hero-thumbs a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 160px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(10px);
  color: #e5e7eb;
}

.hero-thumbs img {
  width: 42px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-hero,
.category-hero {
  margin-top: 1.5rem;
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(232, 168, 77, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.small-hero h1,
.category-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.7rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}

.intro-card,
.category-card,
.side-card,
.detail-article,
.rank-panel,
.search-panel,
.horizontal-card,
.ranking-card,
.player-shell {
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.intro-card {
  min-height: 160px;
  padding: 1.4rem;
  border-radius: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.intro-card.large {
  grid-row: span 2;
}

.intro-card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.25rem;
}

.intro-card span,
.intro-card p,
.category-card p,
.section-heading p,
.movie-card p,
.horizontal-card p,
.ranking-card p,
.site-footer p {
  color: var(--muted);
}

.content-section {
  margin-top: 3rem;
}

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

.section-heading h2,
.rank-title h2,
.detail-article h1,
.detail-article h2,
.side-card h2 {
  margin: 0;
  line-height: 1.15;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0.45rem 0 0;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding: 0.9rem;
  border-radius: 24px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 230px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.filter-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  color: #d1d5db;
  cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
  border-color: rgba(232, 168, 77, 0.55);
  color: var(--realm-300);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  border-color: rgba(232, 168, 77, 0.42);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-badge,
.score-badge {
  position: absolute;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.play-badge {
  left: 0.8rem;
  bottom: 0.8rem;
  padding: 0.36rem 0.7rem;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 0.82rem;
}

.score-badge {
  top: 0.8rem;
  right: 0.8rem;
  padding: 0.3rem 0.55rem;
  background: rgba(232, 168, 77, 0.92);
  color: #111827;
  font-weight: 800;
}

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

.movie-card h3,
.horizontal-card h3,
.ranking-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
}

.movie-card p,
.horizontal-card p,
.ranking-card p {
  margin: 0 0 0.7rem;
  font-size: 0.92rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #cbd5e1;
  font-size: 0.82rem;
}

.meta-row span {
  padding: 0.18rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 1.4rem;
  align-items: start;
}

.horizontal-list {
  display: grid;
  gap: 0.9rem;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 22px;
  transition: transform 0.25s ease;
}

.horizontal-poster img {
  width: 130px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 1.25rem;
  border-radius: 28px;
}

.rank-list {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.rank-list a,
.side-links a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem 0.55rem;
  border-radius: 14px;
  color: #e5e7eb;
}

.rank-list a:hover,
.side-links a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.rank-list span,
.rank-number {
  color: var(--realm-300);
  font-weight: 800;
}

.rank-list strong,
.side-links span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list em,
.side-links em,
.ranking-card em {
  color: var(--realm-300);
  font-style: normal;
  font-weight: 800;
}

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

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

.category-card {
  min-height: 170px;
  padding: 1.3rem;
  border-radius: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card span {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.category-card b {
  color: var(--realm-300);
}

.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 2rem;
  align-items: center;
}

.category-feature {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.category-feature img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.category-feature strong {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

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

.ranking-card {
  border-radius: 24px;
  transition: transform 0.25s ease;
}

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

.ranking-card img {
  width: 120px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  object-fit: cover;
}

.ranking-card small {
  color: #cbd5e1;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.4rem 0 1rem;
  color: #cbd5e1;
}

.breadcrumb a {
  color: var(--realm-300);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #05070b;
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #05070b;
}

.player-cover {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #05070b;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: blur(1px) saturate(1.1);
}

.play-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-left: 0.2rem;
  background: linear-gradient(135deg, var(--realm-300), var(--realm-500));
  color: #111827;
  font-size: 2.2rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.player-shell.is-playing .player-cover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.detail-article {
  margin-top: 1rem;
  padding: 1.6rem;
  border-radius: 28px;
}

.detail-article h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
}

.detail-article .lead {
  color: #e5e7eb;
  font-size: 1.08rem;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.detail-meta div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.detail-meta dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.detail-meta dd {
  margin: 0.2rem 0 0;
  color: white;
  font-weight: 700;
}

.detail-article h2 {
  margin-top: 1.4rem;
  font-size: 1.35rem;
}

.detail-article p {
  color: #d1d5db;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 1rem;
}

.side-poster img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.side-card {
  padding: 1rem;
  border-radius: 24px;
}

.side-links {
  margin-top: 0.8rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 22, 0.68);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0;
  display: grid;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
}

.copyright {
  margin: 0;
  font-size: 0.9rem;
}

.is-hidden {
  display: none !important;
}

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }
}

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

  .menu-button {
    display: block;
  }

  .hero,
  .hero-content {
    min-height: 760px;
  }

  .hero-content,
  .category-hero {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .hero-poster,
  .hero-thumbs {
    display: none;
  }

  .hero-controls {
    justify-content: flex-start;
  }

  .page-hero,
  .category-hero {
    padding: 2rem 1.2rem;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

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

  .horizontal-card,
  .ranking-card a {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .ranking-card .rank-number {
    grid-column: 1 / -1;
  }

  .ranking-card img,
  .horizontal-poster img {
    width: 92px;
  }

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

@media (max-width: 480px) {
  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

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

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