:root {
  --bg: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --muted-strong: #d1d5db;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.18);
  --orange: #f97316;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.11), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.09), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.22);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-strong);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}

.hero-slider {
  position: relative;
  height: 600px;
  overflow: hidden;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(10, 14, 26, 0.72) 45%, rgba(10, 14, 26, 0.05) 100%),
    linear-gradient(to right, rgba(10, 14, 26, 0.70), rgba(10, 14, 26, 0.05));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding-bottom: 82px;
}

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

.hero-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(36px, 7vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
  max-width: 680px;
  margin: 0 0 26px;
  color: var(--muted-strong);
  font-size: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-row.small {
  gap: 6px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  color: #fbbf24;
  background: var(--amber-soft);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.25);
}

.ghost-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

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

.slider-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
}

.slider-control.prev {
  left: 20px;
}

.slider-control.next {
  right: 20px;
}

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

.slider-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.is-active {
  width: 34px;
  background: var(--amber);
}

.section {
  padding: 70px 0;
}

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

.section-head.compact {
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
}

.more-link {
  color: #fbbf24;
  font-weight: 700;
  white-space: nowrap;
}

.more-link:hover {
  color: #fde68a;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.filter-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  padding: 0 12px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13);
}

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-6px) scale(1.01);
}

.poster-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.poster-wrap img,
.horizontal-poster img,
.list-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.25);
}

.card-body {
  padding: 16px;
}

.movie-title {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: #fbbf24;
}

.movie-desc {
  min-height: 44px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
  color: #6b7280;
  font-size: 13px;
}

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

.horizontal-card,
.list-card {
  display: flex;
  gap: 16px;
  padding: 14px;
}

.horizontal-poster {
  position: relative;
  flex: 0 0 170px;
  height: 112px;
  overflow: hidden;
  border-radius: 14px;
}

.list-poster {
  position: relative;
  flex: 0 0 190px;
  height: 126px;
  overflow: hidden;
  border-radius: 14px;
}

.horizontal-card .card-body,
.list-card .card-body {
  min-width: 0;
  padding: 2px 4px;
}

.horizontal-card .movie-desc,
.list-card .movie-desc {
  min-height: auto;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.95), rgba(10, 14, 26, 0.20));
}

.category-tile div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
}

.category-tile h3,
.category-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile p,
.category-card p,
.page-hero p {
  margin: 0;
  color: var(--muted-strong);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  height: 190px;
  padding: 6px;
}

.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

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

.category-card-body span {
  color: #fbbf24;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.rank-list,
.latest-list,
.rank-page-list {
  display: grid;
  gap: 14px;
}

.page-hero {
  position: relative;
  padding: 96px 0 62px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.15), transparent 32%);
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.page-hero p {
  max-width: 760px;
  margin-top: 14px;
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

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

.detail-cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg), rgba(10, 14, 26, 0.76), rgba(10, 14, 26, 0.42)),
    linear-gradient(to right, rgba(10, 14, 26, 0.92), rgba(10, 14, 26, 0.18));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 74px 0 54px;
}

.detail-title-block {
  max-width: 820px;
}

.detail-title-block h1 {
  margin-top: 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.detail-title-block p {
  max-width: 720px;
  color: var(--muted-strong);
  font-size: 18px;
}

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

.detail-poster-card,
.player-card,
.content-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.detail-poster-card {
  overflow: hidden;
  position: sticky;
  top: 92px;
}

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

.detail-meta-list {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.detail-meta-list span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-strong);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.detail-meta-list span:last-child {
  border-bottom: 0;
}

.detail-meta-list b {
  color: #fff;
}

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.content-card {
  padding: 20px;
}

.player-card h2,
.content-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 16px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.site-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.58));
  transition: opacity 0.2s ease;
}

.video-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.play-icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.28);
  font-size: 28px;
  transform: translateX(2px);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}

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

.footer-logo {
  margin-bottom: 14px;
}

.site-footer p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

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

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
}

.footer-links a:hover {
  color: #fbbf24;
}

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

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

  .movie-grid.three-columns,
  .horizontal-grid,
  .split-section,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster-card {
    position: static;
    max-width: 420px;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: grid;
    gap: 8px;
  }

  .hero-slider {
    height: 540px;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .slider-control {
    display: none;
  }

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

  .movie-grid,
  .movie-grid.three-columns,
  .category-grid,
  .category-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .poster-wrap {
    height: 210px;
  }

  .horizontal-card,
  .list-card {
    gap: 12px;
    padding: 12px;
  }

  .horizontal-poster,
  .list-poster {
    flex-basis: 132px;
    height: 92px;
  }

  .tag-pill {
    font-size: 12px;
  }
}

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

  .site-logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 38px;
    height: 38px;
  }

  .movie-grid,
  .movie-grid.three-columns,
  .category-grid,
  .category-card-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy p,
  .detail-title-block p {
    font-size: 16px;
  }

  .horizontal-poster,
  .list-poster {
    flex-basis: 112px;
    height: 82px;
  }

  .poster-wrap {
    height: 260px;
  }

  .section {
    padding: 46px 0;
  }
}
