* {
  box-sizing: border-box;
}

:root {
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-500: #78716c;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.08);
  --shadow-md: 0 8px 24px rgba(28, 25, 23, 0.10);
  --shadow-xl: 0 18px 55px rgba(28, 25, 23, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: var(--stone-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 19px;
  color: var(--stone-800);
}

.brand-text small {
  color: var(--stone-500);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--stone-700);
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 270px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--stone-200);
  outline: none;
  border-radius: 999px;
  padding: 10px 15px;
  color: var(--stone-800);
  background: var(--white);
}

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

.header-search button,
.mobile-search button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 800;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  border: none;
  background: transparent;
  margin-left: auto;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--stone-800);
  border-radius: 10px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--stone-200);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
}

.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
  color: var(--white);
  background: var(--stone-900);
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: 88px;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 13px;
  color: var(--white);
  background: var(--amber-500);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 760px;
  margin: 16px 0 14px;
  font-size: clamp(34px, 5.5vw, 60px);
  line-height: 1.08;
}

.hero p {
  max-width: 720px;
  margin: 0 0 20px;
  color: #e7e5e4;
  font-size: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: #d6d3d1;
  font-size: 14px;
}

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

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

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

.btn-primary {
  color: var(--white);
  background: var(--amber-500);
  box-shadow: 0 14px 32px rgba(245, 158, 11, 0.32);
}

.btn-primary:hover {
  background: var(--amber-600);
}

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dot.is-active {
  width: 32px;
  background: var(--white);
}

.quick-entry {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
  padding: 30px 0 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.quick-cat,
.category-card {
  border: 1px solid var(--stone-200);
  border-radius: 20px;
  padding: 18px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-cat:hover,
.category-card:hover {
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.quick-cat strong,
.category-card-title {
  display: block;
  color: var(--stone-800);
  font-size: 18px;
  font-weight: 900;
}

.quick-cat span,
.category-card-desc {
  display: block;
  margin-top: 5px;
  color: var(--stone-500);
  font-size: 13px;
}

.content-section {
  padding: 72px 0;
  background: var(--white);
}

.content-section:nth-of-type(even) {
  background: var(--stone-50);
}

.section-stone {
  background: linear-gradient(180deg, var(--stone-50), var(--stone-100));
}

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

.section-heading h2 {
  margin: 12px 0 0;
  color: var(--stone-800);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
}

.section-link {
  color: var(--amber-600);
  font-weight: 900;
}

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

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

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

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
  position: relative;
  display: block;
  height: 252px;
  overflow: hidden;
  background: var(--stone-200);
}

.movie-card--large .card-cover {
  height: 360px;
}

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

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

.card-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.66), rgba(0, 0, 0, 0.08));
  transition: opacity 0.25s ease;
}

.movie-card:hover .card-gradient {
  opacity: 1;
}

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--white);
  background: rgba(28, 25, 23, 0.82);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 15px;
}

.card-body strong {
  overflow: hidden;
  color: var(--stone-800);
  font-size: 16px;
  line-height: 1.32;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-desc {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--stone-500);
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta,
.card-tags {
  overflow: hidden;
  color: var(--stone-500);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  color: var(--amber-700);
}

.rank-list,
.ranking-page-list,
.mini-rank {
  display: grid;
  gap: 12px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 68px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--stone-200);
  border-radius: 18px;
  padding: 12px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rank-index {
  color: var(--amber-600);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.rank-row img {
  width: 68px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-copy strong,
.rank-copy small {
  display: block;
}

.rank-copy strong {
  color: var(--stone-800);
  font-weight: 900;
}

.rank-copy small {
  color: var(--stone-500);
  font-size: 13px;
}

.rank-action {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 13px;
  font-weight: 900;
}

.page-main {
  min-height: 60vh;
}

.page-hero {
  padding: 72px 0 46px;
}

.page-hero-light {
  background: linear-gradient(180deg, var(--stone-50), var(--white));
}

.page-hero-dark {
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.32), transparent 34%), linear-gradient(135deg, var(--stone-900), #0c0a09);
}

.page-hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.15;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--stone-500);
  font-size: 17px;
}

.page-hero-dark p {
  color: var(--stone-300);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--stone-500);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-600);
}

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

.category-card {
  display: grid;
  gap: 12px;
  min-height: 170px;
}

.category-card-title {
  font-size: 24px;
}

.category-card-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-card-samples span {
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.12);
  font-size: 12px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 14px;
  margin-bottom: 28px;
}

.filter-panel-wide {
  grid-template-columns: 1fr 180px 180px;
}

.empty-result {
  display: none;
  margin-top: 28px;
  border: 1px dashed var(--stone-300);
  border-radius: 18px;
  padding: 28px;
  color: var(--stone-500);
  text-align: center;
  background: var(--stone-50);
}

.empty-result.is-visible {
  display: block;
}

.player-hero {
  padding: 34px 0;
  color: var(--white);
  background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 32%), linear-gradient(135deg, #0c0a09, var(--stone-900));
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: stretch;
}

.player-shell {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.video-player {
  width: 100%;
  height: 100%;
  min-height: 520px;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.2));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-600);
  background: rgba(255, 255, 255, 0.94);
  font-size: 34px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.player-overlay.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.detail-side {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-xl);
}

.detail-side img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.detail-side-copy {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.detail-side-copy span {
  width: max-content;
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--white);
  background: var(--amber-600);
  font-size: 12px;
  font-weight: 900;
}

.detail-side-copy strong {
  font-size: 20px;
  line-height: 1.3;
}

.detail-side-copy small {
  color: var(--stone-300);
}

.detail-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: start;
}

.detail-article,
.detail-rank-card {
  border: 1px solid var(--stone-200);
  border-radius: 24px;
  padding: 26px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

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

.detail-article h2,
.detail-rank-card h2 {
  margin: 28px 0 12px;
  color: var(--stone-800);
  font-size: 24px;
}

.detail-article p {
  color: var(--stone-700);
  font-size: 16px;
}

.detail-one-line {
  padding: 16px 18px;
  border-left: 4px solid var(--amber-500);
  border-radius: 14px;
  background: var(--stone-50);
  font-weight: 700;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-meta span,
.tag-list span {
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--stone-700);
  background: var(--stone-100);
  font-size: 13px;
  font-weight: 800;
}

.tag-list span {
  color: var(--amber-700);
  background: rgba(245, 158, 11, 0.12);
}

.detail-rank-card {
  position: sticky;
  top: 96px;
}

.detail-rank-card .rank-row {
  grid-template-columns: 32px 56px 1fr;
}

.detail-rank-card .rank-row img {
  width: 56px;
  height: 76px;
}

.detail-rank-card .rank-action {
  display: none;
}

.site-footer {
  color: var(--stone-300);
  background: var(--stone-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 48px 0 28px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 22px;
  font-weight: 950;
}

.site-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--stone-300);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-links a:hover {
  color: var(--amber-400);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 16px;
  color: var(--stone-500);
  text-align: center;
  font-size: 14px;
}

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

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

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

  .detail-side,
  .detail-rank-card {
    position: static;
  }
}

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

  .menu-toggle {
    display: flex;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-grid,
  .movie-grid-large,
  .movie-grid-category,
  .movie-grid-related,
  .ranking-page-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-panel,
  .filter-panel-wide {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 16px;
  }

  .hero {
    height: 500px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-meta {
    gap: 10px;
  }

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

  .quick-grid,
  .movie-grid-large,
  .movie-grid-compact,
  .movie-grid-category,
  .movie-grid-related,
  .movie-grid-list,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-cover {
    height: 205px;
  }

  .movie-card--large .card-cover {
    height: 235px;
  }

  .card-body {
    padding: 12px;
  }

  .card-body strong {
    font-size: 14px;
  }

  .card-desc {
    min-height: 38px;
    font-size: 12px;
  }

  .section-heading {
    display: grid;
  }

  .rank-row {
    grid-template-columns: 36px 58px 1fr;
  }

  .rank-row img {
    width: 58px;
    height: 78px;
  }

  .rank-action {
    display: none;
  }

  .player-shell,
  .video-player {
    min-height: 260px;
  }

  .player-overlay span {
    width: 70px;
    height: 70px;
  }

  .detail-article,
  .detail-rank-card {
    padding: 20px;
  }
}
