:root {
  --ash-50: #f8f9fa;
  --ash-100: #f1f3f5;
  --ash-200: #dee2e6;
  --ash-300: #ced4da;
  --ash-500: #6c757d;
  --ash-700: #343a40;
  --ash-800: #212529;
  --ash-900: #0d0f12;
  --volcanic-50: #fef5f1;
  --volcanic-100: #fdeae1;
  --volcanic-600: #f07f4a;
  --volcanic-700: #ee692c;
  --volcanic-800: #e84118;
  --volcanic-900: #9e2a10;
  --lava-50: #fff5e6;
  --lava-100: #ffe6b3;
  --lava-400: #ffb81a;
  --lava-600: #e68a00;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(13, 15, 18, 0.10);
  --shadow-volcanic: 0 12px 32px rgba(240, 127, 74, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ash-900);
  background: linear-gradient(180deg, var(--ash-50) 0%, var(--white) 48%, var(--volcanic-50) 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(222, 226, 230, 0.85);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ash-900);
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--volcanic-600), var(--lava-400));
  box-shadow: var(--shadow-volcanic);
}

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

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

.nav-link {
  padding: 10px 14px;
  color: var(--ash-700);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--volcanic-800);
  background: var(--volcanic-50);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--ash-900);
  border: 1px solid var(--ash-200);
  border-radius: 14px;
  background: var(--white);
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--ash-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 184, 26, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(13, 15, 18, 0.94), rgba(13, 15, 18, 0.58) 46%, rgba(13, 15, 18, 0.20) 100%),
    linear-gradient(0deg, rgba(13, 15, 18, 0.92), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 4;
  width: min(1200px, calc(100% - 32px));
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  padding: 70px 0;
}

.hero-copy {
  width: min(720px, 100%);
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  color: var(--lava-400);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 800;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions,
.section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--volcanic-600), var(--volcanic-800));
  box-shadow: var(--shadow-volcanic);
}

.btn-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-light {
  color: var(--volcanic-800);
  background: var(--white);
  border: 1px solid var(--volcanic-100);
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 36px rgba(13, 15, 18, 0.16);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--lava-400);
}

.main-section {
  padding: 64px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-title {
  margin: 0;
  color: var(--ash-900);
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-subtitle {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--ash-500);
}

.accent-line {
  flex: 1;
  height: 4px;
  min-width: 80px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--volcanic-600), transparent);
}

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

.movie-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(222, 226, 230, 0.86);
  border-radius: 22px;
  box-shadow: 0 8px 24px rgba(13, 15, 18, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(240, 127, 74, 0.42);
  box-shadow: var(--shadow-soft);
}

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--ash-200);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 15, 18, 0.52), transparent 42%);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  color: var(--white);
  background: linear-gradient(135deg, var(--volcanic-600), var(--lava-600));
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 15px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--ash-900);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--ash-500);
  font-size: 12px;
  font-weight: 700;
}

.card-desc {
  margin: 0;
  color: var(--ash-700);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  overflow: hidden;
  color: var(--ash-900);
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 184, 26, 0.26), transparent 36%),
    linear-gradient(135deg, var(--white), var(--volcanic-50));
  border: 1px solid rgba(240, 127, 74, 0.16);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(13, 15, 18, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.category-card p {
  margin: 0;
  color: var(--ash-500);
  font-size: 14px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 76px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(222, 226, 230, 0.86);
  border-radius: 22px;
  box-shadow: 0 8px 22px rgba(13, 15, 18, 0.05);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ash-900), var(--volcanic-800));
  border-radius: 16px;
  font-weight: 900;
}

.rank-cover {
  width: 76px;
  height: 106px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ash-200);
}

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

.rank-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 900;
}

.rank-desc {
  margin: 0;
  color: var(--ash-500);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-hero {
  padding: 66px 0 46px;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 10%, rgba(255, 184, 26, 0.28), transparent 36%),
    linear-gradient(135deg, var(--ash-900), #1b1210 52%, var(--volcanic-900));
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.toolbar {
  position: sticky;
  top: 72px;
  z-index: 40;
  padding: 16px 0;
  background: rgba(248, 249, 250, 0.92);
  border-bottom: 1px solid rgba(222, 226, 230, 0.78);
  backdrop-filter: blur(16px);
}

.toolbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 180px;
  gap: 12px;
}

.control {
  width: 100%;
  min-height: 46px;
  padding: 0 15px;
  color: var(--ash-900);
  background: var(--white);
  border: 1px solid var(--ash-200);
  border-radius: 16px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.control:focus {
  border-color: var(--volcanic-600);
  box-shadow: 0 0 0 4px rgba(240, 127, 74, 0.14);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--lava-400);
}

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

.player-card,
.detail-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(222, 226, 230, 0.86);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

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

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.48));
  border: 0;
  cursor: pointer;
}

.play-cover span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--volcanic-600), var(--lava-400));
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.play-cover.is-hidden {
  display: none;
}

.player-info,
.detail-body {
  padding: 24px;
}

.player-info h1,
.detail-body h2,
.sidebar-title {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.meta-tags span,
.tag-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--volcanic-800);
  background: var(--volcanic-50);
  border: 1px solid var(--volcanic-100);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.content-text {
  color: var(--ash-700);
  font-size: 16px;
}

.content-text p {
  margin: 0 0 16px;
}

.side-cover {
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  background: var(--ash-200);
}

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

.related-grid {
  display: grid;
  gap: 14px;
}

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--ash-50);
  border-radius: 18px;
}

.related-item img {
  width: 72px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
}

.related-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-item p {
  margin: 0;
  color: var(--ash-500);
  font-size: 13px;
}

.no-results {
  display: none;
  padding: 26px;
  text-align: center;
  color: var(--ash-500);
  background: var(--white);
  border: 1px solid var(--ash-200);
  border-radius: 22px;
}

.no-results.is-visible {
  display: block;
}

.site-footer {
  margin-top: 60px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--ash-900);
}

.footer-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--lava-400);
}

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

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

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

@media (max-width: 820px) {
  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--ash-200);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

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

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

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

  .rank-item {
    grid-template-columns: 42px 64px minmax(0, 1fr);
  }

  .rank-item .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .navbar,
  .container,
  .hero-content,
  .footer-inner {
    width: min(100% - 24px, 1200px);
  }

  .logo-text {
    font-size: 18px;
  }

  .hero-content {
    padding: 48px 0 70px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .main-section {
    padding: 42px 0;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .page-hero {
    padding: 46px 0 34px;
  }

  .player-info,
  .detail-body {
    padding: 18px;
  }
}
