:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-strong: #0f172a;
  --card: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --amber: #f59e0b;
  --amber-strong: #f97316;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.10), transparent 30rem),
    radial-gradient(circle at 90% 0%, rgba(249, 115, 22, 0.12), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 38%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

main {
  min-height: 60vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(2, 6, 23, 0.92);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.logo span:last-child {
  background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 12px 26px rgba(245, 158, 11, 0.32);
  font-size: 16px;
}

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

.desktop-nav a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--soft);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a.active,
.mobile-nav a.active {
  color: #fbbf24;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.17), rgba(249, 115, 22, 0.12));
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  padding: 7px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
}

.nav-search input,
.big-search input,
.filter-panel input,
.filter-panel select,
.mobile-nav input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.nav-search input::placeholder,
.big-search input::placeholder,
.filter-panel input::placeholder,
.mobile-nav input::placeholder {
  color: #64748b;
}

.nav-search button,
.big-search button,
.mobile-nav button {
  border: 0;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.22);
}

.nav-search button {
  padding: 8px 12px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.75);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 99px;
  background: #fff;
}

.mobile-nav {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.mobile-nav form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.5);
}

.mobile-nav button {
  padding: 8px 14px;
}

.hero-carousel {
  position: relative;
  height: clamp(620px, 82vh, 860px);
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.2s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.05) 52%, rgba(2, 6, 23, 0.58) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 140px 0 120px;
}

.hero-kicker,
.detail-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-kicker span,
.detail-kicker,
.page-hero span,
.section-heading span,
.category-overview-head span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-kicker a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(12px);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 950;
  text-wrap: balance;
}

.hero-content p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #dbeafe;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.hero-meta span,
.movie-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 13px;
}

.hero-actions,
.detail-title-row,
.section-heading,
.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 34px;
}

.primary-btn,
.ghost-btn,
.section-heading > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 18px 32px rgba(245, 158, 11, 0.28);
}

.ghost-btn,
.section-heading > a {
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(15, 23, 42, 0.68);
}

.ghost-btn.small {
  min-height: 42px;
  padding: 0 16px;
}

.primary-btn:hover,
.ghost-btn:hover,
.section-heading > a:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  font-size: 38px;
  line-height: 1;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 30px;
  height: 6px;
  border: 0;
  border-radius: 99px;
  cursor: pointer;
  background: rgba(203, 213, 225, 0.36);
}

.hero-dot.active {
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.quick-search-panel,
.content-section,
.detail-shell,
.overview-stack {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.quick-search-panel {
  position: relative;
  z-index: 6;
  margin-top: -62px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.big-search {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.big-search input {
  padding: 0 10px;
  font-size: 17px;
}

.big-search button {
  padding: 13px 24px;
}

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

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--soft);
  background: rgba(148, 163, 184, 0.09);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

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

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.category-overview-head h2,
.page-hero h1,
.detail-main h1,
.detail-main h2 {
  margin: 10px 0 0;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.section-heading h2,
.category-overview-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.section-heading p,
.category-overview-head p,
.page-hero p,
.site-footer p,
.movie-card-body p,
.ranking-item p,
.detail-main p {
  color: var(--muted);
}

.section-heading p,
.category-overview-head p {
  max-width: 680px;
  margin: 10px 0 0;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.20);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(245, 158, 11, 0.38);
  box-shadow: 0 22px 50px rgba(245, 158, 11, 0.11);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(15, 23, 42, 0.95));
}

.poster-link img,
.category-tile img,
.ranking-thumb img,
.detail-poster,
.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img,
.category-tile img,
.ranking-thumb img {
  transition: transform 0.55s ease, filter 0.55s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover img,
.ranking-item:hover .ranking-thumb img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

.play-mark,
.big-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 16px 34px rgba(245, 158, 11, 0.32);
}

.play-mark {
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  font-style: normal;
  font-weight: 950;
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

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

.movie-card h3 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
}

.movie-card h3 a:hover,
.ranking-item h3 a:hover {
  color: #fbbf24;
}

.movie-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 52px;
  font-size: 14px;
}

.tag-list,
.detail-tags,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list {
  margin-top: 14px;
}

.tag-list span,
.detail-tags a {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-radius: 22px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.28));
}

.category-tile img {
  position: absolute;
  inset: 0;
}

.category-tile span,
.category-tile p {
  position: relative;
  z-index: 2;
}

.category-tile span {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.category-tile p {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 52px 78px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ranking-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.35);
}

.ranking-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 950;
  color: #fff;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.ranking-thumb {
  width: 78px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #111827;
}

.ranking-item h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
}

.ranking-item p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 150px 0 72px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.18), transparent 35%),
    radial-gradient(circle at 86% 24%, rgba(249, 115, 22, 0.18), transparent 28rem),
    #020617;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

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

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(36px, 6vw, 72px);
}

.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  font-size: 18px;
}

.slim-hero {
  padding-bottom: 64px;
}

.overview-stack {
  display: grid;
  gap: 34px;
  padding-top: 64px;
}

.category-overview-block {
  padding: 24px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.category-overview-head {
  margin-bottom: 22px;
}

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

.compact-card .movie-card-body {
  padding: 13px;
}

.compact-card h3 {
  font-size: 17px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.filter-panel label {
  display: grid;
  gap: 7px;
}

.filter-panel span {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.62);
}

.filter-panel select {
  color: var(--text);
}

.filter-panel option {
  color: #0f172a;
}

.empty-state {
  display: none;
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 20px;
}

.empty-state.is-visible {
  display: block;
}

.detail-shell {
  padding-top: 112px;
}

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

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

.player-section {
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: #020617;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.18));
}

.player-cover.is-hidden {
  display: none;
}

.big-play {
  z-index: 4;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  font-size: 34px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  padding-top: 34px;
}

.detail-main,
.detail-side {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
}

.detail-main {
  padding: 30px;
}

.detail-main h1 {
  font-size: clamp(30px, 4vw, 52px);
}

.detail-main h2 {
  margin-top: 30px;
  font-size: 26px;
}

.lead-text {
  margin-top: 22px;
  font-size: 18px;
  color: #dbeafe !important;
}

.detail-tags {
  margin-top: 18px;
}

.detail-side {
  align-self: start;
  overflow: hidden;
  padding: 16px;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  border-radius: 18px;
  background: #111827;
}

.info-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.info-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.info-list span {
  color: #94a3b8;
}

.info-list strong {
  color: #fff;
  text-align: right;
}

.site-footer {
  margin-top: 86px;
  padding: 54px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.7);
}

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

.footer-logo {
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links a {
  color: #94a3b8;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
}

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

.footer-bottom {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #64748b;
  font-size: 14px;
}

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

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

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

  .compact-ranking {
    grid-template-columns: 1fr;
  }

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

  .detail-side {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
  }

  .info-list {
    margin-top: 0;
  }
}

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

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

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

  .nav-shell {
    height: 68px;
  }

  .hero-carousel {
    height: 720px;
  }

  .hero-content {
    padding: 120px 0 110px;
  }

  .hero-arrow {
    display: none;
  }

  .big-search,
  .filter-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .big-search {
    display: grid;
  }

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

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

  .section-heading,
  .category-overview-head,
  .detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-item {
    grid-template-columns: 42px 64px 1fr;
    gap: 12px;
  }

  .ranking-number {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }

  .ranking-thumb {
    width: 64px;
  }

  .detail-main {
    padding: 22px;
  }

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

@media (max-width: 540px) {
  .logo {
    font-size: 19px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
  }

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

  .hero-content p {
    font-size: 16px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn,
  .section-heading > a {
    width: 100%;
  }

  .quick-search-panel {
    margin-top: -48px;
  }

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

  .movie-card p {
    min-height: auto;
  }

  .page-hero {
    padding-top: 116px;
  }

  .big-play {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
