:root {
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --orange: #f97316;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--slate-800);
  background: var(--slate-50);
}

img,
video {
  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: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}

.nav-wrap {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-900);
  font-weight: 900;
  font-size: 22px;
  white-space: nowrap;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.28);
  font-size: 14px;
}

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

.nav-menu a {
  padding: 10px 14px;
  color: var(--slate-600);
  font-weight: 700;
  border-radius: 999px;
  transition: 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--amber-dark);
  background: #fff7ed;
}

.nav-search {
  display: flex;
  align-items: center;
  width: 310px;
  background: var(--slate-100);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid transparent;
}

.nav-search:focus-within {
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--white);
}

.nav-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 9px 12px;
  color: var(--slate-800);
}

.nav-search button,
.search-page-form button {
  border: 0;
  color: var(--white);
  background: var(--amber);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 800;
  cursor: pointer;
}

.nav-search button:hover,
.search-page-form button:hover,
.btn-primary:hover {
  background: var(--amber-dark);
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--slate-100);
  color: var(--slate-800);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 22px;
}

.hero-carousel {
  position: relative;
  height: 76vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 5s ease;
}

.hero-slide.is-active > img {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(245, 158, 11, 0.28), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  color: var(--white);
}

.hero-badge,
.card-category,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--amber);
  border-radius: 999px;
  font-weight: 800;
}

.hero-badge {
  padding: 8px 16px;
  margin-bottom: 18px;
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 650px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-row span,
.detail-tags span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.tag-row span,
.detail-tags span {
  background: var(--slate-100);
  color: var(--slate-700);
}

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

.btn-primary,
.btn-ghost,
.section-link,
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.btn-primary {
  color: var(--white);
  background: var(--amber);
  padding: 14px 28px;
  box-shadow: 0 18px 35px rgba(245, 158, 11, 0.28);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 13px 26px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 34px;
  cursor: pointer;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: 0.25s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--white);
}

.content-section,
.category-band,
.split-section {
  padding: 64px 0;
}

.category-band,
.soft-bg {
  background: linear-gradient(135deg, #fff7ed, var(--slate-50));
}

.split-section {
  background: linear-gradient(90deg, var(--slate-100), var(--slate-50));
}

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

.section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.section-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 25px rgba(245, 158, 11, 0.22);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cover-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-200);
}

.movie-card.compact .cover-link {
  aspect-ratio: 16 / 9;
}

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

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

.card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 54%);
  opacity: 0.82;
}

.card-category {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  font-size: 12px;
}

.card-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.76);
  font-size: 12px;
  font-weight: 800;
}

.rank-num {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  font-weight: 900;
}

.play-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: 0.25s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  color: var(--slate-900);
  font-size: 18px;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--amber-dark);
}

.card-body p {
  min-height: 46px;
  margin: 0 0 14px;
  color: var(--slate-600);
  line-height: 1.65;
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
  color: var(--slate-500);
  font-size: 13px;
}

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

.category-tile,
.category-overview-card {
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.category-tile {
  display: block;
  padding: 16px;
}

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

.tile-images,
.category-cover {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.tile-images img,
.category-cover img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  border-radius: 12px;
}

.category-tile strong,
.category-overview-body h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--slate-900);
  font-size: 20px;
}

.category-tile em,
.category-overview-body p {
  display: block;
  color: var(--slate-600);
  font-style: normal;
  line-height: 1.6;
  font-size: 14px;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.5fr;
  gap: 42px;
}

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

.mini-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: 0.2s ease;
}

.mini-card:hover {
  transform: translateX(5px);
  box-shadow: 0 15px 32px rgba(15, 23, 42, 0.1);
}

.mini-thumb {
  flex: 0 0 112px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--slate-200);
}

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

.mini-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mini-info strong {
  color: var(--slate-900);
  line-height: 1.35;
}

.mini-info em {
  color: var(--slate-500);
  font-style: normal;
  font-size: 13px;
}

.mini-rank {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--white);
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.section-link,
.btn-text {
  margin-top: 22px;
  color: var(--amber-dark);
  background: #fffbeb;
  padding: 12px 18px;
}

.page-hero {
  padding: 70px 0;
  color: var(--white);
}

.amber-hero {
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.dark-hero {
  background: linear-gradient(135deg, var(--slate-950), var(--slate-700));
}

.slate-hero {
  background: linear-gradient(135deg, var(--slate-800), var(--slate-600));
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.75;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--slate-500);
  font-size: 14px;
}

.crumbs.light {
  color: rgba(255, 255, 255, 0.82);
}

.crumbs a:hover {
  color: var(--amber-dark);
}

.crumbs.light a:hover {
  color: var(--white);
}

.page-filter,
.search-page-form {
  display: flex;
  margin-top: 26px;
  max-width: 620px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px;
  backdrop-filter: blur(12px);
}

.page-filter input,
.search-page-form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  padding: 12px 16px;
}

.page-filter input::placeholder,
.search-page-form input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.overview-grid {
  display: grid;
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 18px;
}

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

.category-overview-body {
  padding: 4px 8px 8px 0;
}

.category-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 32px;
}

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

.rank-side {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-side h2 {
  margin: 0 0 18px;
}

.detail-hero {
  padding: 34px 0 0;
  background: linear-gradient(180deg, var(--slate-100), var(--white));
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  margin-top: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--slate-950);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
  aspect-ratio: 16 / 9;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--slate-950);
}

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 20px 38px rgba(245, 158, 11, 0.32);
  font-size: 34px;
  cursor: pointer;
  transition: 0.2s ease;
}

.player-start:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.player-card.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.detail-text {
  padding: 28px 0 0;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.detail-title-row h1 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.pill-link {
  padding: 8px 14px;
  white-space: nowrap;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 24px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 14px;
}

.story-box,
.side-box {
  margin-bottom: 22px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.story-box.warm {
  background: linear-gradient(135deg, #fffbeb, #fff7ed);
}

.story-box h2,
.side-box h2 {
  margin: 0 0 14px;
  color: var(--slate-900);
  font-size: 20px;
}

.story-box p {
  margin: 0 0 12px;
  color: var(--slate-700);
  line-height: 1.9;
}

.detail-side {
  position: relative;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  background: var(--slate-200);
}

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

.compact-list .mini-card {
  box-shadow: none;
  background: var(--slate-50);
}

.site-footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, 0.8);
  background: var(--slate-950);
}

.footer-inner {
  display: grid;
  gap: 14px;
}

.footer-brand {
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

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

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

.site-footer p {
  margin: 0;
}

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

.empty-result {
  grid-column: 1 / -1;
  padding: 54px 24px;
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: var(--slate-600);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

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

  .split-grid,
  .rank-layout,
  .detail-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .rank-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 62px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .nav-menu {
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

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

  .hero-carousel {
    height: 72vh;
    min-height: 540px;
  }

  .hero-content {
    bottom: 86px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
  }

  .movie-grid,
  .small-grid,
  .category-grid,
  .rank-grid,
  .category-preview-list {
    grid-template-columns: 1fr;
  }

  .content-section,
  .category-band,
  .split-section {
    padding: 42px 0;
  }

  .page-hero {
    padding: 48px 0;
  }

  .detail-title-row {
    display: block;
  }

  .pill-link {
    margin-top: 14px;
  }

  .player-start {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
