:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(30, 41, 59, 0.92);
  --border: rgba(148, 163, 184, 0.18);
  --soft-border: rgba(251, 191, 36, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #f97316;
  --shadow: 0 25px 50px rgba(0, 0, 0, 0.28);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(245, 158, 11, 0.20), transparent 32rem),
    radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.14), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  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,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(245, 158, 11, 0.32);
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text strong,
.footer-brand strong {
  font-size: 20px;
  background: linear-gradient(90deg, #fde68a, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small,
.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 14px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted-strong);
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber-light);
}

.nav-drop {
  position: relative;
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.nav-drop:hover .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--muted-strong);
}

.nav-drop-menu a:hover {
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-light);
}

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.68);
}

.menu-button span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: 99px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--border);
}

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

.hero-carousel {
  position: relative;
  height: 74vh;
  min-height: 610px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(249, 115, 22, 0.08)),
    #0f172a;
}

.hero-bg img,
.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.hero-bg img.is-hidden,
.detail-bg img.is-hidden,
.poster-frame img.is-hidden,
.hero-poster img.is-hidden,
.detail-poster img.is-hidden {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.82) 44%, rgba(2, 6, 23, 0.32) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 360px;
  align-items: center;
  gap: 56px;
  padding-top: 34px;
}

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

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-light);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-label::before,
.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  color: var(--muted-strong);
  font-size: 18px;
}

.hero-tags,
.film-badges,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.film-badges span,
.detail-tags a {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(251, 191, 36, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-size: 12px;
  font-weight: 700;
}

.large-badges span {
  font-size: 13px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link,
.ribbon-form button,
.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 800;
  transition: 0.22s ease;
}

.primary-button,
.ribbon-form button,
.filter-bar button {
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.28);
}

.primary-button:hover,
.ribbon-form button:hover,
.filter-bar button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 42px rgba(245, 158, 11, 0.38);
}

.ghost-button,
.section-link {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.66);
  color: var(--muted-strong);
}

.ghost-button:hover,
.section-link:hover {
  border-color: var(--soft-border);
  background: rgba(245, 158, 11, 0.14);
  color: var(--amber-light);
}

.hero-poster,
.detail-poster,
.poster-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 12%, rgba(251, 191, 36, 0.24), transparent 24rem),
    linear-gradient(145deg, #1e293b, #020617);
  box-shadow: var(--shadow);
}

.hero-poster {
  min-height: 510px;
  transform: rotate(1deg);
}

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

.hero-poster:hover img,
.film-card:hover .poster-frame img {
  transform: scale(1.06);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  padding: 0;
  transition: 0.22s ease;
}

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

.search-ribbon {
  border-block: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(16px);
}

.search-ribbon-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 32px;
  padding: 32px 0;
}

.search-ribbon h2,
.section-heading h2,
.category-overview-head h2,
.channel-title h3,
.article-block h2,
.info-card h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.16;
}

.search-ribbon p,
.section-heading p,
.category-overview-head p,
.article-block p,
.info-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.ribbon-form,
.filter-bar {
  display: flex;
  gap: 12px;
}

.ribbon-form input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 15px;
  background: rgba(2, 6, 23, 0.62);
  color: var(--text);
  outline: none;
}

.ribbon-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(251, 191, 36, 0.58);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

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

.alt-section {
  background: rgba(15, 23, 42, 0.36);
}

.section-heading,
.category-overview-head,
.channel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

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

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

.film-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.72));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.film-card:hover {
  transform: translateY(-5px);
  border-color: var(--soft-border);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.30);
}

.poster-frame {
  display: block;
  aspect-ratio: 2 / 2.85;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.92);
  color: white;
  transform: translate(-50%, -50%) scale(0.72);
  opacity: 0;
  transition: 0.22s ease;
}

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

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

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

.film-card h3 a:hover {
  color: var(--amber-light);
}

.film-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.film-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}

.film-card-wide {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
}

.film-card-wide .poster-frame {
  aspect-ratio: 2 / 2.6;
}

.rank-number {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  color: white;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(245, 158, 11, 0.30);
}

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

.channels-wrap,
.overview-list {
  display: grid;
  gap: 32px;
}

.channel-block,
.category-overview-card,
.article-block,
.info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(15, 23, 42, 0.66);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 56px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 16% 10%, rgba(245, 158, 11, 0.22), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(2, 6, 23, 0.96));
}

.slim-hero {
  padding-top: 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-light);
}

.filter-bar {
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.70);
}

.filter-bar input {
  flex: 2 1 280px;
}

.filter-bar select {
  flex: 1 1 150px;
}

.result-count {
  min-width: 96px;
  color: var(--muted);
  font-size: 14px;
}

.detail-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.82) 50%, rgba(2, 6, 23, 0.42) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 45%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 56px 0 70px;
}

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

.detail-poster {
  aspect-ratio: 2 / 2.85;
}

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

.detail-main {
  display: grid;
  gap: 28px;
}

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

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.24), transparent 20rem),
    rgba(2, 6, 23, 0.54);
  color: white;
  transition: 0.22s ease;
}

.play-overlay span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.34);
}

.play-overlay:hover {
  background: rgba(2, 6, 23, 0.40);
}

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

.article-block p {
  color: var(--muted-strong);
  font-size: 16px;
}

.detail-tags a:hover {
  border-color: rgba(251, 191, 36, 0.48);
  background: rgba(245, 158, 11, 0.22);
}

.info-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 12px;
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  text-align: right;
  color: var(--text);
}

.accent-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.13), rgba(249, 115, 22, 0.08));
  border-color: var(--soft-border);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.88);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(160px, 0.4fr) minmax(180px, 0.6fr);
  gap: 28px;
  padding: 42px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--amber-light);
}

.footer-links.compact a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px;
  color: #64748b;
  text-align: center;
  font-size: 13px;
}

[data-film-card].is-hidden {
  display: none;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .hero-carousel {
    height: auto;
    min-height: 760px;
  }

  .hero-content,
  .search-ribbon-inner,
  .detail-head-grid,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .detail-side {
    position: static;
  }

  .ranking-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

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

  .brand-text small {
    display: none;
  }

  .hero-carousel {
    min-height: 680px;
  }

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

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

  .hero-copy p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

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

  .section-heading,
  .category-overview-head,
  .channel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .film-grid,
  .compact-grid,
  .mini-grid,
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .film-card-wide {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .film-card-body {
    padding: 12px;
  }

  .film-badges span:nth-child(n+4) {
    display: none;
  }

  .ribbon-form,
  .filter-bar {
    flex-direction: column;
  }

  .ribbon-form button,
  .filter-bar button,
  .filter-bar input,
  .filter-bar select {
    width: 100%;
  }

  .channel-block,
  .category-overview-card,
  .article-block,
  .info-card {
    padding: 20px;
  }
}

@media (max-width: 460px) {
  .film-grid,
  .compact-grid,
  .mini-grid,
  .search-grid {
    grid-template-columns: 1fr;
  }

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

  .primary-button,
  .ghost-button,
  .section-link {
    width: 100%;
  }
}
