:root {
  --brand: #ea580c;
  --brand-deep: #dc2626;
  --brand-soft: #fed7aa;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #ffffff;
  --panel-soft: #fff7ed;
  --page: #f8fafc;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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: linear-gradient(90deg, #ea580c 0%, #dc2626 58%, #b91c1c 100%);
  box-shadow: 0 12px 30px rgba(127, 29, 29, 0.25);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-text,
.footer-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search {
  width: min(300px, 26vw);
  display: flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  padding: 8px 10px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.header-search button,
.primary-button,
.ghost-button,
.text-button,
.panel-link,
.section-link {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  color: var(--brand-deep);
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 999px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 237, 213, 0.35), transparent 28%),
    linear-gradient(135deg, #7c2d12 0%, #991b1b 46%, #111827 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0), var(--page));
  pointer-events: none;
}

.hero-track {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0.92fr;
  align-items: center;
  gap: 56px;
  opacity: 0;
  transform: translateX(34px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.hero-media {
  position: relative;
  min-height: 430px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.35), rgba(127, 29, 29, 0.85));
}

.hero-media::after,
.poster-link::after,
.detail-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.58));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.hero-content {
  color: #ffffff;
  padding-bottom: 48px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-copy .eyebrow,
.page-hero .eyebrow {
  color: #fed7aa;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-summary,
.page-hero p,
.detail-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.hero-tags,
.detail-meta,
.detail-tags,
.tag-row,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags {
  margin: 24px 0 28px;
}

.hero-tags span,
.detail-meta span,
.detail-tags a,
.tag-row span,
.card-meta span,
.card-meta a {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.detail-meta span,
.detail-tags a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.primary-button,
.ghost-button,
.text-button,
.panel-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #dc2626);
  padding: 13px 22px;
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.28);
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  padding: 13px 22px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.panel-link:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-arrow,
.hero-dot {
  pointer-events: auto;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  opacity: 0.65;
}

.hero-dot.is-active {
  width: 34px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 1;
}

.page-section {
  width: min(1240px, calc(100% - 32px));
  margin: 64px auto;
}

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

.section-heading h2 {
  margin: 4px 0 6px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.section-link,
.text-button,
.panel-link {
  color: var(--brand-deep);
  background: #fff7ed;
  padding: 10px 16px;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 18px;
}

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

.category-card,
.category-overview-card,
.channel-column,
.rank-panel,
.text-panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.78);
}

.category-card {
  min-height: 148px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 90% 10%, rgba(251, 146, 60, 0.32), transparent 45%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span,
.category-title-link {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.category-card p,
.category-overview-card p,
.channel-column small,
.compact-link small,
.movie-card-body p,
.rank-main small,
.text-panel p {
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(229, 231, 235, 0.78);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #991b1b);
}

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

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

.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.62);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
  font-size: 12px;
}

.movie-card-body {
  padding: 16px;
}

.card-meta {
  margin-bottom: 10px;
}

.card-meta span,
.card-meta a,
.tag-row span {
  color: #9a3412;
  background: #ffedd5;
}

.movie-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a:hover,
.compact-link:hover span,
.rank-row a:hover strong,
.category-title-link:hover {
  color: var(--brand-deep);
}

.movie-card-body p {
  min-height: 44px;
  margin: 10px 0 12px;
  font-size: 14px;
}

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

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.96), #ffffff);
}

.rank-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.mini-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.mini-rank a {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #ffffff;
}

.rank-number,
.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #dc2626);
}

.rank-number {
  width: 30px;
  height: 30px;
  border-radius: 10px;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-heat,
.rank-score {
  color: #9a3412;
  font-size: 13px;
  font-weight: 900;
}

.panel-link {
  width: 100%;
  margin-top: 16px;
}

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

.channel-column,
.category-overview-card {
  padding: 22px;
}

.channel-column h3,
.category-overview-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-link {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.compact-link span {
  font-weight: 800;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.82);
  background: #111827;
}

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

.footer-logo {
  color: #ffffff;
}

.footer-inner p {
  max-width: 560px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
}

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

.page-hero,
.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 15%, rgba(254, 215, 170, 0.24), transparent 28%),
    linear-gradient(135deg, #7c2d12 0%, #b91c1c 52%, #111827 100%);
}

.page-hero {
  padding: 74px max(16px, calc((100vw - 1240px) / 2)) 82px;
}

.small-hero h1,
.category-hero h1 {
  max-width: 900px;
}

.small-hero p,
.category-hero p {
  max-width: 780px;
}

.compact-actions {
  margin-top: 26px;
}

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

.category-overview-card .text-button {
  margin-top: 18px;
}

.filter-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  outline: 0;
  padding: 0 14px;
}

.filter-bar input {
  flex: 1;
  min-width: 0;
}

.filter-bar select {
  width: 160px;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-row a {
  display: grid;
  grid-template-columns: 48px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-index {
  width: 38px;
  height: 38px;
  border-radius: 14px;
}

.rank-row img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #fed7aa, #991b1b);
}

.rank-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.rank-main strong,
.rank-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero {
  padding: 42px max(16px, calc((100vw - 1240px) / 2)) 74px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumbs a:hover {
  color: #fed7aa;
}

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

.detail-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  background: linear-gradient(135deg, #fed7aa, #991b1b);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-lead {
  max-width: 900px;
  margin-bottom: 24px;
}

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

.detail-tags {
  margin-bottom: 28px;
}

.player-section {
  margin-top: -38px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #dc2626);
  box-shadow: 0 18px 38px rgba(220, 38, 38, 0.34);
  font-size: 28px;
  text-indent: 4px;
}

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

.text-panel {
  padding: 26px;
}

.text-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.text-panel p {
  margin: 0;
  font-size: 16px;
}

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

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

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

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

  .highlight-layout {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-button {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    padding: 8px 0 4px;
  }

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

  .nav-link {
    text-align: center;
  }

  .hero,
  .hero-track {
    min-height: 760px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    align-content: center;
    padding: 28px 0 78px;
  }

  .hero-media {
    min-height: 300px;
  }

  .hero-media img {
    min-height: 300px;
  }

  .hero-content {
    padding-bottom: 0;
  }

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

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

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

  .detail-poster {
    max-width: 340px;
  }

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

  .rank-score {
    grid-column: 3;
  }
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 20px;
  }

  .hero,
  .hero-track {
    min-height: 700px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 34px;
  }

  .page-section {
    margin: 44px auto;
  }

  .category-grid,
  .movie-grid,
  .large-grid,
  .channel-grid,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
