:root {
  --bg: #fff7ed;
  --surface: #ffffff;
  --surface-soft: #fffbeb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.24);
  --orange: #f97316;
  --rose: #f43f5e;
  --amber: #f59e0b;
  --dark: #111827;
  --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(124, 45, 18, 0.08);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark,
.footer-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
  box-shadow: 0 16px 32px rgba(244, 63, 94, 0.25);
}

.brand-text {
  font-size: 1.2rem;
  background: linear-gradient(120deg, var(--orange), var(--rose), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  padding: 9px 13px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--orange);
  background: rgba(255, 237, 213, 0.88);
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: 280px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.header-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.filter-bar select,
.search-page-form input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
}

.header-search input {
  padding: 8px 10px;
  min-width: 0;
}

.header-search button,
.mobile-search button,
.large-search button,
.search-page-form button,
.filter-bar button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.header-search button {
  padding: 8px 14px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--orange);
  font-size: 1.4rem;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: rgba(255, 255, 255, 0.96);
}

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

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding: 8px;
  border-radius: 18px;
  background: #fff7ed;
}

.mobile-search input {
  padding: 10px;
}

.mobile-search button {
  padding: 0 16px;
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  filter: saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.14), rgba(17, 24, 39, 0.86)),
    radial-gradient(circle at 18% 35%, rgba(249, 115, 22, 0.4), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 56px;
  padding: 76px 0 96px;
  color: #fff;
}

.eyebrow,
.sub-hero p,
.section-heading p {
  color: #fed7aa;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 12px 0 18px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-chips span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 700;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.3);
}

.ghost-button {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster span,
.poster-play,
.detail-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 22px 42px rgba(244, 63, 94, 0.35);
}

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

.hero-controls button {
  cursor: pointer;
  border: 0;
}

.hero-controls > button {
  width: 44px;
  height: 44px;
  color: #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  font-size: 1.6rem;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.hero-dot.active {
  width: 32px;
  background: #fff;
}

.quick-panel {
  position: relative;
  z-index: 3;
  margin-top: -44px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.large-search,
.search-page-form {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid var(--line);
}

.large-search input,
.search-page-form input {
  padding: 13px 18px;
}

.large-search button,
.search-page-form button {
  padding: 0 24px;
  white-space: nowrap;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #9a3412;
  background: #ffedd5;
  font-weight: 800;
}

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

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

.section-heading p {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 0.78rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--dark);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 45px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.46);
  box-shadow: 0 25px 70px rgba(124, 45, 18, 0.16);
}

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

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

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

.poster-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-play {
  width: 48px;
  height: 48px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
}

.card-body {
  padding: 15px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 900;
}

.card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffedd5;
}

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

.tag-row span {
  min-height: 26px;
  padding: 4px 8px;
  color: #9a3412;
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.18);
  font-size: 0.76rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

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

.ranking-panel {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #111827, #7f1d1d);
  color: #fff;
  box-shadow: var(--shadow);
}

.ranking-title {
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 950;
}

.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-item {
  display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.ranking-item img {
  width: 52px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 950;
}

.ranking-item.top .rank-num {
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
}

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

.category-tile,
.category-summary-card {
  min-height: 156px;
  padding: 22px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(244, 63, 94, 0.24), transparent 50%),
    linear-gradient(135deg, #fff7ed, #fff, #ffedd5);
  border: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(124, 45, 18, 0.14);
}

.category-tile span,
.category-cover span {
  color: var(--orange);
  font-weight: 900;
}

.category-tile strong,
.category-cover strong {
  display: block;
  margin: 8px 0;
  color: var(--dark);
  font-size: 1.4rem;
  font-weight: 950;
}

.category-tile em,
.category-summary-card p {
  color: var(--muted);
  font-style: normal;
}

.category-summary-card div {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.category-summary-card div a {
  color: #9a3412;
  font-weight: 800;
}

.channel-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 74px;
}

.channel-strip article {
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.channel-strip h2 {
  margin: 0 0 16px;
  font-size: 1.3rem;
  font-weight: 950;
}

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

.compact-card {
  min-width: 0;
}

.compact-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #ffedd5;
}

.compact-card span,
.compact-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-card span {
  margin-top: 8px;
  font-weight: 900;
}

.compact-card small {
  color: var(--muted);
}

.sub-hero {
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 146, 60, 0.45), transparent 30rem),
    linear-gradient(135deg, #111827, #7f1d1d 58%, #f97316);
}

.sub-hero .shell {
  padding: 86px 0 72px;
}

.sub-hero p {
  margin: 0 0 10px;
}

.sub-hero h1 {
  max-width: 880px;
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.sub-hero span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 12px;
  margin-top: 32px;
  padding: 14px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.filter-bar input,
.filter-bar select {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: #fff7ed;
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.empty-state.show {
  display: block;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  filter: saturate(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), #111827 96%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 42px;
  align-items: end;
  padding: 86px 0 72px;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.breadcrumb a {
  color: #fed7aa;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.detail-info p {
  max-width: 860px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.13rem;
  line-height: 1.8;
}

.large-tags span {
  color: #fed7aa;
  background: rgba(255, 255, 255, 0.1);
}

.detail-info .primary-button {
  margin-top: 24px;
}

.player-section {
  padding-top: 58px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.28);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 20rem),
    rgba(0, 0, 0, 0.38);
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 22px 50px rgba(244, 63, 94, 0.35);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.1rem;
}

.player-overlay.hidden {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 10px 14px;
  color: #fff;
  border-radius: 14px;
  background: rgba(17, 24, 39, 0.72);
}

.player-status.show {
  display: block;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 42px;
}

.content-card {
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  font-weight: 950;
}

.content-card p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.meta-card {
  grid-column: 1 / -1;
}

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

.meta-card dt {
  color: var(--muted);
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
}

.rank-list-page {
  display: grid;
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 15px 45px rgba(124, 45, 18, 0.08);
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #ffedd5;
}

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

.rank-poster span {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  font-weight: 950;
}

.rank-card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 950;
}

.rank-card p {
  color: var(--muted);
  line-height: 1.8;
}

.search-page-form {
  max-width: 760px;
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.search-page-form input {
  color: #fff;
}

.search-page-form input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.search-result-head {
  margin-bottom: 22px;
}

.search-result-head h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 950;
}

.search-result-head p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 74px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #7f1d1d, #431407);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 1.2rem;
  font-weight: 950;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
}

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

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: none;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 18px 38px rgba(244, 63, 94, 0.3);
  cursor: pointer;
}

.back-to-top.show {
  display: grid;
  place-items: center;
}

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

  .split-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }

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

  .channel-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .hero-carousel,
  .hero-content {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: 720px;
  }

  .hero-slide.active {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 120px;
  }

  .hero-poster {
    width: min(260px, 70vw);
  }

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

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

  .detail-layout {
    grid-template-columns: 1fr;
    padding-top: 50px;
  }

  .detail-poster {
    width: min(260px, 70vw);
  }

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

@media (max-width: 560px) {
  .header-inner {
    height: 64px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-copy h1,
  .detail-info h1 {
    font-size: 2.5rem;
  }

  .large-search,
  .search-page-form {
    border-radius: 22px;
    flex-direction: column;
  }

  .large-search button,
  .search-page-form button {
    min-height: 46px;
  }

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

  .category-grid,
  .category-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .content-card {
    padding: 22px;
  }

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