* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #ffffff;
  background: #020617;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 10%, rgba(8, 145, 178, 0.28), transparent 32rem),
    radial-gradient(circle at 85% 18%, rgba(236, 72, 153, 0.18), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(22, 78, 99, 0.96), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 12px 28px rgba(6, 182, 212, 0.24);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.brand-text strong,
.footer-brand {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 4px;
  color: #67e8f9;
  font-size: 0.74rem;
}

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

.nav-link,
.mobile-nav-link {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #67e8f9;
}

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

.header-search input,
.mobile-search input,
.large-search input,
.filter-row input,
.filter-row select {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
  width: 210px;
  border-radius: 12px;
  padding: 11px 14px;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: #22d3ee;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.large-search button,
.primary-button,
.ghost-button,
.section-more,
.rank-action,
.side-card a {
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button,
.large-search button,
.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.22);
}

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

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.primary-button:hover,
.rank-action:hover,
.side-card a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(6, 182, 212, 0.28);
}

.menu-button {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

.mobile-nav {
  display: none;
  padding: 0 16px 18px;
}

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

.mobile-nav-link {
  display: block;
  padding: 11px 0;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

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

.mobile-search button {
  padding: 0 14px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.08), transparent 48%);
}

.hero-track {
  position: relative;
  min-height: 680px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 120px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 32px -40px 42px;
  z-index: -1;
  border-radius: 34px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.7) 52%, rgba(2, 6, 23, 0.18) 100%),
    var(--hero-image) center / cover;
  filter: saturate(1.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.44);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 76% 28%, rgba(6, 182, 212, 0.2), transparent 28rem);
}

.hero-content {
  max-width: 680px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #67e8f9;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
  margin: 14px 0 16px;
  color: #ffffff;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-content .hero-movie-title {
  margin-top: 0;
  color: #67e8f9;
  font-size: clamp(1.7rem, 3.4vw, 3.1rem);
  line-height: 1.1;
}

.hero-content p,
.page-hero p {
  max-width: 720px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 1.08rem;
  line-height: 1.82;
}

.hero-tags,
.detail-meta,
.rank-meta,
.movie-card-meta,
.movie-card-tags,
.detail-tags,
.page-hero-links,
.hero-category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.movie-card-meta b,
.movie-card-tags span,
.detail-tags span,
.page-hero-links a,
.hero-category-links a,
.rank-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(103, 232, 249, 0.18);
}

.hero-tags span,
.detail-meta span,
.page-hero-links a,
.hero-category-links a {
  padding: 8px 13px;
  font-weight: 750;
}

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

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

.ghost-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ghost-button:hover {
  color: #67e8f9;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  transform: perspective(1000px) rotateY(-6deg) rotateX(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 2rem;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #22d3ee;
}

.hero-category-links {
  position: absolute;
  left: 50%;
  bottom: 98px;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
}

.hero-category-links a:hover,
.page-hero-links a:hover {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.28);
}

.feature-strip,
.content-section,
.page-shell {
  padding: 58px 0;
}

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

.feature-tile,
.category-card,
.detail-panel,
.player-panel,
.side-card,
.filter-panel,
.rank-tabs,
.search-results-section {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(30, 41, 59, 0.58);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.feature-tile {
  display: flex;
  flex-direction: column;
  min-height: 172px;
  padding: 28px;
  border-radius: 24px;
}

.feature-tile span {
  color: #94a3b8;
  font-weight: 750;
}

.feature-tile strong {
  margin-top: 14px;
  font-size: 1.45rem;
}

.feature-tile em {
  margin-top: 8px;
  color: #cbd5e1;
  font-style: normal;
}

.feature-tile.cyan {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(30, 41, 59, 0.62));
}

.feature-tile.orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(30, 41, 59, 0.62));
}

.feature-tile.pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(30, 41, 59, 0.62));
}

.feature-tile:hover {
  transform: translateY(-4px);
}

.content-section.highlighted {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.48));
}

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

.section-head h2 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.section-more {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.18);
}

.section-more:hover {
  color: #ffffff;
  background: rgba(6, 182, 212, 0.24);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: 20px;
  color: #ffffff;
  background: rgba(30, 41, 59, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(34, 211, 238, 0.26);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.movie-card-compact .movie-poster {
  aspect-ratio: 4 / 3;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72));
}

.movie-year,
.play-chip {
  position: absolute;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(8px);
}

.movie-year {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  font-size: 0.78rem;
  font-weight: 750;
}

.play-chip {
  left: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #67e8f9;
}

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

.movie-card-body strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.8em;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong {
  color: #22d3ee;
}

.movie-card-body em {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.15em;
  margin-top: 10px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-meta {
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.movie-card-meta b,
.movie-card-tags span,
.rank-meta span {
  padding: 5px 9px;
  font-size: 0.75rem;
}

.movie-card-meta i {
  color: #64748b;
  font-style: normal;
  font-size: 0.8rem;
}

.movie-card-tags {
  margin-top: 10px;
}

.movie-card-tags span {
  color: #cbd5e1;
  background: rgba(100, 116, 139, 0.18);
  border-color: rgba(148, 163, 184, 0.14);
}

.page-shell {
  min-height: 72vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 58px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(15, 23, 42, 0.72)),
    radial-gradient(circle at 85% 20%, rgba(236, 72, 153, 0.2), transparent 22rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero.slim h1 {
  margin: 10px 0 14px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.04;
}

.page-hero-links {
  margin-top: 24px;
}

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

.category-card {
  overflow: hidden;
  border-radius: 24px;
}

.category-card-main {
  display: block;
  padding: 26px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(15, 23, 42, 0.1));
}

.category-card-main span {
  color: #67e8f9;
  font-weight: 850;
}

.category-card-main h2 {
  margin: 10px 0 10px;
  font-size: 1.5rem;
}

.category-card-main p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.72;
}

.category-card-links {
  display: grid;
  gap: 10px;
  padding: 18px 22px 24px;
}

.category-card-links a {
  color: #94a3b8;
  font-size: 0.92rem;
}

.category-card-links a:hover {
  color: #67e8f9;
}

.filter-panel,
.rank-tabs,
.search-results-section {
  margin-top: 34px;
  border-radius: 28px;
  padding: 24px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  margin-bottom: 24px;
}

.filter-row label {
  display: grid;
  gap: 8px;
}

.filter-row span {
  color: #cbd5e1;
  font-weight: 750;
}

.filter-row input,
.filter-row select {
  width: 100%;
  border-radius: 14px;
  padding: 13px 14px;
}

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

.category-grid .movie-card.is-hidden {
  display: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #94a3b8;
  font-size: 0.94rem;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.breadcrumb em {
  color: #e2e8f0;
  font-style: normal;
}

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

.player-panel,
.detail-panel,
.side-card {
  border-radius: 24px;
}

.player-panel {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.18);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover {
  position: absolute;
  inset: 0;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.52) saturate(1.08);
}

.player-play {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 2rem;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  box-shadow: 0 18px 48px rgba(6, 182, 212, 0.3);
}

.detail-header {
  padding: 28px 0 8px;
}

.detail-header h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.detail-one-line {
  margin: 20px 0 0;
  color: #67e8f9;
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-panel {
  margin-top: 22px;
  padding: 26px;
}

.detail-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

.detail-panel p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.86;
}

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

.detail-tags span {
  padding: 8px 12px;
  color: #e2e8f0;
  background: rgba(100, 116, 139, 0.18);
}

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

.info-cell {
  padding: 15px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.54);
}

.info-cell span {
  display: block;
  color: #94a3b8;
  font-size: 0.84rem;
}

.info-cell strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
}

.detail-side {
  position: sticky;
  top: 96px;
  height: max-content;
}

.side-card {
  padding: 18px;
}

.side-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.side-card h2 {
  margin-top: 16px;
}

.side-card p {
  color: #94a3b8;
  line-height: 1.7;
}

.side-card a,
.rank-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.related-section {
  padding-bottom: 0;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.tab-buttons button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 18px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
}

.tab-buttons button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border-color: transparent;
}

.rank-list {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list.is-active {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 58px 116px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.56);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: rgba(6, 182, 212, 0.2);
}

.rank-poster {
  overflow: hidden;
  border-radius: 14px;
}

.rank-poster img {
  width: 116px;
  height: 74px;
  object-fit: cover;
}

.rank-title {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 820;
}

.rank-title:hover {
  color: #67e8f9;
}

.rank-body p {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 10px;
  color: #94a3b8;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.large-search {
  display: flex;
  gap: 12px;
  max-width: 760px;
  margin-top: 26px;
}

.large-search input {
  min-width: 0;
  flex: 1;
  border-radius: 16px;
  padding: 16px 18px;
}

.large-search button {
  padding: 0 24px;
}

.site-footer {
  margin-top: 70px;
  padding: 52px 0 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), #020617);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
}

.footer-grid p {
  max-width: 460px;
  color: #94a3b8;
  line-height: 1.72;
}

.footer-grid h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

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

.footer-links a {
  color: #94a3b8;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 36px;
  padding-top: 24px;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #0891b2;
}

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

  .menu-button {
    display: block;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 58px;
  }

  .hero-poster {
    max-width: 560px;
    transform: none;
  }

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

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

  .detail-side {
    position: static;
  }
}

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

  .hero-carousel,
  .hero-track {
    min-height: 780px;
  }

  .hero-slide {
    padding-bottom: 150px;
  }

  .hero-backdrop {
    inset: 20px -16px 38px;
    border-radius: 24px;
  }

  .hero-category-links {
    display: none;
  }

  .feature-grid,
  .footer-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .rank-item {
    grid-template-columns: 44px 86px minmax(0, 1fr);
  }

  .rank-action {
    grid-column: 3;
    width: max-content;
  }

  .rank-poster img {
    width: 86px;
    height: 64px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .header-inner {
    height: 66px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 1rem;
  }

  .hero-carousel,
  .hero-track {
    min-height: 740px;
  }

  .hero-content h1,
  .hero-content h2 {
    letter-spacing: -0.04em;
  }

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

  .primary-button,
  .ghost-button,
  .large-search button {
    width: 100%;
  }

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

  .detail-panel,
  .filter-panel,
  .rank-tabs,
  .search-results-section {
    padding: 18px;
    border-radius: 22px;
  }

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

  .player-play {
    width: 66px;
    height: 66px;
  }
}
