:root {
  color-scheme: dark;
  --bg-0: #020617;
  --bg-1: #0f172a;
  --bg-2: #111827;
  --card: rgba(15, 23, 42, 0.84);
  --card-strong: rgba(30, 41, 59, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(56, 189, 248, 0.35);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --dim: #64748b;
  --sky: #38bdf8;
  --sky-strong: #0ea5e9;
  --blue: #2563eb;
  --violet: #6366f1;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.52);
  --shadow-soft: 0 18px 40px rgba(2, 6, 23, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.24), transparent 32rem),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #7dd3fc, #2563eb 56%, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky), var(--blue));
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.35);
}

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

.nav-link,
.mobile-nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.12);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background: #020617;
}

.hero-slides {
  position: relative;
  min-height: 70vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.75s ease, transform 1.1s ease;
  transform: scale(1.025);
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 36%, rgba(2, 6, 23, 0.46) 100%),
    radial-gradient(circle at 24% 34%, rgba(14, 165, 233, 0.18), transparent 28rem);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 118px 0 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sky);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: -0.075em;
  text-shadow: 0 20px 80px rgba(2, 6, 23, 0.75);
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
}

.hero-tags,
.tag-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-list span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 800;
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.primary-button,
.ghost-button,
.section-more,
.search-box-large button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button,
.search-box-large button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-strong), var(--blue));
  box-shadow: 0 18px 40px rgba(14, 165, 233, 0.32);
}

.ghost-button,
.section-more {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.search-box-large button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(14, 165, 233, 0.24);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.hero-arrow:hover {
  transform: translateY(-2px) scale(1.04);
  background: rgba(14, 165, 233, 0.28);
}

.hero-prev {
  left: max(16px, calc((100vw - 1240px) / 2 - 72px));
}

.hero-next {
  right: max(16px, calc((100vw - 1240px) / 2 - 72px));
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(90deg, var(--sky), var(--blue));
}

.hero-bottom-bar {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 28px;
  width: min(1240px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 18px;
  transform: translateX(-50%);
}

.hero-channel-links,
.hero-thumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-channel-links {
  flex-wrap: wrap;
  padding: 16px;
}

.hero-channel-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.hero-thumbs {
  padding: 10px;
}

.hero-thumb {
  min-width: 140px;
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  transition: background 0.22s ease, transform 0.22s ease;
}

.hero-thumb:hover {
  background: rgba(56, 189, 248, 0.14);
  transform: translateY(-2px);
}

.hero-thumb img {
  width: 46px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
}

.section {
  padding: 62px 0;
}

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

.section-title-row h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.045em;
}

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

.filter-panel {
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow-soft);
}

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

.filter-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

.filter-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.filter-controls,
.search-box-large {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 160px;
  gap: 12px;
}

.filter-input,
.filter-year,
.filter-type,
.search-box-large input,
.search-box-large select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  outline: none;
  padding: 0 16px;
}

.filter-input:focus,
.filter-year:focus,
.filter-type:focus,
.search-box-large input:focus,
.search-box-large select:focus {
  border-color: rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

.filter-empty,
.search-notice {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.44);
}

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

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

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

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

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

.movie-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow-soft);
  transform: translateZ(0);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 24px 68px rgba(14, 165, 233, 0.17);
}

.movie-poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, #0f172a, #111827);
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease, filter 0.38s ease;
}

.movie-card-link:hover .movie-poster {
  transform: scale(1.06);
  filter: saturate(1.06) brightness(1.08);
}

.movie-type-badge,
.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(14, 165, 233, 0.84);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.rank-badge {
  left: auto;
  right: 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.movie-play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card-link:hover .movie-play-dot {
  opacity: 1;
  transform: translateY(0);
}

.movie-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

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

.movie-meta-line,
.movie-one-line {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-one-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-card-body .tag-list {
  margin-top: auto;
}

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

.panel-large,
.rank-panel,
.content-panel,
.content-side,
.player-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-soft);
}

.panel-large {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.rank-panel {
  padding: 22px;
}

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

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 32px 54px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.38);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(14, 165, 233, 0.08);
}

.rank-number {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-strong), var(--blue));
  font-size: 12px;
  font-weight: 900;
}

.rank-row img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-row-content {
  min-width: 0;
}

.rank-row-content strong,
.rank-row-content em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row-content strong {
  color: #ffffff;
  font-size: 14px;
  font-style: normal;
}

.rank-row-content em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.channel-card,
.category-overview-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-xl);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.channel-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.36);
}

.channel-card img,
.category-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  opacity: 0.62;
}

.channel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.88));
}

.channel-card strong,
.channel-card em,
.category-overview-content {
  position: relative;
  z-index: 2;
}

.channel-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 20px;
}

.channel-card strong {
  color: #ffffff;
  font-size: 22px;
  font-weight: 950;
}

.channel-card em {
  max-width: 28em;
  color: #cbd5e1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.7;
}

.page-hero,
.detail-hero {
  padding: 82px 0 26px;
}

.page-hero {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
}

.category-overview-card {
  min-height: 320px;
}

.category-overview-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
}

.category-overview-content h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 950;
}

.category-overview-content p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.category-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-preview-list span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(2, 6, 23, 0.56);
  font-size: 12px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 34px;
  align-items: end;
}

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

.breadcrumb a:hover {
  color: var(--sky);
}

.detail-poster-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: var(--shadow);
}

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

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

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

.large-tags span {
  min-height: 34px;
  padding: 7px 13px;
}

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

.player-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sky-strong), var(--blue));
  box-shadow: 0 24px 66px rgba(14, 165, 233, 0.38);
  font-size: 32px;
  padding-left: 5px;
}

.play-cover span:last-child {
  font-size: 20px;
  font-weight: 950;
  text-shadow: 0 10px 30px #000000;
}

.player-caption {
  padding: 22px 24px 26px;
}

.player-caption h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 950;
}

.player-caption p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
}

.content-panel,
.content-side {
  padding: 28px;
}

.content-panel h2,
.content-side h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
}

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

.content-panel p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 2;
  white-space: pre-line;
}

.content-side dl {
  margin: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px 12px;
}

.content-side dt {
  color: var(--muted);
  font-weight: 800;
}

.content-side dd {
  margin: 0;
  color: #ffffff;
  line-height: 1.65;
}

.search-shell {
  min-height: 620px;
}

.search-box-large {
  grid-template-columns: minmax(220px, 1fr) 180px 120px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-soft);
}

.search-notice {
  margin-bottom: 24px;
}

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

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--sky);
}

.footer-inner p {
  margin: 0;
}

[hidden],
.movie-card.is-hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  .movie-grid,
  .featured-grid,
  .compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .sticky-panel {
    position: static;
  }

  .hero-bottom-bar {
    grid-template-columns: 1fr;
  }

  .hero-thumbs {
    display: none;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

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

  body.menu-open .mobile-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  body.menu-open .mobile-menu-button span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .mobile-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-content {
    padding: 96px 0 210px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    bottom: 154px;
  }

  .hero-bottom-bar {
    bottom: 18px;
  }

  .hero-channel-links {
    max-height: 120px;
    overflow: auto;
  }

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

  .filter-head,
  .section-title-row,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-controls,
  .search-box-large {
    grid-template-columns: 1fr;
  }

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

  .detail-poster-card {
    max-width: 260px;
  }
}

@media (max-width: 520px) {
  .shell,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1240px);
  }

  .header-inner {
    height: 64px;
  }

  .site-logo {
    font-size: 20px;
  }

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

  .hero-slider,
  .hero-slides,
  .hero-content {
    min-height: 76vh;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-info h1 {
    font-size: 40px;
    letter-spacing: -0.055em;
  }

  .hero-summary,
  .page-hero p,
  .detail-one-line {
    font-size: 15px;
    line-height: 1.75;
  }

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

  .movie-card-link {
    display: grid;
    grid-template-columns: 118px 1fr;
  }

  .movie-poster-wrap {
    aspect-ratio: 2 / 3;
  }

  .movie-card-body h3 {
    min-height: auto;
  }

  .section {
    padding: 42px 0;
  }

  .filter-panel,
  .rank-panel,
  .content-panel,
  .content-side {
    padding: 18px;
    border-radius: 20px;
  }

  .content-side dl {
    grid-template-columns: 1fr;
  }
}
