:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #111827;
  --muted: #64748b;
  --line: #e5e7eb;
  --blue: #2563eb;
  --blue-deep: #0f172a;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --green: #10b981;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

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

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

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
  font-weight: 800;
}

.logo-text,
.footer-logo {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.desktop-nav a,
.mobile-nav a,
.site-footer a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.site-footer a:hover {
  color: #fb923c;
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.quick-search input {
  width: 230px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  padding: 9px 12px;
}

.quick-search input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.quick-search button,
.primary-btn,
.ghost-btn,
.filter-bar button,
.cta-actions a,
.panel-link {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.quick-search button,
.primary-btn,
.cta-actions a:first-child,
.panel-link {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.quick-search button {
  padding: 9px 16px;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 0 24px 20px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: radial-gradient(circle at 25% 25%, #1d4ed8, #0f172a 58%);
}

.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,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  opacity: 0.35;
  transform: scale(1.04);
}

.hero-shade,
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.72));
}

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

.hero-copy {
  max-width: 680px;
  color: #fff;
}

.eyebrow,
.section-title span,
.page-hero span,
.ranking-panel > span {
  display: inline-flex;
  align-items: center;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.hero-copy p {
  max-width: 640px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

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

.hero-tags span,
.meta-row span,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.cta-actions a,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
}

.ghost-btn,
.cta-actions a:last-child {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.primary-btn:hover,
.ghost-btn:hover,
.quick-search button:hover,
.cta-actions a:hover,
.panel-link:hover {
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

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

.section-block {
  margin-top: 56px;
  margin-bottom: 56px;
}

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

.section-title h2,
.page-hero h1,
.ranking-panel h2,
.detail-article h2,
.related-panel h2 {
  margin: 0;
  color: #0f172a;
  line-height: 1.15;
}

.section-title h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.section-title a {
  color: var(--blue);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
}

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

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

.card-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 44px;
  opacity: 0;
  transition: opacity 0.25s ease;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.movie-card-link:hover .card-play {
  opacity: 1;
}

.card-chip,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.card-chip {
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  background: var(--orange);
}

.card-year {
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.78);
}

.rank-badge {
  left: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-body {
  padding: 14px;
}

.card-body h2 {
  min-height: 48px;
  margin: 0 0 8px;
  color: #1f2937;
  font-size: 16px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card-link:hover h2 {
  color: var(--orange-deep);
}

.card-meta,
.card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  margin-top: 8px;
  -webkit-line-clamp: 2;
}

.tinted-block {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

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

.category-card,
.category-overview-card {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.category-card {
  padding: 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-icon,
.category-overview-head > span {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  display: block;
  margin: 16px 0 2px;
  color: #0f172a;
  font-size: 18px;
}

.category-card em {
  color: var(--orange);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.category-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.related-panel,
.detail-article,
.player-card,
.detail-side-card {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 26px;
}

.ranking-panel h2 {
  margin-top: 8px;
  font-size: 28px;
}

.ranking-panel ol {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.ranking-panel li + li {
  border-top: 1px solid var(--line);
}

.ranking-panel a:not(.panel-link) {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.ranking-panel li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--blue);
  font-weight: 900;
}

.ranking-panel li strong {
  display: block;
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-panel li em {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-link {
  width: 100%;
}

.cta-block {
  margin-bottom: 64px;
  padding: 44px;
  border-radius: 24px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), #dc2626);
  box-shadow: var(--shadow);
}

.cta-block h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 42px);
}

.cta-block p {
  max-width: 760px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.86);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.page-main {
  padding-bottom: 44px;
}

.page-hero {
  padding: 72px 0;
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8, #0f172a);
}

.page-hero h1 {
  max-width: 860px;
  margin: 12px 0;
  color: #fff;
  font-size: clamp(36px, 5vw, 56px);
}

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

.channel-hero {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
}

.ranking-hero {
  background: linear-gradient(135deg, #7c2d12, #1e293b);
}

.search-hero {
  background: linear-gradient(135deg, #4338ca, #0f172a);
}

.overview-list {
  display: grid;
  gap: 22px;
  margin-top: 42px;
}

.category-overview-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

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

.category-overview-head a {
  color: var(--blue);
  font-weight: 800;
}

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

.mini-grid.vertical {
  grid-template-columns: 1fr;
}

.mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
}

.mini-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #fed7aa);
}

.mini-card span {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: #f8fafc;
  padding: 13px 14px;
}

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.detail-main {
  background: #f8fafc;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 48px;
  background: #0f172a;
}

.detail-bg {
  opacity: 0.32;
  filter: blur(8px);
  transform: scale(1.08);
}

.detail-overlay {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.65), rgba(15, 23, 42, 0.96));
}

.detail-wrap {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 4px 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fb923c;
}

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

.player-card {
  overflow: hidden;
  background: #020617;
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-box video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.08), rgba(0, 0, 0, 0.42));
}

.play-layer.is-hidden {
  display: none;
}

.play-button {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ef4444);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  font-size: 34px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.detail-side-card {
  overflow: hidden;
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
}

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

.detail-side-card div {
  padding: 20px;
}

.detail-side-card span {
  color: #facc15;
  font-weight: 800;
}

.detail-side-card h1 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.18;
}

.detail-side-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  margin-top: 32px;
  align-items: start;
}

.detail-article,
.related-panel {
  padding: 28px;
}

.detail-article .meta-row span,
.detail-article .tag-row span {
  color: #1f2937;
  background: #eef2ff;
}

.detail-article h2 {
  margin: 28px 0 12px;
  font-size: 26px;
}

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

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

.related-panel {
  position: sticky;
  top: 96px;
}

.related-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.site-footer {
  margin-top: 64px;
  padding: 44px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #0f172a;
}

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

.footer-logo {
  margin-bottom: 10px;
  color: #fff;
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 17px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
}

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

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

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

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

  .ranking-panel,
  .related-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: block;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero-carousel {
    height: 560px;
  }

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

  .section-title,
  .category-overview-head {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .compact-grid,
  .latest-grid,
  .category-movie-grid,
  .category-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-side-card img {
    height: 220px;
  }
}

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

  .header-inner {
    min-height: 64px;
  }

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

  .hero-carousel {
    height: 610px;
  }

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

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .compact-grid,
  .latest-grid,
  .category-movie-grid,
  .category-grid,
  .mini-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .tinted-block,
  .cta-block,
  .detail-article,
  .related-panel {
    padding: 22px;
  }

  .play-button {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }
}
