:root {
  --dark-900: #050607;
  --dark-800: #0b0d10;
  --dark-700: #101419;
  --dark-600: #151a21;
  --dark-500: #1a2129;
  --primary-500: #f5871f;
  --primary-400: #f79f3f;
  --text-main: #ffffff;
  --text-soft: #d1d5db;
  --text-muted: #9ca3af;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(26, 33, 41, 0.9);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand {
  font-size: 20px;
  white-space: nowrap;
}

.brand-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
  box-shadow: 0 12px 24px rgba(245, 135, 31, 0.28);
}

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

.desktop-nav a,
.mobile-nav a {
  color: var(--text-soft);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover {
  color: white;
  background: rgba(245, 135, 31, 0.14);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
  color: var(--text-muted);
  background: var(--dark-600);
  border: 1px solid var(--dark-500);
  border-radius: 999px;
  padding: 8px 12px;
}

.top-search span {
  color: var(--primary-400);
  font-size: 13px;
  font-weight: 700;
}

.top-search input,
.filter-control input,
.filter-control select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
}

.top-search input::placeholder,
.filter-control input::placeholder {
  color: #6b7280;
}

.menu-toggle {
  display: none;
  color: white;
  border: 0;
  background: var(--dark-600);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid var(--dark-500);
  border-radius: 18px;
  background: var(--dark-700);
}

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

.mobile-brand {
  color: var(--primary-400);
  font-weight: 800;
  padding: 8px 12px;
}

.hero {
  position: relative;
  min-height: 500px;
  height: 70vh;
  max-height: 800px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(245, 135, 31, 0.25), transparent 32%), var(--dark-900);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.98) 0%, rgba(11, 13, 16, 0.82) 45%, rgba(11, 13, 16, 0.12) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 160px;
  background: linear-gradient(0deg, var(--dark-800), transparent);
}

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

.hero-copy {
  max-width: 720px;
  padding-top: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-400);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: white;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  max-width: 760px;
}

.hero p {
  max-width: 660px;
  color: var(--text-soft);
  font-size: 18px;
  margin: 22px 0 0;
}

.hero-actions,
.section-head,
.filter-bar,
.meta-row,
.pagination-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 32px;
}

.btn-primary,
.btn-ghost,
.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 12px;
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  color: white;
  background: var(--primary-500);
  box-shadow: 0 16px 30px rgba(245, 135, 31, 0.25);
}

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

.btn-primary:hover {
  background: #db7419;
}

.btn-ghost,
.reset-btn {
  color: white;
  background: rgba(21, 26, 33, 0.82);
  border-color: rgba(255, 255, 255, 0.08);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--primary-400);
  background: rgba(245, 135, 31, 0.14);
  font-size: 12px;
  font-weight: 700;
}

.main-stack {
  padding: 72px 0 40px;
}

.section-block {
  margin-bottom: 76px;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 26px;
}

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

.section-title span {
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: var(--primary-500);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

.section-more {
  color: var(--primary-400);
  font-weight: 800;
}

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

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

.video-card {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--dark-700);
  border: 1px solid rgba(26, 33, 41, 0.88);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
  transition: transform 0.28s ease, background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.video-card:hover {
  transform: translateY(-6px);
  background: var(--dark-600);
  border-color: rgba(245, 135, 31, 0.38);
  box-shadow: var(--shadow-card);
}

.video-card a {
  display: block;
  height: 100%;
}

.card-poster,
.compact-cover,
.rank-cover,
.detail-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-600), var(--dark-500));
}

.card-poster {
  aspect-ratio: 2 / 3;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.video-card:hover .poster-img,
.compact-card:hover .poster-img,
.ranking-item:hover .poster-img {
  transform: scale(1.05);
}

.card-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 42%);
  opacity: 0.72;
}

.card-year,
.card-region,
.card-play {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.card-year {
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  padding: 4px 8px;
}

.card-region {
  left: 10px;
  bottom: 10px;
  background: rgba(245, 135, 31, 0.92);
  padding: 4px 8px;
}

.card-play {
  right: 12px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 16px;
}

.card-body h3,
.compact-card h3,
.rank-content h2,
.category-card h2 {
  margin: 0;
  color: white;
  line-height: 1.35;
}

.card-body h3 {
  font-size: 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p,
.compact-card p,
.rank-content p,
.category-card p,
.detail-title p,
.content-card p {
  color: var(--text-muted);
}

.card-body p {
  min-height: 44px;
  margin: 10px 0 14px;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(245, 135, 31, 0.18), rgba(21, 26, 33, 0.92));
  border: 1px solid rgba(245, 135, 31, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 135, 31, 0.48);
}

.category-card h2 {
  font-size: 23px;
}

.category-card p {
  margin: 12px 0 20px;
  font-size: 14px;
}

.category-card span {
  color: var(--primary-400);
  font-weight: 800;
}

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

.compact-card {
  border-radius: var(--radius-lg);
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  overflow: hidden;
  transition: transform 0.25s ease, background 0.25s ease;
}

.compact-card:hover {
  transform: translateY(-4px);
  background: var(--dark-600);
}

.compact-card a {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px;
}

.compact-cover {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
}

.compact-card h3 {
  font-size: 18px;
}

.compact-card p {
  margin: 8px 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-card span {
  color: var(--primary-400);
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  position: relative;
  padding: 76px 0 50px;
  background: radial-gradient(circle at 15% 10%, rgba(245, 135, 31, 0.2), transparent 34%), var(--dark-900);
  border-bottom: 1px solid var(--dark-500);
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 62px);
}

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

.filter-panel {
  margin: 34px 0 28px;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
}

.filter-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  flex: 1 1 220px;
  padding: 0 14px;
  color: var(--text-muted);
  background: var(--dark-600);
  border: 1px solid var(--dark-500);
  border-radius: 14px;
}

.filter-control strong {
  color: var(--primary-400);
  font-size: 13px;
  white-space: nowrap;
}

.filter-empty {
  display: none;
  color: var(--text-muted);
  padding: 28px;
  text-align: center;
  border: 1px dashed var(--dark-500);
  border-radius: var(--radius-lg);
}

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

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

.ranking-item {
  border-radius: var(--radius-lg);
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ranking-item:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 135, 31, 0.36);
}

.ranking-item a {
  display: grid;
  grid-template-columns: 86px 120px 1fr;
  gap: 18px;
  align-items: stretch;
  padding: 16px;
}

.rank-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-400);
  font-size: 28px;
  font-weight: 900;
}

.rank-cover {
  aspect-ratio: 2 / 3;
  border-radius: 14px;
}

.rank-content {
  align-self: center;
}

.rank-content h2 {
  font-size: 22px;
}

.rank-content p {
  margin: 8px 0 12px;
}

.rank-meta {
  display: inline-flex;
  color: var(--text-muted);
  margin-top: 10px;
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin: 22px 0;
}

.breadcrumb a {
  color: var(--primary-400);
  font-weight: 700;
}

.player-section {
  padding: 24px 0 0;
  background: var(--dark-900);
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  border: 1px solid rgba(245, 135, 31, 0.18);
  box-shadow: var(--shadow-card);
}

.site-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: white;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(245, 135, 31, 0.22), rgba(0, 0, 0, 0.68));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  background: var(--primary-500);
  box-shadow: 0 18px 40px rgba(245, 135, 31, 0.34);
  font-size: 30px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 42px 0 30px;
}

.detail-cover {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-xl);
  border: 1px solid var(--dark-500);
  box-shadow: var(--shadow-card);
}

.detail-title h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.detail-title p {
  font-size: 17px;
  margin: 18px 0 22px;
}

.meta-row {
  margin: 20px 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-bottom: 60px;
}

.content-card {
  border-radius: var(--radius-xl);
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  padding: 26px;
}

.content-card + .content-card {
  margin-top: 22px;
}

.content-card h2 {
  margin: 0 0 14px;
  color: white;
  font-size: 25px;
}

.content-card p {
  margin: 0;
  font-size: 16px;
}

.side-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 88px 16px 32px;
  background: rgba(0, 0, 0, 0.62);
}

.search-panel.is-open {
  display: flex;
}

.search-panel-inner {
  width: min(720px, 100%);
  max-height: 78vh;
  overflow: auto;
  border-radius: var(--radius-xl);
  background: var(--dark-700);
  border: 1px solid var(--dark-500);
  box-shadow: var(--shadow-card);
}

.search-panel-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--dark-700);
  border-bottom: 1px solid var(--dark-500);
}

.search-panel-head button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  color: white;
  background: var(--dark-600);
  cursor: pointer;
}

.search-results {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.search-hit {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 14px;
  background: var(--dark-600);
  border: 1px solid transparent;
}

.search-hit:hover {
  border-color: rgba(245, 135, 31, 0.36);
}

.search-hit strong {
  color: white;
}

.search-hit span {
  color: var(--text-muted);
  font-size: 13px;
}

.site-footer {
  margin-top: 40px;
  padding: 48px 0;
  background: var(--dark-700);
  border-top: 1px solid var(--dark-500);
}

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

.site-footer p,
.site-footer a,
.site-footer li {
  color: var(--text-muted);
}

.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}

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

.footer-logo {
  color: white;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .video-grid,
  .video-grid.featured-grid,
  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-cover {
    max-width: 320px;
  }

  .desktop-nav,
  .top-search span {
    display: none;
  }

  .top-search {
    min-width: 210px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    height: auto;
    min-height: 68px;
    align-items: center;
    gap: 10px;
  }

  .brand {
    font-size: 17px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .top-search {
    min-width: 0;
    width: 150px;
    padding: 7px 10px;
  }

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

  .hero-copy {
    padding-top: 78px;
  }

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

  .main-stack {
    padding-top: 48px;
  }

  .video-grid,
  .video-grid.featured-grid,
  .category-strip,
  .review-grid,
  .compact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-item a {
    grid-template-columns: 54px 86px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-number {
    font-size: 20px;
  }

  .rank-content h2 {
    font-size: 17px;
  }

  .rank-content p,
  .rank-content .tag-row {
    display: none;
  }

  .content-card {
    padding: 20px;
  }

  .filter-bar {
    display: grid;
  }
}
