:root {
  color-scheme: light;
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.78);
  --text: #1f2937;
  --muted: #6b7280;
  --line: #fed7aa;
  --orange: #f97316;
  --rose: #e11d48;
  --amber: #f59e0b;
  --shadow: 0 18px 50px rgba(124, 45, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #fff7ed 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(254, 215, 170, 0.8);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.brand-text strong,
.footer-brand {
  display: block;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.nav-link,
.mobile-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: #374151;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.header-search,
.mobile-search,
.large-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search input,
.mobile-search input,
.large-search input,
.search-page-form input,
.page-filter-input {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.search-page-form input:focus,
.page-filter-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button,
.primary-btn,
.ghost-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.24);
}

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

.mobile-toggle {
  display: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffedd5;
  color: var(--orange);
  font-size: 22px;
}

.mobile-panel {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 18px;
}

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

.mobile-panel nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.category-strip {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 14px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.category-strip a {
  flex: 0 0 auto;
  padding: 7px 13px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-size: 14px;
  font-weight: 700;
}

.hero-carousel {
  position: relative;
  max-width: 1280px;
  margin: 22px auto 0;
  padding: 0 24px;
}

.hero-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 34px;
  background: #111827;
  box-shadow: var(--shadow);
}

.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.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

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

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.14) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent 54%);
}

.hero-content {
  position: absolute;
  left: 6%;
  bottom: 9%;
  max-width: 620px;
  color: #ffffff;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 7vw, 78px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.movie-tags,
.detail-meta,
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.movie-tags span,
.detail-meta span {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
}

.hero-dot.active {
  width: 30px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.quick-search-section {
  padding-top: 28px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  align-items: center;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.search-panel,
.filter-panel,
.category-overview-card,
.detail-article,
.player-panel {
  border: 1px solid rgba(254, 215, 170, 0.84);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 38px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(14px);
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2 {
  margin: 0;
  color: #111827;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.search-panel h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.search-panel p,
.page-hero p,
.category-overview-card p,
.detail-article p,
.movie-card-line,
.search-summary {
  color: var(--muted);
  line-height: 1.85;
}

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

.section-heading h2 {
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading a,
.text-link {
  color: var(--orange);
  font-weight: 900;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.16));
}

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

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

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

.category-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid rgba(254, 215, 170, 0.76);
  box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ffedd5, #fecdd3);
}

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  padding: 5px 9px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.movie-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}

.movie-card-line {
  display: -webkit-box;
  min-height: 50px;
  margin: 8px 0 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
}

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 800;
}

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

.movie-tags span {
  color: #9a3412;
  background: #ffedd5;
}

.wide-band {
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.64), rgba(255, 255, 255, 0.88));
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 54px 60px 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  border: 1px solid rgba(254, 215, 170, 0.78);
  background: rgba(255, 255, 255, 0.82);
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(124, 45, 18, 0.12);
}

.ranking-row img {
  width: 60px;
  height: 82px;
  border-radius: 14px;
  object-fit: cover;
}

.ranking-num {
  color: var(--orange);
  font-size: 24px;
  font-weight: 950;
  text-align: center;
}

.ranking-title {
  color: #111827;
  font-weight: 950;
}

.ranking-meta {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
}

.page-hero {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 86px 24px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(225, 29, 72, 0.22), transparent 20rem),
    linear-gradient(135deg, #fff7ed, #ffffff);
}

.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(40px, 7vw, 76px);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--orange);
}

.breadcrumb.light,
.breadcrumb.light a {
  color: rgba(255, 255, 255, 0.9);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  padding: 18px;
}

.category-overview-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-overview-media img {
  height: 120px;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 6px 0 10px;
  color: #111827;
  font-size: 24px;
  font-weight: 950;
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chips button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 900;
  cursor: pointer;
}

.filter-chips button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
}

.detail-hero {
  min-height: 650px;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 70px;
  color: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: end;
  gap: 34px;
  margin-top: 72px;
}

.detail-poster {
  width: 300px;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.detail-info h1 {
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 82px);
}

.detail-one-line {
  max-width: 800px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.8;
}

.detail-meta {
  margin: 22px 0 16px;
}

.detail-meta span {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.16);
}

.detail-info .primary-btn {
  display: inline-flex;
  margin-top: 26px;
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 28px;
}

.player-panel,
.detail-article {
  padding: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: #000000;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.play-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  font-size: 34px;
}

.player-shell.is-playing .player-cover {
  display: none;
}

.detail-article h2 {
  margin: 4px 0 12px;
  font-size: 26px;
}

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

.compact-related {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  overflow-x: auto;
}

.compact-card {
  flex: 0 0 180px;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.1);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.compact-card span {
  display: block;
  padding: 10px 12px;
  color: #111827;
  font-weight: 900;
}

.search-page-form {
  margin-bottom: 20px;
}

.search-page-form input {
  min-height: 54px;
}

.search-summary {
  margin: 12px 0 24px;
}

.site-footer {
  margin-top: 42px;
  background: #111827;
  color: #ffffff;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

.footer-inner p {
  max-width: 440px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

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

.empty-state {
  padding: 42px;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid rgba(254, 215, 170, 0.78);
}

@media (max-width: 1100px) {
  .header-search {
    display: none;
  }

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

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

  .detail-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .header-inner {
    height: 68px;
    padding: 0 16px;
  }

  .main-nav {
    display: none;
  }

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

  .category-strip {
    padding: 0 16px 12px;
  }

  .hero-carousel {
    padding: 0 16px;
  }

  .hero-stage {
    min-height: 560px;
    border-radius: 26px;
  }

  .hero-overlay {
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.18));
  }

  .hero-content {
    left: 22px;
    right: 22px;
    bottom: 78px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .search-panel,
  .footer-inner,
  .overview-grid,
  .category-overview-card,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

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

  .ranking-row {
    grid-template-columns: 44px 54px 1fr;
  }

  .ranking-meta {
    display: none;
  }

  .page-hero {
    margin: 18px 16px 0;
    padding: 58px 18px;
    border-radius: 26px;
  }

  .section-inner {
    padding: 44px 16px;
  }

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

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

  .detail-hero-inner {
    padding: 32px 16px 56px;
  }

  .detail-layout {
    margin-top: 34px;
  }

  .detail-poster {
    width: min(240px, 68vw);
  }

  .detail-one-line {
    font-size: 17px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .brand-text strong {
    font-size: 20px;
  }

  .brand-text em {
    display: none;
  }

  .hero-stage {
    min-height: 520px;
  }

  .hero-controls {
    bottom: 22px;
  }

  .movie-grid,
  .catalog-grid,
  .category-grid {
    gap: 12px;
  }

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

  .movie-card-title {
    font-size: 15px;
  }

  .movie-card-line {
    min-height: 44px;
    font-size: 13px;
  }

  .poster-badge,
  .movie-tags span {
    font-size: 11px;
  }

  .category-overview-media img {
    height: 96px;
  }

  .play-ring {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
}
