:root {
  color-scheme: light;
  --site-dark: #0f172a;
  --site-dark-soft: #1e293b;
  --site-blue: #2563eb;
  --site-cyan: #06b6d4;
  --site-text: #1e293b;
  --site-muted: #64748b;
  --site-bg: #f8fafc;
  --site-card: #ffffff;
  --site-border: #e2e8f0;
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img {
  background: linear-gradient(135deg, #0f172a, #1e40af, #06b6d4);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(16px);
}

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

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.25);
}

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

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

.desktop-nav a,
.mobile-menu a {
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: #22d3ee;
}

.nav-dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-panel {
  position: absolute;
  left: 0;
  top: 68px;
  width: 180px;
  padding: 10px;
  border-radius: 16px;
  background: #1e293b;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

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

.dropdown-panel a:hover {
  background: #334155;
  color: #ffffff;
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(330px, 28vw);
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.header-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
  color: #ffffff;
  outline: none;
  background: transparent;
}

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search button {
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  color: #ffffff;
  font-weight: 700;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: #ffffff;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 10px;
}

.mobile-menu.is-open {
  display: grid;
}

.mobile-menu a {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-slider {
  position: relative;
  height: 500px;
  min-height: 500px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.hero-slide.is-active img {
  animation: heroZoom 8s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(15, 23, 42, 0.55), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  margin-left: max(16px, calc((100vw - 1280px) / 2));
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-bottom: 18px;
  color: #facc15;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  max-width: 680px;
  margin-top: 20px;
  color: #e2e8f0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
}

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

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

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.ghost-button,
.section-more,
.category-filter-bar a,
.category-overview-head a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.primary-button {
  padding: 13px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.3);
}

.primary-button:hover,
.category-overview-head a:hover,
.category-filter-bar a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.34);
}

.ghost-button {
  padding: 13px 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.2s ease;
}

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

.quick-category-strip {
  padding: 22px 0;
  background: #0f172a;
}

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

.category-pill {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(6, 182, 212, 0.22));
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: all 0.2s ease;
}

.category-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.5);
}

.category-pill span {
  font-size: 17px;
  font-weight: 900;
}

.category-pill small {
  color: #cbd5e1;
  line-height: 1.45;
}

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

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 16px 36px rgba(239, 68, 68, 0.24);
}

.section-heading h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1e293b;
}

.section-heading p {
  margin-top: 4px;
  color: var(--site-muted);
}

.section-more {
  flex-shrink: 0;
  color: #2563eb;
}

.section-more:hover {
  color: #0891b2;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-grid-featured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 30px;
}

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

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

.movie-card-link {
  display: grid;
  overflow: hidden;
  height: 100%;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

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

.movie-card-link:hover .movie-poster img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.75));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-shade {
  opacity: 1;
}

.poster-category,
.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.poster-category {
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.poster-year {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.72);
}

.rank-badge {
  right: 12px;
  top: 12px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.poster-play {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.25s ease;
}

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

.movie-info {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.movie-info h3 {
  color: #1e293b;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 8px;
  background: #f1f5f9;
}

.movie-tags span {
  color: #2563eb;
  background: #eff6ff;
  padding: 5px 9px;
  font-size: 12px;
}

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

.ranking-panel,
.category-overview-card,
.detail-card,
.side-list-card,
.side-poster-card,
.search-filter-panel {
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
}

.ranking-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.ranking-panel-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.ranking-panel-head h2 {
  font-size: 24px;
  font-weight: 900;
}

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

.ranking-list-mini a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-list-mini a:hover {
  background: #eff6ff;
  transform: translateX(4px);
}

.ranking-list-mini strong {
  color: #2563eb;
  font-weight: 900;
}

.ranking-list-mini span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.ranking-list-mini em {
  color: #94a3b8;
  font-style: normal;
  font-size: 13px;
}

.library-toolbar,
.search-filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  padding: 18px;
}

.library-toolbar button,
.search-filter-panel button {
  padding: 9px 14px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-weight: 800;
  transition: all 0.2s ease;
}

.library-toolbar button:hover,
.library-toolbar button.is-active,
.search-filter-panel button:hover,
.search-filter-panel button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.library-search,
.page-filter-input {
  min-width: min(320px, 100%);
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  outline: none;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.page-hero {
  position: relative;
  padding: 70px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.35), transparent 34%), linear-gradient(135deg, #1e3a8a, #0f172a 68%);
  overflow: hidden;
}

.page-hero h1 {
  margin-top: 20px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin-top: 14px;
  color: #bfdbfe;
  font-size: 18px;
  line-height: 1.75;
}

.back-link,
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  color: #bfdbfe;
  font-weight: 800;
}

.back-link:hover,
.breadcrumb a:hover {
  color: #ffffff;
}

.category-overview-list {
  display: grid;
  gap: 28px;
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.category-overview-head h2 {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.category-overview-head p {
  color: #64748b;
  margin-top: 6px;
}

.category-overview-head a,
.category-filter-bar a {
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  max-width: 860px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 96px minmax(0, 1fr) minmax(140px, 220px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.rank-row strong {
  color: #2563eb;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}

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

.rank-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rank-row-main b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 900;
}

.rank-row-main small,
.rank-row em {
  color: #64748b;
  font-style: normal;
}

.search-page-form {
  display: flex;
  max-width: 760px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.search-page-form input {
  min-width: 0;
  flex: 1;
  padding: 16px 20px;
  color: #1e293b;
  outline: none;
}

.search-page-form button {
  padding: 0 26px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
}

.search-status {
  margin-bottom: 20px;
  color: #64748b;
  font-weight: 700;
}

.detail-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(15, 23, 42, 0.68), rgba(15, 23, 42, 0.12));
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #cbd5e1;
}

.breadcrumb em {
  color: #ffffff;
  font-style: normal;
}

.detail-hero h1 {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.detail-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1.7;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-card {
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

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

.player-video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #020617;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-cover-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.player-cover-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  box-shadow: 0 18px 50px rgba(6, 182, 212, 0.36);
}

.detail-card {
  padding: 28px;
}

.detail-title-row {
  display: grid;
  gap: 8px;
}

.detail-title-row span {
  width: max-content;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
  font-size: 13px;
  font-weight: 900;
}

.detail-title-row h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
}

.detail-meta-grid small {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-bottom: 5px;
}

.detail-meta-grid strong {
  display: block;
  color: #1e293b;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.detail-tags {
  margin-bottom: 24px;
}

.detail-tags span {
  color: #2563eb;
  background: #eff6ff;
}

.detail-card h3 {
  margin-top: 24px;
  margin-bottom: 10px;
  color: #1e293b;
  font-size: 22px;
  font-weight: 900;
}

.detail-card p {
  color: #475569;
  font-size: 16px;
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 22px;
}

.side-poster-card,
.side-list-card {
  padding: 18px;
}

.side-poster-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 16px;
}

.side-poster-card .primary-button {
  width: 100%;
}

.side-list-card h2 {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 900;
}

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

.side-mini-list a {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  background: #f8fafc;
  transition: background 0.2s ease;
}

.side-mini-list a:hover {
  background: #eff6ff;
}

.side-mini-list img {
  width: 86px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.side-mini-list span {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-weight: 800;
}

.site-footer {
  margin-top: 50px;
  padding: 46px 0 0;
  color: #cbd5e1;
  background: #0f172a;
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 16px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

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

.footer-links a:hover {
  color: #22d3ee;
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px;
  color: #94a3b8;
  text-align: center;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

@media (min-width: 768px) {
  .hero-slider {
    height: 600px;
  }
}

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

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

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

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

  .ranking-panel,
  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

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

  .hero-slider {
    height: 560px;
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-actions,
  .section-heading,
  .category-overview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-category-strip .container,
  .movie-grid-large,
  .movie-grid-compact,
  .movie-grid-featured,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 40px 78px minmax(0, 1fr);
  }

  .rank-row em {
    display: none;
  }

  .rank-row img {
    width: 78px;
    height: 52px;
  }

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

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

  .search-page-form {
    border-radius: 24px;
    flex-direction: column;
  }

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