:root {
  --color-bg: #020617;
  --color-bg-soft: #0f172a;
  --color-panel: #111827;
  --color-card: #1e293b;
  --color-card-strong: #243247;
  --color-border: rgba(148, 163, 184, 0.18);
  --color-text: #f8fafc;
  --color-muted: #94a3b8;
  --color-muted-strong: #cbd5e1;
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-accent-soft: rgba(16, 185, 129, 0.16);
  --shadow-card: 0 20px 45px rgba(0, 0, 0, 0.26);
  --shadow-soft: 0 12px 35px rgba(2, 6, 23, 0.38);
  --radius-card: 18px;
  --radius-small: 12px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(16, 185, 129, 0.16), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--color-text);
}

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

button,
input,
select {
  font: inherit;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  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(--color-border);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand:hover .brand-mark {
  transform: scale(1.08) rotate(-6deg);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.3);
  transition: transform 0.25s ease;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong,
.footer-brand strong {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.brand-copy em {
  font-style: normal;
  font-size: 0.72rem;
  color: #34d399;
}

.desktop-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #e2e8f0;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: #34d399;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.desktop-nav a:hover {
  color: #6ee7b7;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.86);
  color: white;
  outline: none;
  border-radius: 12px;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(52, 211, 153, 0.78);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
  background: rgba(15, 23, 42, 0.98);
}

.header-search button,
.mobile-search button,
.filter-panel button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-search button,
.mobile-search button,
.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--color-accent), #14b8a6);
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.24);
}

.header-search button,
.mobile-search button {
  padding: 11px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.primary-button:hover {
  transform: translateY(-1px) scale(1.02);
  background: linear-gradient(135deg, var(--color-accent-hover), #0d9488);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: white;
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 2px;
}

.mobile-panel {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-panel nav a {
  padding: 12px;
  border-radius: 12px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.75);
}

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

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

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

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

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.04) contrast(1.02);
}

.hero-slide.is-active .hero-bg {
  animation: heroZoom 9s ease forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.07);
  }
  to {
    transform: scale(1.01);
  }
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.54) 42%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0) 34%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
}

.hero-content h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 30px;
  color: #e2e8f0;
  font-size: clamp(1.02rem, 1.8vw, 1.28rem);
  line-height: 1.8;
}

.hero-tags,
.detail-tags-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-tags span,
.hero-tags a,
.detail-tags-top span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(8px);
}

.hero-tags a:first-child {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
}

.ghost-button {
  color: white;
  border: 1px solid rgba(226, 232, 240, 0.2);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
}

.ghost-button:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, 0.72);
  background: rgba(16, 185, 129, 0.12);
}

.ghost-button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  color: white;
  font-size: 2.2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.78);
  transform: translateY(-50%) scale(1.05);
}

.hero-prev {
  left: max(16px, calc((100vw - var(--container)) / 2 + 4px));
}

.hero-next {
  right: max(16px, calc((100vw - var(--container)) / 2 + 4px));
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: #10b981;
}

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

.content-section {
  margin-top: 58px;
}

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

.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  box-shadow: 0 16px 35px rgba(16, 185, 129, 0.22);
  font-weight: 900;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

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

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

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

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

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

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

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

.poster-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: rgba(30, 41, 59, 0.86);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.poster-link:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: var(--shadow-card);
  border-color: rgba(52, 211, 153, 0.35);
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(16, 185, 129, 0.24), transparent 44%),
    linear-gradient(135deg, #1e293b, #020617);
}

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

.poster-img.is-missing {
  opacity: 0;
}

.poster-link:hover .poster-frame img {
  transform: scale(1.08);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease;
}

.poster-link:hover .poster-overlay {
  opacity: 1;
}

.play-badge,
.big-play {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: #10b981;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.year-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.card-body strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  min-height: 1.5em;
  font-size: 1.02rem;
  transition: color 0.2s ease;
}

.poster-link:hover .card-body strong {
  color: #34d399;
}

.card-body em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 2.8em;
  color: var(--color-muted);
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
}

.meta-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #cbd5e1;
  font-size: 0.78rem;
}

.meta-row span,
.tag-row span {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
}

.tag-row span {
  background: rgba(16, 185, 129, 0.14);
  color: #a7f3d0;
}

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

.ranking-panel,
.category-overview-card,
.filter-panel,
.text-panel,
.tag-panel,
.table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-card);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow-soft);
}

.ranking-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.panel-title,
.overview-head,
.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-title h2,
.overview-head h2,
.player-heading h2,
.text-panel h2,
.tag-panel h2 {
  margin: 0;
}

.panel-title a {
  color: #34d399;
  font-weight: 700;
  font-size: 0.92rem;
}

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

.ranking-panel li a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.66);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-panel li a:hover {
  background: rgba(16, 185, 129, 0.14);
  transform: translateX(3px);
}

.rank-num {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  color: white;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.rank-meta {
  grid-column: 2;
  color: var(--color-muted);
  font-size: 0.82rem;
}

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

.category-tile {
  min-height: 230px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-card);
  background:
    radial-gradient(circle at 80% 0%, rgba(16, 185, 129, 0.18), transparent 44%),
    rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.35);
}

.tile-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 96px;
}

.tile-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #1e293b;
}

.category-tile strong {
  font-size: 1.22rem;
}

.category-tile em,
.category-count {
  color: #34d399;
  font-style: normal;
  font-weight: 700;
}

.category-tile p,
.category-overview-card p,
.page-hero p,
.player-heading p {
  color: var(--color-muted);
  line-height: 1.7;
}

.page-hero {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: center;
  margin-top: 34px;
  padding: 40px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.28), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.95));
  box-shadow: var(--shadow-card);
}

.page-hero span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #34d399;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.small-hero {
  min-height: 220px;
}

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

.overview-head {
  margin-bottom: 20px;
}

.filter-panel {
  margin-top: 28px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 14px;
  align-items: end;
}

.filter-search input {
  width: 100%;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 6px;
  color: var(--color-muted-strong);
  font-size: 0.84rem;
  font-weight: 700;
}

.filter-panel button {
  min-height: 44px;
  padding: 0 16px;
  color: white;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 41, 59, 0.82);
}

.filter-count {
  margin: 0;
  color: var(--color-muted);
  white-space: nowrap;
}

.movie-card.is-hidden,
.ranking-row.is-hidden {
  display: none;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

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

.detail-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.08);
  transform: scale(1.03);
  opacity: 0.55;
}

.detail-shade {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.92)),
    linear-gradient(0deg, #020617, rgba(2, 6, 23, 0));
}

.detail-content {
  position: relative;
  z-index: 2;
  padding: 34px 0 70px;
}

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

.breadcrumb a {
  color: #6ee7b7;
}

.detail-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 38px;
  align-items: end;
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  background: #1e293b;
}

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

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.detail-one-line {
  max-width: 800px;
  color: #e2e8f0;
  font-size: 1.15rem;
  line-height: 1.75;
}

.meta-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 860px;
  margin: 26px 0;
}

.meta-list div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.meta-list dt {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.meta-list dd {
  margin: 5px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.detail-shell {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.player-section {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow-card);
}

.stream-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
  font-weight: 800;
}

.video-player {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background:
    radial-gradient(circle, rgba(16, 185, 129, 0.16), transparent 36%),
    rgba(0, 0, 0, 0.52);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  margin-top: 22px;
}

.text-panel,
.tag-panel {
  padding: 24px;
}

.text-panel p {
  margin: 14px 0 0;
  color: #dbeafe;
  line-height: 1.9;
}

.tag-panel {
  margin-top: 22px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tag-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.18);
  transition: background 0.2s ease, transform 0.2s ease;
}

.tag-cloud a:hover {
  background: rgba(16, 185, 129, 0.24);
  transform: translateY(-1px);
}

.table-section {
  margin-bottom: 50px;
}

.table-wrap {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  text-align: left;
}

.ranking-table th {
  color: #a7f3d0;
  background: rgba(15, 23, 42, 0.8);
}

.ranking-table td {
  color: #e2e8f0;
}

.ranking-table a {
  font-weight: 800;
  color: white;
}

.ranking-table a:hover {
  color: #34d399;
}

.table-rank {
  width: 42px;
}

.site-footer {
  margin-top: 82px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.98));
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 46px 0 30px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: #34d399;
}

.site-footer p,
.site-footer a {
  color: var(--color-muted);
  line-height: 1.8;
}

.site-footer a:hover {
  color: white;
}

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

.footer-bottom {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 20px 0 32px;
  color: var(--color-muted);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: white;
  background: #10b981;
  box-shadow: 0 14px 30px rgba(16, 185, 129, 0.32);
}

.back-to-top.is-visible {
  display: grid;
  place-items: center;
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .header-search input {
    width: 190px;
  }

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

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

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

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

  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }

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

  .ranking-panel {
    position: relative;
    top: auto;
  }

  .detail-grid {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

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

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

  .brand-copy strong {
    font-size: 1.02rem;
  }

  .hero-carousel {
    min-height: 560px;
    height: calc(100vh - 64px);
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 96px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 14vw, 4.2rem);
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .detail-poster {
    max-width: 240px;
  }

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

  .detail-info h1 {
    font-size: 2.6rem;
  }

  .player-section,
  .text-panel,
  .tag-panel,
  .category-overview-card,
  .page-hero {
    padding: 18px;
  }

  .player-heading,
  .overview-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 430px) {
  .home-grid,
  .compact-grid,
  .category-page-grid,
  .overview-grid {
    gap: 12px;
  }

  .card-body {
    padding: 11px;
  }

  .card-body strong {
    font-size: 0.96rem;
  }

  .card-body em {
    font-size: 0.8rem;
  }

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