:root {
  --brand-start: #ea580c;
  --brand-end: #dc2626;
  --brand-soft: #fff7ed;
  --brand-ink: #7c2d12;
  --text-main: #111827;
  --text-soft: #6b7280;
  --text-muted: #9ca3af;
  --line: #e5e7eb;
  --page: #f9fafb;
  --card: #ffffff;
  --dark: #111827;
  --shadow: 0 14px 35px rgba(15, 23, 42, 0.10);
  --shadow-hover: 0 22px 46px rgba(15, 23, 42, 0.18);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 10px 30px rgba(234, 88, 12, 0.25);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--brand-start);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: inset 0 -3px 0 rgba(220, 38, 38, 0.15);
}

.brand-text {
  font-size: 22px;
}

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

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.90);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 26vw);
  min-width: 220px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

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

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

.header-search button {
  border: 0;
  cursor: pointer;
  color: var(--brand-ink);
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}

.hero-carousel {
  position: relative;
  height: 600px;
  overflow: hidden;
  background: #000000;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.55), transparent 36%), linear-gradient(135deg, #111827, #7f1d1d);
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.10) 58%, rgba(0, 0, 0, 0.35));
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  padding: 92px 0 76px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 10px;
  color: #fed7aa;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.46);
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
}

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

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

.hero-tags span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 16px 28px rgba(220, 38, 38, 0.26);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

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

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

.hero-prev {
  left: 28px;
}

.hero-next {
  right: 28px;
}

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

.hero-dot {
  width: 34px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 52px;
  background: #ffffff;
}

.home-search-band,
.content-section,
.page-main,
.detail-main {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.home-search-band {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  margin-top: -44px;
  position: relative;
  z-index: 12;
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.home-search-band h2,
.home-search-band p {
  margin: 0;
}

.home-search-band p {
  margin-top: 6px;
  color: var(--text-soft);
}

.home-search-band form,
.filter-search-row {
  display: flex;
  gap: 10px;
}

.home-search-band input,
.filter-search-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  background: #ffffff;
}

.home-search-band input:focus,
.filter-search-row input:focus,
.filter-selects select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.home-search-band button,
.filter-search-row button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
}

.content-section {
  margin-top: 56px;
}

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

.section-head h2,
.feature-split h2,
.page-hero h1,
.detail-title-block h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head a {
  color: var(--brand-start);
  font-weight: 900;
}

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

.catalog-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 24px;
}

.video-card {
  min-width: 0;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

.card-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: radial-gradient(circle at 65% 20%, rgba(251, 146, 60, 0.42), transparent 35%), linear-gradient(135deg, #111827, #7f1d1d);
}

.compact-card .card-cover {
  aspect-ratio: 16 / 11;
}

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

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

.card-cover img.image-hidden,
.hero-slide img.image-hidden,
.detail-side img.image-hidden {
  opacity: 0;
}

.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 34px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.video-card:hover .play-mark {
  opacity: 1;
  background: rgba(0, 0, 0, 0.38);
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #ffffff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.30);
}

.card-body {
  padding: 16px;
}

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

.card-meta span {
  color: var(--brand-start);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
}

.card-body h2,
.card-body h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-split {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 34px;
  align-items: start;
  padding: 34px;
  border-radius: 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #111827, #7f1d1d 55%, #ea580c);
  box-shadow: var(--shadow);
}

.feature-split p {
  color: rgba(255, 255, 255, 0.78);
}

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

.category-tile {
  display: block;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.20);
}

.category-tile span {
  display: block;
  font-weight: 950;
}

.category-tile p {
  margin: 7px 0 0;
  font-size: 13px;
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.page-main,
.detail-main {
  padding-top: 26px;
}

.page-hero {
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  color: #ffffff;
  border-radius: 28px;
  background: radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.34), transparent 35%), linear-gradient(135deg, #111827, #7f1d1d);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.small-hero,
.search-hero,
.rank-hero,
.category-hero {
  min-height: 240px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--brand-start);
  font-weight: 800;
}

.filter-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.filter-selects label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-weight: 800;
  font-size: 13px;
}

.filter-selects select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.empty-state {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  color: var(--brand-ink);
  background: var(--brand-soft);
  font-weight: 800;
}

.category-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.category-card-large {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.category-card-cover {
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #ffffff;
  background: radial-gradient(circle at 70% 20%, rgba(251, 146, 60, 0.36), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d);
}

.category-card-cover span {
  font-size: 26px;
  font-weight: 950;
}

.category-card-body {
  padding: 20px;
}

.category-card-body h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.category-card-body p {
  margin: 9px 0 0;
  color: var(--text-soft);
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.mini-links a {
  color: var(--brand-start);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 800;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}

.player-panel,
.detail-side,
.detail-content,
.story-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.player-panel {
  overflow: hidden;
  background: #000000;
}

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

.movie-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.76));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.big-play {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  font-size: 40px;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  box-shadow: 0 20px 36px rgba(220, 38, 38, 0.34);
}

.detail-side {
  padding: 16px;
}

.detail-side img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: radial-gradient(circle at 60% 25%, rgba(251, 146, 60, 0.40), transparent 32%), linear-gradient(135deg, #111827, #7f1d1d);
}

.full-button {
  width: 100%;
  margin-top: 14px;
}

.detail-content {
  margin-top: 24px;
  padding: 26px;
}

.detail-title-block h1 {
  margin-top: 4px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-meta span {
  color: var(--brand-start);
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  font-weight: 800;
}

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

.detail-tags span {
  color: var(--text-soft);
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.lead-text {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 18px;
}

.story-card {
  margin-top: 22px;
  padding: 22px;
  box-shadow: none;
  background: #f9fafb;
}

.story-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 950;
}

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

.related-section {
  margin-bottom: 56px;
}

.site-footer {
  margin-top: 70px;
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.site-footer p {
  max-width: 430px;
  color: #9ca3af;
}

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

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: #fb923c;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: #9ca3af;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

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

  .mobile-nav.open {
    display: block;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-copy {
    padding-bottom: 84px;
  }

  .hero-arrow {
    display: none;
  }

  .home-search-band,
  .feature-split,
  .watch-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .home-search-band {
    margin-top: 18px;
  }

  .category-cloud,
  .filter-selects {
    grid-template-columns: 1fr;
  }

  .detail-side {
    display: none;
  }
}

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

  .header-inner,
  .home-search-band,
  .content-section,
  .page-main,
  .detail-main,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-carousel {
    height: 520px;
  }

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

  .home-search-band form,
  .filter-search-row {
    flex-direction: column;
  }

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

  .video-grid,
  .catalog-grid,
  .category-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body h2,
  .card-body h3 {
    font-size: 16px;
  }

  .card-body p {
    -webkit-line-clamp: 2;
  }

  .page-hero {
    padding: 24px;
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .video-grid,
  .catalog-grid,
  .category-list-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-row {
    grid-auto-columns: minmax(220px, 82vw);
  }
}
