:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(30, 41, 59, 0.88);
  --border: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #cbd5e1;
  --subtle: #94a3b8;
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.22);
  --blue: #3b82f6;
  --green: #22c55e;
  --orange: #f97316;
  --red: #ef4444;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.12), transparent 34rem), linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

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

.brand-text small {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
}

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

.nav-link,
.mobile-nav-link {
  color: var(--muted);
  border-radius: 12px;
  transition: all 0.28s ease;
  font-weight: 600;
}

.nav-link {
  padding: 10px 14px;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.56);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-button span {
  width: 21px;
  height: 2px;
  border-radius: 99px;
  background: var(--muted);
}

.mobile-nav {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 16px;
  border-top: 1px solid var(--border);
}

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

.mobile-nav-link {
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.5);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 24%, rgba(6, 182, 212, 0.16), transparent 32rem);
}

.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-gradient-side {
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.88) 42%, rgba(15, 23, 42, 0.18) 72%, transparent);
}

.hero-gradient-bottom {
  background: linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.1) 42%, transparent);
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(24px, calc((100vw - 1280px) / 2));
  width: min(760px, calc(100% - 48px));
  transform: translateY(-50%);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 15px;
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.38);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 700;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 22px);
  line-height: 1.7;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-pill {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--muted);
  font-size: 13px;
}

.hero-actions,
.compact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.28s ease;
}

.primary-button {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.26);
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 42px rgba(6, 182, 212, 0.42);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.56);
  color: var(--muted);
}

.ghost-button:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.72);
}

.small-button {
  min-height: 38px;
  padding: 9px 16px;
  font-size: 14px;
}

.hero-stat {
  color: var(--muted);
  font-weight: 700;
}

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

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

.hero-dot.active {
  width: 36px;
  background: var(--cyan);
}

.home-search {
  margin-top: -48px;
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 36px);
}

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

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

.band-section {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.48), rgba(30, 41, 59, 0.48));
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.section-heading > span {
  width: 5px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.section-heading-green > span {
  background: linear-gradient(180deg, var(--green), #10b981);
}

.section-heading-orange > span {
  background: linear-gradient(180deg, var(--orange), var(--red));
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 36px);
}

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

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

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

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.17);
  transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.52);
  box-shadow: 0 26px 52px rgba(6, 182, 212, 0.16);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease, opacity 0.34s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.08);
  opacity: 0.82;
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.72));
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  background: rgba(6, 182, 212, 0.9);
  color: #fff;
  box-shadow: 0 16px 32px rgba(6, 182, 212, 0.35);
  transition: all 0.28s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.year-badge {
  right: 12px;
  background: rgba(6, 182, 212, 0.88);
}

.rank-badge {
  left: 12px;
  background: rgba(249, 115, 22, 0.92);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-card-body strong {
  font-size: 17px;
  line-height: 1.35;
}

.movie-card-body em {
  min-height: 40px;
  color: var(--subtle);
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
}

.movie-card-compact {
  width: 260px;
  flex: 0 0 auto;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.category-grid,
.category-overview-grid {
  display: grid;
  gap: 22px;
}

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

.category-tile {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0f172a, #164e63);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}

.category-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 197, 94, 0.48);
  box-shadow: 0 24px 48px rgba(34, 197, 94, 0.14);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.86));
}

.category-tile strong,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-tile strong {
  font-size: 22px;
  margin-bottom: 8px;
}

.category-tile em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

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

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

.feature-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(30, 41, 59, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: all 0.28s ease;
}

.feature-row:hover {
  border-color: rgba(34, 197, 94, 0.48);
  box-shadow: 0 24px 42px rgba(34, 197, 94, 0.12);
  transform: translateY(-4px);
}

.feature-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.feature-thumb span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.26);
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.feature-copy strong {
  font-size: 20px;
}

.feature-copy em,
.feature-copy small {
  color: var(--subtle);
  font-style: normal;
  line-height: 1.6;
}

.ranking-panel {
  position: sticky;
  top: 88px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px;
}

.ranking-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ranking-panel-head h2 {
  margin: 0;
  font-size: 26px;
}

.ranking-panel-head a {
  color: #67e8f9;
  font-weight: 700;
}

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

.ranking-panel li a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.48);
  transition: background 0.28s ease;
}

.ranking-panel li a:hover {
  background: rgba(51, 65, 85, 0.78);
}

.rank-number {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  font-weight: 900;
}

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

.rank-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy em {
  color: var(--subtle);
  font-style: normal;
  font-size: 13px;
}

.inner-hero {
  padding: 96px 0 72px;
  background: radial-gradient(circle at 75% 20%, rgba(6, 182, 212, 0.14), transparent 28rem), linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--border);
}

.inner-hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.inner-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--border);
}

.search-field {
  position: relative;
}

.search-field span {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
}

.search-field input,
.filter-panel select,
.filter-panel button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  color: #fff;
  background: rgba(30, 41, 59, 0.72);
  outline: none;
}

.search-field input {
  padding: 0 16px 0 44px;
}

.filter-panel select {
  padding: 0 14px;
}

.filter-panel button {
  padding: 0 18px;
  color: #e2e8f0;
  transition: background 0.28s ease;
}

.filter-panel button:hover {
  background: rgba(51, 65, 85, 0.86);
}

.empty-state {
  display: none;
  padding: 38px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}

.empty-state.show {
  display: block;
}

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

.category-card-large {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(30, 41, 59, 0.52);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.category-collage {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 160px;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.category-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.category-card-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.category-card-body p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 20px;
}

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

.top-rank-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, #0f172a, #164e63);
  border: 1px solid var(--border);
}

.top-rank-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.top-rank-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.05), rgba(2, 6, 23, 0.9));
}

.top-rank-card strong,
.top-rank-card em,
.top-rank-number {
  position: relative;
  z-index: 1;
}

.top-rank-card strong {
  font-size: 28px;
  margin-bottom: 10px;
}

.top-rank-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.top-rank-number {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange), var(--red));
  font-weight: 900;
  font-size: 22px;
}

.rank-table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.72);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.rank-table th,
.rank-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
  color: var(--muted);
}

.rank-table th {
  color: #fff;
  background: rgba(30, 41, 59, 0.56);
}

.table-rank {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.18);
  color: #67e8f9;
  font-weight: 900;
}

.table-movie {
  display: flex;
  align-items: center;
  gap: 14px;
}

.table-movie img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.table-movie span {
  display: grid;
  gap: 5px;
}

.table-movie strong {
  color: #fff;
}

.table-movie em {
  color: var(--subtle);
  font-style: normal;
  font-size: 13px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  align-items: center;
  background: #020617;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.detail-bg span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.64)), linear-gradient(0deg, #020617, transparent 48%);
}

.detail-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  padding: 78px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #164e63);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--subtle);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: #67e8f9;
}

.breadcrumb em {
  font-style: normal;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.detail-one-line {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--muted);
}

.player-section {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.player-heading {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.player-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.player-heading p {
  margin: 0;
  color: var(--subtle);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  border: 0;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.2), rgba(0, 0, 0, 0.66));
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

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

.player-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 46px rgba(6, 182, 212, 0.38);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 20px;
}

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

.detail-article,
.detail-side-card {
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--border);
  padding: 28px;
}

.detail-article h2,
.detail-side-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-article p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 28px;
  font-size: 16px;
}

.detail-article p:last-child {
  margin-bottom: 0;
}

.detail-side-card dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-side-card dt {
  color: var(--subtle);
  font-size: 13px;
}

.detail-side-card dd {
  margin: 0;
  color: #fff;
  line-height: 1.55;
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
  border-top: 1px solid var(--border);
}

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

.footer-about p,
.footer-col p,
.footer-col a {
  color: var(--subtle);
  line-height: 1.7;
}

.footer-about p {
  margin: 18px 0 0;
}

.footer-col h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-col a:hover {
  color: #67e8f9;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--subtle);
  text-align: center;
  padding: 18px 16px;
}

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

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

  .home-split,
  .detail-text-grid {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    position: static;
  }
}

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

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

  .hero-content {
    top: 52%;
  }

  .home-search {
    flex-direction: column;
    align-items: flex-start;
  }

  .movie-grid-3,
  .movie-grid-4,
  .movie-grid-5,
  .category-overview-grid,
  .top-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

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

  .detail-poster {
    width: min(320px, 100%);
  }

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

@media (max-width: 640px) {
  .site-header-inner {
    height: 60px;
  }

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 560px;
    height: 72vh;
  }

  .hero-gradient-side {
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.74));
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: 100%;
  }

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

  .movie-grid-3,
  .movie-grid-4,
  .movie-grid-5,
  .category-grid,
  .category-overview-grid,
  .top-rank-grid {
    grid-template-columns: 1fr;
  }

  .feature-row {
    grid-template-columns: 1fr;
  }

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

  .detail-hero {
    min-height: auto;
  }

  .detail-layout {
    padding: 48px 0;
  }

  .detail-info h1 {
    font-size: 38px;
  }

  .player-icon {
    width: 68px;
    height: 68px;
  }

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