* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.74);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(6, 182, 212, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --cyan-soft: rgba(6, 182, 212, 0.16);
  --yellow: #facc15;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 36rem),
    linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #001018;
  background: linear-gradient(135deg, #67e8f9, #06b6d4 54%, #22c55e);
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.28);
}

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

.brand-copy strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.02em;
}

.brand-copy em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 210px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-drop-panel a,
.mobile-nav a {
  display: block;
  padding: 10px 12px;
  color: var(--muted-2);
  border-radius: 12px;
}

.nav-drop-panel a:hover,
.mobile-nav a:hover {
  color: var(--cyan);
  background: rgba(51, 65, 85, 0.78);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted-2);
  background: rgba(15, 23, 42, 0.65);
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-button:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: var(--cyan-soft);
}

.menu-button {
  display: none;
}

.search-bar,
.mobile-nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 16px;
  display: none;
}

.search-bar.active,
.mobile-nav.active {
  display: block;
}

.search-bar form {
  position: relative;
  display: flex;
  gap: 10px;
}

.search-bar input,
.filter-toolbar input,
.filter-toolbar select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: rgba(15, 23, 42, 0.88);
  padding: 13px 15px;
}

.search-bar input:focus,
.filter-toolbar input:focus,
.filter-toolbar select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.16);
}

.search-bar button,
.primary-button,
.ghost-button,
.section-more,
.category-showcase-head a {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  color: #001018;
  background: linear-gradient(135deg, #67e8f9, #06b6d4);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(6, 182, 212, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-bar button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.category-showcase-head a:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.34);
}

.hero {
  position: relative;
  min-height: 72vh;
  overflow: hidden;
  isolation: isolate;
}

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

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.08) 100%),
    linear-gradient(0deg, #020617 0%, transparent 40%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72vh;
  padding: 92px 22px 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
}

.hero-content > * {
  max-width: 710px;
}

.hero-kicker,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-kicker a,
.hero-kicker span,
.detail-meta a,
.detail-meta span,
.card-meta a,
.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.16);
  font-size: 13px;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-one-line {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--text);
  font-weight: 700;
}

.hero-summary {
  margin: 18px 0 0;
  color: var(--muted-2);
  font-size: 16px;
  line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(15, 23, 42, 0.66);
  font-size: 12px;
}

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

.ghost-button {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: none;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: min(1236px, calc(100% - 44px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  z-index: 3;
}

.hero-dot {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-2);
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(14px);
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.hero-dot.active {
  border-color: var(--line-strong);
  background: rgba(8, 145, 178, 0.32);
}

.hero-dot img {
  width: 64px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-dot span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.quick-entry,
.page-shell,
.detail-shell,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 22px;
  padding-right: 22px;
}

.quick-entry {
  margin-top: -42px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-entry a,
.category-showcase-card,
.rank-panel,
.featured-panel,
.category-card,
.detail-card,
.side-card,
.podium-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.quick-entry a {
  padding: 22px;
  display: grid;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-entry a:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.quick-entry strong {
  font-size: 20px;
}

.quick-entry span,
.section-heading p,
.category-showcase-card p,
.category-card p,
.detail-card p,
.side-card span {
  color: var(--muted);
}

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

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

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

.section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-card h1,
.side-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.section-more {
  white-space: nowrap;
  font-size: 14px;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 44px rgba(6, 182, 212, 0.16);
}

.card-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

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

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

.poster-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.card-meta {
  gap: 6px;
  margin-bottom: 11px;
}

.card-meta a,
.card-meta span {
  min-height: auto;
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.category-card h2 a:hover,
.ranking-list a:hover span,
.ranking-table a:hover,
.compact-card:hover strong {
  color: var(--cyan);
}

.movie-card p {
  margin: 0 0 12px;
  min-height: 48px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 18px;
}

.rank-panel,
.featured-panel {
  padding: 22px;
}

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

.ranking-list a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.62);
}

.ranking-list strong {
  color: var(--yellow);
}

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

.ranking-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.category-showcase-card {
  padding: 18px;
  box-shadow: none;
}

.category-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.category-showcase-head span {
  font-size: 18px;
  font-weight: 800;
}

.category-showcase-head a {
  padding: 8px 12px;
  font-size: 13px;
}

.mini-poster-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.mini-poster-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
}

.page-shell,
.detail-shell {
  padding-top: 34px;
  padding-bottom: 60px;
}

.page-hero {
  min-height: 260px;
  display: grid;
  align-content: end;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 34rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  box-shadow: var(--shadow);
}

.page-hero span {
  color: var(--cyan);
  margin-bottom: 8px;
}

.page-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted-2);
  line-height: 1.8;
}

.category-list-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.category-card-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  min-height: 100%;
}

.category-card-cover img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

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

.category-card h2 {
  margin: 0 0 10px;
}

.category-sample-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-sample-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(30, 41, 59, 0.78);
  font-size: 13px;
}

.filter-section {
  padding-top: 28px;
}

.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 160px;
  gap: 12px;
  margin-bottom: 22px;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.65);
}

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

.podium-grid {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.podium-card {
  overflow: hidden;
}

.podium-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.podium-card span,
.podium-card h2,
.podium-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.podium-card span {
  display: inline-block;
  margin-top: 18px;
  color: var(--yellow);
  font-weight: 800;
}

.podium-card h2 {
  margin-top: 8px;
  margin-bottom: 10px;
  font-size: 24px;
}

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

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.66);
}

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

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

.ranking-table th {
  color: var(--cyan);
  background: rgba(30, 41, 59, 0.72);
}

.ranking-table td:first-child {
  color: var(--yellow);
  font-weight: 800;
}

.breadcrumb {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

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

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
}

.watch-main {
  min-width: 0;
}

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

.player-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  border: 0;
  display: grid;
  place-items: center;
  gap: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at center, rgba(6, 182, 212, 0.22), transparent 18rem),
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-ring {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #001018;
  background: linear-gradient(135deg, #67e8f9, #22d3ee);
  box-shadow: 0 22px 44px rgba(6, 182, 212, 0.34);
  font-size: 28px;
}

.player-cover strong {
  max-width: 80%;
  font-size: 24px;
  text-align: center;
}

.detail-card,
.side-card {
  margin-top: 20px;
  padding: 24px;
}

.detail-card h1 {
  margin-top: 18px;
}

.detail-one-line {
  margin: 14px 0 18px;
  color: var(--muted-2) !important;
  font-size: 18px;
  line-height: 1.7;
}

.detail-card h2 {
  margin: 26px 0 10px;
  font-size: 22px;
}

.detail-card p {
  line-height: 1.9;
}

.watch-side {
  min-width: 0;
}

.poster-info {
  display: grid;
  gap: 14px;
}

.poster-info img {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 18px;
  object-fit: cover;
}

.poster-info strong,
.poster-info span {
  display: block;
}

.poster-info strong {
  margin-bottom: 8px;
}

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

.compact-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
}

.compact-card img {
  width: 86px;
  height: 60px;
  object-fit: cover;
  border-radius: 12px;
}

.compact-card strong,
.compact-card em {
  display: block;
}

.compact-card strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.compact-card em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.9);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted-2);
}

.footer-links a:hover {
  color: var(--cyan);
}

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

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

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

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

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

  .menu-button {
    display: grid;
  }

  .hero-content {
    padding-top: 78px;
    padding-bottom: 190px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
    bottom: 18px;
  }

  .hero-dot {
    display: none;
  }

  .hero-dot.active {
    display: flex;
  }

  .quick-entry,
  .movie-grid,
  .category-showcase-grid,
  .category-list-grid,
  .podium-grid,
  .watch-side {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    padding: 30px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand-copy em {
    display: none;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .header-inner,
  .quick-entry,
  .page-shell,
  .detail-shell,
  .content-section,
  .podium-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .movie-grid {
    gap: 14px;
  }

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