
:root {
  --brand: #f97316;
  --brand-dark: #ea580c;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fff7ed;
  --panel: #ffffff;
  --deep: #0f172a;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: #374151;
  font-weight: 600;
}

.nav-links a,
.mobile-nav a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.mobile-nav a:hover,
.text-link:hover {
  color: var(--brand);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #f3f4f6;
  border-radius: 999px;
}

.nav-search input,
.mobile-search input,
.wide-search input,
.filter-panel input,
.filter-panel select {
  outline: none;
  border: 1px solid transparent;
  background: #fff;
  color: var(--ink);
}

.nav-search input {
  width: 150px;
  padding: 10px 12px;
  border-radius: 999px;
}

.nav-search button,
.mobile-search button,
.wide-search button {
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff7ed;
  color: var(--brand);
  font-size: 22px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

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

.mobile-cat-links,
.footer-links,
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-cat-links a,
.quick-links a,
.footer-links a,
.tag-cloud a,
.card-tags span,
.card-meta a,
.card-meta span,
.detail-meta span,
.hero-meta a,
.hero-meta span {
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
}

.mobile-cat-links a,
.quick-links a,
.footer-links a {
  padding: 8px 12px;
}

.mobile-search {
  display: flex;
  gap: 8px;
}

.mobile-search input {
  flex: 1;
  padding: 11px 13px;
  border-radius: 14px;
  border-color: var(--line);
}

.hero-slider {
  position: relative;
  height: min(640px, 86vh);
  min-height: 520px;
  overflow: hidden;
  background: var(--deep);
}

.hero-track,
.hero-slide,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slide {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-overlay {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.18)), linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 1180px;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content .hero-movie-title {
  margin-top: -8px;
  font-size: clamp(26px, 3.6vw, 46px);
  color: #fed7aa;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.hero-meta a,
.hero-meta span,
.detail-meta span {
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
}

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

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.32);
}

.btn-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  font-size: 34px;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.36);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #fff;
}

.quick-search-block {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 24px;
  margin-top: -56px;
  position: relative;
  z-index: 5;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.quick-search-block h2,
.section-heading h2,
.page-hero h1,
.content-card h2,
.player-section h2,
.category-preview h2 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.quick-search-block h2 {
  font-size: 30px;
}

.quick-search-block p,
.page-hero p,
.category-preview p {
  color: var(--muted);
  line-height: 1.7;
}

.wide-search {
  display: flex;
  align-self: center;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #f3f4f6;
}

.wide-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 999px;
}

.wide-search button {
  padding-inline: 26px;
}

.quick-links {
  grid-column: 1 / -1;
}

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

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

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

.section-heading > a,
.text-link {
  color: var(--brand);
  font-weight: 800;
}

.section-kicker {
  color: #c2410c;
  background: #ffedd5;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.card-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.card-badge {
  right: 12px;
}

.rank-badge {
  left: 12px;
  background: var(--brand);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-card-body h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title-link:hover h3 {
  color: var(--brand);
}

.movie-card-body p {
  min-height: 44px;
  margin: 0 0 14px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-meta a,
.card-meta span,
.card-tags span,
.tag-cloud a {
  padding: 6px 9px;
}

.card-tags {
  margin-top: 10px;
}

.movie-card.compact .movie-card-body {
  padding: 14px;
}

.movie-card.compact .movie-card-body h3 {
  font-size: 15px;
}

.movie-card.compact .movie-card-body p {
  min-height: 0;
  font-size: 13px;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 22px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #fb923c, #7c2d12);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.18);
}

.category-tile:nth-child(2n) {
  background: linear-gradient(135deg, #0f172a, #f97316);
}

.category-tile:nth-child(3n) {
  background: linear-gradient(135deg, #7c2d12, #fdba74);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  font-size: 23px;
  font-weight: 900;
}

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

.category-tile em {
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  padding: 78px 0 64px;
  color: #fff;
  background: radial-gradient(circle at 14% 18%, rgba(249, 115, 22, 0.56), transparent 26%), linear-gradient(135deg, #111827, #431407 62%, #0f172a);
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -0.04em;
}

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

.category-page-hero,
.ranking-hero,
.search-hero {
  background: radial-gradient(circle at 80% 15%, rgba(249, 115, 22, 0.5), transparent 28%), linear-gradient(135deg, #0f172a, #431407 60%, #111827);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 160px 150px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  min-height: 48px;
  padding: 0 14px;
  border-color: var(--line);
  border-radius: 15px;
}

.category-preview-list {
  display: grid;
  gap: 34px;
}

.category-preview {
  padding: 24px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.category-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.detail-hero-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.78) 52%, rgba(2, 6, 23, 0.34)), linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 55%);
  backdrop-filter: blur(2px);
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 42px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: #fed7aa;
  font-size: 14px;
}

.detail-info h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.detail-info p {
  max-width: 780px;
  margin: 0 0 24px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.75;
}

.player-section {
  padding: 64px 0 0;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(2, 6, 23, 0.48));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 34px;
  box-shadow: 0 22px 60px rgba(249, 115, 22, 0.35);
}

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

.detail-content {
  padding-top: 44px;
}

.content-card {
  padding: 34px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.content-card h2:not(:first-child) {
  margin-top: 34px;
}

.content-card p {
  color: #374151;
  font-size: 17px;
  line-height: 1.9;
}

.info-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-table div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-table strong {
  color: #92400e;
}

.info-table span {
  color: #374151;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  margin-top: 80px;
  color: #cbd5e1;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding: 54px 0;
}

.footer-brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 420px;
  color: #9ca3af;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.footer-links a {
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
}

.footer-bottom {
  padding: 18px 0;
  text-align: center;
  color: #9ca3af;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.is-filtered-out {
  display: none !important;
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .quick-search-block,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .brand {
    font-size: 18px;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-content h1,
  .hero-content h2,
  .detail-info h1,
  .page-hero h1 {
    font-size: 38px;
  }

  .hero-content p,
  .detail-info p,
  .page-hero p {
    font-size: 16px;
  }

  .hero-nav {
    display: none;
  }

  .quick-search-block {
    margin-top: -34px;
    padding: 20px;
  }

  .wide-search,
  .mobile-search {
    flex-direction: column;
    border-radius: 20px;
  }

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

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

  .detail-grid {
    gap: 28px;
    padding: 46px 0;
  }

  .detail-hero {
    min-height: auto;
  }

  .filter-panel,
  .info-table {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 24px;
  }
}

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

  .poster-link {
    aspect-ratio: 16 / 10;
  }
}
