:root {
  --bg: #fffbeb;
  --bg-soft: #fff7ed;
  --card: rgba(255, 255, 255, 0.88);
  --text: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 191, 36, 0.38);
  --amber: #f59e0b;
  --amber-dark: #b45309;
  --orange: #f97316;
  --shadow: 0 24px 60px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 32rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--amber-dark);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.24);
}

.brand-text {
  font-size: 25px;
  background: linear-gradient(90deg, #d97706, #ca8a04, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

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

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--amber-dark);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-nav input,
.search-hero-form input {
  width: 230px;
  border: 2px solid #fde68a;
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-nav input:focus,
.search-hero-form input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.top-search button,
.mobile-nav button,
.search-hero-form button {
  border: 0;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 11px 18px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fef3c7;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #92400e;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-nav a,
.mobile-nav form {
  display: block;
  padding: 10px 12px;
  font-weight: 800;
  color: #92400e;
}

.mobile-nav form {
  display: flex;
  gap: 10px;
}

.mobile-nav input {
  width: 100%;
}

.mobile-nav.is-open {
  display: block;
}

.hero-carousel {
  position: relative;
  height: 640px;
  overflow: hidden;
  background: #111827;
}

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

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

.hero-image {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #78350f, #111827 70%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transform: scale(1.04);
}

.hero-image img.cover-muted,
.poster-frame img.cover-muted,
.rank-cover img.cover-muted,
.aside-poster img.cover-muted {
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.06)),
    linear-gradient(0deg, rgba(255, 251, 235, 1), rgba(255, 251, 235, 0) 26%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #fff;
  animation: floatIn 0.8s ease both;
}

.hero-eyebrow,
.eyebrow {
  margin: 0 0 12px;
  color: #fbbf24;
  letter-spacing: 0.08em;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 950;
}

.hero-summary {
  margin: 22px 0 0;
  font-size: 20px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.hero-tags,
.detail-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-list span,
.detail-tags span {
  color: #92400e;
  background: #fef3c7;
  border-color: #fde68a;
}

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

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 16px 35px rgba(249, 115, 22, 0.28);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.cta-links a:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-4px);
}

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

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 34px;
  background: #fbbf24;
}

.category-strip {
  position: relative;
  z-index: 5;
  margin-top: -64px;
  margin-bottom: 72px;
}

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

.category-tile,
.honey-card,
.movie-card,
.category-card-full,
.ranking-panel,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.category-tile {
  min-height: 190px;
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-icon,
.category-card-full span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.category-tile strong,
.category-card-full h2 {
  display: block;
  margin: 14px 0 8px;
  font-size: 20px;
  color: #78350f;
}

.category-tile p,
.category-card-full p,
.section-heading p,
.page-hero p,
.movie-card p,
.rank-info p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.category-tile div,
.category-samples,
.hero-inline-links,
.cta-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tile div a,
.category-samples a,
.hero-inline-links a {
  color: #b45309;
  font-size: 13px;
  font-weight: 800;
}

.page-section {
  margin-bottom: 84px;
}

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

.section-heading h2,
.page-hero h1,
.detail-content h1,
.cta-panel h2 {
  margin: 0;
  font-weight: 950;
  letter-spacing: -0.04em;
  color: #1f2937;
}

.section-heading h2,
.cta-panel h2 {
  font-size: clamp(30px, 4vw, 44px);
  background: linear-gradient(90deg, #d97706, #ca8a04, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading p {
  margin: 10px 0 0;
}

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

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

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

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

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 18%, rgba(251, 191, 36, 0.82), transparent 40%),
    linear-gradient(135deg, #78350f, #f59e0b 55%, #fb923c);
}

.movie-card-large .poster-frame,
.movie-card-feature .poster-frame {
  aspect-ratio: 16 / 9;
}

.poster-frame img,
.rank-cover img,
.aside-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease, opacity 0.2s ease;
}

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

.poster-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.movie-card-body {
  padding: 18px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #b45309;
  font-size: 13px;
  font-weight: 900;
}

.movie-card h3,
.rank-info h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.32;
}

.movie-card h3 a:hover,
.rank-info h3 a:hover,
.breadcrumb a:hover,
.aside-links a:hover {
  color: var(--amber-dark);
}

.movie-card p,
.rank-info p {
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.movie-card-horizontal .poster-frame {
  aspect-ratio: auto;
  min-height: 150px;
}

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.movie-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 4px 18px;
  scroll-snap-type: x proximity;
}

.rail-item {
  min-width: 310px;
  max-width: 310px;
  scroll-snap-align: start;
}

.editor-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.editor-list {
  display: grid;
  gap: 18px;
}

.ranking-panel {
  border-radius: var(--radius);
  padding: 18px;
}

.rank-row {
  display: grid;
  grid-template-columns: 58px 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  transition: background 0.18s ease, transform 0.18s ease;
}

.rank-row:hover {
  background: rgba(255, 251, 235, 0.96);
  transform: translateX(4px);
}

.rank-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.rank-cover {
  height: 70px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #78350f, #f59e0b);
}

.rank-info h3 {
  margin-top: 0;
  margin-bottom: 4px;
}

.rank-info p {
  margin-bottom: 6px;
}

.cta-panel {
  border-radius: 32px;
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.28), transparent 28rem),
    linear-gradient(135deg, #fbbf24, #f97316);
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel p {
  width: min(720px, 100%);
  margin: 16px auto 28px;
  font-size: 19px;
  line-height: 1.8;
}

.cta-links {
  justify-content: center;
}

.cta-links a {
  color: #b45309;
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 0.2s ease;
}

.page-hero {
  padding: 74px 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(251, 191, 36, 0.35), transparent 26rem),
    linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.9));
  border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

.compact-hero p {
  max-width: 760px;
  font-size: 18px;
}

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

.category-card-full {
  border-radius: var(--radius);
  padding: 26px;
}

.category-main-link {
  display: block;
}

.category-samples {
  margin-top: 18px;
}

.hero-inline-links {
  margin-top: 22px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.filter-bar button {
  border: 1px solid #fde68a;
  background: #fff;
  color: #92400e;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 900;
}

.filter-bar button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-color: transparent;
}

.search-hero-form {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  max-width: 640px;
}

.search-hero-form input {
  width: 100%;
}

.full-ranking .rank-row {
  grid-template-columns: 66px 118px 1fr;
  padding: 18px;
}

.full-ranking .rank-cover {
  height: 86px;
}

.detail-page {
  padding: 36px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #92400e;
  font-weight: 800;
  margin-bottom: 22px;
}

.breadcrumb a::after {
  content: "›";
  margin-left: 10px;
  color: #d97706;
}

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

.detail-main {
  display: grid;
  gap: 22px;
}

.player-card,
.detail-content,
.detail-aside .honey-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.player-box {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(251, 191, 36, 0.2), rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.28));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.player-start span {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.25);
  font-size: 32px;
  padding-left: 4px;
}

.player-start strong {
  font-size: 18px;
}

.player-box.is-playing .player-start {
  opacity: 0;
  pointer-events: none;
}

.player-box.is-loading .player-start strong::after {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-top-color: #fff;
  vertical-align: -3px;
  animation: spin 0.8s linear infinite;
}

.detail-content {
  padding: clamp(24px, 4vw, 40px);
}

.detail-content h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.detail-one-line {
  margin: 18px 0;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.9;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 16px;
  border-radius: 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.detail-meta-grid span {
  display: block;
  color: #b45309;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
}

.detail-meta-grid strong {
  color: #1f2937;
}

.detail-content h2,
.aside-links h2 {
  margin: 30px 0 12px;
  font-size: 25px;
  color: #78350f;
}

.detail-content p {
  color: #374151;
  line-height: 1.95;
  font-size: 17px;
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 22px;
}

.aside-poster,
.aside-links {
  padding: 18px;
}

.aside-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #78350f, #f59e0b);
  margin-bottom: 16px;
}

.aside-poster .primary-btn {
  width: 100%;
}

.aside-links a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid #fde68a;
  color: #92400e;
  font-weight: 900;
}

.related-section {
  margin-top: 58px;
}

.site-footer {
  margin-top: 70px;
  padding: 42px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-size: 24px;
}

.footer-links {
  align-content: start;
  justify-content: flex-end;
}

.footer-links a {
  color: #92400e;
  font-weight: 900;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 26px auto 0;
  color: #92400e;
  font-weight: 700;
  font-size: 14px;
}

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

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .site-nav {
    justify-content: space-between;
  }

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

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

  .movie-grid-3,
  .editor-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .hero-carousel {
    height: 600px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 42px;
  }

  .hero-summary {
    font-size: 17px;
  }

  .hero-actions,
  .search-hero-form,
  .footer-inner,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .category-strip {
    margin-top: -34px;
  }

  .category-grid,
  .movie-grid-3,
  .movie-grid-4,
  .category-overview-grid,
  .detail-meta-grid,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .full-ranking .rank-row,
  .rank-row {
    grid-template-columns: 46px 74px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rank-cover,
  .full-ranking .rank-cover {
    height: 62px;
  }

  .rank-info p {
    display: none;
  }

  .mobile-nav form {
    flex-direction: column;
  }
}
