:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-cyan-600: #0891b2;
  --color-cyan-500: #06b6d4;
  --color-cyan-400: #22d3ee;
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.11);
  --shadow-card-hover: 0 22px 55px rgba(15, 23, 42, 0.18);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-slate-900);
  background: linear-gradient(135deg, var(--color-slate-50), var(--color-slate-100));
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-slate-900), var(--color-slate-800), var(--color-slate-900));
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.32);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-cyan-400), var(--color-blue-500));
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.13);
}

.logo-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--color-cyan-400), #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-cyan-400);
  transform: translateY(-1px);
}

.header-search {
  width: min(280px, 28vw);
}

.search-field {
  position: relative;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: none;
  color: #ffffff;
  border-radius: 999px;
  padding: 10px 44px 10px 16px;
  background: rgba(51, 65, 85, 0.92);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.search-field input::placeholder {
  color: rgba(203, 213, 225, 0.9);
}

.search-field button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  color: var(--color-slate-300);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-field button:hover {
  color: var(--color-cyan-400);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(51, 65, 85, 0.7);
  cursor: pointer;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-panel.open {
  display: block;
}

.mobile-panel-inner {
  display: grid;
  gap: 14px;
  padding: 16px 0 20px;
}

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

.mobile-links a {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(51, 65, 85, 0.85);
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: var(--color-slate-900);
}

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

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

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

.poster-shell {
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.4), transparent 32%),
    linear-gradient(135deg, #0f172a, #172554 45%, #111827);
}

.poster-shell.image-fallback::after {
  content: attr(data-fallback-title);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.02));
}

.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

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

.hero-kicker,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-kicker {
  margin-bottom: 14px;
  padding: 6px 12px;
  color: #ffffff;
  background: var(--color-cyan-500);
}

.hero-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 18px;
  color: rgba(226, 232, 240, 0.95);
  font-size: 17px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  color: rgba(226, 232, 240, 0.9);
  font-size: 14px;
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-cyan-500), var(--color-blue-500));
  box-shadow: 0 14px 26px rgba(8, 145, 178, 0.28);
}

.button-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(8, 145, 178, 0.36);
}

.button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

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

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

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
}

.hero-control:hover {
  background: rgba(8, 145, 178, 0.75);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.section {
  padding: 56px 0 0;
}

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

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

.section-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-slate-900);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 8px 0 0;
  color: var(--color-slate-600);
  line-height: 1.7;
}

.view-more {
  color: var(--color-cyan-600);
  font-weight: 800;
  white-space: nowrap;
}

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

.category-tile {
  position: relative;
  min-height: 145px;
  display: grid;
  align-content: end;
  overflow: hidden;
  border-radius: 18px;
  padding: 22px;
  color: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -12%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

.category-icon {
  position: relative;
  z-index: 1;
  font-size: 34px;
  margin-bottom: 8px;
}

.category-name {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

.category-desc {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.55;
}

.category-count {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(15, 23, 42, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.tone-cyan { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.tone-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
.tone-indigo { background: linear-gradient(135deg, #6366f1, #312e81); }
.tone-emerald { background: linear-gradient(135deg, #10b981, #047857); }
.tone-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.tone-fuchsia { background: linear-gradient(135deg, #d946ef, #a21caf); }
.tone-blue { background: linear-gradient(135deg, #3b82f6, #0891b2); }

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

.movie-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.movie-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.movie-card:hover .movie-cover img {
  transform: scale(1.08);
}

.movie-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .movie-cover::before {
  background: rgba(0, 0, 0, 0.32);
}

.play-float {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.duration-badge,
.rank-badge,
.category-badge {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.duration-badge {
  right: 10px;
  top: 10px;
  padding: 4px 8px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
}

.rank-badge {
  left: 10px;
  top: 10px;
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-badge {
  left: 10px;
  bottom: 10px;
  padding: 5px 9px;
  color: #ffffff;
  background: var(--color-cyan-600);
}

.movie-body {
  display: grid;
  gap: 10px;
  padding: 15px;
}

.movie-title {
  min-height: 44px;
  margin: 0;
  color: var(--color-slate-900);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card:hover .movie-title {
  color: var(--color-cyan-600);
}

.movie-desc {
  margin: 0;
  color: var(--color-slate-600);
  font-size: 13px;
  line-height: 1.65;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--color-slate-500);
  font-size: 13px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--color-slate-700);
  background: var(--color-slate-100);
  font-size: 12px;
  font-weight: 700;
}

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

.update-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.update-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.update-card .movie-cover {
  min-height: 118px;
  aspect-ratio: auto;
}

.update-card-body {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 18px;
}

.ranking-section {
  margin-top: 56px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-slate-900), #172554, var(--color-slate-950));
  padding: 58px 0;
}

.ranking-section .section-title,
.ranking-section .section-lead,
.ranking-section .view-more {
  color: #ffffff;
}

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

.ranking-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 38px 74px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 10px;
  transition: background 0.2s ease;
}

.ranking-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ranking-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.ranking-item:first-child .ranking-number,
.ranking-item:nth-child(2) .ranking-number,
.ranking-item:nth-child(3) .ranking-number {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.ranking-thumb {
  position: relative;
  height: 46px;
  overflow: hidden;
  border-radius: 10px;
}

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

.ranking-title {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-sub {
  margin: 4px 0 0;
  color: var(--color-slate-300);
  font-size: 13px;
}

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

.mosaic-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-slate-900);
  box-shadow: var(--shadow-card);
}

.mosaic-card.is-large {
  grid-column: span 2;
  grid-row: span 2;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

.mosaic-card:hover img {
  transform: scale(1.08);
}

.mosaic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  padding: 18px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05));
}

.mosaic-overlay h3 {
  margin: 7px 0 0;
  font-size: 18px;
  line-height: 1.35;
}

.page-hero {
  padding: 54px 0 26px;
}

.page-title {
  margin: 0;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--color-slate-600);
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 12px;
  margin: 22px 0 28px;
  border: 1px solid var(--color-slate-200);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--color-slate-200);
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--color-cyan-500);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}

.result-line {
  margin: 0 0 16px;
  color: var(--color-slate-600);
  font-size: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 28px;
  padding: 34px 0 62px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--color-slate-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-cyan-600);
  font-weight: 800;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.34);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 55%);
  transition: opacity 0.22s ease;
}

.player-card.is-playing .player-overlay {
  opacity: 0;
}

.player-play {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-play:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.3);
}

.player-status {
  position: absolute;
  left: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  pointer-events: none;
}

.detail-card,
.sidebar-card {
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.detail-card {
  margin-top: 24px;
  padding: 26px;
}

.detail-title {
  margin: 0 0 14px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--color-slate-600);
  font-size: 14px;
}

.detail-section {
  border-top: 1px solid var(--color-slate-200);
  padding-top: 22px;
}

.detail-section + .detail-section {
  margin-top: 22px;
}

.detail-section h2,
.sidebar-card h2 {
  margin: 0 0 12px;
  color: var(--color-slate-900);
  font-size: 21px;
  font-weight: 900;
}

.highlight-line {
  color: var(--color-cyan-600);
  font-weight: 800;
}

.detail-section p {
  margin: 0;
  color: var(--color-slate-700);
  line-height: 1.9;
}

.review-box {
  border-radius: 16px;
  padding: 18px;
  background: var(--color-slate-50);
}

.sidebar-card {
  padding: 20px;
}

.sidebar-list {
  display: grid;
  gap: 13px;
}

.sidebar-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  border-radius: 14px;
  padding: 8px;
  transition: background 0.2s ease;
}

.sidebar-item:hover {
  background: var(--color-slate-50);
}

.sidebar-thumb {
  position: relative;
  height: 70px;
  overflow: hidden;
  border-radius: 12px;
}

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

.sidebar-title {
  margin: 0 0 7px;
  color: var(--color-slate-900);
  font-weight: 850;
  line-height: 1.42;
}

.sidebar-item:hover .sidebar-title {
  color: var(--color-cyan-600);
}

.sidebar-sub {
  margin: 0;
  color: var(--color-slate-500);
  font-size: 12px;
}

.search-page-box {
  border-radius: 22px;
  padding: 26px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.search-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-large input {
  border: 1px solid var(--color-slate-200);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
}

.empty-state {
  display: none;
  border: 1px dashed var(--color-slate-300);
  border-radius: 20px;
  padding: 34px;
  color: var(--color-slate-600);
  text-align: center;
  background: rgba(255, 255, 255, 0.68);
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 60px;
  color: var(--color-slate-300);
  background: linear-gradient(180deg, var(--color-slate-900), var(--color-slate-950));
}

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

.footer-title {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.footer-text,
.footer-links a,
.footer-bottom {
  color: var(--color-slate-300);
  font-size: 14px;
  line-height: 1.75;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

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

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

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

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

  .hero-overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.15));
  }

  .hero-content {
    align-items: end;
    padding-bottom: 70px;
  }

  .hero-control {
    display: none;
  }

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

  .mosaic-card.is-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .update-card {
    grid-template-columns: 140px 1fr;
  }
}

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

  .logo-text {
    font-size: 18px;
  }

  .hero {
    height: 520px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions,
  .section-header,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .category-grid,
  .movie-grid,
  .mosaic-grid,
  .footer-inner,
  .filter-panel,
  .search-large {
    grid-template-columns: 1fr;
  }

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

  .update-card {
    grid-template-columns: 1fr;
  }

  .update-card .movie-cover {
    min-height: 190px;
  }

  .sidebar-item {
    grid-template-columns: 96px 1fr;
  }
}

.poster-shell {
  position: relative;
  overflow: hidden;
}

.hero-slide > .poster-shell {
  position: absolute;
  inset: 0;
}

.hero-slide > .poster-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-overlay .category-badge {
  position: static;
}
