:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c31;
  --line: rgba(56, 189, 248, 0.18);
  --line-strong: rgba(56, 189, 248, 0.34);
  --text: #e5edf7;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --amber: #f59e0b;
  --rose: #fb7185;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 8, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.28), transparent 35%),
    radial-gradient(circle at 80% 8%, rgba(34, 211, 238, 0.16), transparent 32%),
    linear-gradient(180deg, #020617 0%, #07111f 46%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 35px rgba(2, 8, 23, 0.35);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #2563eb 58%, #22d3ee);
  color: white;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, #60a5fa, #67e8f9, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links > a,
.nav-group > a {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease;
}

.nav-links > a:hover,
.nav-group:hover > a {
  color: var(--cyan);
}

.nav-group {
  position: relative;
  padding: 22px 0;
}

.nav-panel {
  position: absolute;
  top: 62px;
  left: 50%;
  min-width: 178px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-group:hover .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-panel a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  color: #cbd5e1;
}

.nav-panel a:hover {
  color: #67e8f9;
  background: rgba(37, 99, 235, 0.2);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.nav-search input,
.big-search input,
.filter-field input,
.filter-field select {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input {
  width: 220px;
  padding: 10px 12px;
}

.nav-search input:focus,
.big-search input:focus,
.filter-field input:focus,
.filter-field select:focus {
  border-color: rgba(34, 211, 238, 0.75);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.94);
}

.nav-search button,
.big-search button {
  border: 0;
  cursor: pointer;
  border-radius: 14px;
  padding: 10px 16px;
  color: white;
  font-weight: 750;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

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

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  border-radius: 2px;
  background: #cbd5e1;
}

.mobile-nav {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dbeafe;
}

.mobile-nav a:hover {
  background: rgba(37, 99, 235, 0.22);
}

.mobile-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 8px;
}

.hero-carousel {
  position: relative;
  min-height: 630px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.15) contrast(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(34, 211, 238, 0.24), transparent 26%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.68) 45%, rgba(2, 6, 23, 0.2)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.15) 45%, rgba(2, 6, 23, 0.55) 100%);
}

.hero-content {
  position: absolute;
  left: max(28px, calc((100vw - 1220px) / 2));
  bottom: 96px;
  width: min(720px, calc(100% - 56px));
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.55);
  color: #67e8f9;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  color: white;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-content h1,
.hero-content h2 {
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  text-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.hero-movie-name {
  display: block;
  margin-top: 14px;
  color: #bae6fd;
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 850;
}

.hero-content p {
  max-width: 660px;
  margin: 18px 0 0;
  color: #dbeafe;
  font-size: 18px;
}

.hero-tags,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-tags span,
.detail-meta span,
.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
}

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

.hero-actions.compact {
  margin-top: 22px;
}

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

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.74);
}

.btn.text {
  color: #67e8f9;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(2, 6, 23, 0.58);
  color: white;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
  background: rgba(37, 99, 235, 0.72);
  transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
  left: 24px;
}

.hero-control.next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.38);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.content-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(8, 47, 73, 0.68));
  box-shadow: var(--shadow);
}

.intro-band h2,
.section-title h2,
.site-footer h2,
.detail-text h2 {
  margin: 0;
  color: white;
  font-weight: 850;
  line-height: 1.15;
}

.intro-band h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.intro-band p,
.page-hero p,
.detail-one-line,
.site-footer p,
.detail-text p {
  color: var(--muted);
}

.big-search {
  display: flex;
  gap: 10px;
}

.big-search input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
}

.big-search button {
  padding: 14px 20px;
}

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

.section-title h2 {
  font-size: clamp(26px, 4vw, 34px);
}

.section-title.small h2 {
  font-size: 26px;
}

.section-title > a {
  color: #67e8f9;
  font-weight: 800;
}

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

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

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

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.26);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 70px rgba(37, 99, 235, 0.22);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 47, 73, 0.8));
}

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

.movie-card a:hover .poster-wrap img {
  transform: scale(1.07);
}

.quality-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.quality-badge {
  right: 12px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: white;
}

.rank-badge {
  left: 12px;
  color: #1f2937;
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0;
  color: white;
  font-size: 17px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body p {
  height: 48px;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--dim);
  font-size: 12px;
}

.card-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
}

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

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: 0 18px 44px rgba(2, 8, 23, 0.22);
}

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

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card span,
.category-card strong {
  position: relative;
  z-index: 1;
  display: block;
}

.category-card span {
  margin-top: 95px;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

.category-card strong {
  max-width: 280px;
  margin-top: 10px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 500;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 28px;
}

.ranking-panel,
.ranking-list.full {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.8));
  box-shadow: var(--shadow);
}

.ranking-panel {
  padding: 22px;
}

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

.ranking-list.full {
  padding: 18px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 38px 82px minmax(0, 1fr) 60px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  color: #dbeafe;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover {
  background: rgba(37, 99, 235, 0.18);
  transform: translateX(3px);
}

.ranking-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.92);
  color: #94a3b8;
  font-weight: 900;
}

.ranking-row:nth-child(1) .ranking-number {
  color: white;
  background: linear-gradient(135deg, #facc15, #f97316);
}

.ranking-row:nth-child(2) .ranking-number {
  color: #1e293b;
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
}

.ranking-row:nth-child(3) .ranking-number {
  color: white;
  background: linear-gradient(135deg, #d97706, #92400e);
}

.ranking-row img {
  width: 82px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.8);
}

.ranking-main {
  min-width: 0;
}

.ranking-main strong,
.ranking-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-main strong {
  color: white;
}

.ranking-main em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.ranking-score {
  color: #67e8f9;
  font-weight: 900;
  text-align: right;
}

.page-hero {
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 0;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.58));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(160px, 0.55fr));
  gap: 14px;
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

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

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

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 12px 14px;
}

.empty-state {
  margin-top: 24px;
  padding: 28px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 20px;
  color: #cbd5e1;
  text-align: center;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 72px 0;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.08);
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.3)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.14) 65%, rgba(2, 6, 23, 0.7));
}

.detail-wrap {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.86);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #93c5fd;
  font-size: 14px;
}

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

.detail-info h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.detail-one-line {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 19px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-tags a {
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.58);
  color: #bae6fd;
  font-size: 13px;
  font-weight: 750;
}

.player-section {
  padding-top: 26px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: #000;
  box-shadow: var(--shadow);
}

.stream-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.5));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, #06b6d4, #2563eb);
  box-shadow: 0 22px 55px rgba(37, 99, 235, 0.52);
  font-size: 34px;
  text-indent: 6px;
}

.player-shell.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-text article {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.detail-text h2 {
  margin-top: 0;
  font-size: 26px;
}

.detail-text h2:not(:first-child) {
  margin-top: 30px;
}

.detail-text p {
  font-size: 17px;
}

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

.info-table div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.35);
}

.info-table strong {
  color: #93c5fd;
}

.info-table span {
  color: #dbeafe;
}

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.88);
}

.footer-grid {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.65fr;
  gap: 32px;
}

.site-footer h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #cbd5e1;
}

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

.footer-bottom {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: #64748b;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

  .two-column {
    grid-template-columns: 1fr;
  }
}

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

  .nav-links {
    display: none;
  }

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

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

  .hero-carousel {
    min-height: 560px;
  }

  .hero-content {
    bottom: 78px;
  }

  .hero-control {
    display: none;
  }

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

  .big-search {
    display: grid;
  }

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

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

  .detail-wrap {
    gap: 24px;
  }

  .detail-poster {
    max-width: 280px;
  }

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 17px;
  }

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

  .hero-content h1,
  .hero-content h2,
  .detail-info h1 {
    font-size: 34px;
  }

  .hero-content p,
  .detail-one-line {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

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

  .section-title {
    align-items: start;
    flex-direction: column;
  }

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

  .ranking-score {
    display: none;
  }

  .ranking-row img {
    width: 68px;
    height: 48px;
  }

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