:root {
  --red: #ef4444;
  --red-dark: #dc2626;
  --orange: #f97316;
  --amber: #f59e0b;
  --rose: #fb7185;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f3f4f6;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(127, 29, 29, 0.12);
  --radius: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffaf5 46%, #fff1f2 100%);
  min-height: 100vh;
}

body.is-locked {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--amber));
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.28);
  font-size: 15px;
}

.logo-copy {
  display: grid;
  gap: 2px;
}

.logo-name {
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1;
  background: linear-gradient(90deg, var(--red-dark), var(--orange), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.nav-link,
.mobile-link {
  color: #374151;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.25s ease;
}

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

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.18);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
}

.header-search input {
  width: 150px;
  border: 0;
  background: transparent;
  outline: 0;
  padding: 8px 4px 8px 10px;
}

.header-search button,
.hero-search button,
.primary-button {
  border: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(239, 68, 68, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
}

.primary-button:hover,
.header-search button:hover,
.hero-search button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.28);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.ghost-button {
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
  transition: all 0.25s ease;
}

.ghost-button.subtle {
  border-color: rgba(255, 255, 255, 0.18);
}

.ghost-button.light {
  color: var(--red-dark);
  background: #ffffff;
  border-color: #fed7aa;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff7ed;
  color: var(--red-dark);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #fee2e2;
}

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

.mobile-logo {
  padding: 12px 10px 4px;
  font-size: 18px;
  font-weight: 900;
  color: var(--red-dark);
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #dc2626 0%, #f97316 48%, #f59e0b 100%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 26%),
    radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.05));
}

.hero-inner {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 54px 0 42px;
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 430px);
  align-items: center;
  gap: 44px;
  min-height: 440px;
}

.hero-slide.is-active {
  display: grid;
  animation: fadeSlide 0.55s ease both;
}

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

.hero-kicker {
  display: inline-flex;
  padding: 10px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  color: #fde68a;
  margin-top: 10px;
  font-size: 0.78em;
}

.hero p {
  margin: 24px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

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

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

.hero-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

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

.hero-poster-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 440px;
  border-radius: 30px;
  box-shadow: 0 30px 70px rgba(69, 10, 10, 0.32);
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.15);
}

.hero-poster-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  z-index: 2;
  pointer-events: none;
}

.hero-poster-card img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.hero-poster-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 80px 24px 24px;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), transparent);
}

.hero-poster-overlay b,
.hero-poster-overlay em {
  display: block;
}

.hero-poster-overlay b {
  font-size: 24px;
  font-style: normal;
}

.hero-poster-overlay em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
}

.hero-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-dots,
.hero-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.hero-dot.is-active {
  background: #ffffff;
}

.hero-prev,
.hero-next {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 30px;
  line-height: 1;
}

.hero-search {
  display: flex;
  align-items: center;
  max-width: 760px;
  padding: 8px;
  gap: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 20px 38px rgba(127, 29, 29, 0.16);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  color: var(--ink);
  background: transparent;
}

.hero-search button {
  padding: 14px 22px;
}

.page-section {
  padding: 58px 0;
}

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

.section-title h2,
.panel-head h2,
.filter-heading h2,
.detail-card h2,
.side-info h2,
.footer-grid h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.section-title p,
.filter-heading p,
.search-callout p,
.category-overview-card p,
.sub-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.section-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: var(--red-dark);
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #fed7aa;
  font-size: 24px;
}

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

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

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

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

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.movie-card.featured .poster-wrap {
  height: 280px;
}

.movie-card.mini .poster-wrap {
  height: 190px;
}

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

.movie-card:hover .poster-wrap img,
.movie-row:hover .row-poster img,
.side-poster:hover img {
  transform: scale(1.08);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.75), transparent);
}

.category-pill,
.play-chip,
.rank-badge {
  position: absolute;
  z-index: 2;
}

.category-pill {
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(239, 68, 68, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.play-chip {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--red));
}

.card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.card-body strong {
  font-size: 18px;
  line-height: 1.35;
}

.card-meta,
.card-line,
.row-content span,
.side-info p {
  color: var(--muted);
}

.card-line {
  min-height: 44px;
  line-height: 1.6;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #7f1d1d;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 700;
}

.gradient-band {
  padding: 70px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--red), var(--orange), var(--amber));
}

.gradient-content {
  text-align: center;
}

.gradient-content h2,
.search-callout h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
}

.gradient-content p {
  max-width: 820px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.feature-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  margin-top: 34px;
}

.feature-stats span {
  display: grid;
  gap: 4px;
}

.feature-stats b {
  font-size: 38px;
}

.feature-stats em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.82);
}

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

.category-tile,
.category-overview-card,
.filter-panel,
.ranking-panel,
.detail-card,
.side-info,
.player-card,
.search-callout {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(254, 215, 170, 0.8);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.category-tile {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 230px;
  transition: all 0.3s ease;
}

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

.category-tile-images {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 8px;
  height: 112px;
  margin-bottom: 16px;
}

.category-tile-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.category-tile-images img:first-child {
  grid-row: span 2;
}

.category-tile strong,
.category-tile em,
.category-tile span:last-child {
  display: block;
}

.category-tile strong {
  font-size: 22px;
}

.category-tile em {
  margin: 5px 0;
  color: var(--red-dark);
  font-style: normal;
  font-weight: 800;
}

.category-tile span:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 26px;
  align-items: start;
}

.row-list {
  display: grid;
  gap: 14px;
}

.movie-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
  transition: all 0.25s ease;
}

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

.row-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 100%;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--orange));
  font-weight: 900;
}

.movie-row:has(.row-rank) {
  grid-template-columns: 40px 130px minmax(0, 1fr);
}

.row-poster {
  height: 116px;
  overflow: hidden;
  border-radius: 16px;
  background: #fee2e2;
}

.row-content {
  display: grid;
  align-content: center;
  gap: 7px;
}

.row-content strong {
  font-size: 18px;
}

.row-meta {
  font-size: 13px;
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.panel-head,
.category-overview-head,
.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-head a,
.category-overview-head a,
.side-info a {
  color: var(--red-dark);
  font-weight: 900;
}

.ranking-list.compact .movie-row {
  grid-template-columns: 36px 92px minmax(0, 1fr);
}

.ranking-list.compact .row-poster {
  height: 86px;
}

.ranking-list.compact .row-content span:not(.tag-row) {
  display: none;
}

.search-callout {
  text-align: center;
  padding: 48px 24px;
}

.search-callout p {
  margin: 14px auto 22px;
  max-width: 640px;
}

.sub-hero {
  position: relative;
  padding: 72px 0;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(120deg, var(--red-dark), var(--orange), var(--amber));
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.35), transparent);
}

.sub-hero .container {
  position: relative;
}

.sub-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(38px, 6vw, 60px);
  line-height: 1.05;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.detail-topbar .breadcrumb {
  color: var(--red-dark);
}

.sub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.category-overview-list {
  display: grid;
  gap: 24px;
}

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

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

.filter-heading {
  margin-bottom: 18px;
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(120px, 0.6fr));
  gap: 12px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fffaf5;
  color: var(--ink);
  outline: 0;
  padding: 13px 14px;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.filter-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.filter-card.is-hidden {
  display: none;
}

.detail-topbar {
  position: sticky;
  top: 78px;
  z-index: 30;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #fee2e2;
  backdrop-filter: blur(12px);
}

.detail-topbar .container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  align-items: start;
  padding: 36px 0 10px;
}

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  padding: 0;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
  border-radius: var(--radius);
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000000;
  cursor: pointer;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-start span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  font-size: 28px;
  padding-left: 4px;
}

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

.player-loading,
.player-error {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.75);
  font-weight: 800;
}

.detail-card {
  padding: 28px;
}

.detail-title-row h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.detail-title-row p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

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

.detail-meta-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.detail-meta-grid b {
  color: var(--red-dark);
  font-size: 13px;
}

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

.detail-tags span {
  color: #7f1d1d;
  background: #fee2e2;
}

.detail-card h2 {
  margin-top: 26px;
  margin-bottom: 10px;
  font-size: 24px;
}

.detail-card p {
  color: #374151;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 450px;
  background: #fee2e2;
  box-shadow: var(--shadow);
}

.side-info {
  padding: 22px;
}

.site-footer {
  margin-top: 70px;
  padding: 52px 0 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.5fr) minmax(180px, 0.5fr);
  gap: 34px;
}

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

.footer-grid h2 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 16px;
}

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

.footer-links a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

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

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

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

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

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

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

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

  .hero-poster-card {
    max-width: 480px;
    width: 100%;
    min-height: 360px;
  }

  .hero-poster-card img {
    min-height: 360px;
  }

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

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

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

  .header-inner {
    height: 66px;
  }

  .logo-subtitle,
  .header-search {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    padding: 38px 0 32px;
  }

  .hero-slide {
    min-height: auto;
    gap: 26px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions,
  .hero-search,
  .hero-control-row,
  .panel-head,
  .category-overview-head,
  .detail-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-search {
    display: flex;
  }

  .hero-poster-card,
  .hero-poster-card img {
    min-height: 300px;
  }

  .page-section {
    padding: 42px 0;
  }

  .section-title,
  .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .card-grid,
  .catalog-grid,
  .featured-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .poster-wrap,
  .movie-card.featured .poster-wrap,
  .movie-card.mini .poster-wrap {
    height: 210px;
  }

  .card-body {
    padding: 13px;
  }

  .card-body strong {
    font-size: 16px;
  }

  .card-line,
  .tag-row {
    display: none;
  }

  .movie-row,
  .movie-row:has(.row-rank),
  .ranking-list.compact .movie-row {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .row-rank {
    position: absolute;
    z-index: 3;
    width: 30px;
    min-height: 30px;
    margin: 8px;
  }

  .row-poster,
  .ranking-list.compact .row-poster {
    height: 92px;
  }

  .detail-topbar {
    top: 66px;
  }

  .detail-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    padding: 20px;
  }

  .side-poster {
    min-height: 320px;
  }
}

@media (max-width: 430px) {
  .card-grid,
  .catalog-grid,
  .featured-grid,
  .mini-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
}
