:root {
  --red: #dc2626;
  --red-dark: #991b1b;
  --orange: #ea580c;
  --green: #14532d;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f1f5f9;
  --card: #ffffff;
}

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  -webkit-text-fill-color: #64748b;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
  background: #fef2f2;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-size: 22px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid #e2e8f0;
}

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

.hero-shell {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #fee2e2 48%, #ffffff 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.42;
  pointer-events: none;
}

.glow-one {
  width: 360px;
  height: 360px;
  left: -90px;
  top: 120px;
  background: #fb7185;
}

.glow-two {
  width: 430px;
  height: 430px;
  right: -120px;
  bottom: 60px;
  background: #fdba74;
}

.hero-slider {
  position: relative;
  min-height: 88vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 104px 0 78px;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  color: #ffffff;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
  padding: 42px;
  border-radius: 34px;
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(18px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f97316;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  margin: 0;
  max-width: 660px;
  color: #fff7ed;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-badges span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

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

.primary-btn,
.secondary-btn,
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 18px 35px rgba(220, 38, 38, 0.28);
}

.secondary-btn {
  color: #7f1d1d;
  background: #ffffff;
}

.secondary-btn.light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.primary-btn:hover,
.secondary-btn:hover,
.outline-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.hero-poster {
  display: block;
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(135deg, #fecaca, #fed7aa);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.35);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

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

.quick-search {
  margin-top: -46px;
  position: relative;
  z-index: 8;
}

.quick-search-card,
.filter-panel,
.content-card,
.rank-panel,
.category-preview {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.08);
}

.quick-search-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
}

.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-title h1,
.content-card h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.quick-search-card h2 {
  font-size: clamp(24px, 4vw, 38px);
}

.outline-btn {
  color: var(--red);
  border: 2px solid #fecaca;
  background: #fff7ed;
}

.section-block {
  padding: 76px 0;
}

.section-block.tinted {
  background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.section-head h2 {
  font-size: clamp(30px, 5vw, 48px);
}

.section-head p,
.page-hero p,
.content-card p,
.category-tile strong,
.detail-title p {
  color: var(--muted);
  line-height: 1.75;
}

.text-link {
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.09);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.card-media {
  position: relative;
  display: block;
  height: 282px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  text-decoration: none;
}

.compact-card .card-media {
  height: 224px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .card-media img {
  transform: scale(1.07);
}

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: rgba(220, 38, 38, 0.9);
}

.year-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: rgba(234, 88, 12, 0.92);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  color: #f97316;
  font-size: 12px;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0;
  font-size: 18px;
  line-height: 1.32;
}

.card-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--red);
}

.card-body p {
  min-height: 58px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.tag-row span {
  background: #f8fafc;
  color: #64748b;
}

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

.category-tile {
  min-height: 180px;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, #ffffff, #fff7ed);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.category-tile a {
  color: inherit;
  text-decoration: none;
}

.category-tile span {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  font-weight: 700;
}

.mini-links {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.mini-links a {
  color: #64748b;
  font-size: 13px;
  text-decoration: none;
}

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

.rank-panel {
  padding: 22px;
}

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

.rank-panel h2,
.rank-panel h3 {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 900;
}

.rank-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  color: inherit;
  text-decoration: none;
}

.rank-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

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

.rank-heat {
  color: #f97316;
  font-size: 13px;
  font-weight: 900;
}

.cta-band {
  padding: 74px 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.cta-band h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 6vw, 52px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.centered {
  justify-content: center;
}

.page-hero,
.detail-hero {
  padding: 86px 0 64px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red-dark), var(--orange));
}

.page-hero h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 68px);
}

.page-hero p {
  max-width: 760px;
  color: #ffedd5;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
  color: #ffedd5;
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  margin-bottom: 28px;
  padding: 20px;
}

.search-field {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 800;
}

.search-field input,
.select-row select {
  min-height: 48px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 0 16px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  outline: none;
}

.search-field input:focus,
.select-row select:focus {
  border-color: #fb923c;
  box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

.select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

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

.stacked-sections {
  display: grid;
  gap: 34px;
}

.category-preview {
  padding: 26px;
}

.detail-hero {
  background-size: cover;
  background-position: center;
}

.detail-hero-inner {
  display: grid;
  gap: 30px;
}

.detail-top {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-cover {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.35);
}

.detail-title h1 {
  color: #ffffff;
  font-size: clamp(38px, 7vw, 72px);
}

.detail-title p {
  max-width: 820px;
  color: #ffedd5;
  font-size: 18px;
}

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 22px 48px rgba(220, 38, 38, 0.35);
  font-size: 34px;
}

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

.content-card {
  padding: 24px;
}

.content-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #475569;
}

.meta-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.meta-card div {
  min-width: 0;
}

.meta-card dt {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 900;
}

.meta-card dd {
  margin: 4px 0 0;
  color: #0f172a;
  font-weight: 800;
}

.wide-tags span {
  color: #7f1d1d;
  background: #fff7ed;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  font-weight: 900;
  text-decoration: none;
}

.site-footer {
  color: #ffffff;
  background: linear-gradient(135deg, #052e16, #14532d 48%, #052e16);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 1fr 1fr;
  gap: 40px;
  padding: 54px 0;
}

.footer-brand p {
  max-width: 520px;
  color: #dcfce7;
  line-height: 1.75;
}

.footer-logo .brand-text small {
  -webkit-text-fill-color: #bbf7d0;
  color: #bbf7d0;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #fb923c;
  font-size: 18px;
  font-weight: 900;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #dcfce7;
  text-decoration: none;
}

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

.footer-bottom {
  padding: 18px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbf7d0;
  text-align: center;
  font-size: 14px;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

  .sticky-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .hero-copy {
    padding: 28px;
  }

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

  .quick-search-card,
  .section-head,
  .filter-panel,
  .footer-grid,
  .detail-top {
    grid-template-columns: 1fr;
  }

  .quick-search-card,
  .section-head {
    display: grid;
    align-items: start;
  }

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

  .card-media,
  .compact-card .card-media {
    height: 220px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body p {
    display: none;
  }

  .select-row {
    display: grid;
  }

  .detail-cover {
    width: 220px;
    height: 320px;
  }

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

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

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

  .hero-slide {
    padding-top: 72px;
  }
}
