:root {
  color-scheme: light;
  --color-bg: #f9fafb;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f3f4f6;
  --color-line: #e5e7eb;
  --color-card: #ffffff;
  --color-dark: #111827;
  --color-gold: #d97706;
  --color-gold-dark: #b45309;
  --shadow-soft: 0 8px 30px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 18px 45px rgba(17, 24, 39, 0.18);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 18px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  max-width: 1280px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand {
  min-width: max-content;
  font-size: 20px;
}

.brand-icon {
  display: inline-flex;
  color: var(--color-gold);
}

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

.desktop-nav a,
.mobile-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #92400e;
  background: #fffbeb;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  width: min(360px, 34vw);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
}

.header-search input,
.mobile-nav input,
.search-panel input,
.filter-panel input,
.search-tools select {
  width: 100%;
  border: 0;
  outline: 0;
  background: #ffffff;
  color: var(--color-text);
}

.header-search input {
  padding: 10px 14px;
}

.header-search button,
.mobile-nav button,
.search-panel button {
  border: 0;
  color: #ffffff;
  background: var(--color-gold);
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-nav button:hover,
.search-panel button:hover,
.primary-button:hover {
  background: var(--color-gold-dark);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fffbeb;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: #92400e;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--color-line);
  background: #ffffff;
}

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

.mobile-nav form {
  display: flex;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  overflow: hidden;
}

.mobile-nav input {
  padding: 10px 14px;
}

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

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(217, 119, 6, 0.32), transparent 36%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

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

.hero-tags span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.9);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 28px;
  color: #e5e7eb;
  font-size: 19px;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--color-gold);
}

.ghost-button {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(17, 24, 39, 0.38);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.66);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

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

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

.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.amber-section {
  max-width: none;
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

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

.section-heading div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-heading span {
  color: var(--color-gold);
  font-size: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

.section-heading a,
.category-overview-head a {
  color: #92400e;
  font-weight: 800;
}

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

.feature-card,
.movie-card,
.category-tile,
.category-overview-card,
.detail-card,
.aside-card,
.filter-panel,
.search-panel,
.search-tools,
.rank-item {
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.movie-card,
.category-tile,
.rank-item {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.movie-card:hover,
.category-tile:hover,
.rank-item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.feature-cover,
.card-cover,
.rank-thumb,
.category-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2937, #92400e);
}

.feature-cover {
  height: 320px;
}

.feature-cover img,
.card-cover img,
.rank-thumb img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover img,
.movie-card:hover img,
.rank-item:hover img,
.category-tile:hover img {
  transform: scale(1.08);
}

.feature-cover::after,
.card-cover::after,
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.72));
}

.feature-cover span,
.card-type,
.category-tile span {
  position: absolute;
  z-index: 2;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.feature-copy,
.card-content {
  padding: 18px;
}

.feature-copy > p:first-child,
.card-meta,
.rank-meta {
  color: var(--color-muted);
  font-size: 13px;
}

.feature-copy h2,
.card-content h2,
.rank-info h2 {
  margin: 8px 0;
  line-height: 1.25;
}

.feature-copy h2,
.card-content h2 {
  font-size: 18px;
}

.feature-copy h2 a:hover,
.card-content h2 a:hover,
.rank-info h2 a:hover {
  color: #92400e;
}

.feature-copy p,
.card-content p,
.rank-info p {
  margin: 0;
  color: #4b5563;
}

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

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

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

.card-cover {
  height: 245px;
}

.movie-card.small .card-cover {
  height: 190px;
}

.movie-card h2 {
  display: -webkit-box;
  min-height: 45px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card p {
  display: -webkit-box;
  min-height: 50px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #374151;
  background: #f3f4f6;
  font-size: 12px;
  font-weight: 700;
}

.tag-row {
  margin-top: 12px;
}

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

.category-tile {
  min-height: 220px;
  padding: 22px;
  color: #ffffff;
}

.category-tile img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  left: 22px;
  bottom: auto;
  top: 22px;
  font-size: 18px;
}

.category-tile p {
  margin: 86px 0 0;
  color: #f3f4f6;
  font-weight: 600;
}

.rank-list {
  display: grid;
  gap: 16px;
}

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

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.rank-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-gold);
  font-weight: 900;
}

.rank-thumb {
  width: 130px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 12px;
}

.rank-info {
  min-width: 0;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.rank-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(217, 119, 6, 0.3), transparent 35%),
    linear-gradient(135deg, #111827 0%, #451a03 100%);
  color: #ffffff;
}

.slim-hero {
  padding: 74px 24px;
}

.slim-hero > div {
  max-width: 1280px;
  margin: 0 auto;
}

.slim-hero p {
  margin: 0 0 8px;
  color: #fbbf24;
  font-weight: 900;
}

.slim-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

.slim-hero span {
  display: block;
  max-width: 760px;
  color: #f3f4f6;
  font-size: 18px;
}

.category-overview {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

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

.filter-panel,
.search-panel,
.search-tools {
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel {
  display: grid;
  gap: 10px;
}

.filter-panel label {
  color: #374151;
  font-weight: 800;
}

.filter-panel input,
.search-panel input,
.search-tools select {
  min-height: 48px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  padding: 0 14px;
}

.search-panel {
  display: flex;
  gap: 12px;
}

.search-panel input {
  flex: 1;
}

.search-panel button {
  border-radius: 12px;
  padding: 0 24px;
}

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

.search-empty {
  grid-column: 1 / -1;
  padding: 44px 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-muted);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.detail-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 72px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 0.95fr);
  gap: 28px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #92400e;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow-strong);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.watch-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.58));
  cursor: pointer;
}

.play-overlay span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-gold);
  font-size: 34px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  font-size: 18px;
}

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

.detail-card,
.aside-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.detail-meta {
  margin-bottom: 26px;
}

.detail-meta span {
  color: #92400e;
  background: #fffbeb;
}

.detail-card section + section {
  margin-top: 26px;
}

.detail-card h2,
.aside-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
}

.lead-text {
  font-size: 19px;
  font-weight: 700;
  color: #1f2937;
}

.detail-tags span {
  background: #f3f4f6;
}

.detail-aside {
  min-width: 0;
}

.aside-card {
  position: sticky;
  top: 88px;
}

.side-list .rank-item {
  align-items: flex-start;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.side-list .rank-item:hover {
  transform: none;
  box-shadow: none;
}

.side-list .rank-thumb {
  width: 118px;
  height: 76px;
}

.side-list .rank-info p {
  display: none;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  color: #f59e0b;
  font-size: 22px;
}

.footer-main p,
.footer-column a,
.footer-bottom {
  color: #9ca3af;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 17px;
}

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

.footer-column a:hover {
  color: #f59e0b;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid #1f2937;
  text-align: center;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

  .aside-card {
    position: static;
  }
}

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

  .mobile-menu-button {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-wrap {
    padding: 0 16px;
  }

  .brand {
    font-size: 16px;
  }

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

  .hero-content {
    padding: 0 56px 0 24px;
  }

  .hero-control {
    width: 40px;
    height: 40px;
    font-size: 30px;
  }

  .feature-grid,
  .movie-grid,
  .full-grid,
  .mini-grid,
  .category-grid,
  .home-rank-list,
  .footer-wrap,
  .search-tools {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .content-section,
  .amber-section,
  .detail-layout {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-slider {
    height: auto;
    min-height: 620px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 40px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .feature-grid,
  .movie-grid,
  .full-grid,
  .mini-grid,
  .category-grid,
  .home-rank-list,
  .footer-wrap,
  .search-tools {
    grid-template-columns: 1fr;
  }

  .card-cover,
  .movie-card.small .card-cover {
    height: 260px;
  }

  .category-overview-head,
  .section-heading,
  .rank-item,
  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .rank-thumb {
    width: 100%;
    height: 170px;
  }

  .side-list .rank-thumb {
    width: 120px;
    height: 82px;
  }

  .side-list .rank-item {
    flex-direction: row;
  }
}
