:root {
  --amber: #f59e0b;
  --amber-deep: #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 20px 60px rgba(15, 23, 42, 0.16);
  --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  background: linear-gradient(180deg, #fff7ed 0%, #f8fafc 36%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.92);
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
  font-size: 23px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.30);
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #78350f;
}

.brand-copy em {
  color: #b45309;
  font-size: 12px;
  font-style: normal;
}

.header-search {
  flex: 1;
  max-width: 440px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid #fcd34d;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.10);
}

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

.header-search button {
  border: 0;
  margin-right: 4px;
  padding: 8px 16px;
  color: var(--white);
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--amber), var(--orange));
}

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

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #78350f;
  background: #fef3c7;
  cursor: pointer;
}

.category-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-strip a {
  min-width: max-content;
  padding: 7px 14px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(254, 243, 199, 0.76);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.mobile-menu {
  display: none;
  padding: 12px 22px 20px;
  background: #fffbeb;
  border-top: 1px solid #fde68a;
}

.mobile-menu a {
  display: block;
  padding: 11px 0;
}

.mobile-menu form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mobile-menu input {
  min-width: 0;
  flex: 1;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-menu button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--amber);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 58px 22px;
}

.section.tight {
  padding-top: 34px;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-deep);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section h1,
.section h2 {
  margin: 8px 0 0;
  color: var(--slate-950);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.section-subtitle {
  max-width: 760px;
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.8;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: var(--white);
  background: var(--slate-950);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 32%), linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.28) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 92px 22px 62px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: 42px;
  align-items: center;
  min-height: 680px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 15px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(252, 211, 77, 0.34);
  backdrop-filter: blur(8px);
  font-weight: 800;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 640px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  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 34px rgba(249, 115, 22, 0.33);
}

.btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
}

.hero-panel {
  padding: 22px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.hero-feature-list {
  display: grid;
  gap: 12px;
}

.hero-feature {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-feature img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(15, 23, 42, 0.8));
}

.hero-feature strong {
  display: block;
  margin-bottom: 5px;
  color: var(--white);
}

.hero-feature em {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-controls button {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.42);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quick-cats a {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

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

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: radial-gradient(circle at 30% 15%, rgba(251, 191, 36, 0.55), transparent 34%), linear-gradient(145deg, #0f172a, #78350f);
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent);
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  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 12px 28px rgba(0, 0, 0, 0.25);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--amber-deep);
  font-size: 12px;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fffbeb;
}

.movie-card h3 {
  margin: 12px 0 8px;
  color: var(--slate-950);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card p {
  margin: 0;
  color: var(--slate-600);
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag-row span {
  color: #92400e;
  background: #fef3c7;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 224px;
  padding: 24px;
  border-radius: 26px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), #78350f 52%, var(--orange));
  box-shadow: var(--soft-shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 25px;
  margin-bottom: 12px;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: #fde68a;
  line-height: 1.75;
}

.category-card span {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  font-weight: 900;
}

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

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

.mini-card {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
  transform: translateX(4px);
  border-color: #fcd34d;
}

.mini-poster {
  width: 74px;
  height: 98px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #f59e0b);
}

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

.mini-copy strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--slate-950);
}

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

.mini-rank {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #92400e;
  background: #fef3c7;
  font-weight: 900;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px;
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--soft-shadow);
}

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

.empty-state {
  display: none;
  padding: 40px;
  text-align: center;
  color: var(--slate-500);
  border: 1px dashed #fcd34d;
  border-radius: 22px;
  background: #fffbeb;
}

.search-results {
  min-height: 320px;
}

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

.breadcrumb a {
  color: var(--amber-deep);
  font-weight: 800;
}

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

.player-card,
.detail-card,
.sidebar-card {
  border-radius: 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.player-card {
  background: var(--slate-950);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 30% 10%, rgba(245, 158, 11, 0.25), transparent 34%), #020617;
}

.player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #020617;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.25));
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

.player-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.player-title-bar strong {
  font-size: 18px;
}

.player-title-bar span {
  color: #fcd34d;
  font-size: 13px;
}

.detail-card {
  padding: 28px;
  margin-top: 24px;
}

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

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

.meta-line span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  font-weight: 800;
  background: #fef3c7;
}

.detail-card h2,
.sidebar-card h2 {
  margin: 26px 0 12px;
  font-size: 24px;
  color: var(--slate-950);
}

.detail-card p {
  color: var(--slate-700);
  line-height: 1.9;
  font-size: 16px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card h2 {
  margin-top: 0;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 36px 22px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

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

.footer-inner p {
  color: #cbd5e1;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
}

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

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

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

@media (max-width: 840px) {
  .header-search,
  .desktop-nav,
  .category-strip {
    display: none;
  }

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

  .mobile-menu.is-open {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 70px;
  }

  .hero-panel {
    display: none;
  }

  .hero-arrow {
    display: none;
  }

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

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

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

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

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

@media (max-width: 520px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    min-height: 620px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .mini-card {
    grid-template-columns: 64px 1fr;
  }

  .mini-rank {
    display: none;
  }
}
