:root {
  --bg: #fff7ed;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3d2a6;
  --brand: #f59e0b;
  --brand-strong: #ea580c;
  --brand-soft: #ffedd5;
  --green-soft: #ecfdf5;
  --blue-soft: #eff6ff;
  --shadow: 0 24px 70px rgba(124, 45, 18, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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;
  border-bottom: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 14px 32px rgba(234, 88, 12, 0.26);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.05;
  background: linear-gradient(90deg, #b45309, #ea580c);
  -webkit-background-clip: text;
  color: transparent;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: #8a5a17;
  font-size: 12px;
}

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

.primary-nav a,
.mobile-nav a {
  color: #4b5563;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: var(--brand-strong);
}

.primary-nav a:hover {
  transform: translateY(-1px);
}

.header-search {
  width: min(300px, 28vw);
  position: relative;
}

.search-input {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: 999px;
  padding: 12px 18px;
  color: #7c2d12;
  outline: none;
  background: #fffaf0;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.search-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, 88vw);
  max-height: 460px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-panel.is-open {
  display: block;
}

.search-result {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.search-result:hover {
  background: #fff7ed;
}

.search-result img {
  width: 76px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
}

.search-result strong {
  display: block;
  font-size: 14px;
  color: #1f2937;
}

.search-result span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #6b7280;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #9a3412;
  background: #ffedd5;
}

.mobile-nav {
  display: none;
  border-top: 1px solid #fed7aa;
  padding: 12px 20px 18px;
  background: #ffffff;
}

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

.page-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-carousel {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 26%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(90deg, rgba(67, 20, 7, 0.88), rgba(120, 53, 15, 0.72), rgba(234, 88, 12, 0.48));
}

.hero-content {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 650px;
  padding: 90px 20px 150px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 48px;
}

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

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0 0 28px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.8;
}

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

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

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

.btn-primary {
  color: #7c2d12;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(67, 20, 7, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 20px 45px rgba(67, 20, 7, 0.26);
}

.btn-accent {
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.24);
}

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

.hero-poster-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 80px rgba(67, 20, 7, 0.28);
  backdrop-filter: blur(16px);
}

.hero-poster-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-poster-info {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  border-radius: 20px;
  padding: 18px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(12px);
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-thumbs {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  width: min(860px, calc(100% - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.hero-thumb {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px rgba(67, 20, 7, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  border-color: #ffffff;
  transform: translateY(-4px);
}

.hero-thumb img {
  width: 100%;
  height: 76px;
  object-fit: cover;
}

.hero-thumb span {
  display: block;
  overflow: hidden;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section {
  padding: 72px 0;
}

.section.compact {
  padding: 42px 0;
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-head p,
.page-title p,
.detail-title p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.soft-panel {
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.feature-content {
  padding: clamp(26px, 4vw, 54px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: #9a3412;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
  background: #ffedd5;
}

.feature-content h3 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(124, 45, 18, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-7px);
  box-shadow: 0 28px 58px rgba(124, 45, 18, 0.18);
}

.movie-cover-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fdba74);
}

.movie-cover-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.28);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
}

.movie-body {
  padding: 18px;
}

.movie-body h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 19px;
  line-height: 1.35;
}

.movie-body h3 a:hover {
  color: var(--brand-strong);
}

.movie-body p {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  margin: 0 0 14px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 24px;
  min-height: 164px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.16);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgba(124, 45, 18, 0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  font-size: 24px;
}

.category-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #6b7280;
  line-height: 1.75;
}

.page-hero {
  padding: 76px 0 44px;
  background:
    radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.22), transparent 28%),
    radial-gradient(circle at 85% 25%, rgba(234, 88, 12, 0.12), transparent 28%);
}

.page-title {
  max-width: 820px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 14px;
  margin: 0 0 28px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  color: #7c2d12;
  outline: none;
  background: #ffffff;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0;
  color: #9a3412;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--brand-strong);
}

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

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.player-wrap {
  position: relative;
  background: #111827;
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.42);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

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

.player-button {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.detail-title,
.detail-body {
  padding: 26px;
}

.detail-title h1 {
  margin-bottom: 14px;
}

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

.detail-section {
  border-top: 1px solid #f3d2a6;
  padding: 26px;
}

.detail-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.detail-section p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.95;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.side-card {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.side-card h2,
.side-card h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.side-link {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  margin-bottom: 14px;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease;
}

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

.side-link img {
  width: 112px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.side-link strong {
  display: block;
  margin-bottom: 5px;
  color: #1f2937;
  line-height: 1.35;
}

.side-link span {
  color: #6b7280;
  font-size: 13px;
}

.site-footer {
  margin-top: 78px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937 50%, #111827);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 46px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

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

.footer-inner p,
.footer-inner li {
  margin: 0 0 9px;
  color: #cbd5e1;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 18px 20px;
  text-align: center;
  color: #9ca3af;
}

.empty-state {
  display: none;
  border: 1px dashed #fdba74;
  border-radius: 18px;
  padding: 28px;
  color: #9a3412;
  text-align: center;
  background: #fff7ed;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1080px) {
  .primary-nav,
  .header-search {
    display: none;
  }

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

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

  .hero-poster-card {
    max-width: 420px;
    margin: 0 auto;
  }

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

  .side-card {
    position: static;
  }
}

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

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: none;
  }

  .page-shell {
    padding: 0 16px;
  }

  .hero-carousel,
  .hero-content {
    min-height: 760px;
  }

  .hero-content {
    padding: 54px 16px 190px;
    gap: 28px;
  }

  .hero-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-thumb:nth-child(n + 5) {
    display: none;
  }

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

  .section {
    padding: 46px 0;
  }

  .section-head {
    display: block;
  }

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

  .side-link {
    grid-template-columns: 96px 1fr;
  }

  .side-link img {
    width: 96px;
    height: 66px;
  }
}
