* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --text: #1f2937;
  --muted: #6b7280;
  --panel: rgba(255, 255, 255, 0.86);
  --line: rgba(245, 158, 11, 0.22);
  --shadow: 0 24px 70px rgba(120, 53, 15, 0.14);
  --radius: 24px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 191, 36, 0.22), transparent 30%),
    radial-gradient(circle at 90% 8%, rgba(251, 146, 60, 0.18), transparent 28%),
    linear-gradient(135deg, #fffbeb 0%, #fefce8 48%, #fff7ed 100%);
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #eab308, #fb923c);
  box-shadow: 0 14px 36px rgba(217, 119, 6, 0.28);
}

.brand-text,
.footer-brand,
.section-head h2,
.honey-text {
  background: linear-gradient(90deg, #d97706, #ca8a04, #ea580c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  color: #4b5563;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--amber-700);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

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

.top-search input,
.filter-panel input {
  width: 260px;
  border: 2px solid rgba(245, 158, 11, 0.24);
  border-radius: 999px;
  padding: 11px 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.filter-panel input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

.top-search button,
.filter-panel button,
.primary-btn,
.section-more {
  border: 0;
  color: #ffffff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24, #eab308, #fb923c);
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button:hover,
.filter-panel button:hover,
.primary-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(217, 119, 6, 0.3);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-700);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 28%, rgba(251, 191, 36, 0.35), transparent 22%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.62) 46%, rgba(17, 24, 39, 0.22)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1200px) / 2));
  color: #ffffff;
  animation: float 6s ease-in-out infinite;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--amber-400);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.03;
  letter-spacing: -0.05em;
}

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

.hero-tags,
.detail-meta,
.movie-meta,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  background: rgba(254, 243, 199, 0.84);
}

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

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ghost-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.26);
}

.hero-panel {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-right: auto;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.hero-panel a {
  color: #ffffff;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.content-section {
  width: min(1200px, calc(100% - 32px));
  margin: 72px auto;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

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

.category-tile,
.category-card,
.movie-card,
.ranking-item,
.detail-text,
.filter-panel,
.player-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.category-tile {
  position: relative;
  min-height: 168px;
  overflow: hidden;
  padding: 22px;
  color: #ffffff;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(120, 53, 15, 0.22);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.1), rgba(17, 24, 39, 0.78));
  z-index: 1;
}

.category-tile span,
.category-tile strong {
  position: relative;
  z-index: 2;
  display: block;
}

.category-tile span {
  margin-top: 50px;
  font-size: 24px;
  font-weight: 900;
}

.category-tile strong {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
}

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

.movie-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fef3c7, #fff7ed);
}

.poster-link img,
.detail-poster img,
.ranking-poster img,
.category-hero-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.4s ease;
}

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

.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.play-chip {
  right: 10px;
  bottom: 10px;
  padding: 7px 11px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
}

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

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover,
.category-card h2 a:hover,
.mini-links a:hover {
  color: var(--amber-700);
}

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

.movie-meta span {
  padding: 4px 8px;
  color: #6b7280;
  background: rgba(251, 191, 36, 0.12);
}

.tag-row span {
  padding: 4px 8px;
  font-size: 12px;
}

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

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 52px 82px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
}

.ranking-poster {
  width: 82px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: #fef3c7;
}

.ranking-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.ranking-item p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #78350f, #92400e 45%, #f59e0b);
}

.page-hero {
  display: grid;
  align-items: center;
  min-height: 360px;
  padding: 72px max(16px, calc((100vw - 1200px) / 2));
}

.slim-hero {
  min-height: 320px;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 68px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 800;
}

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

.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 18px;
}

.filter-panel input {
  flex: 1;
  width: auto;
}

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

.category-card {
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-hero-link {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
}

.category-hero-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.7), transparent);
}

.category-hero-link span {
  position: absolute;
  left: 22px;
  bottom: 18px;
  z-index: 2;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0 0 10px;
}

.category-card-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  border-radius: 999px;
  padding: 7px 11px;
  color: #92400e;
  font-weight: 800;
  background: rgba(254, 243, 199, 0.82);
}

.detail-hero {
  min-height: 520px;
  padding: 80px 0 60px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px) saturate(1.1);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(120, 53, 15, 0.7));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 38px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  background: #fef3c7;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.08;
}

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

.detail-meta,
.detail-tags {
  margin-bottom: 18px;
}

.detail-tags a {
  color: #78350f;
}

.player-shell {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  text-align: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(251, 191, 36, 0.22), rgba(0, 0, 0, 0.58));
}

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

.overlay-play-icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  font-size: 34px;
  background: linear-gradient(135deg, #fbbf24, #fb923c);
  box-shadow: 0 24px 60px rgba(251, 146, 60, 0.36);
}

.player-overlay strong {
  font-size: 22px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}

.detail-text {
  padding: 28px;
}

.detail-text h2 {
  margin: 0 0 14px;
  color: #92400e;
  font-size: 28px;
}

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

.related-grid {
  grid-template-columns: repeat(6, 1fr);
}

.site-footer {
  margin-top: 90px;
  color: #fef3c7;
  background: linear-gradient(135deg, #78350f, #92400e);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
}

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

.site-footer p {
  line-height: 1.8;
  color: #fde68a;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  font-size: 14px;
}

.is-filtered-out {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-18px);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-grid,
  .category-card-grid,
  .large-ranking {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-ranking {
    grid-template-columns: 1fr;
  }
}

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

  .header-inner {
    justify-content: space-between;
  }

  .menu-toggle {
    display: flex;
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-panel {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .detail-layout,
  .detail-content-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(300px, 80vw);
  }

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

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

  .page-hero,
  .detail-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .content-section {
    margin: 48px auto;
  }

  .section-head,
  .filter-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .category-card-grid,
  .large-ranking,
  .home-ranking {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .movie-meta span,
  .tag-row span {
    font-size: 11px;
  }

  .ranking-item {
    grid-template-columns: 44px 72px 1fr;
    gap: 10px;
    padding: 10px;
  }

  .ranking-poster {
    width: 72px;
  }

  .detail-info h1 {
    font-size: 36px;
  }
}
