:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: #111827;
  --panel-soft: #1e293b;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --ocean: #0ea5e9;
  --ocean-dark: #0284c7;
  --ocean-soft: rgba(14, 165, 233, 0.18);
  --rose: #f43f5e;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
  --radius: 18px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 20%, rgba(244, 63, 94, 0.10), transparent 30rem),
    var(--bg);
  color: var(--text);
}

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

img,
video {
  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: 100;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 70px;
}

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

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ocean), #22d3ee);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.35);
}

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

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--muted-strong);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 12px;
  font-size: 14px;
}

.nav-link:hover,
.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(14, 165, 233, 0.16);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 280px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.46);
}

.header-search input {
  min-width: 0;
  width: 100%;
  padding: 8px 10px 8px 14px;
  border: 0;
  outline: none;
  color: #ffffff;
  background: transparent;
}

.header-search button,
.large-search button {
  border: 0;
  color: #ffffff;
  background: var(--ocean);
  border-radius: 999px;
  padding: 8px 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.large-search button:hover {
  background: var(--ocean-dark);
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 999px;
}

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

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

.mobile-nav-link {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.76);
}

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

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

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

.hero-bg,
.detail-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.20), transparent 50%),
    #020617;
}

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

.hero-bg img.image-error,
.detail-backdrop img.image-error {
  display: none;
}

.hero-overlay,
.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(2, 6, 23, 0.64) 48%, rgba(2, 6, 23, 0.10) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 720px;
  padding: 56px 0;
  animation: fadeIn 0.55s ease;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ocean-soft);
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1,
.detail-head h1 {
  margin: 18px 0 14px;
  max-width: 780px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.detail-head p {
  max-width: 690px;
  color: var(--muted-strong);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.hero-meta {
  margin: 18px 0 0;
}

.hero-meta span,
.meta-line span,
.meta-line a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
}

.hero-meta span:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  margin-left: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.hero-tags,
.tag-row,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.52);
  color: #bae6fd;
  font-size: 12px;
}

.hero-tags span,
.detail-tags a {
  padding: 7px 12px;
}

.tag-row span {
  padding: 5px 9px;
}

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

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

.primary-button {
  background: linear-gradient(135deg, var(--ocean), #22d3ee);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
}

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

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

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

.ghost-button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  font-size: 36px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.20);
}

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

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

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

.search-hero {
  padding: 28px 0 0;
}

.search-panel,
.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 26px;
}

.search-panel h2,
.filter-panel h2,
.section-heading h2,
.rank-panel h2,
.player-card h2,
.text-card h2,
.info-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.search-panel p,
.filter-panel p,
.section-heading p,
.text-card p,
.info-card li,
.empty-state {
  color: var(--muted);
  line-height: 1.8;
}

.large-search {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.52);
}

.large-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: #ffffff;
  background: transparent;
}

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

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

.section-heading p {
  margin: 8px 0 0;
}

.section-link {
  color: #7dd3fc;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.panel-section {
  padding: 30px;
  margin-top: 54px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
}

.scroll-row {
  display: grid;
  grid-auto-columns: minmax(230px, 280px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.86);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: var(--shadow);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.30), rgba(30, 41, 59, 0.8)),
    #0f172a;
}

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

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

.poster-wrap img.image-error {
  display: none;
}

.poster-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: #dbeafe;
  font-weight: 800;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.25), transparent 45%),
    linear-gradient(135deg, #0f172a, #020617);
}

.poster-wrap::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 60%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), transparent);
  pointer-events: none;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.88);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.84);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.type-badge,
.card-rank {
  position: absolute;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(6px);
}

.type-badge {
  top: 10px;
  right: 10px;
}

.card-rank {
  top: 10px;
  left: 10px;
  background: rgba(244, 63, 94, 0.86);
}

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

.movie-card-body h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body h3 a:hover {
  color: #7dd3fc;
}

.movie-card-body p {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meta-line {
  justify-content: space-between;
  color: #64748b;
  font-size: 12px;
}

.tag-row {
  margin-top: 12px;
}

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

.category-tile {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
}

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

.category-cover img {
  object-fit: cover;
  opacity: 0.36;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

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

.category-info {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-info strong {
  font-size: 20px;
}

.category-info em {
  color: var(--muted-strong);
  font-style: normal;
}

.split-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.rank-panel,
.info-card,
.text-card,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.20);
}

.rank-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.rank-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--ocean-soft);
  color: #7dd3fc;
  font-weight: 800;
}

.rank-list strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

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

.movie-card-horizontal .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-poster {
  height: 100%;
  min-height: 132px;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.compact-hero {
  padding: 72px 0 44px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.20), transparent 36rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #7dd3fc;
}

.filter-panel {
  padding: 24px;
}

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

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

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  padding: 0 14px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.56);
}

.result-count {
  margin: 20px 0;
  color: #7dd3fc;
  font-weight: 700;
}

.empty-state {
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
}

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

.category-overview-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 165, 233, 0.34);
}

.category-overview-link {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 210px;
}

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

.mini-cover {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-cover img.image-error {
  display: none;
}

.category-overview-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-overview-body p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.8;
}

.category-overview-body span {
  color: #7dd3fc;
  font-weight: 800;
}

.detail-hero {
  min-height: 420px;
}

.detail-head {
  position: relative;
  z-index: 2;
  padding: 70px 0 80px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 18px;
}

.player-card,
.text-card,
.info-card {
  padding: 22px;
}

.player-title-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.player-title-row p {
  margin: 8px 0 0;
  color: var(--muted);
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.player-overlay span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.94);
  box-shadow: 0 14px 38px rgba(14, 165, 233, 0.35);
  font-size: 30px;
}

.movie-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  margin: 0;
  color: #ffffff;
  text-align: center;
  text-shadow: 0 2px 8px #000000;
}

.text-card p {
  margin: 12px 0 0;
  color: var(--muted-strong);
  white-space: pre-line;
}

.detail-tags a:hover {
  border-color: rgba(14, 165, 233, 0.55);
  background: rgba(14, 165, 233, 0.18);
}

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

.info-card li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-card li span {
  color: #64748b;
}

.info-card li strong {
  color: #ffffff;
  font-weight: 700;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-about p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.site-footer a {
  color: var(--muted-strong);
}

.site-footer a:hover {
  color: #7dd3fc;
}

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 14px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .header-search {
    margin-left: auto;
  }

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

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

  .rank-panel {
    position: static;
  }

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

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

  .header-inner {
    min-height: 64px;
  }

  .header-search {
    display: none;
  }

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

  .hero-carousel {
    height: auto;
    min-height: 580px;
  }

  .hero-content {
    padding: 86px 0 78px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .filter-panel,
  .category-overview-link,
  .footer-grid,
  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }

  .filter-controls,
  .global-filter .filter-controls {
    grid-template-columns: 1fr;
  }

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

  .panel-section {
    padding: 20px;
  }

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

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

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-head h1 {
    font-size: 34px;
  }

  .hero-content p,
  .page-hero p,
  .detail-head p {
    font-size: 15px;
  }

  .cards-large,
  .cards-standard,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .large-search {
    border-radius: 18px;
    flex-direction: column;
  }

  .large-search input {
    min-height: 44px;
  }

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