
:root {
  --page: #f8fafc;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f3f4f6;
  --line: #e5e7eb;
  --orange: #f97316;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #0ea5e9;
  --teal: #14b8a6;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.25);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #374151;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--orange);
  background: #fff7ed;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #fff7ed;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--orange);
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

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

.mobile-nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  color: #ffffff;
  background: linear-gradient(125deg, #f97316 0%, #f59e0b 48%, #111827 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.24), transparent 26%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(17, 24, 39, 0.22));
}

.hero-container {
  position: relative;
  z-index: 1;
  padding: 86px 0 84px;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 58px;
  min-height: 478px;
}

.hero-slide.active {
  display: grid;
  animation: fadeUp 0.45s ease both;
}

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

.hero-eyebrow,
.section-heading span,
.page-hero span,
.category-preview span {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 19px;
}

.hero-tags,
.detail-meta,
.detail-tags,
.tag-row,
.card-meta,
.card-foot,
.wide-top,
.page-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

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

.hero-actions {
  margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

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

.primary-btn.small {
  min-height: 40px;
  padding: 0 18px;
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.14);
}

.ghost-btn.light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.54);
}

.hero-poster {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(17, 24, 39, 0.22));
  box-shadow: 0 34px 90px rgba(17, 24, 39, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

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

.hero-poster-glow {
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

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

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-section {
  margin-top: -42px;
  position: relative;
  z-index: 3;
}

.home-search,
.filter-panel {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.home-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  max-width: 760px;
  margin: 26px auto 0;
}

.home-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fafb;
  color: var(--ink);
  outline: 0;
}

.home-search input {
  min-height: 52px;
  padding: 0 18px;
}

.home-search button {
  border: 0;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  font-weight: 800;
}

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

.section-heading {
  margin-bottom: 30px;
}

.section-heading.center-heading {
  text-align: center;
  margin-bottom: 0;
}

.section-heading span,
.page-hero span,
.category-preview span {
  color: var(--orange);
  background: #fff7ed;
}

.section-heading.center-heading span,
.page-hero span {
  margin: 0 auto;
}

.section-heading h2,
.page-hero h1,
.category-preview h2,
.rank-panel h2,
.article-card h2 {
  margin: 14px 0 8px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading h2,
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p,
.page-hero p,
.category-preview h2,
.article-card p,
.detail-line,
.wide-body p,
.movie-body p {
  color: var(--muted);
}

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

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

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

.movie-card,
.wide-card,
.article-card,
.category-preview,
.rank-panel {
  background: #ffffff;
  border: 1px solid rgba(229, 231, 235, 0.8);
  box-shadow: var(--shadow-soft);
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.wide-card:hover,
.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-link,
.wide-poster,
.detail-poster,
.player-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fed7aa, #fef3c7 40%, #e5e7eb);
}

.poster-link {
  display: block;
  aspect-ratio: 3 / 4.18;
}

.poster-link img,
.wide-poster img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

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

.is-hidden-img {
  opacity: 0;
}

.play-mark,
.rank-badge,
.mini-rank {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.play-mark {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.movie-body {
  padding: 18px;
}

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

.card-meta,
.card-foot {
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card-foot a,
.text-link {
  color: var(--orange);
}

.movie-body h3 {
  min-height: 1.4em;
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-body h3 a:hover,
.wide-body h3 a:hover,
.breadcrumbs a:hover,
.site-footer a:hover {
  color: var(--orange);
}

.movie-body p {
  min-height: 3.2em;
  margin: 0 0 14px;
  font-size: 14px;
}

.tag-row {
  margin-top: 12px;
  gap: 6px;
}

.tag-row span {
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
}

.warm-section {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}

.blue-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.category-tile {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 35%),
    #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile span {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  color: #374151;
  font-size: 15px;
}

.category-tile em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

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

.wide-card {
  display: grid;
  grid-template-columns: 145px 1fr;
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-poster {
  min-height: 190px;
}

.wide-body {
  padding: 20px;
}

.wide-top {
  position: relative;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.mini-rank {
  position: static;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
}

.wide-body h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.32;
  font-weight: 900;
}

.wide-body p {
  margin: 0 0 16px;
  font-size: 14px;
}

.section-more {
  margin-top: 34px;
  text-align: center;
}

.page-hero {
  padding: 82px 0;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26), transparent 24%),
    linear-gradient(125deg, #f97316, #f59e0b 55%, #111827);
  color: #ffffff;
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

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

.category-page-hero,
.rank-hero,
.search-hero {
  text-align: left;
}

.category-page-hero span,
.rank-hero span,
.search-hero span {
  margin: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.category-page-hero p,
.rank-hero p,
.search-hero p {
  margin: 0;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.filter-input,
.filter-select {
  min-height: 48px;
  padding: 0 14px;
}

.filter-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.empty-state {
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed #fdba74;
  border-radius: 22px;
  color: #9a3412;
  background: #fff7ed;
  text-align: center;
  font-weight: 800;
}

.category-preview,
.rank-panel {
  margin-bottom: 36px;
  padding: 24px;
  border-radius: 28px;
}

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

.preview-head h2 {
  font-size: 24px;
  line-height: 1.35;
}

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

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

.detail-hero {
  padding: 54px 0 64px;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 20%, rgba(249, 115, 22, 0.36), transparent 34%),
    linear-gradient(135deg, #111827, #1f2937 58%, #f97316);
}

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  aspect-ratio: 3 / 4.1;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.detail-line {
  max-width: 820px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.detail-meta span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags {
  margin: 18px 0 30px;
}

.watch-section {
  margin-top: -40px;
  position: relative;
  z-index: 4;
}

.player-card {
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: #030712;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030712;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.72));
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
  font-size: 32px;
  transform: translateX(3px);
}

.player-card.is-playing .play-overlay {
  display: none;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 54px 0 10px;
}

.article-card {
  padding: 28px;
  border-radius: 28px;
}

.article-card h2 {
  margin-top: 0;
  font-size: 26px;
}

.article-card p {
  margin: 0;
  font-size: 16px;
}

.related-block {
  padding-top: 48px;
}

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

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

.site-footer p {
  max-width: 420px;
  margin: 16px 0 0;
  color: #9ca3af;
}

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

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

.site-footer a {
  color: #d1d5db;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-poster {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

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

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

  .wide-grid,
  .rank-list {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .hero-container {
    padding: 56px 0 64px;
  }

  .hero-slide {
    gap: 34px;
  }

  .hero-poster {
    min-height: 360px;
    transform: none;
  }

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

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

  .movie-grid,
  .compact-grid,
  .rank-grid,
  .preview-grid,
  .category-grid,
  .wide-grid,
  .rank-list,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    gap: 26px;
  }

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

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

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

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

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

  .hero-actions,
  .page-actions {
    align-items: stretch;
  }

  .hero-actions a,
  .page-actions a,
  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .movie-grid,
  .compact-grid,
  .rank-grid,
  .preview-grid,
  .category-grid,
  .wide-grid,
  .rank-list,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .wide-card {
    grid-template-columns: 120px 1fr;
  }

  .wide-poster {
    min-height: 168px;
  }

  .category-tile {
    min-height: 150px;
  }

  .detail-hero {
    padding-top: 34px;
  }

  .player-card {
    border-radius: 20px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 26px;
  }
}
