:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --purple-600: #9333ea;
  --cyan-500: #06b6d4;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 10px 24px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 20px 40px rgba(17, 24, 39, 0.13);
  --shadow-lg: 0 30px 70px rgba(17, 24, 39, 0.18);
  --radius-xl: 22px;
  --radius-2xl: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--orange-50), #ffffff 42%, #ffffff);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  background: rgba(255, 247, 237, 0.88);
  border-bottom: 1px solid rgba(251, 146, 60, 0.24);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange-400), var(--pink-500));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.25);
}

.logo-text {
  font-size: 21px;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--orange-600), var(--pink-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 700;
  transition: all 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-400), var(--pink-500));
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.24);
}

.quick-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.quick-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 10px;
  color: var(--gray-900);
}

.quick-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-500), var(--pink-500));
  cursor: pointer;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--gray-700);
}

.mobile-panel {
  display: none;
  padding: 10px 16px 18px;
  background: #ffffff;
  border-top: 1px solid var(--orange-100);
}

.mobile-panel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--gray-700);
  font-weight: 700;
}

.mobile-panel a:hover {
  background: var(--orange-50);
  color: var(--orange-600);
}

.hero {
  position: relative;
  min-height: 690px;
  padding-top: 70px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--orange-400), var(--pink-500), var(--purple-600));
}

.hero-pattern,
.cta-band::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.24;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.5) 1px, transparent 0);
  background-size: 26px 26px;
}

.hero-slides {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.50), rgba(17, 24, 39, 0.26)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(251, 146, 60, 0.42), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.36), transparent 26%),
    linear-gradient(0deg, rgba(255, 247, 237, 0.12), transparent 32%);
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: 50px;
}

.hero-copy {
  color: #ffffff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  text-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.hero-line {
  max-width: 760px;
  margin: 22px 0 12px;
  font-size: clamp(19px, 2.4vw, 28px);
  font-weight: 700;
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--orange-500), var(--pink-500));
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.28);
}

.btn-primary:hover,
.btn-white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.btn-glass {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.btn-ghost {
  color: var(--orange-600);
  border: 1px solid rgba(249, 115, 22, 0.24);
  background: rgba(255, 255, 255, 0.78);
}

.btn-white {
  color: var(--orange-600);
  background: #ffffff;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.26);
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.12);
}

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

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 14px;
  border-radius: 18px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(12px);
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 92px;
  left: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-size: 28px;
  cursor: pointer;
}

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

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

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

.hero-search {
  position: absolute;
  right: 50%;
  bottom: 24px;
  transform: translateX(50%);
  width: min(760px, calc(100% - 32px));
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 12px 18px;
  background: transparent;
}

.page-main {
  padding-top: 96px;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: linear-gradient(135deg, var(--orange-50), var(--pink-50));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.section-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange-400), var(--pink-500));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.22);
  font-size: 24px;
}

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

.section-heading p {
  margin: 3px 0 0;
  color: var(--gray-500);
}

.featured-card,
.category-overview-card,
.text-card {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.featured-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  margin-bottom: 36px;
}

.featured-image {
  min-height: 420px;
  overflow: hidden;
}

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

.featured-card:hover .featured-image img {
  transform: scale(1.06);
}

.featured-content {
  padding: clamp(26px, 5vw, 54px);
}

.featured-content h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}

.featured-line,
.detail-one-line {
  color: var(--orange-600);
  font-size: 18px;
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 24px;
}

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

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

.compact-grid {
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--orange-100);
}

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

.movie-card:hover .movie-cover {
  transform: scale(1.09);
}

.category-badge,
.duration-badge,
.category-count {
  position: absolute;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.94);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.category-badge {
  top: 12px;
  right: 12px;
}

.duration-badge {
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.62);
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 52px;
  color: var(--gray-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-title:hover {
  color: var(--orange-600);
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 48px;
  margin: 10px 0 14px;
  color: var(--gray-500);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.movie-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--orange-600);
  background: var(--orange-50);
  font-size: 12px;
  font-weight: 800;
}

.movie-stats,
.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-stats {
  justify-content: space-between;
}

.movie-card-horizontal {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.movie-card-horizontal .movie-cover-wrap {
  height: 100%;
  aspect-ratio: auto;
}

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

.rank-pill {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange-500), var(--pink-500));
  box-shadow: var(--shadow-sm);
}

.rank-pill span {
  font-size: 24px;
  font-weight: 950;
  opacity: 0.78;
}

.rank-pill strong {
  min-height: 48px;
  font-size: 18px;
  line-height: 1.35;
}

.rank-pill small {
  opacity: 0.86;
}

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 260px;
  overflow: hidden;
  align-content: end;
  padding: 22px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.category-tile img,
.category-tile-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-tile img {
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-tile-shade {
  z-index: 1;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.24));
}

.category-tile strong,
.category-tile small,
.category-count {
  position: relative;
  z-index: 2;
}

.category-tile strong {
  font-size: 24px;
  margin-bottom: 6px;
}

.category-tile small {
  opacity: 0.86;
}

.category-count {
  top: 16px;
  right: 16px;
  left: auto;
  bottom: auto;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, var(--orange-500), var(--pink-500), var(--purple-600));
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-icon {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 28px;
}

.cta-band h2,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.cta-band p,
.page-hero p {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: 18px;
  opacity: 0.9;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 64px clamp(22px, 5vw, 56px);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(251, 146, 60, 0.34), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(236, 72, 153, 0.28), transparent 32%),
    linear-gradient(135deg, #ffffff, var(--orange-50));
  box-shadow: var(--shadow-sm);
}

.filter-panel {
  position: sticky;
  z-index: 10;
  top: 84px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border: 1px solid var(--orange-100);
  border-radius: 16px;
  outline: none;
  background: #ffffff;
  padding: 0 14px;
}

.filter-panel input {
  flex: 1;
  min-width: 160px;
}

.filter-panel select {
  min-width: 170px;
}

.filter-count {
  white-space: nowrap;
  color: var(--gray-500);
  font-weight: 800;
}

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

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

.category-overview-head {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 22px;
}

.category-overview-head img {
  width: 140px;
  height: 100px;
  border-radius: 18px;
  object-fit: cover;
}

.category-overview-head span {
  color: var(--orange-600);
  font-weight: 900;
}

.category-overview-head h2 {
  margin: 4px 0 6px;
}

.category-overview-head p {
  margin: 0;
  color: var(--gray-500);
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 72px 150px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ranking-row.top-three {
  background: linear-gradient(135deg, #ffffff, var(--orange-50));
  border: 1px solid rgba(249, 115, 22, 0.22);
}

.ranking-no {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--orange-500), var(--pink-500));
  font-weight: 950;
  font-size: 20px;
}

.ranking-cover img {
  width: 150px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
}

.ranking-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.ranking-info p {
  margin: 0 0 10px;
  color: var(--gray-500);
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  color: var(--orange-600);
  font-size: 24px;
}

.ranking-score span {
  color: var(--gray-500);
  font-size: 13px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--orange-600);
  font-weight: 800;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at 88% 20%, rgba(236, 72, 153, 0.22), transparent 30%),
    linear-gradient(135deg, #ffffff, var(--orange-50));
  box-shadow: var(--shadow-sm);
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

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

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-info .detail-meta-row {
  margin: 18px 0;
}

.detail-meta-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(249, 115, 22, 0.16);
  color: var(--gray-700);
  font-weight: 800;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #020617;
  box-shadow: var(--shadow-lg);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(249, 115, 22, 0.32), transparent 28%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.28));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 8px;
  border-radius: 999px;
  color: var(--orange-600);
  background: #ffffff;
  font-size: 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.player-overlay strong {
  font-size: clamp(22px, 4vw, 38px);
}

.player-overlay small {
  opacity: 0.84;
}

.player-message {
  position: absolute;
  right: 18px;
  bottom: 12px;
  left: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  pointer-events: none;
}

.detail-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.text-card {
  padding: 28px;
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.text-card p {
  margin: 0;
  color: var(--gray-700);
}

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

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

.footer-logo {
  color: #ffffff;
  font-size: 20px;
  margin-bottom: 12px;
}

.site-footer p {
  margin: 0;
  color: #9ca3af;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer a {
  display: block;
  margin: 9px 0;
  color: #d1d5db;
}

.site-footer a:hover {
  color: var(--orange-400);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9ca3af;
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

  .hero-inner {
    grid-template-columns: 1fr 280px;
  }

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

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

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

  .menu-toggle {
    display: block;
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-inner,
  .featured-card,
  .detail-hero,
  .detail-text,
  .category-overview-head,
  .ranking-row {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 22px;
    padding-top: 40px;
    padding-bottom: 96px;
  }

  .hero-poster {
    width: min(260px, 74vw);
    margin: 0 auto;
  }

  .movie-grid.three-cols,
  .movie-grid.four-cols,
  .category-grid,
  .rank-strip {
    grid-template-columns: 1fr;
  }

  .movie-card-horizontal {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .filter-panel {
    position: static;
    flex-direction: column;
    align-items: stretch;
  }

  .ranking-cover img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ranking-score {
    text-align: left;
  }
}

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

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

  .hero {
    padding-top: 64px;
  }

  .hero-search {
    border-radius: 24px;
    flex-direction: column;
  }

  .hero-search button {
    min-height: 44px;
  }

  .hero-actions,
  .featured-actions {
    flex-direction: column;
  }

  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 20px;
  }

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