:root {
  color-scheme: light;
  --bg: #fff7ed;
  --paper: #ffffff;
  --paper-soft: #fff1e6;
  --text: #18181b;
  --muted: #6b7280;
  --line: rgba(251, 146, 60, 0.22);
  --brand: #f97316;
  --brand-strong: #ea580c;
  --brand-dark: #9a3412;
  --pink: #ec4899;
  --red: #ef4444;
  --shadow: 0 18px 45px rgba(154, 52, 18, 0.16);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 36%, #fff7ed 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
  background: linear-gradient(90deg, #f97316 0%, #ef4444 50%, #ec4899 100%);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.28);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo {
  font-size: 22px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

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

.nav-link,
.mobile-link {
  border: 0;
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  background: rgba(255, 255, 255, 0.2);
}

.nav-menu {
  position: relative;
}

.nav-menu-panel {
  position: absolute;
  top: 42px;
  right: 0;
  width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(24, 24, 27, 0.86);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  display: none;
}

.nav-menu:hover .nav-menu-panel,
.nav-menu:focus-within .nav-menu-panel {
  display: grid;
  gap: 4px;
}

.nav-menu-panel a {
  padding: 10px 12px;
  border-radius: 12px;
  color: #fff;
}

.nav-menu-panel a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.header-search,
.mobile-search,
.wide-search {
  display: flex;
  align-items: center;
}

.header-search {
  position: relative;
  width: 250px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.filter-search-wrap input,
.page-search-form input {
  width: 100%;
  border: 0;
  outline: 0;
}

.header-search input {
  color: #fff;
  padding: 10px 44px 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.82);
}

.header-search input:focus {
  background: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65);
}

.header-search button {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-nav {
  display: none;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 18px;
}

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

.mobile-search {
  gap: 8px;
  margin-top: 8px;
}

.mobile-search input {
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-search button {
  border: 0;
  color: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  background: rgba(24, 24, 27, 0.32);
}

.hero-carousel {
  position: relative;
  height: min(72vh, 640px);
  min-height: 520px;
  overflow: hidden;
  background: #111827;
}

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

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(249, 115, 22, 0.28), transparent 32%),
    linear-gradient(90deg, rgba(8, 8, 10, 0.86), rgba(24, 24, 27, 0.6) 44%, rgba(24, 24, 27, 0.18)),
    linear-gradient(0deg, rgba(8, 8, 10, 0.88), rgba(8, 8, 10, 0.08) 46%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  padding: 82px 22px 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

.hero-pill,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-pill {
  padding: 9px 16px;
  background: var(--brand);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: 13px;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2 {
  margin: 18px 0 16px;
  max-width: 860px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

.hero-meta span,
.meta-badges span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.text-button,
.wide-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.wide-search button {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--red));
  box-shadow: 0 18px 32px rgba(249, 115, 22, 0.32);
}

.primary-button,
.ghost-button {
  padding: 13px 24px;
}

.ghost-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.home-search-block,
.content-section,
.player-panel {
  max-width: 1240px;
  margin: 0 auto;
  padding: 58px 22px;
}

.home-search-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 30px;
  align-items: center;
}

.home-search-block h2,
.section-heading h2,
.copy-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.home-search-block p,
.section-heading p,
.copy-card p,
.page-hero p,
.category-overview-body p {
  color: var(--muted);
  line-height: 1.8;
}

.wide-search {
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wide-search input {
  padding: 18px 22px;
  color: var(--text);
  background: transparent;
}

.wide-search button {
  align-self: stretch;
  padding: 0 28px;
}

.soft-bg {
  max-width: 1280px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff7ed, #fdf2f8);
}

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

.section-heading p {
  margin: 8px 0 0;
}

.section-more,
.text-button {
  color: var(--brand-strong);
  font-weight: 800;
}

.text-button {
  padding: 10px 0;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.1));
}

.category-tile img,
.category-cover img,
.ranking-hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.category-tile:hover img,
.category-cover:hover img,
.ranking-hero-card:hover img,
.poster-link:hover img {
  transform: scale(1.06);
}

.category-tile span,
.category-tile em {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
}

.category-tile span {
  bottom: 46px;
  font-size: 22px;
  font-weight: 900;
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s 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, #fed7aa, #fbcfe8);
}

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

.card-badge,
.card-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  background: rgba(249, 115, 22, 0.9);
}

.card-year {
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  background: rgba(24, 24, 27, 0.72);
}

.rank-badge {
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.3);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.compact-grid .movie-card h3 {
  font-size: 16px;
}

.movie-card p {
  min-height: 44px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #ffedd5;
  font-size: 12px;
  font-weight: 700;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 32px;
}

.stack-list,
.category-mini-list {
  display: grid;
  gap: 12px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.horizontal-card img {
  width: 78px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
  background: #fed7aa;
}

.horizontal-card strong,
.horizontal-card em {
  display: block;
}

.horizontal-card strong {
  margin-bottom: 7px;
  font-size: 16px;
  line-height: 1.4;
}

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

.mini-rank {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.mini-rank a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.mini-rank a:last-child {
  border-bottom: 0;
}

.mini-rank b {
  color: var(--brand-strong);
  font-size: 18px;
}

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

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

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 74% 20%, rgba(236, 72, 153, 0.52), transparent 32%),
    linear-gradient(120deg, #9a3412 0%, #ef4444 48%, #ec4899 100%);
}

.page-hero > div {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 22px;
}

.page-hero .eyebrow {
  color: #ffedd5;
}

.page-hero h1 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}

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

.small-page-hero {
  min-height: 320px;
}

.category-page-hero {
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(120deg, #f97316, #ef4444, #ec4899);
}

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

.category-overview-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.category-cover {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  color: #fff;
}

.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.1));
}

.category-cover span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  font-size: 26px;
  font-weight: 950;
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 950;
}

.filter-panel {
  position: sticky;
  top: 84px;
  z-index: 20;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(18px);
}

.filter-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 18px;
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px var(--line);
}

.filter-search-wrap span {
  color: var(--brand-strong);
  font-weight: 900;
}

.filter-search-wrap input {
  background: transparent;
  color: var(--text);
}

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

.filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--brand-dark);
  background: #ffedd5;
  cursor: pointer;
  font-weight: 800;
}

.filter-chip.is-active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--brand), var(--red));
}

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

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.12);
  transform: scale(1.08);
  opacity: 0.62;
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.92), rgba(8, 8, 10, 0.66), rgba(8, 8, 10, 0.42)),
    linear-gradient(0deg, rgba(8, 8, 10, 0.9), transparent 48%);
}

.detail-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 22px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  background: #fed7aa;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.detail-info h1 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.06em;
}

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

.detail-tags {
  margin-bottom: 28px;
}

.player-panel {
  padding-top: 68px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #08080a;
  box-shadow: 0 26px 80px rgba(8, 8, 10, 0.32);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #08080a;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), rgba(8, 8, 10, 0.55) 54%, rgba(8, 8, 10, 0.74));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  background: linear-gradient(135deg, var(--brand), var(--red));
  box-shadow: 0 20px 42px rgba(239, 68, 68, 0.42);
}

.player-overlay strong {
  font-size: 22px;
}

.detail-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
}

.copy-card {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow);
}

.copy-card p {
  margin: 14px 0 0;
}

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

.ranking-hero-card {
  position: relative;
  overflow: hidden;
  height: 410px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: #111827;
  box-shadow: var(--shadow);
}

.ranking-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 55%);
}

.ranking-hero-card span,
.ranking-hero-card strong,
.ranking-hero-card em {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
}

.ranking-hero-card span {
  top: 22px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--red));
  font-weight: 900;
}

.ranking-hero-card strong {
  bottom: 56px;
  font-size: 28px;
  line-height: 1.2;
}

.ranking-hero-card em {
  bottom: 26px;
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.search-summary {
  margin-bottom: 22px;
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 900;
}

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

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

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 22px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 34px;
}

.footer-logo {
  margin-bottom: 16px;
  color: #fff;
  font-size: 22px;
}

.footer-inner p {
  max-width: 410px;
  margin: 0;
  color: #9ca3af;
  line-height: 1.8;
}

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

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
  background: rgba(249, 115, 22, 0.32);
}

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

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

  .header-search {
    margin-left: auto;
  }

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

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

  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .category-cover {
    min-height: 260px;
  }
}

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

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

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

  .hero-control {
    width: 44px;
    height: 44px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .home-search-block,
  .two-column-section,
  .detail-copy,
  .footer-inner,
  .detail-inner {
    grid-template-columns: 1fr;
  }

  .detail-inner {
    padding-top: 42px;
  }

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

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

  .filter-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 62px;
    padding: 0 14px;
  }

  .site-logo {
    font-size: 18px;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .hero-content {
    padding: 70px 18px 72px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 42px;
  }

  .hero-meta span,
  .meta-badges span {
    font-size: 12px;
  }

  .home-search-block,
  .content-section,
  .player-panel {
    padding: 42px 16px;
  }

  .wide-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 22px;
  }

  .wide-search button {
    padding: 14px 20px;
  }

  .category-grid,
  .movie-grid,
  .compact-grid,
  .category-overview-grid,
  .ranking-hero-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-info h1 {
    font-size: 38px;
  }

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

  .play-icon {
    width: 72px;
    height: 72px;
  }

  .footer-inner {
    padding: 42px 16px;
  }
}
