:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.18);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --emerald: #10b981;
  --emerald-2: #34d399;
  --cyan: #22d3ee;
  --danger: #fb7185;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.45);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.16), transparent 30%),
    radial-gradient(circle at 90% 5%, rgba(34, 211, 238, 0.14), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.36);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #02130d;
  background: linear-gradient(135deg, var(--emerald-2), var(--cyan));
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.brand-text,
.footer-brand {
  font-size: 1.45rem;
  background: linear-gradient(90deg, var(--emerald-2), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--soft);
  transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav > a:hover,
.nav-dropdown > a:hover,
.desktop-nav .active {
  color: var(--emerald-2);
  background: rgba(16, 185, 129, 0.1);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 210px;
  padding: 10px;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.nav-dropdown-panel a {
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--soft);
}

.nav-dropdown-panel a:hover {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
}

.header-search {
  display: flex;
  align-items: center;
  width: 270px;
  margin-left: 8px;
  background: rgba(51, 65, 85, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.header-search input,
.mobile-search input,
.home-search-inner input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  color: #ffffff;
  background: transparent;
  border: 0;
  outline: 0;
}

.header-search input {
  padding: 10px 8px 10px 16px;
}

.header-search button {
  width: 44px;
  height: 42px;
  color: var(--emerald-2);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(51, 65, 85, 0.9);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 14px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mobile-search input {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.78);
}

.mobile-search button,
.home-search-inner button {
  color: #042016;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-2), var(--cyan));
  font-weight: 800;
  cursor: pointer;
}

.mobile-link {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--soft);
}

.mobile-link.sub {
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}

.mobile-link:hover,
.mobile-link.active {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.8);
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.4s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.62) 46%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.62) 42%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 96px;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(16, 185, 129, 0.82);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.26);
}

.hero-content h1,
.hero-content h2 {
  max-width: 900px;
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content h3 {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3vw, 3.1rem);
  line-height: 1.15;
}

.hero-content p {
  max-width: 780px;
  margin: 0 0 28px;
  color: var(--soft);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

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

.primary-btn,
.ghost-btn,
.text-link,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 850;
}

.primary-btn {
  color: #04140e;
  background: linear-gradient(135deg, var(--emerald-2), var(--cyan));
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.28);
}

.ghost-btn {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(14px);
}

.primary-btn:hover,
.ghost-btn:hover,
.text-link:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.48);
  font-size: 2rem;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.72);
}

.hero-control.prev {
  left: 22px;
}

.hero-control.next {
  right: 22px;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--emerald-2);
}

.home-search-block {
  margin-top: -26px;
  position: relative;
  z-index: 6;
}

.home-search-inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-inner h2 {
  margin: 0 0 4px;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.home-search-inner p {
  margin: 0;
  color: var(--muted);
}

.home-search-inner form {
  display: flex;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px;
  background: rgba(2, 6, 23, 0.44);
}

.home-search-inner input {
  padding: 12px 14px;
}

.home-search-inner button {
  padding: 0 20px;
}

.page-flow,
.page-shell .container {
  padding-top: 56px;
  padding-bottom: 70px;
}

.page-flow {
  display: grid;
  gap: 66px;
}

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

.section-heading.compact {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  line-height: 1.15;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-more,
.text-link {
  color: var(--emerald-2);
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.58);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.24);
  transition: transform 0.22s ease, background 0.22s ease, border 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(15, 23, 42, 0.88);
}

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

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

.movie-card:hover .poster-link img,
.mini-card:hover img,
.category-cover:hover,
.category-card:hover {
  transform: scale(1.06);
}

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 70%);
  opacity: 0.7;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.88);
  box-shadow: 0 12px 34px rgba(16, 185, 129, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.corner-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.72);
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}

.movie-card-body {
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 3.05em;
  overflow: hidden;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-title:hover {
  color: var(--emerald-2);
}

.movie-desc {
  display: -webkit-box;
  min-height: 3em;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.93rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 28px;
  margin-bottom: 12px;
}

.movie-tags span,
.detail-tags a {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--emerald-2);
  background: rgba(16, 185, 129, 0.12);
  font-size: 0.76rem;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 0.82rem;
}

.movie-meta a {
  color: var(--emerald-2);
}

.featured-panel,
.ranking-box,
.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-content article,
.related-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.24);
}

.featured-panel {
  padding: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(34, 211, 238, 0.13), transparent 28%),
    rgba(15, 23, 42, 0.66);
}

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

.category-card {
  min-height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -120px 80px rgba(2, 6, 23, 0.84);
  transition: transform 0.22s ease, border 0.22s ease;
}

.category-card:hover {
  border-color: rgba(52, 211, 153, 0.36);
}

.category-card span {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 900;
}

.category-card strong {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 500;
}

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

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

.movie-card-list {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.movie-card-list .poster-link {
  aspect-ratio: auto;
  min-height: 170px;
}

.ranking-box {
  padding: 22px;
  position: sticky;
  top: 88px;
}

.rank-list,
.ranking-page-list {
  display: grid;
  gap: 10px;
}

.rank-row,
.rank-page-row {
  display: grid;
  grid-template-columns: 46px 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.28);
  transition: background 0.2s ease, border 0.2s ease, transform 0.2s ease;
}

.rank-row:hover,
.rank-page-row:hover {
  transform: translateX(4px);
  border-color: rgba(52, 211, 153, 0.26);
  background: rgba(30, 41, 59, 0.78);
}

.rank-num {
  color: var(--emerald-2);
  font-size: 1.25rem;
  font-weight: 950;
}

.rank-row img,
.rank-page-row img {
  width: 64px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-info strong {
  color: #ffffff;
}

.rank-info small {
  color: var(--muted);
  font-size: 0.82rem;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.page-hero {
  padding: clamp(28px, 5vw, 52px);
  margin-bottom: 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.18), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(34, 211, 238, 0.14), transparent 28%),
    rgba(15, 23, 42, 0.65);
}

.page-hero h1 {
  max-width: 880px;
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--soft);
  font-size: 1.05rem;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.56);
}

.category-cover {
  min-height: 190px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -110px 80px rgba(2, 6, 23, 0.7);
  transition: transform 0.24s ease;
}

.category-overview-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.category-samples {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.category-samples a {
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-samples a:hover {
  color: var(--emerald-2);
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(140px, 0.55fr));
  gap: 14px;
}

.filter-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-row input,
.filter-row select {
  min-height: 45px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.42);
}

.filter-row option {
  color: #111827;
}

.filter-results::after {
  display: none;
  content: attr(data-empty);
  grid-column: 1 / -1;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 20px;
}

.filter-results.is-empty::after {
  display: block;
}

.detail-page {
  padding: 34px 0 70px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(260px, 370px) 1fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  padding: clamp(20px, 4vw, 40px);
  margin-bottom: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 38%),
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.14), transparent 30%),
    rgba(15, 23, 42, 0.65);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.42);
}

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

.detail-info h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-info p {
  max-width: 820px;
  margin: 0 0 20px;
  color: var(--soft);
  font-size: 1.08rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.player-section {
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 28px;
}

.player-section h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000000;
  box-shadow: 0 26px 80px rgba(2, 6, 23, 0.6);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.56));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: clamp(76px, 10vw, 110px);
  height: clamp(76px, 10vw, 110px);
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #062116;
  background: linear-gradient(135deg, var(--emerald-2), var(--cyan));
  font-size: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 24px 60px rgba(16, 185, 129, 0.32);
}

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

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}

.detail-content article {
  padding: clamp(20px, 3vw, 28px);
}

.detail-content article:last-child {
  grid-column: 1 / -1;
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.5rem;
}

.detail-content p {
  margin: 0;
  color: var(--soft);
}

.info-table {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 18px;
}

.info-table span {
  color: var(--muted);
}

.info-table strong {
  color: #ffffff;
}

.related-section {
  padding: clamp(20px, 3vw, 28px);
}

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

.mini-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.28);
  background: rgba(30, 41, 59, 0.7);
}

.mini-card img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.mini-card strong,
.mini-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-card strong {
  color: #ffffff;
}

.mini-card small {
  color: var(--muted);
  font-size: 0.82rem;
}

.ranking-page-list {
  margin-top: 28px;
}

.rank-page-row {
  grid-template-columns: 56px 86px 1fr 24px;
  padding: 13px;
}

.rank-page-row img {
  width: 86px;
  height: 58px;
}

.rank-arrow {
  color: var(--emerald-2);
  font-size: 1.8rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr);
  gap: 28px;
}

.site-footer p {
  margin: 12px 0 0;
  color: var(--muted);
}

.site-footer h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1rem;
}

.site-footer a:not(.footer-brand) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--emerald-2);
}

.footer-bottom {
  margin-top: 34px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.92rem;
}

@media (max-width: 1060px) {
  .header-search {
    display: none;
  }

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

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

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

  .ranking-box {
    position: static;
  }

  .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-keyword {
    grid-column: 1 / -1;
  }

  .category-overview-grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .hero-carousel {
    min-height: 72vh;
  }

  .hero-content {
    padding-bottom: 84px;
  }

  .hero-control {
    width: 42px;
    height: 42px;
  }

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

  .home-search-inner form {
    flex-direction: column;
    border-radius: 20px;
  }

  .home-search-inner button {
    min-height: 44px;
  }

  .movie-grid,
  .movie-grid-three,
  .movie-grid-four,
  .mini-grid,
  .detail-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .category-overview-card,
  .movie-card-list {
    grid-template-columns: 1fr;
  }

  .movie-card-list .poster-link {
    aspect-ratio: 16 / 10;
  }

  .detail-content article:last-child {
    grid-column: auto;
  }

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

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

  .header-inner {
    height: 62px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: 2.35rem;
  }

  .hero-content h3 {
    font-size: 1.55rem;
  }

  .hero-control {
    display: none;
  }

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

  .movie-grid,
  .movie-grid-three,
  .movie-grid-four,
  .category-grid,
  .mini-grid,
  .detail-content,
  .filter-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-page-row {
    grid-template-columns: 42px 72px 1fr;
  }

  .rank-page-row .rank-arrow {
    display: none;
  }

  .detail-hero,
  .player-section,
  .related-section,
  .featured-panel {
    border-radius: 20px;
  }
}
