:root {
  --bg: #080b12;
  --bg2: #0d1320;
  --panel: #101827;
  --panel2: #141e31;
  --text: #f5f7ff;
  --muted: #a9b4ca;
  --line: #24304a;
  --accent: #8e61ff;
  --accent2: #45d0ff;
  --glow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(142, 97, 255, 0.20), transparent 24%),
    radial-gradient(circle at left center, rgba(69, 208, 255, 0.10), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
main { flex: 1; min-height: calc(100vh - 180px); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(8, 11, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}
.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8e61ff, #6f49ff);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(111, 73, 255, 0.35);
  flex-shrink: 0;
}
.brand-mark-core {
  position: absolute;
  inset: 8px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 65%, rgba(255, 255, 255, 0) 100%);
}
.brand-play {
  position: relative;
  left: 1px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid #fff;
}
.brand-text {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.72rem;
  font-weight: 900;
}
.brand-beat { color: var(--accent); }
.brand-rova { color: #fff; }

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(142, 97, 255, 0.16);
  border: 1px solid rgba(142, 97, 255, 0.48);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}
.back-button:hover {
  background: rgba(142, 97, 255, 0.24);
  border-color: rgba(142, 97, 255, 0.75);
}
.back-button .arrow { font-size: 1.05rem; line-height: 1; }
.nav { display: none; }
.admin-nav { display: flex; gap: 16px; flex-wrap: wrap; }
.admin-nav a { color: #fff; opacity: 0.9; font-weight: 500; }
.admin-nav a:hover { color: var(--accent); opacity: 1; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark { width: 40px; height: 40px; }
.footer-brand-text { font-size: 1rem; }
.hero { padding: 76px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: stretch; }
.hero-card, .hero-side, .card, .detail-main, .side-card, .page-card, .form-card, .panel {
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.94), rgba(20, 30, 49, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--glow);
}
.hero-card { padding: 34px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent2);
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.02; margin: 0 0 14px; }
.hero-copy, .section-head p, .card-desc, .detail-description, .page-copy, .help, .meta-pill, .footer-note, .small {
  color: var(--muted);
  line-height: 1.7;
}
.hero-copy { font-size: 1.06rem; max-width: 680px; }
.hero-side { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.hero-side h3 { margin: 0 0 14px; font-size: 1.15rem; }
.feature-list { display: grid; gap: 12px; }
.feature-item { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 0 0 18px; }
.section-head h2 { margin: 0; font-size: 1.75rem; }
.videos-section, .page-section { padding: 4px 0 58px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { overflow: hidden; transition: transform .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(142, 97, 255, .45); }
.thumb-wrap { display: block; aspect-ratio: 16/9; background: #0b1220; overflow: hidden; }
.thumb { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .22s ease; }
.card:hover .thumb { transform: scale(1.03); }
.card-body { padding: 18px; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.card-title { font-size: 1.08rem; font-weight: 700; margin: 0; }
.meta-pill {
  white-space: nowrap;
  font-size: .8rem;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(142, 97, 255, 0.12);
  border: 1px solid rgba(142, 97, 255, 0.24);
}
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 24px 0 40px;
  margin-top: auto;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2fr) 330px; gap: 22px; padding: 28px 0 58px; }
.detail-main, .side-card, .page-card, .panel, .form-card { padding: 20px; }
.video-shell { width: 100%; background: #000; border-radius: 18px; overflow: hidden; margin-bottom: 18px; }
.video-shell video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }
.detail-title { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: 0 0 10px; }
.video-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: .9rem;
}
.side-card h2, .panel h1, .form-card h1, .page-card h1 { margin: 0 0 16px; }
.related-list { display: flex; flex-direction: column; gap: 12px; }
.related-item { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 10px; border-radius: 16px; }
.related-item:hover { background: rgba(255,255,255,.03); }
.related-item img { width: 110px; height: 64px; object-fit: cover; border-radius: 12px; display: block; }
.related-title { font-weight: 700; font-size: .95rem; line-height: 1.38; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0a1220;
  color: var(--text);
  outline: none;
}
textarea { min-height: 140px; resize: vertical; }
label { display: block; margin: 0 0 8px; font-weight: 600; }
.field { margin-bottom: 16px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #5e7bff);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
}
.btn.secondary { background: #131b2c; border: 1px solid var(--line); }
.notice { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; }
.notice.success { background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35); }
.notice.error { background: rgba(248, 113, 113, .12); border: 1px solid rgba(248, 113, 113, .35); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: #0a1220; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); }
.login-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 24px; }
.login-box {
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 22px;
  box-shadow: var(--glow);
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.96), rgba(20, 30, 49, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.hidden-ad { display: none; }

@media (max-width: 960px) {
  .hero-grid,
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .brand-text { font-size: 1.48rem; }
  .related-item { grid-template-columns: 92px 1fr; }
  .related-item img { width: 92px; height: 54px; }
}
