:root {
  color-scheme: light;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}

* {
  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(--slate-800);
  background: linear-gradient(180deg, var(--slate-50), #ffffff 360px);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--slate-900);
  white-space: nowrap;
}

.site-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), #fb923c);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.32);
  font-size: 14px;
}

.site-logo-text {
  font-size: 21px;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-nav-link {
  color: var(--slate-600);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--amber-dark);
  background: #fff7ed;
}

.header-search,
.mobile-search,
.search-page-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-page-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid var(--slate-200);
  outline: none;
  background: #ffffff;
  color: var(--slate-800);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 250px;
  padding: 11px 16px;
  border-radius: 999px;
}

.header-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.search-page-form button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button {
  padding: 11px 18px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
  background: var(--amber-dark);
  transform: translateY(-1px);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--slate-100);
  color: var(--slate-800);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav.open {
  display: block;
}

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  padding: 11px 14px;
  border-radius: 14px;
}

.mobile-search button {
  padding: 11px 15px;
}

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

.mobile-nav-link {
  padding: 12px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
  pointer-events: none;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 42%, rgba(0, 0, 0, 0.22) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 110px;
}

.hero-text {
  width: min(760px, 100%);
  color: #ffffff;
}

.hero-kicker,
.page-eyebrow,
.tag-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--amber);
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-kicker {
  padding: 7px 16px;
  margin-bottom: 18px;
  font-size: 14px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.hero-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.filter-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--amber);
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.3);
}

.primary-button:hover,
.ghost-button:hover,
.filter-link:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  background: var(--amber-dark);
  box-shadow: 0 18px 35px rgba(217, 119, 6, 0.35);
}

.primary-button.full {
  width: 100%;
}

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

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

.hero-channels {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 3;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  transform: translateX(-50%);
}

.hero-channels a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

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

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

.section-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--amber-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title h2,
.strip-heading h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.03em;
}

.strip-heading a {
  color: var(--amber-dark);
  font-weight: 800;
}

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

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

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

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

.category-strip {
  padding: 54px 0;
  background: linear-gradient(90deg, var(--slate-100), var(--slate-50));
}

.category-strip:nth-of-type(even) {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.movie-card {
  min-width: 0;
}

.card-link,
.large-link {
  display: block;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover,
.large-link:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--slate-200);
}

.poster-wrap img,
.large-link img,
.ranking-row img,
.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.card-link:hover img,
.large-link:hover img,
.ranking-row a:hover img {
  transform: scale(1.08);
}

.poster-shade,
.large-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-link:hover .poster-shade,
.large-link:hover .large-overlay {
  opacity: 1;
}

.play-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.28);
}

.category-badge,
.duration-badge {
  position: absolute;
  z-index: 2;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.category-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: var(--amber);
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.78);
}

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

.card-body strong,
.movie-card-compact strong,
.horizontal-content strong,
.large-content strong {
  color: var(--slate-900);
  line-height: 1.35;
}

.card-body span,
.horizontal-content span,
.large-content span {
  color: var(--slate-600);
  line-height: 1.6;
}

.card-body small,
.movie-card-compact .card-meta,
.horizontal-content small,
.large-content small {
  color: var(--slate-500);
  font-size: 13px;
}

.movie-card-compact .card-link {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.movie-card-compact .card-link:hover {
  transform: none;
  box-shadow: none;
}

.compact-poster {
  margin-bottom: 10px;
  border-radius: 14px;
}

.movie-card-compact strong {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 5px;
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta {
  display: block;
}

.movie-card-horizontal .horizontal-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 114px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.movie-card-horizontal .horizontal-link:hover {
  background: #ffffff;
  transform: translateX(3px);
}

.horizontal-poster {
  width: 164px;
  flex: 0 0 164px;
  border-radius: 12px;
}

.horizontal-content {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.horizontal-content strong,
.horizontal-content span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.horizontal-content strong {
  -webkit-line-clamp: 2;
}

.horizontal-content span {
  -webkit-line-clamp: 2;
}

.rank-number,
.ranking-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #ffffff;
  background: var(--amber);
  font-weight: 900;
}

.rank-number {
  width: 34px;
  height: 34px;
}

.movie-card-large .large-link {
  position: relative;
  height: 420px;
  background: var(--slate-900);
}

.large-link img {
  position: absolute;
  inset: 0;
}

.large-overlay {
  opacity: 1;
  align-items: flex-end;
  justify-content: flex-start;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.large-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  gap: 10px;
  color: #ffffff;
}

.large-content strong {
  color: #ffffff;
  font-size: 25px;
}

.large-content span,
.large-content small {
  color: rgba(255, 255, 255, 0.86);
}

.page-hero {
  padding: 78px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.category-page-hero {
  background: linear-gradient(135deg, var(--slate-800), var(--slate-900));
}

.search-page-hero {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
}

.page-eyebrow {
  padding: 7px 14px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.18);
}

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

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.7;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.category-card > a {
  display: grid;
  gap: 13px;
  min-height: 246px;
  padding: 26px;
}

.category-card-mark {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), #fb923c);
  font-weight: 900;
}

.category-card h2 {
  margin: 0;
  color: var(--slate-900);
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.65;
}

.category-card-action {
  color: var(--amber-dark);
  font-weight: 900;
}

.category-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 26px 24px;
}

.category-card-links a {
  max-width: 100%;
  overflow: hidden;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--slate-600);
  background: var(--slate-100);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--soft-shadow);
}

.filter-bar input {
  flex: 1 1 260px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
}

.filter-bar select {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 999px;
}

.filter-link {
  min-height: 46px;
  color: var(--amber-dark);
  background: #fff7ed;
}

.empty-state {
  display: none;
  margin: 34px 0 0;
  padding: 28px;
  border-radius: var(--radius);
  color: var(--slate-600);
  background: #ffffff;
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

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

.ranking-row a {
  display: grid;
  grid-template-columns: 52px 110px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.ranking-index {
  width: 38px;
  height: 38px;
}

.ranking-row img {
  width: 110px;
  height: 70px;
  border-radius: 12px;
}

.ranking-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ranking-main strong {
  color: var(--slate-900);
}

.ranking-main small,
.ranking-main em {
  overflow: hidden;
  color: var(--slate-600);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-score {
  color: var(--amber-dark);
  font-size: 22px;
  font-weight: 900;
}

.search-page-form {
  align-items: stretch;
  max-width: 760px;
  margin: 0 auto 26px;
}

.search-page-form input {
  min-width: 0;
  flex: 1;
  padding: 0 20px;
  border-radius: 18px;
  font-size: 16px;
}

.search-page-form button {
  min-width: 110px;
  padding: 0 24px;
  border-radius: 18px;
}

.search-summary {
  margin-bottom: 24px;
  color: var(--slate-600);
  text-align: center;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: #ffffff;
  background: var(--slate-900);
}

.detail-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.28));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 66px;
}

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

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

.tag-pill {
  padding: 7px 14px;
  margin-bottom: 16px;
}

.detail-hero h1 {
  max-width: 880px;
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.7;
}

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

.detail-meta span {
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 46px 0 68px;
}

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

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.64));
  cursor: pointer;
}

.player-cover span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.35);
  font-size: 30px;
}

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

.player-message {
  position: absolute;
  left: 50%;
  bottom: 20px;
  display: none;
  padding: 9px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.76);
  transform: translateX(-50%);
}

.player-message.show {
  display: block;
}

.detail-panel,
.info-card,
.poster-card {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
}

.detail-panel {
  padding: 28px;
}

.detail-panel h2,
.info-card h2 {
  margin: 0 0 16px;
  color: var(--slate-900);
  font-size: 24px;
}

.detail-panel p {
  margin: 0 0 18px;
  color: var(--slate-700);
  line-height: 1.9;
}

.genre-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-tags span,
.tag-cloud a {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-size: 14px;
}

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

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 22px;
}

.poster-card {
  overflow: hidden;
  padding: 14px;
}

.poster-card img {
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  margin-bottom: 14px;
}

.info-card {
  padding: 24px;
}

.info-card dl {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px 14px;
  margin: 0 0 20px;
}

.info-card dt {
  color: var(--slate-500);
}

.info-card dd {
  margin: 0;
  color: var(--slate-800);
  font-weight: 650;
}

.site-footer {
  margin-top: 24px;
  color: var(--slate-300);
  background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
}

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

.footer-brand p {
  max-width: 560px;
  color: var(--slate-300);
  line-height: 1.75;
}

.site-footer .site-logo-text {
  color: #ffffff;
}

.footer-column h2 {
  margin: 0 0 15px;
  color: #ffffff;
  font-size: 16px;
}

.footer-column ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--slate-300);
  text-align: center;
}

@media (max-width: 1024px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

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

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

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

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

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

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

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

@media (max-width: 760px) {
  .container,
  .header-inner,
  .mobile-nav,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    height: 72vh;
    min-height: 560px;
  }

  .hero-content {
    padding-bottom: 138px;
  }

  .hero-arrow {
    top: auto;
    bottom: 86px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .hero-prev {
    left: 14px;
  }

  .hero-next {
    right: 14px;
  }

  .hero-dots {
    bottom: 94px;
  }

  .hero-channels {
    bottom: 20px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .ranking-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .horizontal-poster {
    width: 122px;
    flex-basis: 122px;
  }

  .ranking-row a {
    grid-template-columns: 40px 86px 1fr;
  }

  .ranking-row img {
    width: 86px;
    height: 58px;
  }

  .ranking-score {
    display: none;
  }

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

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

@media (max-width: 520px) {
  .site-logo-text {
    font-size: 18px;
  }

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

  .hero h1,
  .detail-hero h1 {
    letter-spacing: -0.03em;
  }

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

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

  .search-page-form {
    flex-direction: column;
  }

  .search-page-form input,
  .search-page-form button {
    min-height: 50px;
  }
}
