:root {
  color-scheme: light;
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --amber: #f59e0b;
  --gold: #fbbf24;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #fed7aa;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(124, 45, 18, 0.12);
  --shadow-strong: 0 24px 70px rgba(124, 45, 18, 0.22);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 48%, #fef3c7 100%);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid rgba(251, 191, 36, 0.36);
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.08);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-weight: 900;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.28);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--brand), #b45309);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.mobile-link {
  padding: 10px 14px;
  color: #4b5563;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  border-radius: 12px;
  background: rgba(251, 146, 60, 0.12);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #7c2d12;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(251, 191, 36, 0.4);
}

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

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

.hero-slide {
  display: none;
  min-height: 650px;
  background-position: center;
  background-size: cover;
}

.hero-slide.active {
  display: block;
  animation: fadeIn 0.55s ease both;
}

.hero-layer,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(251, 191, 36, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(17, 24, 39, 0.12));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 56px;
  min-height: 650px;
  padding: 72px 0 96px;
}

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

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 8px 12px;
  color: #fff7ed;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(234, 88, 12, 0.78);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.24);
}

.section-kicker {
  color: var(--brand-dark);
  background: #ffedd5;
  box-shadow: none;
}

.hero h1 {
  margin: 24px 0 10px;
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.08em;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.38);
}

.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.05;
  color: #fed7aa;
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: #ffedd5;
  font-size: 19px;
  line-height: 1.8;
}

.hero-tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-tags span,
.mini-tags span {
  padding: 7px 10px;
  color: #fff;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

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

.mini-tags span {
  color: #9a3412;
  background: #ffedd5;
  border: 0;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 16px 34px rgba(234, 88, 12, 0.35);
}

.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.btn-ghost:hover {
  color: #9a3412;
  background: #fff;
}

.btn-light {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 16px 34px rgba(124, 45, 18, 0.14);
}

.btn-outline {
  color: var(--brand-dark);
  border: 2px solid #fed7aa;
  background: rgba(255, 247, 237, 0.75);
}

.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 470px;
  padding: 22px;
  overflow: hidden;
  border-radius: 30px;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-strong);
  transform: rotate(2deg);
}

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

.hero-card span,
.hero-card strong {
  position: relative;
  z-index: 1;
}

.hero-card span {
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.hero-card strong {
  font-size: 24px;
}

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

.hero-arrow,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

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

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

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

.search-strip {
  margin-top: -38px;
  position: relative;
  z-index: 8;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(254, 215, 170, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
}

.search-panel span {
  color: var(--muted);
}

.search-form,
.toolbar-search {
  display: flex;
  gap: 10px;
}

.search-form input,
.toolbar-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 2px solid #fed7aa;
  border-radius: 16px;
  outline: 0;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.toolbar-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.search-form button {
  min-width: 96px;
  color: #fff;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  cursor: pointer;
}

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

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading a,
.text-link {
  color: var(--brand-dark);
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 138px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -40% auto auto 42%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.category-tile span {
  position: relative;
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-tile em {
  position: relative;
  display: block;
  margin-top: 10px;
  color: #ffedd5;
  font-style: normal;
  line-height: 1.5;
}

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

.home-grid,
.small-grid {
  grid-template-columns: repeat(6, 1fr);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(124, 45, 18, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 46px rgba(124, 45, 18, 0.18);
}

.poster {
  position: relative;
  display: block;
  min-height: 268px;
  background-color: #f97316;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.compact-card .poster {
  min-height: 230px;
}

.poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 237, 213, 0.06), rgba(17, 24, 39, 0.28));
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.quality-badge,
.rank-badge {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  min-height: 28px;
  padding: 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.quality-badge {
  right: 10px;
}

.rank-badge {
  left: 10px;
}

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  padding: 44px 12px 12px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76));
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-shade em {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.movie-card:hover .poster-shade {
  opacity: 1;
  transform: translateY(0);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info h3 a:hover {
  color: var(--brand);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.movie-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: #d97706;
}

.movie-info p {
  display: -webkit-box;
  min-height: 38px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.split-block {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 44px 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(254, 215, 170, 0.75);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(124, 45, 18, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateX(5px);
  box-shadow: 0 16px 32px rgba(124, 45, 18, 0.12);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, var(--brand));
}

.rank-cover {
  display: block;
  width: 58px;
  height: 78px;
  border-radius: 12px;
  background-color: #f97316;
  background-position: center;
  background-size: cover;
}

.rank-content {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.rank-content strong,
.rank-content em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-content strong {
  font-size: 15px;
}

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

.rank-hot {
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
}

.cta-block {
  margin-top: 76px;
  margin-bottom: 76px;
  padding: 54px 28px;
  color: #fff;
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: var(--shadow-strong);
}

.cta-block h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 44px);
}

.cta-block p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: #ffedd5;
  line-height: 1.8;
}

.page-hero {
  padding: 74px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(251, 191, 36, 0.42), transparent 30%),
    linear-gradient(135deg, var(--brand), var(--amber));
}

.page-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

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

.category-covers span {
  min-height: 110px;
  border-radius: 14px;
  background-color: #f97316;
  background-position: center;
  background-size: cover;
}

.category-card-large h2 {
  margin: 0 0 8px;
}

.category-card-large p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.list-shell {
  padding: 42px 0 78px;
}

.list-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.toolbar-title h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.toolbar-title p {
  margin: 0;
  color: var(--muted);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 14px;
  color: #9a3412;
  font-weight: 700;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: #fff7ed;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand), var(--amber));
}

.empty-state {
  display: none;
  padding: 68px 24px;
  color: var(--muted);
  text-align: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

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

.ranking-shell {
  padding: 42px 0 78px;
}

.ranking-shell h2 {
  margin: 0 0 22px;
  font-size: 32px;
}

.full-rank {
  grid-template-columns: repeat(2, 1fr);
}

.detail-hero {
  position: relative;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 42px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: #ffedd5;
  font-size: 14px;
}

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

.breadcrumb em {
  font-style: normal;
}

.detail-intro {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster {
  min-height: 386px;
  border: 6px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  background-color: #f97316;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-strong);
}

.detail-copy h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-copy p {
  max-width: 780px;
  margin: 0;
  color: #ffedd5;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.detail-meta span {
  padding: 9px 12px;
  color: #fff7ed;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  padding: 44px 0 0;
}

.detail-main,
.detail-side {
  display: grid;
  align-content: start;
  gap: 22px;
}

.player-card,
.content-card,
.side-card {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

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

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: rgba(0, 0, 0, 0.36);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay:hover {
  background: rgba(0, 0, 0, 0.48);
}

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

.player-card.is-loading .play-circle {
  animation: pulse 0.9s ease infinite;
}

.play-circle {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  padding-left: 4px;
  color: #fff;
  font-size: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--amber));
  box-shadow: 0 20px 45px rgba(234, 88, 12, 0.4);
}

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

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.95;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.info-list div {
  padding: 14px;
  border-radius: 16px;
  background: #fff7ed;
}

.info-list dt {
  color: #9a3412;
  font-weight: 800;
}

.info-list dd {
  margin: 6px 0 0;
  color: #374151;
}

.side-related {
  display: grid;
  gap: 10px;
}

.category-side {
  display: grid;
  gap: 12px;
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 36px;
  padding: 48px 0;
}

.brand-footer .brand-text strong {
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

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

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links h3 {
  margin: 0 0 8px;
  color: #fed7aa;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 24px;
  color: #9ca3af;
  border-top: 1px solid rgba(156, 163, 175, 0.2);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 1080px) {
  .movie-grid,
  .home-grid,
  .small-grid,
  .list-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .hero-inner,
  .detail-layout,
  .split-block {
    grid-template-columns: 1fr;
  }

  .hero-card {
    display: none;
  }

  .detail-side {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .menu-toggle {
    display: block;
  }

  .brand-text small {
    display: none;
  }

  .hero,
  .hero-slide,
  .hero-inner {
    min-height: 590px;
  }

  .search-panel,
  .list-toolbar,
  .category-card-large,
  .detail-intro,
  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }

  .category-grid,
  .category-overview,
  .full-rank,
  .top-grid {
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .home-grid,
  .small-grid,
  .list-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .detail-poster {
    width: min(260px, 100%);
  }
}

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

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

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

  .hero-actions,
  .search-form,
  .toolbar-search {
    flex-direction: column;
  }

  .movie-grid,
  .home-grid,
  .small-grid,
  .list-grid {
    gap: 12px;
  }

  .poster {
    min-height: 220px;
  }

  .movie-info {
    padding: 12px;
  }

  .rank-row {
    grid-template-columns: 34px 46px minmax(0, 1fr);
  }

  .rank-hot {
    display: none;
  }

  .rank-cover {
    width: 46px;
    height: 64px;
  }

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