:root {
  --bg: #f8fbff;
  --text: #111827;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.10);
  --card: #ffffff;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --dark: #07111f;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 30%, #f8fafc 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.76);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.28);
  font-size: 15px;
}

.brand-name {
  font-size: 22px;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: #475467;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1d4ed8;
  background: #eff6ff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #eff6ff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: #1d4ed8;
}

.hero-shell {
  position: relative;
  min-height: clamp(620px, 88vh, 880px);
  overflow: hidden;
  color: #ffffff;
}

.hero-bg,
.hero-bg img,
.hero-shade,
.hero-blue {
  position: absolute;
  inset: 0;
}

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

.hero-shade {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.68) 42%, rgba(2, 6, 23, 0.24) 100%), linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, transparent 52%);
}

.hero-blue {
  background: radial-gradient(circle at 12% 30%, rgba(37, 99, 235, 0.48), transparent 34%), radial-gradient(circle at 72% 72%, rgba(6, 182, 212, 0.32), transparent 30%);
}

.hero-content {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: clamp(620px, 88vh, 880px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: center;
  gap: 40px;
  padding: 96px 0 64px;
}

.hero-copy {
  max-width: 760px;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 12px;
  color: #38bdf8;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-desc {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.detail-meta span,
.movie-meta-line span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-tags span {
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

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

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

.primary-btn,
.quick-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32);
  border: 0;
}

.primary-btn:hover,
.quick-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.38);
}

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

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.hero-panel,
.rank-panel,
.side-card,
.player-card,
.detail-article,
.filter-panel,
.ranking-list-section {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-panel {
  padding: 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(16px);
}

.hero-panel h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 20px;
}

.hero-list,
.rank-list,
.ranking-list-full {
  display: grid;
  gap: 12px;
}

.compact-item {
  display: grid;
  grid-template-columns: auto 76px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  transition: 0.2s ease;
}

.compact-item:hover {
  transform: translateY(-2px);
  background: #ffffff;
}

.compact-item img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-num {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  border-radius: 10px;
  font-weight: 900;
  font-size: 13px;
}

.compact-text {
  min-width: 0;
}

.compact-text strong,
.compact-text em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-text strong {
  font-size: 15px;
}

.compact-text em {
  color: #667085;
  font-style: normal;
  font-size: 12px;
}

.search-strip,
.content-section,
.filter-panel,
.ranking-list-section,
.breadcrumb,
.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-strip {
  margin-top: -46px;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.86);
  box-shadow: var(--shadow);
}

.search-strip h2,
.section-head h2,
.page-hero h1,
.ranking-list-section h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.search-strip h2,
.section-head h2 {
  font-size: clamp(25px, 3vw, 38px);
}

.quick-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.quick-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
}

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

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

.section-head.slim {
  align-items: center;
}

.section-more {
  color: #1d4ed8;
  font-weight: 800;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.88);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(15, 23, 42, 0.15);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #dbeafe;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(2, 6, 23, 0.62) 100%);
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  opacity: 0;
  transition: 0.22s ease;
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.18);
}

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

.type-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-info {
  padding: 16px;
}

.movie-meta-line span,
.detail-meta span {
  color: #1d4ed8;
  background: #eff6ff;
}

.movie-info h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.34;
}

.movie-info h3 a:hover {
  color: #1d4ed8;
}

.movie-info p {
  min-height: 48px;
  margin: 0 0 14px;
  color: #667085;
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-row,
.detail-tags,
.channel-links,
.year-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.detail-tags span,
.channel-links a,
.year-filter button {
  padding: 6px 10px;
  border-radius: 999px;
  color: #475467;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

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

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

.category-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 140px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  transition: 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.13);
}

.category-visual {
  position: relative;
  height: 96px;
  display: block;
}

.category-visual img {
  position: absolute;
  width: 68px;
  height: 92px;
  object-fit: cover;
  border-radius: 15px;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.category-visual img:nth-child(1) {
  left: 0;
  top: 4px;
  z-index: 3;
}

.category-visual img:nth-child(2) {
  left: 32px;
  top: 0;
  z-index: 2;
}

.category-visual img:nth-child(3) {
  left: 58px;
  top: 8px;
  z-index: 1;
}

.category-body strong,
.category-body em {
  display: block;
}

.category-body strong {
  margin-bottom: 6px;
  font-size: 20px;
}

.category-body em {
  color: #667085;
  font-style: normal;
  font-size: 14px;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

.page-hero {
  padding: 92px 24px 58px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0891b2);
  border-radius: 0 0 32px 32px;
}

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

.page-hero p:not(.eyebrow) {
  width: min(760px, 100%);
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.inner-page {
  min-height: 70vh;
}

.filter-panel {
  margin-top: 42px;
  padding: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  margin-bottom: 18px;
}

.filter-row label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 800;
}

.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 0 14px;
  outline: 0;
  background: #ffffff;
}

.filter-row input:focus,
.filter-row select:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.year-filter {
  margin-bottom: 22px;
}

.year-filter button {
  border: 0;
  cursor: pointer;
}

.year-filter button.active,
.channel-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.channel-links {
  margin-bottom: 22px;
}

.breadcrumb {
  padding: 26px 0 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #1d4ed8;
}

.detail-page {
  min-height: 70vh;
  padding-bottom: 64px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-top: 22px;
}

.player-card {
  position: relative;
  overflow: hidden;
  background: #020617;
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.16), rgba(2, 6, 23, 0.52));
  cursor: pointer;
}

.player-overlay[hidden] {
  display: none;
}

.big-play {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.30);
  font-size: 34px;
}

.detail-article {
  margin-top: 22px;
  padding: 28px;
}

.detail-article h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.detail-meta {
  margin-top: 18px;
}

.lead-text {
  margin: 22px 0;
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 800;
}

.detail-article h2 {
  margin: 26px 0 10px;
  font-size: 24px;
}

.detail-article p {
  color: #475467;
  font-size: 16px;
}

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

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.side-card {
  padding: 22px;
}

.side-card h2 {
  margin: 0 0 18px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.side-card dt {
  color: #667085;
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.related-section {
  padding-top: 46px;
}

.ranking-list-section {
  margin-top: 42px;
  padding: 26px;
}

.ranking-list-section h2 {
  margin-bottom: 20px;
  font-size: 30px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 44px 72px minmax(0, 1fr) 82px 82px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  transition: 0.18s ease;
}

.ranking-row:hover {
  background: #eff6ff;
  transform: translateX(4px);
}

.ranking-index {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #06b6d4);
  font-weight: 900;
}

.ranking-row img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-main strong,
.ranking-main em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-main em {
  color: #667085;
  font-style: normal;
  font-size: 13px;
}

.ranking-score,
.ranking-views {
  color: #1d4ed8;
  font-weight: 900;
  text-align: right;
}

.site-footer {
  margin-top: 72px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-brand {
  max-width: 520px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: #667085;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 800;
  color: #475467;
}

.footer-links a:hover {
  color: #1d4ed8;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
  color: #667085;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

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

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

  .hero-content,
  .two-column-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-nav {
    min-height: 64px;
  }

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

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    justify-content: center;
  }

  .brand-name {
    font-size: 19px;
  }

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

  .hero-panel {
    display: none;
  }

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

  .search-strip,
  .filter-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .search-strip,
  .footer-inner {
    display: grid;
  }

  .quick-search {
    border-radius: 20px;
    flex-direction: column;
  }

  .quick-search input,
  .quick-search button {
    min-height: 46px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

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

  .movie-info {
    padding: 13px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

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

  .category-visual {
    width: 120px;
  }

  .detail-article,
  .filter-panel,
  .ranking-list-section {
    padding: 18px;
  }

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

  .ranking-row img {
    width: 58px;
    height: 48px;
  }

  .ranking-score,
  .ranking-views {
    display: none;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-grid-large {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .hero-content {
    min-height: 600px;
  }
}
