:root {
  --bg: #fff7ed;
  --bg-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(146, 64, 14, 0.14);
  --amber: #f59e0b;
  --orange: #ea580c;
  --deep: #78350f;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.18);
}

* {
  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(--ink);
  background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 38%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 235, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell,
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
}

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

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 28px rgba(234, 88, 12, 0.26);
}

.logo-title {
  display: block;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(90deg, #92400e, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.logo-subtitle {
  color: #b45309;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #7c2d12;
  font-size: 14px;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 28px rgba(234, 88, 12, 0.22);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 230px;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  background: #ffffff;
  color: #431407;
  outline: none;
  transition: 0.2s ease;
}

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

.search-box span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #d97706;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #ffedd5;
  color: #9a3412;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 16px 18px;
  background: rgba(255, 247, 237, 0.96);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  margin: 4px 0;
  border-radius: 14px;
  color: #7c2d12;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #ffffff;
  background: #451a03;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 24%, rgba(251, 146, 60, 0.25), transparent 35%),
    linear-gradient(90deg, rgba(67, 20, 7, 0.94) 0%, rgba(120, 53, 15, 0.76) 44%, rgba(67, 20, 7, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(67, 20, 7, 0.75));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 660px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.74fr;
  align-items: center;
  gap: 44px;
  padding: 80px 0 72px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.18);
  border: 1px solid rgba(255, 237, 213, 0.28);
  color: #fed7aa;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 18px 0 16px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-text {
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.86;
  max-width: 700px;
}

.hero-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #7c2d12;
  font-size: 13px;
  font-weight: 800;
}

.hero-meta .pill {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 18px 35px rgba(234, 88, 12, 0.3);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
}

.btn-light {
  color: #9a3412;
  background: #ffffff;
  border-color: rgba(245, 158, 11, 0.18);
}

.hero-card {
  position: relative;
  border-radius: 34px;
  padding: 16px;
  background: rgba(255, 247, 237, 0.16);
  border: 1px solid rgba(255, 237, 213, 0.26);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.hero-card-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(67, 20, 7, 0.72);
  backdrop-filter: blur(18px);
}

.hero-card-info strong {
  display: block;
  font-size: 22px;
}

.hero-card-info span {
  color: #fed7aa;
  font-size: 14px;
}

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

.hero-dot {
  width: 42px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 237, 213, 0.38);
}

.hero-dot.active {
  background: #ffffff;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 42px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 950;
  color: #111827;
  letter-spacing: -0.035em;
}

.section-desc {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
}

.category-band {
  background: linear-gradient(135deg, #92400e 0%, #ea580c 45%, #f59e0b 100%);
  color: #ffffff;
}

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

.category-tile {
  min-height: 150px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 45px rgba(67, 20, 7, 0.18);
  transition: 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-5px) rotate(-1deg);
  background: rgba(255, 255, 255, 0.22);
}

.category-icon {
  font-size: 34px;
  margin-bottom: 12px;
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.category-tile p {
  margin: 0;
  color: #ffedd5;
  line-height: 1.6;
  font-size: 14px;
}

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

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

.movie-card {
  border-radius: 26px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #fde68a, #fed7aa);
  overflow: hidden;
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(67, 20, 7, 0.74);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.poster-time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-title {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
  color: #111827;
}

.card-summary {
  min-height: 54px;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.feature-card {
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 28px;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: var(--shadow);
}

.feature-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.feature-content {
  padding: 42px 42px 42px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-content h2,
.feature-content h3 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.03;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.feature-content p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

.scroller {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
}

.scroller .movie-card {
  min-width: 290px;
  max-width: 290px;
  scroll-snap-align: start;
}

.page-hero {
  padding: 72px 0 58px;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.28), transparent 32%),
    linear-gradient(135deg, #78350f 0%, #c2410c 52%, #f59e0b 100%);
}

.page-hero h1 {
  margin: 14px 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  margin: -34px auto 34px;
  position: relative;
  z-index: 3;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.18);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 12px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  padding: 0 14px;
  color: #431407;
  background: #fffaf0;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 74px 112px 1fr;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 14px 36px rgba(120, 53, 15, 0.09);
}

.rank-no {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-weight: 950;
}

.rank-item img {
  width: 112px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 950;
}

.rank-info p {
  margin: 0 0 10px;
  color: #6b7280;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #fed7aa;
  font-weight: 800;
}

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

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

.player-card {
  border-radius: 34px;
  padding: 18px;
  background: #1f0d04;
  box-shadow: 0 34px 86px rgba(67, 20, 7, 0.28);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-cover.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
}

.play-button {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-size: 32px;
  box-shadow: 0 20px 46px rgba(234, 88, 12, 0.36);
}

.detail-main,
.sidebar-card,
.text-card {
  border-radius: 30px;
  background: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.16);
  box-shadow: 0 18px 45px rgba(120, 53, 15, 0.08);
}

.detail-main {
  padding: 30px;
  margin-top: 24px;
}

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

.detail-main h2,
.text-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 950;
}

.detail-main p,
.text-card p {
  color: #4b5563;
  line-height: 1.95;
  margin: 0 0 16px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 8px;
}

.tag {
  padding: 7px 12px;
  border-radius: 999px;
  color: #92400e;
  background: #ffedd5;
  font-size: 13px;
  font-weight: 800;
}

.sidebar-card {
  padding: 18px;
  position: sticky;
  top: 96px;
}

.side-link {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.side-link:hover {
  background: #fff7ed;
}

.side-link img {
  width: 84px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.side-link strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.side-link span {
  color: #92400e;
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  color: #fed7aa;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
  color: #ffffff;
  margin: 0 0 12px;
}

.footer-grid p,
.footer-grid a {
  color: #fed7aa;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 237, 213, 0.15);
  padding: 18px 0;
  color: #fdba74;
}

.empty-state {
  display: none;
  padding: 48px;
  border-radius: 28px;
  background: #ffffff;
  text-align: center;
  color: #92400e;
  font-weight: 900;
}

.no-results .empty-state {
  display: block;
}

@media (max-width: 1060px) {
  .nav-links,
  .nav-actions .search-box {
    display: none;
  }

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

  .hero-inner,
  .detail-wrap,
  .feature-card {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 480px;
  }

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

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

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

  .rank-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-shell,
  .container {
    width: min(100% - 22px, 1180px);
  }

  .logo-subtitle {
    display: none;
  }

  .hero-carousel,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 54px 0 90px;
    gap: 26px;
  }

  .hero-card-info {
    position: static;
    margin-top: 12px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

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

  .feature-content {
    padding: 28px;
  }

  .feature-card img {
    min-height: 320px;
  }

  .rank-item {
    grid-template-columns: 46px 86px 1fr;
    gap: 12px;
  }

  .rank-no {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .rank-item img {
    width: 86px;
  }

  .detail-main {
    padding: 22px;
  }
}
