:root {
  --bg: #050816;
  --bg-soft: #050818;
  --card: rgba(15, 23, 42, 0.92);
  --border-soft: rgba(148, 163, 184, 0.28);
  --muted: #9ca3af;
  --text: #f9fafb;
  --accent: #f97316;
  --accent-soft: rgba(248, 113, 113, 0.18);
  --danger: #e11d48;
  --radius-xl: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.26s ease-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #020617 0, #020617 32%, #020617 60%, #020617 100%);
  background-color: #020617;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

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

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

button {
  font-family: inherit;
}

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 顶部导航 */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.7), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 24px 8px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img {
  width: 30px;
  height: 30px;
}

.nav-app-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 24px;
}

.nav-link {
  position: relative;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 14px;
  color: #cbd5f5;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.nav-link:hover {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7ff;
  transform: translateY(-1px);
}

.nav-link-active {
  background: radial-gradient(circle at 0 0, rgba(248, 113, 22, 0.94), rgba(168, 85, 247, 0.94));
  color: #0b1020;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(248, 113, 22, 0.45);
}

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

.nav-search {
  position: relative;
}

.nav-search input {
  width: 210px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
  padding: 6px 10px;
  padding-left: 32px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.nav-search input::placeholder {
  color: rgba(148, 163, 184, 0.72);
}

.nav-search input:focus {
  border-color: rgba(248, 113, 22, 0.88);
  box-shadow: 0 0 0 1px rgba(248, 113, 22, 0.42);
}

.nav-download-btn {
  padding: 7px 13px;
  font-size: 13px;
}

/* Mobile nav toggle */

.nav-menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.86);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.nav-menu-toggle span {
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.nav-mobile-panel {
  display: none;
  padding: 0 16px 10px;
  border-top: 1px solid rgba(30, 64, 175, 0.45);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
}

.nav-mobile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 0 6px;
}

.nav-mobile-links a {
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.38);
}

.nav-search-mobile {
  margin-bottom: 6px;
}

.nav-search-mobile input {
  width: 100%;
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-med), color var(--transition-med), box-shadow var(--transition-med), transform var(--transition-med), border-color var(--transition-med);
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #f97316, #ea580c);
  color: #0b1020;
  box-shadow: 0 12px 30px rgba(248, 113, 22, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(248, 113, 22, 0.7);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.55);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(248, 113, 22, 0.8);
  color: #fee2e2;
}

/* Hero */

.hero {
  position: relative;
  min-height: auto;
  padding: 14px 0 12px;
  overflow: hidden;
  color: var(--text);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 0 0, rgba(248, 113, 22, 0.12), transparent 55%),
    radial-gradient(circle at 30% 0, rgba(59, 130, 246, 0.22), transparent 55%),
    radial-gradient(circle at 80% -10%, rgba(236, 72, 153, 0.3), transparent 65%),
    radial-gradient(circle at 50% 120%, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 1));
  opacity: 0.95;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(15, 23, 42, 0.2), transparent 55%),
    linear-gradient(to bottom, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 1));
  mix-blend-mode: normal;
}

.hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 0;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96));
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.98);
}

.hero-logo {
  width: 32px;
  height: 32px;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-app-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero-slogan {
  font-size: 13px;
  color: rgba(209, 213, 219, 0.88);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.98);
  color: rgba(229, 231, 235, 0.9);
}

/* Hero main (QR / download) */

.hero-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.qr-panel {
  width: 220px;
  padding: 12px 10px 10px;
  border-radius: 20px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.96), #020617);
  border: 1px solid rgba(148, 163, 184, 0.55);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.98);
}

.qr-title {
  font-size: 13px;
  margin-bottom: 10px;
}

.qr-box {
  width: 150px;
  height: 150px;
  margin: 0 auto 10px;
  border-radius: 18px;
  overflow: hidden;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-tip {
  font-size: 11px;
  color: rgba(209, 213, 219, 0.8);
  text-align: center;
}

.qr-domain {
  display: inline-block;
  margin-left: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

/* Mobile download panel */

.m-download-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.96);
}

.m-domain-tip {
  font-size: 12px;
  color: rgba(209, 213, 219, 0.86);
}

.m-domain {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(148, 163, 184, 0.65);
}

.m-download-btn {
  width: 100%;
  padding: 9px 10px;
  font-size: 13px;
}

.m-sub-tip {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.96);
}

/* Hero actions */

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hero-web-btn {
  padding: 7px 14px;
  font-size: 13px;
}

.hero-web-desc {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
}

/* Content */

.content {
  flex: 1;
  padding-top: 10px;
}

/* Section */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 22px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-header-main h2 {
  margin: 0 0 4px;
  font-size: 17px;
}

.section-header-main p {
  margin: 0;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.92);
}

.section-more {
  font-size: 12px;
  color: rgba(129, 140, 248, 0.96);
}

/* 卡片区：Netflix 风 2:3 海报网格 */

.hot-list-wrapper {
  position: relative;
}

.hot-list {
  display: grid;
  grid-gap: 14px;
  padding-bottom: 6px;
}

/* 卡片 */

.hot-item {
  width: 100%;
  max-width: 180px;
  color: var(--text);
}

.hot-link {
  display: block;
}

.hot-cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 2 / 3;
  box-shadow: 0 16px 26px rgba(15, 23, 42, 0.9);
  transform-origin: center;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

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

.hot-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.88), transparent 40%);
  opacity: 0.85;
  pointer-events: none;
}

.hot-meta {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.hot-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hot-sub {
  font-size: 11px;
  color: rgba(209, 213, 219, 0.88);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 评分（星 + 数字） */

.hot-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #fde68a;
}

.hot-rating-star {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #facc15, #f97316);
}

/* Hover */

.hot-link:hover .hot-cover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.95);
}

/* Footer */

.footer {
  margin-top: 24px;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px 18px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.95);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-meta {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.88);
}

/* Utility */

.pc-only {
  display: block;
}

.mobile-only {
  display: none;
}

/* Responsive */

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

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .hero-inner {
    padding: 12px 16px 16px;
    gap: 14px;
    min-height: 0;
  }

  .nav-inner {
    padding: 8px 14px 6px;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-download-btn {
    display: none;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-logo img {
    width: 26px;
    height: 26px;
  }

  .nav-app-name {
    font-size: 15px;
  }

  .hero-logo-row {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .hero-logo {
    width: 30px;
    height: 30px;
  }

  .hero-app-name {
    font-size: 16px;
  }

  .hero-slogan {
    font-size: 12px;
  }

  .hero-badges {
    gap: 6px;
  }

  .badge {
    font-size: 10px;
    padding: 3px 7px;
  }

  .hero-main {
    margin-top: 6px;
  }

  .hero-actions {
    margin-top: 6px;
  }

  .hero-web-desc {
    font-size: 11px;
  }

  .hero-web-btn {
    min-width: 160px;
  }

  .pc-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }

  .section {
    padding: 0 16px;
  }

  .hot-item {
    width: 100%;
    max-width: 180px;
  }
}

/* Tablet-ish */

@media (max-width: 1024px) and (min-width: 769px) {
  .nav-inner {
    padding: 9px 18px 7px;
  }

  .hero-inner {
    padding: 12px 18px 14px;
  }
}

/* Grid layout for content cards (Netflix-like 2:3 posters) */
@media (min-width: 1024px) {
  .hot-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .hot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .hot-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* 修复列表页 CLS（movie / tv 通用） */
.media-card .poster{
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  background:#0b1020;
  overflow:hidden;
}

.media-card .poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
