* {
  box-sizing: border-box;
}

:root {
  --primary-50: #fef3e7;
  --primary-400: #f7c267;
  --primary-500: #f3ab3c;
  --primary-600: #f19d36;
  --accent-500: #ff835c;
  --secondary-50: #f8fafc;
  --secondary-100: #d9e2ec;
  --secondary-500: #627d98;
  --secondary-600: #486581;
  --secondary-700: #334e68;
  --secondary-800: #243b53;
  --secondary-900: #102a43;
  --surface: #ffffff;
  --page: #f9fafb;
  --shadow-soft: 0 2px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 25px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 18px 55px rgba(16, 42, 67, 0.26);
  --shadow-glow: 0 0 20px rgba(243, 171, 60, 0.3);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: var(--page);
  color: var(--secondary-800);
  line-height: 1.6;
}

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

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

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: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 226, 236, 0.82);
  backdrop-filter: blur(18px);
}

.nav-bar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-500), var(--accent-500));
  border-radius: 12px;
  box-shadow: var(--shadow-glow);
  font-size: 13px;
}

.logo-text {
  font-size: 20px;
  color: var(--secondary-800);
}

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

.nav-link {
  color: var(--secondary-600);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--primary-50);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--secondary-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--secondary-100);
  background: #ffffff;
  padding: 10px 16px 16px;
}

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

.mobile-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--secondary-600);
  font-weight: 700;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.hero {
  position: relative;
  height: 610px;
  overflow: hidden;
  background: var(--secondary-900);
}

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

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 42, 67, 1) 0%, rgba(16, 42, 67, 0.86) 48%, rgba(16, 42, 67, 0.28) 100%);
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary-500);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 620px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

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

.primary-btn {
  background: var(--primary-500);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.primary-btn:hover,
.section-more:hover {
  background: var(--primary-600);
  color: #ffffff;
  transform: translateY(-1px);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.15);
}

.ghost-btn.dark {
  color: var(--secondary-800);
  border-color: var(--secondary-100);
  background: #ffffff;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 32px;
  line-height: 1;
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

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

.hero-dot.active {
  width: 34px;
  background: var(--primary-500);
}

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

.content-section:nth-of-type(even) {
  background: #ffffff;
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 6px 0 0;
  color: var(--secondary-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--secondary-600);
}

.section-more {
  min-height: 40px;
  padding: 0 16px;
  color: var(--primary-600);
  background: var(--primary-50);
}

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

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 18px;
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

.video-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--secondary-100);
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-card:hover .poster-gradient {
  opacity: 1;
}

.type-pill,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.rank-badge {
  left: 12px;
  right: auto;
  background: var(--primary-500);
}

.card-body {
  display: block;
  padding: 15px;
}

.card-body strong {
  display: block;
  overflow: hidden;
  color: var(--secondary-800);
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.video-card:hover .card-body strong {
  color: var(--primary-600);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0;
  color: var(--secondary-500);
  font-size: 12px;
}

.card-meta em {
  overflow: hidden;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--secondary-500);
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.compact-card .card-desc {
  display: none;
}

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

.category-tile {
  position: relative;
  display: block;
  min-height: 190px;
  overflow: hidden;
  border-radius: 22px;
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 42, 67, 0.94), rgba(16, 42, 67, 0.18));
}

.category-tile-body {
  position: absolute;
  inset: auto 0 0;
  display: block;
  padding: 22px;
}

.category-tile-body strong {
  display: block;
  font-size: 22px;
}

.category-tile-body em {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-style: normal;
}

.search-card,
.category-overview-card,
.detail-card,
.side-card,
.player-card,
.ranking-table {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.search-card {
  padding: clamp(22px, 4vw, 34px);
}

.search-heading {
  margin-bottom: 20px;
}

.search-controls,
.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 14px;
  margin-bottom: 24px;
}

.filter-bar {
  grid-template-columns: minmax(0, 1fr);
}

.search-controls input,
.search-controls select,
.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--secondary-100);
  border-radius: 14px;
  padding: 0 16px;
  color: var(--secondary-800);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-controls input:focus,
.search-controls select:focus,
.filter-bar input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(243, 171, 60, 0.15);
}

.search-results:empty {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed var(--secondary-100);
  border-radius: 18px;
  text-align: center;
  color: var(--secondary-600);
  background: var(--secondary-50);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 52px 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.ranking-row img {
  width: 66px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-num {
  color: var(--primary-600);
  font-size: 20px;
  font-weight: 900;
}

.ranking-info strong,
.side-link strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-info em,
.side-link em {
  display: block;
  margin-top: 4px;
  color: var(--secondary-500);
  font-size: 13px;
  font-style: normal;
}

.ranking-link {
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 800;
}

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

.page-hero {
  padding: 82px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(243, 171, 60, 0.26), transparent 34%), linear-gradient(135deg, var(--secondary-900), var(--secondary-800));
}

.page-hero h1 {
  color: #ffffff;
}

.page-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

.compact-hero {
  padding: 70px 0;
}

.category-overview-list {
  display: grid;
  gap: 24px;
  padding: 48px 0 76px;
}

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

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

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

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

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

.ranking-card-grid {
  margin-bottom: 32px;
}

.ranking-table {
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 120px 90px 110px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--secondary-100);
}

.table-row:first-child {
  border-top: 0;
}

.table-row:hover {
  background: var(--primary-50);
}

.table-row span {
  color: var(--primary-600);
  font-weight: 900;
}

.table-row strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.table-row em {
  color: var(--secondary-500);
  font-style: normal;
}

.detail-shell {
  padding: 36px 0 72px;
}

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

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

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

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

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

.player-card {
  overflow: hidden;
  padding: 0;
  background: #000000;
  box-shadow: var(--shadow-strong);
}

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

.movie-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: #000000;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 2;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

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

.play-circle {
  position: relative;
  z-index: 3;
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary-500);
  box-shadow: var(--shadow-glow);
  font-size: 30px;
  padding-left: 5px;
}

.detail-card {
  padding: clamp(22px, 4vw, 34px);
}

.detail-card h1 {
  margin-bottom: 18px;
}

.detail-card h2,
.side-card h2 {
  margin: 26px 0 12px;
  color: var(--secondary-800);
  font-size: 22px;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--secondary-600);
  font-size: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--secondary-100);
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--secondary-600);
  background: var(--secondary-50);
  font-size: 14px;
}

.detail-meta b {
  color: var(--secondary-800);
}

.detail-card .tag-list span {
  color: var(--primary-600);
  background: var(--primary-50);
}

.compact-heading {
  margin-bottom: 18px;
}

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

.side-card {
  padding: 18px;
}

.poster-side img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  object-fit: cover;
}

.poster-side strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
}

.poster-side p {
  margin: 8px 0 0;
  color: var(--secondary-600);
  font-size: 14px;
}

.side-card h2 {
  margin-top: 0;
}

.side-links {
  display: grid;
  gap: 12px;
}

.side-link {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.side-link img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.side-link:hover strong {
  color: var(--primary-600);
}

.site-footer {
  color: #d9e2ec;
  background: var(--secondary-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 38px;
  padding: 46px 0;
}

.footer-logo {
  color: #ffffff;
  font-size: 20px;
}

.footer-brand p {
  max-width: 460px;
  color: #9fb3c8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 16px;
}

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

.footer-links a {
  color: #bcccdc;
  font-size: 14px;
}

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

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

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

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

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

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

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

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

  .hero {
    height: 560px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .section-heading,
  .category-overview-head {
    display: block;
  }

  .section-heading p,
  .section-more {
    margin-top: 12px;
  }

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

  .category-grid,
  .ranking-list,
  .footer-grid,
  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .search-controls {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .table-row em {
    display: none;
  }
}

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

  .logo-text {
    font-size: 18px;
  }

  .hero {
    height: 520px;
  }

  .hero-content {
    align-items: end;
    padding-bottom: 86px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-tags span:nth-child(n + 4) {
    display: none;
  }

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

  .cards-grid,
  .mini-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .horizontal-scroll {
    grid-auto-columns: 168px;
  }

  .card-body {
    padding: 12px;
  }

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

  .card-desc {
    display: none;
  }

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

  .ranking-row {
    grid-template-columns: 42px 58px minmax(0, 1fr);
  }

  .ranking-link {
    display: none;
  }

  .play-circle {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
}
