:root {
  --amber: #f59e0b;
  --orange: #f97316;
  --rose: #f43f5e;
  --ink: #111827;
  --muted: #6b7280;
  --paper: #ffffff;
  --soft: #fff7ed;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #fff1f2 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand {
  font-size: clamp(20px, 2vw, 28px);
}

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 700;
  padding: 8px 2px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-soft {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  height: min(720px, 72vh);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.24;
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  padding-bottom: 68px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  margin-bottom: 18px;
}

.hero h1,
.hero h2 {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero-movie-title {
  font-size: clamp(24px, 3vw, 42px) !important;
  letter-spacing: -0.02em !important;
  color: #fde68a;
}

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

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

.hero-meta span,
.tag-row span,
.detail-tags a {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.btn-primary,
.btn-ghost,
.hero-search button,
.filter-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.hero-search button,
.filter-panel button {
  background: linear-gradient(90deg, var(--amber), var(--orange));
  color: #fff;
  box-shadow: 0 16px 32px rgba(245, 158, 11, 0.28);
}

.btn-primary,
.btn-ghost {
  min-height: 48px;
  padding: 0 24px;
}

.btn-primary:hover,
.hero-search button:hover,
.filter-panel button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.35);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

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

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

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
}

.hero-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.hero-search button {
  min-height: 48px;
  padding: 0 24px;
}

.quick-cats,
.content-section,
.page-main,
.ranking-strip {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-cats {
  padding: 34px 0 8px;
}

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

.pill-link {
  padding: 12px 16px;
  border-radius: 999px;
  color: #9a3412;
  background: #fff;
  border: 1px solid rgba(249, 115, 22, 0.18);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.08);
  font-weight: 800;
}

.content-section,
.ranking-strip {
  padding: 56px 0;
}

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

.section-head h2,
.page-hero h1,
.content-block h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p,
.content-block p,
.category-panel p,
.detail-lead {
  color: var(--muted);
  line-height: 1.8;
}

.section-head a {
  color: #d97706;
  font-weight: 900;
  white-space: nowrap;
}

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

.movie-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-link {
  display: block;
  height: 100%;
}

.card-cover {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
}

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

.movie-card:hover .card-cover img,
.compact-card:hover img,
.rank-item:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 55%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.movie-card:hover .card-cover::after {
  opacity: 1;
}

.card-badge,
.card-play {
  position: absolute;
  z-index: 2;
}

.card-badge {
  top: 12px;
  right: 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 8px;
}

.card-play {
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  transform: translate(-50%, -50%) scale(0.75);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

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

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  transition: color 0.25s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card:hover h3 {
  color: #d97706;
}

.card-body p {
  margin: 0 0 14px;
  min-height: 48px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-bottom: 12px;
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.18);
}

.ranking-strip {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #1f2937 55%, #431407);
  color: #fff;
  box-shadow: var(--shadow);
}

.light-head h2,
.light-head p,
.light-head a {
  color: #fff;
}

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

.rank-item,
.compact-card,
.rank-row a {
  display: grid;
  align-items: center;
  gap: 14px;
}

.rank-item {
  grid-template-columns: auto 80px 1fr;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-no {
  font-size: 24px;
  color: #fbbf24;
  font-weight: 950;
}

.rank-item img,
.compact-card img,
.rank-row img {
  width: 80px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.rank-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em,
.rank-copy small,
.compact-card em {
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-size: 13px;
}

.page-main {
  padding: 34px 0 72px;
}

.page-hero {
  padding: 58px;
  border-radius: 30px;
  background: linear-gradient(135deg, #fff 0%, #fff7ed 54%, #ffe4e6 100%);
  box-shadow: 0 14px 38px rgba(249, 115, 22, 0.13);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -80px;
  top: -80px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28), transparent 70%);
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow {
  position: relative;
  z-index: 1;
}

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

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

.category-panel {
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.category-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 950;
  color: #111827;
}

.category-title em {
  font-style: normal;
  font-size: 14px;
  color: #d97706;
}

.category-preview {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.compact-card {
  grid-template-columns: 72px 1fr;
  padding: 8px;
  border-radius: 14px;
  background: #fff7ed;
}

.compact-card img {
  width: 72px;
  height: 54px;
}

.compact-card strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  color: #9a3412;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #9a3412;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
}

.filter-panel select {
  min-width: 132px;
}

.filter-panel button {
  min-height: 48px;
  padding: 0 18px;
}

.filter-empty {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #b45309;
  font-weight: 800;
}

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

.rank-row {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-row a {
  grid-template-columns: 70px 140px 1fr;
  padding: 14px;
}

.rank-row img {
  width: 140px;
  height: 88px;
}

.rank-row .rank-copy em,
.rank-row .rank-copy small {
  color: var(--muted);
}

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

.detail-video-card,
.detail-copy,
.content-block {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050505;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.18));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  z-index: 3;
}

.play-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-ring {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  box-shadow: 0 18px 36px rgba(245, 158, 11, 0.35);
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta div {
  padding: 12px;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-meta dt {
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.detail-tags a {
  color: #9a3412;
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.2);
}

.content-block {
  margin-top: 26px;
  padding: 30px;
}

.content-block h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 14px;
}

.accent-block {
  background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.related-section {
  width: 100%;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(135deg, #0f172a, #1f2937 60%, #111827);
  padding: 54px 0 28px;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 34px;
}

.footer-brand {
  font-size: 22px;
}

.footer-grid p {
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid h2 {
  color: #fff;
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.68);
}

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

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.56);
}

[hidden] {
  display: none !important;
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    min-height: 600px;
    height: 78vh;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 154px;
  }

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

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

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

  .filter-panel input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .nav-shell,
  .mobile-nav,
  .quick-cats,
  .content-section,
  .page-main,
  .ranking-strip,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1,
  .hero h2 {
    font-size: 40px;
  }

  .hero-search {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .hero-dots {
    bottom: 152px;
  }

  .section-head,
  .compact-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .page-hero {
    padding: 34px 22px;
  }

  .rank-row a {
    grid-template-columns: 48px 92px 1fr;
  }

  .rank-row img {
    width: 92px;
    height: 68px;
  }

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