:root {
  --amber-50: #fff7ed;
  --amber-100: #ffedd5;
  --amber-200: #fed7aa;
  --amber-400: #f59e0b;
  --amber-500: #f59e0b;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --red-500: #ef4444;
  --pink-500: #ec4899;
  --blue-500: #3b82f6;
  --purple-500: #a855f7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --text: #1f2937;
  --muted: #6b7280;
  --card: #ffffff;
  --shadow: 0 16px 45px rgba(146, 64, 14, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 247, 237, 0.94);
  border-bottom: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 10px 30px rgba(146, 64, 14, 0.08);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.32);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.04);
}

.brand-text,
.footer-brand span:last-child {
  font-size: 20px;
  background: linear-gradient(90deg, #d97706, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  color: var(--gray-700);
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #d97706;
}

.nav-search,
.mobile-panel form,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-search input,
.mobile-panel input,
.filter-row input,
.filter-row select {
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  background: #fff;
  color: var(--gray-800);
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
  width: 210px;
  padding: 10px 16px;
}

.nav-search input:focus,
.mobile-panel input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.nav-search button,
.mobile-panel button,
.filter-row button,
.primary-btn {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-search button,
.mobile-panel button,
.filter-row button {
  padding: 10px 18px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-weight: 800;
}

.nav-search button:hover,
.mobile-panel button:hover,
.filter-row button:hover,
.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.36);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--amber-100);
  color: var(--gray-800);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(251, 191, 36, 0.3);
}

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

.mobile-panel form {
  align-items: stretch;
}

.mobile-panel input {
  width: 100%;
  min-width: 0;
  padding: 11px 16px;
}

.mobile-panel a {
  padding: 10px 2px;
  color: var(--gray-700);
  font-weight: 650;
}

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

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 540px;
  overflow: hidden;
  background: #111827;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 1180px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.eyebrow.dark {
  color: #d97706;
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span {
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(245, 158, 11, 0.9);
  font-weight: 700;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 34px;
  background: #fff;
}

.home-sections,
.page-stack {
  display: grid;
  gap: 72px;
  padding: 72px 0;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 900;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 320px);
  gap: 24px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x proximity;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 28px rgba(146, 64, 14, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.movie-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
}

.movie-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .movie-cover img,
.compact-card:hover img,
.rank-item:hover img {
  transform: scale(1.08);
}

.movie-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 6px 11px;
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.movie-title {
  min-height: 46px;
  color: var(--gray-800);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.rank-item:hover strong,
.compact-card:hover span {
  color: #d97706;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span:first-child {
  color: #d97706;
  font-weight: 800;
}

.glass-section {
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.category-grid,
.category-large-grid {
  display: grid;
  gap: 18px;
}

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

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

.category-tile,
.category-card-large {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 22px;
  border-radius: 22px;
  color: var(--gray-800);
  background: linear-gradient(135deg, #fff, #fff7ed);
  border: 1px solid rgba(251, 191, 36, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-tile strong,
.category-card-large span {
  font-size: 20px;
  font-weight: 900;
  color: #d97706;
}

.category-tile span,
.category-card-large p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.7;
}

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

.split-section.narrow-left {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: start;
}

.latest-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 96px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-500), var(--pink-500));
  font-weight: 900;
}

.rank-item img {
  width: 96px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.rank-text {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.rank-text strong {
  color: var(--gray-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-text small {
  color: var(--gray-500);
}

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

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

.compact-card {
  display: grid;
  gap: 8px;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.12);
  transition: transform 0.35s ease;
}

.compact-card span {
  color: var(--gray-800);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card small {
  color: var(--gray-500);
}

.sub-hero {
  padding: 86px 0 72px;
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 34%), linear-gradient(135deg, #fffbeb, #fff7ed 48%, #fed7aa);
}

.sub-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  color: var(--gray-800);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--gray-600);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
  color: var(--gray-600);
  font-size: 14px;
}

.breadcrumb a {
  color: #d97706;
  font-weight: 800;
}

.filter-row {
  margin-bottom: 26px;
  align-items: stretch;
}

.filter-row input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
}

.filter-row select {
  min-width: 150px;
  padding: 13px 18px;
}

.search-page-row input {
  min-width: min(520px, 100%);
}

.card-hidden {
  display: none !important;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.32)), linear-gradient(0deg, #111827, transparent 36%);
  backdrop-filter: blur(4px);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  min-height: 560px;
  padding: 54px 0;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(40px, 6vw, 70px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.8;
}

.detail-copy .breadcrumb,
.detail-copy .breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.tag-list span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-page {
  padding-top: 44px;
}

.player-section {
  scroll-margin-top: 86px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #050505;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(0, 0, 0, 0.28));
  cursor: pointer;
}

.play-overlay span {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 24px 46px rgba(249, 115, 22, 0.4);
  font-size: 38px;
}

.player-frame.is-playing .play-overlay {
  display: none;
}

.detail-section {
  border-radius: 26px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.detail-section h2 {
  margin: 0 0 14px;
  color: var(--gray-800);
  font-size: 28px;
  font-weight: 900;
}

.detail-section p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  line-height: 2;
}

.sticky-panel {
  position: sticky;
  top: 92px;
}

.site-footer {
  border-top: 1px solid rgba(251, 191, 36, 0.26);
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
  padding: 46px 0;
}

.footer-grid p {
  max-width: 420px;
  color: var(--gray-600);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #d97706;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  color: var(--gray-500);
  border-top: 1px solid rgba(251, 191, 36, 0.22);
}

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

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

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

  .category-grid,
  .category-large-grid,
  .split-section,
  .split-section.narrow-left,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .hero-carousel {
    min-height: 560px;
    height: 76vh;
  }

  .hero-content {
    padding: 0 18px;
  }

  .hero-arrow {
    top: auto;
    bottom: 18px;
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .hero-prev {
    left: 18px;
  }

  .hero-next {
    right: 18px;
  }

  .hero-dots {
    bottom: 30px;
  }

  .home-sections,
  .page-stack {
    gap: 48px;
    padding: 46px 0;
  }

  .four-cols,
  .category-grid,
  .category-large-grid,
  .split-section,
  .split-section.narrow-left,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 260px;
  }

  .detail-layout {
    gap: 26px;
  }

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

  .filter-row,
  .mobile-panel form {
    flex-direction: column;
  }

  .filter-row input,
  .filter-row select,
  .filter-row button {
    width: 100%;
  }

  .rank-item {
    grid-template-columns: 36px 82px minmax(0, 1fr);
  }

  .rank-item img {
    width: 82px;
    height: 58px;
  }

  .player-frame {
    border-radius: 20px;
  }

  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 17px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .rail {
    grid-auto-columns: minmax(230px, 78vw);
  }

  .movie-grid {
    gap: 18px;
  }

  .sub-hero {
    padding: 60px 0 50px;
  }
}
