:root {
  color-scheme: light;
  --color-ink: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fff7ed;
  --color-soft-2: #fef3c7;
  --color-line: #f3d59b;
  --color-amber: #d97706;
  --color-amber-dark: #78350f;
  --color-orange: #c2410c;
  --shadow-card: 0 18px 45px rgba(120, 53, 15, 0.12);
  --shadow-strong: 0 30px 80px rgba(120, 53, 15, 0.24);
  --radius: 22px;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, #78350f 0%, #92400e 50%, #78350f 100%);
  box-shadow: 0 12px 30px rgba(30, 20, 6, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

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

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-5deg);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fde68a;
}

.brand-subtitle {
  font-size: 12px;
  color: #fef3c7;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  transition: color 0.25s ease, background-color 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav .is-active {
  color: #fcd34d;
}

.header-search {
  display: flex;
  align-items: center;
  min-width: 250px;
  padding: 4px;
  border: 1px solid rgba(253, 230, 138, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.header-search input,
.hero-search input,
.page-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--color-ink);
  background: #fff;
}

.header-search input {
  min-width: 0;
  padding: 9px 12px;
  color: #fff;
  background: transparent;
}

.header-search input::placeholder {
  color: #fde68a;
}

.header-search button,
.hero-search button,
.page-search button {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  color: #78350f;
  background: #fde68a;
  font-weight: 800;
}

.mobile-toggle {
  display: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(253, 230, 138, 0.25);
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at 18% 10%, rgba(252, 211, 77, 0.35), transparent 34%), linear-gradient(115deg, #78350f 0%, #9a3412 52%, #713f12 100%);
}

.hero-pattern,
.page-hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 54px 54px;
  animation: drift 18s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 108px 54px; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: center;
  min-height: 620px;
  gap: 52px;
}

.hero-kicker,
.section-kicker,
.detail-label,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 13px;
  border: 1px solid rgba(253, 230, 138, 0.45);
  border-radius: 999px;
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: transparent;
  background: linear-gradient(90deg, #fde68a, #fff7ed);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  margin: 0 0 18px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: #fffbeb;
}

.hero-description {
  max-width: 720px;
  margin: 0 0 28px;
  color: #fde68a;
  font-size: 18px;
}

.hero-search,
.page-search {
  display: flex;
  max-width: 680px;
  padding: 6px;
  border: 1px solid rgba(253, 230, 138, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.16);
}

.hero-search input,
.page-search input {
  padding: 15px 20px;
  border-radius: 999px;
  font-size: 16px;
}

.hero-search button,
.page-search button {
  padding: 14px 24px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  color: #fff;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 32px rgba(194, 65, 12, 0.28);
}

.btn.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.btn.light {
  color: #78350f;
  background: #fff;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid rgba(253, 230, 138, 0.24);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.hero-panel-title {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  color: #78350f;
  background: #fde68a;
  font-weight: 900;
}

.hero-slides,
.hero-slide,
.hero-slide-link {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide img.is-hidden {
  display: none;
}

.hero-slide-link {
  display: block;
  background: linear-gradient(135deg, #92400e, #451a03);
}

.hero-slide-link::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 18%, rgba(0, 0, 0, 0.86) 100%);
}

.hero-slide-copy {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 34px;
  z-index: 2;
}

.hero-tags,
.movie-tags,
.category-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.movie-tags span,
.category-tags span,
.detail-tags span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.hero-slide-copy h2 {
  margin: 14px 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.hero-slide-copy p {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: #fde68a;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.hero-watch {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
  width: 28px;
  background: #fde68a;
}

.content-section {
  padding: 72px 0;
}

.bg-white {
  background: #fff;
}

.section-tint {
  background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.section-kicker {
  color: #92400e;
  background: #fef3c7;
}

.section-more,
.category-enter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d97706;
  font-weight: 900;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 119, 6, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-card.is-featured {
  grid-row: span 2;
}

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

.movie-poster,
.category-cover,
.detail-poster {
  position: relative;
  overflow: hidden;
  background-color: #78350f;
  background-size: cover;
  background-position: center;
}

.movie-poster {
  aspect-ratio: 16 / 10;
}

.movie-card.is-featured .movie-poster {
  min-height: 360px;
  aspect-ratio: auto;
}

.movie-poster img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-poster img.is-hidden,
.category-cover img.is-hidden,
.detail-poster img.is-hidden {
  display: none;
}

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

.movie-category,
.movie-duration {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.movie-category {
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, #f59e0b, #ea580c);
}

.movie-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.72);
}

.movie-info {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-info h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.25s ease;
}

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

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #78716c;
  font-size: 12px;
  font-weight: 750;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 12px 24px rgba(120, 53, 15, 0.32);
  font-size: 20px;
  font-weight: 950;
}

.rank-badge + .card-link .movie-category {
  left: 68px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.category-cover {
  aspect-ratio: 16 / 8;
}

.category-copy {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.category-copy h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 950;
}

.category-copy p {
  margin: 0;
  color: var(--color-muted);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #78350f 0%, #9a3412 55%, #713f12 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 800;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1.2fr 220px 220px;
  gap: 16px;
  align-items: end;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 24px;
  background: #fff7ed;
}

.single-filter {
  grid-template-columns: minmax(0, 1fr);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #92400e;
  font-weight: 900;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #f3d59b;
  border-radius: 14px;
}

.search-status {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #f3d59b;
  border-radius: 18px;
  color: #92400e;
  background: #fff7ed;
  font-weight: 800;
}

.detail-hero {
  min-height: 560px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.08);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  padding: 54px 0 70px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  min-height: 470px;
  border: 1px solid rgba(253, 230, 138, 0.2);
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.detail-one-line {
  max-width: 850px;
  margin: 0 0 22px;
  color: #fde68a;
  font-size: 19px;
}

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

.detail-meta span {
  padding: 8px 11px;
  border: 1px solid rgba(253, 230, 138, 0.25);
  border-radius: 999px;
  color: #fffbeb;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section {
  background: #111827;
}

.player-section .section-heading h2,
.player-section .section-heading p {
  color: #fff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(253, 230, 138, 0.18);
  border-radius: 28px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.64));
  font-size: 20px;
  font-weight: 950;
}

.player-start.is-hidden {
  display: none;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  box-shadow: 0 16px 32px rgba(234, 88, 12, 0.34);
  font-size: 28px;
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 3;
  padding: 8px 12px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 800;
}

.prose-block {
  max-width: 980px;
}

.prose-block h2 {
  margin: 0 0 14px;
  font-size: 28px;
  font-weight: 950;
}

.prose-block p {
  margin: 0 0 28px;
  color: #374151;
  font-size: 17px;
  line-height: 1.85;
}

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

.detail-table div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #f3d59b;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-table dt {
  color: #92400e;
  font-weight: 950;
}

.detail-table dd {
  margin: 0;
  color: #374151;
}

.cta-section {
  padding: 80px 0;
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, #78350f, #c2410c, #713f12);
}

.cta-section h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 950;
}

.cta-section p {
  margin: 0 0 28px;
  color: #fde68a;
  font-size: 18px;
}

.site-footer {
  color: #fef3c7;
  background: linear-gradient(135deg, #1c1917 0%, #451a03 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.4fr;
  gap: 36px;
  padding: 48px 0;
}

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

.site-footer p {
  margin: 0;
  color: #fef3c7;
  line-height: 1.8;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

.footer-bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(253, 230, 138, 0.14);
  color: #fcd34d;
}

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

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

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 52px 0;
  }

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

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

  .detail-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-icon {
    width: 42px;
    height: 42px;
  }

  .brand-title {
    font-size: 18px;
  }

  .brand-subtitle {
    display: none;
  }

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

  .hero-inner {
    gap: 28px;
  }

  .hero-search,
  .page-search {
    display: grid;
    gap: 8px;
    border-radius: 22px;
  }

  .hero-search input,
  .page-search input,
  .hero-search button,
  .page-search button {
    border-radius: 16px;
  }

  .hero-panel {
    min-height: 430px;
    border-radius: 24px;
  }

  .section-heading {
    display: grid;
  }

  .compact-grid,
  .rank-grid,
  .top-rank-grid,
  .category-grid,
  .featured-grid,
  .detail-table,
  .footer-grid,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .movie-card.is-featured {
    grid-row: auto;
  }

  .movie-card.is-featured .movie-poster {
    min-height: 240px;
  }

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

  .detail-poster {
    min-height: 420px;
  }

  .content-section,
  .cta-section {
    padding: 52px 0;
  }

  .page-hero .container,
  .detail-hero-inner {
    padding: 46px 0;
  }
}
