:root {
  --bg: #fff8ed;
  --bg-soft: #fff2dc;
  --text: #24150b;
  --muted: #745b49;
  --line: rgba(146, 91, 32, 0.18);
  --amber: #f59e0b;
  --orange: #ea580c;
  --rose: #be123c;
  --dark: #2a1208;
  --shadow: 0 22px 60px rgba(80, 40, 8, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.24), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 50%, #fffaf4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 237, 0.82);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.32);
}

.brand-text {
  font-size: 1.18rem;
  color: #48200c;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #6f4d35;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff7eb;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #693612;
}

.main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 22px 0;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 34px;
  background: #2a1208;
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 72px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease;
  background:
    linear-gradient(90deg, rgba(21, 9, 4, 0.92) 0%, rgba(30, 13, 6, 0.78) 48%, rgba(80, 28, 9, 0.38) 100%),
    var(--hero-image),
    linear-gradient(135deg, #4d1808, #f59e0b);
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

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

.hero-copy h1,
.page-hero h1,
.movie-title h1 {
  margin: 16px 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0 0 26px;
  max-width: 660px;
  color: rgba(255, 248, 237, 0.84);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.75;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.34);
}

.btn-secondary {
  color: #fff8ed;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

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

.hero-panel {
  position: relative;
  min-height: 470px;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.82) 100%),
    var(--hero-image),
    linear-gradient(135deg, #f59e0b, #7c2d12);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.hero-panel-info {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  color: white;
}

.hero-panel-info strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.hero-panel-info span {
  color: rgba(255, 255, 255, 0.78);
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.68);
  transform: translateY(-50%) scale(1.05);
}

.carousel-button.prev {
  left: 22px;
}

.carousel-button.next {
  right: 22px;
}

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

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

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

.quick-search {
  margin: -32px auto 48px;
  position: relative;
  z-index: 12;
  max-width: 940px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-input {
  width: 100%;
  height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--text);
  background: #fffaf3;
  outline: none;
}

.search-input:focus {
  border-color: rgba(234, 88, 12, 0.55);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.section {
  margin: 68px 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.section-more {
  flex: none;
  color: #9a3412;
  font-weight: 900;
}

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

.category-card {
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.24), transparent 55%),
    #fffaf3;
  box-shadow: 0 18px 42px rgba(99, 56, 11, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 950;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 42px rgba(99, 56, 11, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 88, 12, 0.32);
  box-shadow: var(--shadow);
}

.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  background-color: #5a250b;
  background-image:
    linear-gradient(180deg, rgba(12, 5, 2, 0.05) 0%, rgba(12, 5, 2, 0.78) 100%),
    var(--poster-image),
    linear-gradient(135deg, #ffcc66, #9a3412 55%, #421308);
  background-size: cover;
  background-position: center;
}

.poster-type,
.poster-score {
  position: absolute;
  top: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.poster-type {
  left: 12px;
}

.poster-score {
  right: 12px;
  color: #ffe08a;
}

.card-content {
  padding: 15px;
}

.card-meta {
  color: #9a3412;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 4.9em;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff1d6;
}

.page-hero {
  padding: 56px;
  border-radius: 32px;
  color: #fff8ed;
  background:
    radial-gradient(circle at 85% 15%, rgba(250, 204, 21, 0.42), transparent 28rem),
    linear-gradient(135deg, #4a1607 0%, #9a3412 48%, #be123c 100%);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 248, 237, 0.85);
  font-size: 1.08rem;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
  color: #925b20;
  font-weight: 800;
}

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

.filter-bar {
  position: sticky;
  top: 76px;
  z-index: 18;
  margin: 26px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(99, 56, 11, 0.08);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 70px 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(99, 56, 11, 0.12);
}

.rank-num {
  color: #9a3412;
  font-size: 1.35rem;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background-color: #5a250b;
  background-image:
    linear-gradient(180deg, rgba(12, 5, 2, 0.05) 0%, rgba(12, 5, 2, 0.64) 100%),
    var(--poster-image),
    linear-gradient(135deg, #facc15, #9a3412);
  background-size: cover;
  background-position: center;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 950;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-score {
  color: #be123c;
  font-size: 1.4rem;
  font-weight: 950;
}

.movie-hero {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 38px;
  align-items: stretch;
  padding: 36px;
  border-radius: 34px;
  color: #fff8ed;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.32), transparent 28rem),
    linear-gradient(135deg, #2a1208 0%, #6b220b 52%, #9f1239 100%);
  box-shadow: var(--shadow);
}

.movie-cover {
  min-height: 560px;
  border-radius: 28px;
  background-color: #5a250b;
  background-image:
    linear-gradient(180deg, rgba(12, 5, 2, 0.05) 0%, rgba(12, 5, 2, 0.78) 100%),
    var(--poster-image),
    linear-gradient(135deg, #ffcc66, #9a3412 55%, #421308);
  background-size: cover;
  background-position: center;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.movie-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-title h1 {
  color: white;
}

.movie-title p {
  color: rgba(255, 248, 237, 0.86);
  font-size: 1.08rem;
  line-height: 1.9;
}

.movie-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.movie-facts span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: #ffedc2;
  font-weight: 850;
}

.player-section {
  margin: 52px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background-color: #120805;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.86)),
    var(--player-image),
    linear-gradient(135deg, #2a1208, #9a3412);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.35));
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.play-layer span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--amber), var(--orange), var(--rose));
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.45);
}

.play-layer strong {
  font-size: 1.3rem;
  letter-spacing: 0.08em;
}

.video-shell.is-playing .play-layer {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
}

.prose-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(99, 56, 11, 0.08);
}

.prose-card h2 {
  margin: 0 0 16px;
  font-size: 1.7rem;
  font-weight: 950;
}

.prose-card p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 16px;
}

.site-footer {
  margin-top: 78px;
  color: #ffedc2;
  background: linear-gradient(135deg, #3b1307, #7c2d12 54%, #9f1239);
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer-grid h2,
.footer-grid h3 {
  margin: 0 0 14px;
  color: #fff7db;
  font-weight: 950;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 237, 194, 0.78);
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(255, 237, 194, 0.82);
  transition: color 0.25s ease;
}

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

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  border-top: 1px solid rgba(255, 237, 194, 0.2);
  color: rgba(255, 237, 194, 0.72);
}

.empty-state {
  display: none;
  padding: 26px;
  border: 1px dashed rgba(154, 52, 18, 0.28);
  border-radius: 22px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.75);
}

.empty-state.show {
  display: block;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 58px 48px;
  }

  .hero-panel {
    min-height: 280px;
  }

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

  .movie-cover {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 248, 237, 0.98);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

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

  .main {
    padding: 20px 14px 0;
  }

  .hero-carousel {
    min-height: 660px;
    border-radius: 24px;
  }

  .hero-slide {
    padding: 46px 24px 72px;
  }

  .hero-copy h1,
  .page-hero h1,
  .movie-title h1 {
    font-size: clamp(2.2rem, 13vw, 4rem);
  }

  .carousel-button {
    display: none;
  }

  .quick-search {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 72px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-score {
    grid-column: 2 / -1;
    font-size: 1rem;
  }

  .movie-hero,
  .page-hero,
  .prose-card {
    padding: 22px;
    border-radius: 24px;
  }

  .movie-cover {
    min-height: 410px;
  }

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

@media (max-width: 430px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 230px;
  }
}
