:root {
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --accent-50: #ecfdf5;
  --accent-100: #d1fae5;
  --accent-500: #10b981;
  --accent-600: #059669;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 30px rgba(15, 23, 42, 0.14);
  --shadow-xl: 0 25px 50px rgba(15, 23, 42, 0.20);
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--gray-900);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 42%, var(--gray-50) 100%);
  line-height: 1.5;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  transition: color 0.2s ease;
}

.logo:hover {
  color: var(--primary-700);
}

.logo-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  box-shadow: 0 10px 22px rgba(2, 132, 199, 0.25);
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  border-left: 11px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--gray-700);
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-600);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--gray-200);
  background: #fff;
}

.mobile-panel a {
  display: block;
  padding: 14px 16px;
  color: var(--gray-700);
  font-weight: 600;
}

.mobile-panel a:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.site-main {
  min-height: 70vh;
  padding-top: 64px;
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  overflow: hidden;
  background: var(--gray-900);
}

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 7s ease;
}

.hero-slide.active .hero-image {
  transform: scale(1.12);
}

.hero-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at 78% 28%, rgba(14, 165, 233, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.56) 42%, rgba(0, 0, 0, 0.08) 100%);
}

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

.hero-copy {
  width: min(100%, 680px);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-desc {
  max-width: 660px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  color: #fff;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  backdrop-filter: blur(7px);
}

.meta-pill.primary {
  background: var(--primary-600);
  color: #fff;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
}

.btn-primary {
  background: var(--primary-600);
  color: #fff;
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: var(--primary-700);
}

.btn-light {
  background: rgba(255, 255, 255, 0.92);
  color: var(--gray-900);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  backdrop-filter: blur(8px);
}

.play-triangle {
  width: 0;
  height: 0;
  border-left: 11px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.hero-controls {
  position: absolute;
  right: 32px;
  bottom: 32px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-arrow,
.hero-dot {
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.hero-arrow:hover,
.hero-dot:hover,
.hero-dot.active {
  background: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-left: 2px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.active {
  width: 28px;
}

.hero-search-card {
  position: relative;
  z-index: 5;
  width: min(100% - 32px, 980px);
  margin: -40px auto 0;
  padding: 18px;
  border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
}

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

.search-form input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--gray-200);
  border-radius: 13px;
  padding: 0 15px;
  color: var(--gray-800);
  background: #fff;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-form button {
  min-width: 128px;
}

.section-stack {
  display: grid;
  gap: 72px;
  padding: 72px 0;
}

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

.section-kicker {
  margin: 0 0 7px;
  color: var(--primary-600);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 13px;
}

.section-title {
  margin: 0;
  color: var(--gray-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--gray-600);
}

.more-link {
  flex: 0 0 auto;
  color: var(--primary-600);
  font-weight: 800;
}

.more-link:hover {
  color: var(--primary-700);
}

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

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

.movie-card:hover img,
.poster-card:hover img,
.side-card:hover img,
.compact-card:hover img,
.ranking-card:hover img {
  transform: scale(1.08);
}

.card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-200);
}

.card-cover.poster {
  aspect-ratio: 2 / 3;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.25s ease;
}

.movie-card:hover .card-overlay,
.poster-card:hover .card-overlay,
.compact-card:hover .card-overlay {
  background: rgba(0, 0, 0, 0.36);
}

.play-circle {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 999px;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-circle,
.poster-card:hover .play-circle,
.compact-card:hover .play-circle {
  opacity: 1;
  transform: scale(1);
}

.badge {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.70);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.region-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--primary-600);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.movie-body {
  padding: 18px;
}

.movie-title {
  margin: 0 0 9px;
  color: var(--gray-900);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.side-card:hover .side-title,
.compact-card:hover .compact-title,
.ranking-card:hover .ranking-title {
  color: var(--primary-600);
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 650;
}

.feature-panel {
  padding: 40px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
}

.dark-panel {
  padding: 40px;
  border-radius: 28px;
  background: var(--gray-900);
  color: #fff;
}

.dark-panel .section-title,
.dark-panel .section-desc {
  color: #fff;
}

.dark-panel .section-desc {
  color: var(--gray-300);
}

.poster-card {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover {
  transform: scale(1.035);
  box-shadow: var(--shadow-xl);
}

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

.poster-info {
  position: absolute;
  inset: auto 0 0;
  padding: 42px 14px 14px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0));
}

.poster-info h3 {
  display: -webkit-box;
  margin: 0 0 5px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.poster-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

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

.side-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

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

.side-cover {
  min-height: 180px;
  overflow: hidden;
  background: var(--gray-200);
}

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

.side-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.side-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 850;
  transition: color 0.2s ease;
}

.side-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compact-card {
  display: block;
}

.compact-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-200);
  box-shadow: var(--shadow-md);
}

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

.compact-title {
  display: -webkit-box;
  min-height: 40px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

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

.category-card {
  display: block;
  min-height: 180px;
  padding: 24px;
  border-radius: var(--radius-2xl);
  color: #fff;
  background: linear-gradient(135deg, var(--gray-900), var(--primary-700));
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, var(--primary-700), var(--accent-600));
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #312e81, var(--primary-600));
}

.category-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.page-hero {
  padding: 76px 0;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.page-hero.accent {
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--accent-600), var(--primary-700));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fff;
}

.page-title {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.page-desc {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.75;
}

.content-pad {
  padding: 56px 0 72px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px 160px;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

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

.ranking-card {
  display: grid;
  grid-template-columns: 70px 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.rank-no {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-600), var(--accent-600));
  font-weight: 900;
}

.ranking-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: var(--gray-200);
}

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

.ranking-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 900;
  transition: color 0.2s ease;
}

.ranking-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-meta {
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 32px;
}

.player-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #000;
  box-shadow: var(--shadow-xl);
}

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

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

.player-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at center, rgba(2, 132, 199, 0.20), rgba(0, 0, 0, 0.46));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-box.is-playing .player-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-button {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 999px;
  color: var(--primary-600);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
  transform: scale(1.08);
  background: #fff;
}

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

.detail-card,
.sidebar-card {
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.detail-card {
  padding: 32px;
}

.detail-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: -0.035em;
}

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

.detail-section {
  margin-top: 28px;
}

.detail-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 900;
}

.detail-section p {
  margin: 0 0 12px;
  color: var(--gray-700);
  line-height: 1.85;
  white-space: pre-line;
}

.sidebar-card {
  position: sticky;
  top: 88px;
  padding: 20px;
}

.sidebar-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 900;
}

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--gray-50);
}

.related-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--gray-200);
}

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

.related-item:hover img {
  transform: scale(1.08);
}

.related-title {
  display: -webkit-box;
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--gray-900);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-meta {
  color: var(--gray-500);
  font-size: 12px;
}

.no-results {
  display: none;
  padding: 56px 16px;
  color: var(--gray-500);
  text-align: center;
}

.no-results.show {
  display: block;
}

.site-footer {
  background: var(--gray-900);
  color: var(--gray-300);
}

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

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.footer-text {
  max-width: 620px;
  margin: 0;
  color: var(--gray-400);
  line-height: 1.75;
}

.footer-col h3 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.footer-col a {
  display: block;
  margin: 10px 0;
  color: var(--gray-400);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
  text-align: center;
  font-size: 14px;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1100px) {
  .card-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .sidebar-card {
    position: static;
  }
}

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

  .nav-toggle {
    display: inline-block;
  }

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

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-controls {
    right: 16px;
    bottom: 18px;
  }

  .hero-search-card {
    margin-top: 18px;
  }

  .search-form,
  .filter-toolbar {
    grid-template-columns: 1fr;
  }

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

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

  .side-cover {
    min-height: 220px;
  }

  .ranking-meta {
    white-space: normal;
  }

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

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

  .logo {
    font-size: 18px;
  }

  .hero-copy {
    padding-top: 20px;
  }

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

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-stack {
    gap: 48px;
    padding: 48px 0;
  }

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

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

  .feature-panel,
  .dark-panel,
  .detail-card {
    padding: 24px;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
