
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: rgba(15, 23, 42, 0.78);
  --bg-panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(6, 182, 212, 0.24);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --accent: #06b6d4;
  --accent-2: #3b82f6;
  --accent-3: #22d3ee;
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(6, 182, 212, 0.16), transparent 24%),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 22%),
    linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: rgba(6, 182, 212, 0.35);
  color: white;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

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

.site-header .inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(59, 130, 246, 0.95));
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.25);
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 2;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #67e8f9, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  background: rgba(6, 182, 212, 0.12);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.18);
}

.nav-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.search-mini {
  position: relative;
  width: min(320px, 36vw);
}

.search-mini input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 0.8rem 1rem 0.8rem 2.8rem;
  outline: none;
  transition: 160ms ease;
}

.search-mini input:focus {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.08);
}

.search-mini svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  stroke: var(--muted);
  stroke-width: 2;
  fill: none;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: white;
  align-items: center;
  justify-content: center;
}

.menu-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.92);
}

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

.mobile-panel .panel-inner {
  padding: 0.8rem 0 1rem;
}

.mobile-panel .nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.mobile-panel a.active {
  border-color: rgba(6, 182, 212, 0.34);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.08) inset;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.hero-stage {
  position: relative;
  min-height: 70vh;
  padding: 2rem 0 3rem;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(6, 182, 212, 0.16), transparent 20%),
    radial-gradient(circle at 84% 16%, rgba(59, 130, 246, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.9));
  pointer-events: none;
  z-index: 1;
}

.hero-slider {
  position: relative;
  z-index: 2;
  min-height: 70vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 460ms ease, transform 460ms ease;
  pointer-events: none;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.18) 24%, rgba(2, 6, 23, 0.72) 70%, rgba(2, 6, 23, 0.95) 100%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.44) 42%, rgba(2, 6, 23, 0.14) 100%);
}

.hero-grid {
  position: relative;
  z-index: 3;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  gap: 2rem;
  align-items: end;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-copy {
  padding: 1rem 0 0.8rem;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.14);
  box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.14);
  color: #7dd3fc;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-title {
  margin: 1rem 0 0.85rem;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 60ch;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.02rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #dbeafe;
  font-size: 0.86rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.45rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.92rem 1.2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: 170ms ease;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(6, 182, 212, 0.3);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: white;
  border-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-poster {
  align-self: stretch;
  display: flex;
  align-items: end;
  justify-content: end;
}

.hero-poster .poster-card {
  width: min(100%, 360px);
  aspect-ratio: 0.74 / 1;
}

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.66));
}

.poster-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1);
  transform: scale(1.03);
}

.poster-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06) 0%, rgba(2, 6, 23, 0.16) 35%, rgba(2, 6, 23, 0.9) 100%);
}

.poster-card .poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem;
}

.poster-card .poster-label {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.18);
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 700;
}

.poster-card .poster-title {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}

.poster-card .poster-subtitle {
  margin: 0;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.poster-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.poster-chip {
  padding: 0.34rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  font-size: 0.78rem;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 2.5rem;
  z-index: 4;
  display: flex;
  gap: 0.6rem;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(16px);
  transition: 170ms ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.section {
  padding: 3rem 0 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.section-title .title-icon {
  width: 26px;
  height: 26px;
  stroke: var(--accent-3);
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
}

.section-title small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}

.section-link {
  color: #67e8f9;
  font-size: 0.92rem;
  font-weight: 700;
}

.section-link:hover {
  color: white;
}

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

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.22);
  transition: 180ms ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: rgba(6, 182, 212, 0.34);
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.08);
}

.movie-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(59, 130, 246, 0.24)),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
}

.movie-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-image: var(--cover-image);
  opacity: 0.94;
  transform: scale(1.02);
}

.movie-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.58));
}

.movie-poster .poster-info {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
}

.poster-top-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.5rem;
}

.poster-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.18);
  color: #cffafe;
  font-size: 0.74rem;
  font-weight: 700;
}

.poster-year {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.74rem;
}

.poster-btm {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.poster-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.poster-line {
  margin: 0;
  color: #dbeafe;
  font-size: 0.8rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-body {
  padding: 0.85rem 0.9rem 1rem;
}

.movie-body p {
  margin: 0;
}

.movie-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
}

.movie-title:hover {
  color: #67e8f9;
}

.movie-sub {
  margin-top: 0.45rem !important;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
  color: var(--muted-2);
  font-size: 0.74rem;
}

.movie-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.movie-meta svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.card-list {
  display: grid;
  gap: 0.85rem;
}

.ranked-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.92), rgba(59, 130, 246, 0.92));
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
}

.ranked-item h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  line-height: 1.35;
}

.ranked-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.category-card {
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.62));
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.category-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.category-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.badge-row .pill {
  background: rgba(6, 182, 212, 0.09);
}

.panel {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb a:hover {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.9fr);
  gap: 1.4rem;
  align-items: start;
}

.player-shell {
  border-radius: 26px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.player-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.82));
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.player-topbar .title {
  min-width: 0;
}

.player-topbar h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.player-topbar p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.95));
}

.player video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.08), transparent 40%);
}

.play-button {
  pointer-events: auto;
  width: 84px;
  height: 84px;
  border: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(59, 130, 246, 0.95));
  box-shadow: 0 18px 40px rgba(6, 182, 212, 0.3);
  transition: 160ms ease;
}

.play-button:hover {
  transform: scale(1.05);
}

.play-button svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  margin-left: 2px;
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.95rem 1rem 1rem;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.control-row .small-btn {
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.72);
  color: white;
  cursor: pointer;
}

.control-row .small-btn:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.info-grid {
  display: grid;
  gap: 1rem;
}

.info-block {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.info-block h3 {
  margin: 0 0 0.8rem;
  font-size: 1.04rem;
}

.info-list {
  display: grid;
  gap: 0.65rem;
}

.info-list .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: start;
}

.info-list .label {
  color: #7dd3fc;
  min-width: 3.2rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.info-list .value {
  color: #e2e8f0;
  font-size: 0.9rem;
  flex: 1 1 0;
}

.detail-title {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
}

.detail-lead {
  margin: 0;
  color: #dbeafe;
  font-size: 1rem;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.detail-section {
  margin-top: 1rem;
}

.detail-section h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.detail-section p {
  margin: 0;
  color: #cbd5e1;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a,
.tag-list span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
  font-size: 0.82rem;
}

.search-page {
  padding: 2rem 0 0;
}

.search-bar {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.6fr));
}

.search-bar input,
.search-bar select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.76);
  color: var(--text);
  outline: none;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: rgba(6, 182, 212, 0.34);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.08);
}

.search-results {
  margin-top: 1rem;
}

.search-stats {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.footer {
  margin-top: 3.2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(2, 6, 23, 0.86);
}

.footer .inner {
  padding: 2rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.footer h4 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.note-box {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .grid-cards,
  .grid-cards.six,
  .category-grid,
  .footer .inner,
  .search-bar,
  .detail-layout,
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero-poster {
    justify-content: start;
  }

  .hero-poster .poster-card {
    width: min(100%, 280px);
  }
}

@media (max-width: 800px) {
  .main-nav,
  .search-mini,
  .header-actions .btn-ghost {
    display: none;
  }

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

  .hero-stage,
  .hero-grid,
  .hero-slider {
    min-height: auto;
  }

  .hero-grid {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .hero-controls {
    right: 0;
    bottom: 1rem;
  }

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

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

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

  .player-controls {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1rem), var(--container));
  }

  .site-header .inner {
    height: 64px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-title {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-desc,
  .detail-lead {
    font-size: 0.94rem;
  }

  .grid-cards,
  .grid-cards.six,
  .grid-cards.three,
  .grid-cards.two,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-controls {
    position: static;
    margin-top: 1rem;
    justify-content: flex-start;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-stage {
    padding-bottom: 1.5rem;
  }

  .hero-poster .poster-card {
    width: 100%;
  }
}
