
:root {
  color-scheme: dark;
  --page-bg: #020617;
  --panel-bg: rgba(15, 23, 42, 0.74);
  --panel-bg-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --primary: #0ea5e9;
  --primary-strong: #0284c7;
  --accent: #38bdf8;
  --warning: #f59e0b;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.46);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.16), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(2, 6, 23, 0.34);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark,
.footer-logo span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #fff;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.32);
}

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

.brand-text strong {
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #e0f2fe, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
}

.nav-link {
  color: #dbeafe;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 27px 0 23px;
  border-bottom: 2px solid transparent;
  transition: color 0.24s ease, border-color 0.24s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: #7dd3fc;
  border-color: #38bdf8;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.34);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.big-search input,
.local-filter {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.header-search input {
  width: 220px;
  padding: 11px 14px 11px 18px;
}

.header-search button,
.mobile-search button,
.big-search button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  padding: 11px 18px;
  cursor: pointer;
  transition: filter 0.24s ease, transform 0.24s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
  filter: brightness(1.08);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.8);
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  border-radius: 99px;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  border-top: 1px solid var(--line);
}

.mobile-panel.open {
  display: grid;
  gap: 10px;
}

.mobile-search {
  margin: 14px 0 4px;
}

.mobile-search input {
  flex: 1;
  padding: 12px 14px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.4);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
}

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

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

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-overlay,
.detail-hero-overlay,
.sub-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.82)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 52%, rgba(2, 6, 23, 0.38) 100%);
}

.hero-content {
  position: absolute;
  left: max(32px, calc((100vw - 1240px) / 2 + 16px));
  bottom: 96px;
  width: min(720px, calc(100% - 64px));
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.hero-content h1,
.detail-hero-content h1,
.sub-hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero-content p,
.detail-hero-content p,
.sub-hero-content p {
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: 1.12rem;
  line-height: 1.8;
  max-width: 720px;
}

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

.hero-tags span,
.tag-line span,
.detail-tags a {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
}

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

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

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  box-shadow: 0 18px 42px rgba(14, 165, 233, 0.32);
}

.secondary-button,
.panel-link {
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.48);
  backdrop-filter: blur(14px);
  z-index: 5;
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

.hero-dots button.active {
  width: 34px;
  background: #fff;
}

.search-panel,
.content-section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 28px;
  align-items: center;
  margin-top: -42px;
  position: relative;
  z-index: 7;
  padding: 26px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel h2,
.search-panel p {
  margin: 0;
}

.search-panel h2 {
  font-size: 1.55rem;
}

.search-panel p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.search-panel form,
.big-search {
  display: flex;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(2, 6, 23, 0.42);
  border-radius: 16px;
  overflow: hidden;
}

.search-panel input,
.big-search input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-panel button,
.big-search button {
  border-radius: 0;
  min-width: 108px;
}

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

.section-heading,
.section-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.section-toolbar h2,
.rank-panel h2,
.footer-inner h2,
.detail-main h2,
.detail-side h2 {
  margin: 0;
  color: #fff;
}

.section-heading h2,
.section-toolbar h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.section-heading p,
.section-toolbar p {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-more {
  color: #38bdf8;
  font-weight: 700;
  white-space: nowrap;
}

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

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

.movie-card {
  background: rgba(30, 41, 59, 0.54);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-5px) scale(1.012);
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.4);
}

.card-poster,
.wide-poster,
.rank-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.card-poster {
  aspect-ratio: 16 / 9;
}

.card-poster img,
.wide-poster img,
.rank-poster img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .card-poster img,
.movie-card:hover .wide-poster img,
.rank-card:hover img,
.category-tile:hover img {
  transform: scale(1.06);
}

.duration {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  background: rgba(2, 6, 23, 0.78);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
}

.card-play,
.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.1rem;
  background: rgba(2, 6, 23, 0.24);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.movie-card:hover .card-play,
.movie-card:hover .play-badge {
  opacity: 1;
}

.card-body,
.wide-content,
.rank-content {
  padding: 18px;
}

.card-body h3,
.wide-content h3,
.rank-content h3 {
  margin: 0 0 10px;
  color: #fff;
  line-height: 1.35;
  transition: color 0.24s ease;
}

.card-body h3 {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.02rem;
}

.movie-card:hover h3,
.rank-card:hover h3,
.wide-content a:hover h3 {
  color: #7dd3fc;
}

.card-body p,
.wide-content p,
.rank-content p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-line {
  min-height: 28px;
  margin-bottom: 14px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-row span:first-child {
  color: #facc15;
  font-weight: 800;
}

.meta-row a {
  color: #7dd3fc;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 22px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

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

.category-tile span,
.category-tile small {
  position: absolute;
  left: 22px;
  right: 22px;
  z-index: 1;
}

.category-tile span {
  bottom: 74px;
  font-size: 1.5rem;
  font-weight: 900;
}

.category-tile small {
  bottom: 24px;
  color: var(--soft);
  line-height: 1.55;
}

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

.wide-list,
.rank-list {
  display: grid;
  gap: 16px;
}

.movie-card-wide,
.rank-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 150px;
}

.movie-card-wide .wide-poster {
  aspect-ratio: auto;
}

.rank-panel,
.detail-side,
.detail-main,
.player-section,
.search-page-section,
.highlight-section {
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 24px;
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

.rank-panel h2 {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.rank-panel ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.rank-panel li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-panel li a {
  color: #f8fafc;
  font-weight: 700;
}

.rank-number {
  color: #38bdf8;
  font-weight: 900;
}

.rank-number.large {
  width: 48px;
  font-size: 1.35rem;
}

.panel-link {
  margin-top: 20px;
  width: 100%;
}

.highlight-section {
  padding: 36px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(12, 74, 110, 0.28));
}

.sub-hero,
.detail-hero {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #082f49);
}

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

.sub-hero-content,
.detail-hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.sub-hero-content.no-image {
  padding: 86px 0;
}

.archive-hero,
.rank-hero,
.search-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.2), transparent 22rem),
    linear-gradient(135deg, #020617, #0f172a 55%, #0c4a6e);
}

.section-toolbar {
  align-items: center;
}

.local-filter {
  width: min(320px, 100%);
  padding: 13px 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.36);
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0 14px;
}

.pagination a.active,
.pagination a:hover {
  color: #fff;
  background: var(--primary);
}

.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: rgba(15, 23, 42, 0.58);
}

.archive-table th,
.archive-table td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.archive-table th {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.12);
}

.archive-table td {
  color: #cbd5e1;
}

.archive-table a {
  color: #f8fafc;
  font-weight: 800;
}

.rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

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

.detail-hero-content {
  padding-top: 118px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #bfdbfe;
  margin-bottom: 28px;
}

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

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

.detail-meta span {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 13px;
}

.player-section {
  width: min(1240px, calc(100% - 32px));
  margin: -92px auto 0;
  padding: 22px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  background: rgba(15, 23, 42, 0.9);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.movie-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.player-cover-button {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(2, 6, 23, 0.25);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.player-cover-button.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-cover-button span {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  box-shadow: 0 18px 48px rgba(14, 165, 233, 0.38);
  font-size: 2rem;
}

.player-message {
  position: absolute;
  left: 16px;
  bottom: 16px;
  color: #dbeafe;
  background: rgba(2, 6, 23, 0.72);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.player-copy {
  padding: 8px 10px;
}

.player-copy h2 {
  margin: 0 0 14px;
  font-size: 1.7rem;
}

.player-copy p {
  color: var(--soft);
  line-height: 1.8;
  margin-bottom: 22px;
}

.detail-layout {
  width: min(1240px, calc(100% - 32px));
  margin: 72px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}

.detail-main,
.detail-side {
  padding: 30px;
}

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

.detail-main p {
  color: #dbeafe;
  line-height: 2;
  font-size: 1.04rem;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px 16px;
  color: var(--soft);
}

.detail-side dt {
  color: var(--muted);
}

.related-section {
  padding-bottom: 72px;
}

.big-search {
  margin-bottom: 20px;
}

.search-summary {
  color: var(--muted);
  margin: 0 0 26px;
}

.site-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), #020617);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo strong {
  font-size: 1.25rem;
}

.footer-inner h2 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-inner p,
.footer-inner a {
  color: var(--muted);
  line-height: 1.75;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  text-align: center;
  color: #64748b;
  padding: 18px 16px 24px;
}

.hidden-by-filter {
  display: none !important;
}

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

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

  .header-search {
    display: none;
  }

  .header-inner {
    justify-content: space-between;
  }

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

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

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero-carousel {
    min-height: 560px;
    height: 78vh;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    width: auto;
    bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

  .search-panel,
  .section-heading,
  .section-toolbar {
    grid-template-columns: 1fr;
    display: grid;
    align-items: stretch;
  }

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

  .movie-card-wide,
  .rank-card {
    grid-template-columns: 150px minmax(0, 1fr);
  }

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

  .player-section {
    margin-top: -56px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .mobile-panel,
  .search-panel,
  .content-section,
  .sub-hero-content,
  .detail-hero-content,
  .player-section,
  .detail-layout,
  .footer-inner {
    width: min(100% - 24px, 1240px);
  }

  .brand-text small {
    display: none;
  }

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

  .hero-content h1,
  .detail-hero-content h1,
  .sub-hero-content h1 {
    font-size: 2.15rem;
  }

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

  .movie-card-wide,
  .rank-card,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-number.large {
    width: auto;
  }

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

  .hero-tags,
  .tag-line {
    display: none;
  }
}
