:root {
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --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;
  --cream: #fffbeb;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 35%, #f8fafc 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96));
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 22px rgba(146, 64, 14, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 21px;
  font-weight: 900;
  color: #78350f;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: #a16207;
}

.header-search {
  flex: 1;
  max-width: 430px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 11px 16px;
  color: var(--slate-800);
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 11px 18px;
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 15px;
  font-weight: 800;
  color: #78350f;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  color: #78350f;
  cursor: pointer;
  background: rgba(245, 158, 11, 0.12);
}

.hero-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
}

.hero-main {
  position: relative;
  min-height: 545px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate-900);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s 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.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, 0.18), transparent 32%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.72) 42%, rgba(15, 23, 42, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(650px, 100%);
  padding: 52px;
  color: var(--white);
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags span,
.tag-cloud span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.86);
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.22);
}

.hero-content h1 {
  margin: 20px 0 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  margin: 0;
  max-width: 620px;
  display: -webkit-box;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 17px;
  line-height: 1.75;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.btn-ghost.light {
  color: var(--white);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  color: var(--slate-950);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transform: translateY(-50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

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

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

.hero-dot.active {
  width: 32px;
  background: var(--amber);
}

.hero-side {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.hero-side h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 20px;
}

.hero-side-item,
.latest-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-side-item:hover,
.latest-item:hover {
  background: #fff7ed;
  transform: translateY(-2px);
}

.hero-side-item img,
.latest-item img {
  width: 86px;
  height: 58px;
  flex: 0 0 86px;
  object-fit: cover;
  border-radius: 12px;
}

.hero-side-item span,
.latest-item span,
.rank-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-side-item strong,
.latest-item strong,
.rank-copy strong {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hero-side-item em,
.latest-item em,
.rank-copy em,
.card-body em {
  overflow: hidden;
  color: var(--slate-500);
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 22px;
  background: linear-gradient(135deg, #ef4444, var(--orange));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 4px 0 0;
  color: var(--slate-500);
}

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18);
}

.card-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--slate-800);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.6), transparent 55%);
  opacity: 0.76;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--amber);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.poster-type,
.poster-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.poster-type {
  left: 12px;
  bottom: 12px;
  color: var(--white);
  background: var(--amber);
}

.poster-year {
  right: 12px;
  top: 12px;
  color: var(--white);
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(8px);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  color: var(--slate-900);
  font-size: 17px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--orange);
}

.card-meta {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.category-band {
  margin: 0 0 70px;
  padding: 58px 0;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

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

.category-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 22px;
  color: #78350f;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card em {
  color: #92400e;
  font-style: normal;
  line-height: 1.55;
}

.category-card-large {
  min-height: 170px;
}

.two-col-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 36px;
}

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

.latest-item {
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--soft-shadow);
}

.rank-row img {
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

.rank-copy span {
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
}

.more-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--orange);
  font-weight: 900;
}

.plain-page {
  min-height: 70vh;
}

.page-hero {
  margin: 0 0 46px;
  padding: 72px 16px;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.36), transparent 30%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.small-hero {
  padding: 58px 16px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fcd34d;
  font-weight: 900;
  letter-spacing: 0.08em;
}

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

.page-hero p {
  width: min(720px, 100%);
  margin: 18px auto 0;
  color: #e2e8f0;
  font-size: 17px;
  line-height: 1.75;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 180px));
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  color: var(--slate-800);
  background: #f8fafc;
}

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

.empty-state {
  margin: 46px 0;
  padding: 46px;
  text-align: center;
  color: var(--slate-500);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.full-rank {
  gap: 10px;
}

.full-rank .rank-row {
  grid-template-columns: 58px 110px minmax(0, 1fr);
}

.full-rank .rank-row img {
  height: 76px;
}

.detail-page {
  min-height: 100vh;
  padding: 28px 0 0;
  color: var(--white);
  background: linear-gradient(180deg, #020617 0%, #0f172a 46%, #111827 100%);
}

.detail-page + .site-footer {
  margin-top: 0;
}

.breadcrumb,
.player-panel,
.detail-info,
.related-section {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #cbd5e1;
  font-size: 14px;
}

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

.player-panel {
  margin-bottom: 30px;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  gap: 14px;
  place-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.3));
}

.player-overlay[hidden] {
  display: none;
}

.big-play {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 5px;
  font-size: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.35);
}

.detail-info {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.86));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.detail-cover {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 900;
  background: rgba(245, 158, 11, 0.86);
}

.lead-text {
  color: #fef3c7;
  font-size: 18px;
  line-height: 1.75;
}

.detail-copy h2 {
  margin: 28px 0 10px;
  color: #fcd34d;
  font-size: 22px;
}

.detail-copy p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.related-section {
  margin-top: 42px;
  margin-bottom: 0;
  padding-bottom: 70px;
}

.related-section .section-heading h2 {
  color: var(--white);
}

.related-section .section-heading p {
  color: #cbd5e1;
}

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

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

.site-footer {
  margin-top: 70px;
  color: #cbd5e1;
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.footer-inner strong {
  color: #fcd34d;
  font-size: 22px;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 22px;
}

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

.footer-bottom {
  padding: 18px;
  text-align: center;
  color: #94a3b8;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 980px) {
  .header-inner {
    gap: 14px;
  }

  .brand {
    min-width: auto;
  }

  .brand-subtitle,
  .header-search,
  .site-nav {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav.nav-open {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: #fffbeb;
    box-shadow: var(--shadow);
  }

  .nav-link {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-link:hover {
    background: #fef3c7;
  }

  .hero-wrap {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 500px;
  }

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

  .hero-side h2 {
    grid-column: 1 / -1;
  }

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

  .two-col-section,
  .detail-info,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

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

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

@media (max-width: 620px) {
  .header-inner,
  .home-section,
  .section-container,
  .two-col-section,
  .breadcrumb,
  .player-panel,
  .detail-info,
  .related-section,
  .hero-wrap,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .brand-name {
    font-size: 18px;
  }

  .hero-main {
    min-height: 520px;
    border-radius: 22px;
  }

  .hero-content {
    padding: 26px;
  }

  .hero-content p {
    -webkit-line-clamp: 5;
  }

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

  .hero-side {
    grid-template-columns: 1fr;
  }

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

  .section-heading h2 {
    font-size: 24px;
  }

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

  .full-rank .rank-row,
  .rank-row {
    grid-template-columns: 42px 78px minmax(0, 1fr);
  }

  .full-rank .rank-row img,
  .rank-row img {
    height: 58px;
  }

  .detail-info {
    padding: 22px;
  }

  .detail-cover {
    max-width: 240px;
  }
}
