@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --mv-bg-0: #0b0f14;
  --mv-bg-1: #0d1220;
  --mv-bg-2: #101828;
  --mv-card: rgba(255, 255, 255, 0.06);
  --mv-card-strong: rgba(255, 255, 255, 0.09);
  --mv-line: rgba(255, 255, 255, 0.12);
  --mv-text: #f4f6fb;
  --mv-muted: rgba(244, 246, 251, 0.7);
  --mv-accent: #ff7a59;
  --mv-accent-2: #ffb454;
  --mv-good: #46d9b9;
  --mv-warn: #f6c453;
  --mv-bad: #ff6b6b;
  --mv-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --mv-radius: 18px;
  --mv-radius-sm: 12px;
  --mv-gap-1: 8px;
  --mv-gap-2: 12px;
  --mv-gap-3: 16px;
  --mv-gap-4: 24px;
  --mv-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--mv-font);
  color: var(--mv-text);
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(90, 120, 210, 0.28), transparent 60%),
    radial-gradient(800px 520px at 92% 0%, rgba(255, 122, 89, 0.18), transparent 55%),
    radial-gradient(700px 520px at 50% 110%, rgba(70, 210, 190, 0.18), transparent 60%),
    linear-gradient(180deg, #0b0f14 0%, #0d1220 50%, #0a0e14 100%);
  background-attachment: fixed;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: -20% -10%;
  background:
    radial-gradient(520px 420px at 12% 18%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(600px 480px at 85% 8%, rgba(255, 255, 255, 0.06), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 18px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: url("/logo/Logo.png") center no-repeat;
  background-size: 60vmin;
  opacity: 0.25;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.9));
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 720px) {
  body::after { background-size: 110vmin; }
}
body > * { position: relative; z-index: 1; }

img, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.mv-page { min-height: 100vh; display: flex; flex-direction: column; }
.mv-content,
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px 120px;
}
.mv-narrow { max-width: 980px; }
.mv-center { display: flex; align-items: center; justify-content: center; }
.mv-auth main { padding-top: 40px; }

.mv-topbar,
.topbar,
header.mv-topbar,
nav.mv-topbar,
nav.nav,
nav.mv-nav,
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(10, 14, 20, 0.78);
  border-bottom: 1px solid var(--mv-line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid var(--mv-line);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: var(--mv-shadow);
}
button.logo {
  cursor: pointer;
  color: inherit;
  padding: 0;
  border: 1px solid var(--mv-line);
}
.brand-text small,
.brand small {
  display: block;
  font-size: 12px;
  color: var(--mv-muted);
  margin-top: 2px;
}

.nav,
.nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nav a,
.nav-links a,
nav a {
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(16, 22, 32, 0.7);
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.nav a:hover,
.nav-links a:hover,
nav a:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(26, 36, 52, 0.9);
}
.nav a.active,
.nav-links a.active,
nav a.active {
  border-color: rgba(255, 122, 89, 0.7);
  background: linear-gradient(140deg, rgba(255, 122, 89, 0.35), rgba(255, 180, 84, 0.12));
  font-weight: 600;
}
.nav-user { margin-left: auto; }

/* Menu bar inspired by menuebar style 03 (one level, skin base/dark) */
.mv-nav-three {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mv-nav-three a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  white-space: nowrap;
}
.mv-nav-three a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: calc(50% - 0.75px);
  width: 16px;
  height: 1.5px;
  opacity: 0;
  background: rgba(244, 246, 251, 0.45);
}
.mv-nav-three a::after {
  content: "";
  position: relative;
  flex: 1;
  height: 1.5px;
  margin-left: 12px;
  opacity: 0;
  background: rgba(244, 246, 251, 0.45);
}
.mv-nav-three a.active::before,
.mv-nav-three a.active::after {
  opacity: 1;
}

@media (prefers-color-scheme: light) {
  .mv-nav-three a::before,
  .mv-nav-three a::after {
    background: rgba(15, 22, 33, 0.35);
  }
}

/* Slide-out menu drawer (menuebar style 03, one level) */
.mv-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 14, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 45;
}
.mv-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  padding: 20px 18px;
  background: rgba(10, 14, 20, 0.95);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 50;
}
.mv-drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.mv-drawer-title {
  font-weight: 700;
}
.mv-drawer-sub {
  color: var(--mv-muted);
  font-size: 12px;
  margin-top: 2px;
}
.mv-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mv-drawer-nav a {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 10px;
  position: relative;
}
.mv-drawer-nav a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: calc(50% - 0.75px);
  width: 12px;
  height: 1.5px;
  opacity: 0;
  background: rgba(244, 246, 251, 0.45);
}
.mv-drawer-nav a::after {
  content: "";
  position: relative;
  flex: 1;
  height: 1.5px;
  margin-left: 12px;
  opacity: 0;
  background: rgba(244, 246, 251, 0.45);
}
.mv-drawer-nav a.active::before,
.mv-drawer-nav a.active::after {
  opacity: 1;
}
.mv-drawer-nav a.active {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(26, 36, 52, 0.9);
  font-weight: 600;
}
.mv-drawer-nav a.active::before,
.mv-drawer-nav a.active::after {
  opacity: 0;
}
.mv-drawer-open .mv-drawer {
  transform: translateX(0);
}
.mv-drawer-open .mv-drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

.card,
.mv-card,
.profile-card,
.detail-card,
.detail-item,
.sceneHeader,
.aggStarsBox {
  background: linear-gradient(165deg, var(--mv-card-strong), var(--mv-card));
  border: 1px solid var(--mv-line);
  border-radius: var(--mv-radius);
  box-shadow: var(--mv-shadow);
  padding: 18px;
}
.card h2,
.mv-card h2 { margin: 0 0 12px; font-size: 16px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

button,
.btn,
.btnWarn,
.btnDanger {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.45), rgba(255, 180, 84, 0.22));
  color: var(--mv-text);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
button:hover,
.btn:hover,
.btnWarn:hover,
.btnDanger:hover { transform: translateY(-1px); border-color: rgba(255, 255, 255, 0.35); }
button.secondary,
.btn.secondary,
.secondary {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.2); }
.btnWarn {
  background: rgba(246, 196, 83, 0.2);
  border-color: rgba(246, 196, 83, 0.6);
}
.btnDanger {
  background: rgba(255, 107, 107, 0.2);
  border-color: rgba(255, 107, 107, 0.6);
}
button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 20, 0.7);
  color: var(--mv-text);
  padding: 10px 12px;
  font-size: 14px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 122, 89, 0.35);
  outline-offset: 2px;
}
input::placeholder,
textarea::placeholder { color: rgba(244, 246, 251, 0.55); }
input[type="checkbox"],
input[type="radio"] { width: auto; border-radius: 6px; }

label { display: block; font-size: 12px; color: var(--mv-muted); margin: 10px 0 6px; }
.muted,
.sub,
.section-note { color: var(--mv-muted); font-size: 12px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mv-gap-2); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--mv-gap-2); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mv-gap-3); }
.details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile-cards { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; }

.mv-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mv-inline-start { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.mv-grow { flex: 1; }
.mv-auto { width: auto; }
.mv-gap-top { margin-top: 10px; }
.mv-gap-top-lg { margin-top: 16px; }
.mv-text-center { text-align: center; }
.mv-text-right { text-align: right; }

.pill,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: var(--mv-muted);
}
.badge.admin { border-color: rgba(255, 107, 107, 0.6); color: #ffd3d3; }

pre {
  background: rgba(9, 12, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 12px;
  overflow: auto;
  max-height: 320px;
  white-space: pre-wrap;
  word-break: break-word;
}

.hr { height: 1px; background: rgba(255, 255, 255, 0.12); margin: 14px 0; }

.table-wrap { width: 100%; overflow-x: auto; }

table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
thead th { text-align: left; font-size: 12px; color: var(--mv-muted); padding: 8px 10px; }
tbody tr {
  background: rgba(10, 14, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
tbody td { padding: 10px 10px; font-size: 12px; vertical-align: top; }
tbody tr td:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
tbody tr td:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }

.tableLite { width: 100%; border-collapse: collapse; }
.tableLite th,
.tableLite td { border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 8px 6px; font-size: 12px; }
.tableLite th { text-align: left; }
.tableLite tr.clickable:hover { background: rgba(255, 255, 255, 0.04); }

.sceneHeader { padding: 14px; }
.sceneMeta { margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.sceneTitle { font-weight: 700; }

.rating-group { margin-top: 10px; }
.rating-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.star-rating { display: inline-flex; gap: 6px; font-size: 1.9rem; cursor: pointer; user-select: none; line-height: 1; }
.star-rating span { color: rgba(255, 255, 255, 0.18); transition: transform 0.08s ease, color 0.15s ease; }
.star-rating span.active,
.star-rating span.hover { color: var(--mv-accent-2); transform: translateY(-1px); }
.rating-hint { margin-top: 6px; font-size: 12px; color: var(--mv-muted); line-height: 1.3; }
.hint-scale { display: flex; gap: 10px; flex-wrap: wrap; }
.hint-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  background: rgba(9, 12, 18, 0.7);
}
.rating-error { margin-top: 6px; font-size: 12px; color: var(--mv-bad); display: none; }

.stars-readonly { display: inline-flex; gap: 4px; font-size: 1.4rem; line-height: 1; vertical-align: middle; }
.stars-readonly .star { color: rgba(255, 255, 255, 0.18); }
.stars-readonly .star.filled { color: var(--mv-accent-2); }
.stars-readonly .star.half {
  background: linear-gradient(90deg, var(--mv-accent-2) 50%, rgba(255, 255, 255, 0.18) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.barRow { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.barHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barLabel { font-size: 13px; color: var(--mv-muted); letter-spacing: 0.02em; }
.barTrack {
  height: 10px;
  border: 1px solid rgba(176, 152, 255, 0.35);
  border-radius: 999px;
  background: rgba(12, 10, 20, 0.75);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 210, 0.08);
}
.barFill {
  height: 100%;
  background: linear-gradient(90deg, rgba(170, 145, 255, 0.45), rgba(210, 190, 255, 0.85));
  box-shadow:
    0 0 12px rgba(170, 145, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  position: relative;
}
.barFill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  opacity: 0.8;
  pointer-events: none;
}
.barValue { font-size: 12px; color: var(--mv-muted); }

@media (max-width: 720px) {
  .barHeader { font-size: 12px; }
  .barLabel { font-size: 12px; }
  .barValue { font-size: 11px; }
  .barTrack { height: 9px; }
}

.tabbar { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 14, 20, 0.7);
  color: var(--mv-text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.tab-btn.active {
  border-color: rgba(255, 122, 89, 0.6);
  background: linear-gradient(120deg, rgba(255, 122, 89, 0.35), rgba(255, 180, 84, 0.12));
  font-weight: 600;
}

.scene-layout { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 16px; align-items: start; }
.scene-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(9, 12, 18, 0.7);
}
.scene-item {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 18, 26, 0.8);
  color: var(--mv-text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
.scene-item:hover { background: rgba(18, 26, 36, 0.9); border-color: rgba(255, 255, 255, 0.25); }
.scene-item.active {
  border-color: rgba(255, 122, 89, 0.6);
  background: linear-gradient(120deg, rgba(255, 122, 89, 0.3), rgba(255, 180, 84, 0.12));
  font-weight: 600;
}

.mv-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: rgba(10, 14, 20, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  z-index: 40;
}
.mv-bottom-nav a {
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  font-size: 12px;
  white-space: nowrap;
  flex: 1 0 auto;
}
.mv-bottom-nav a.active {
  border-color: rgba(255, 122, 89, 0.6);
  background: linear-gradient(140deg, rgba(255, 122, 89, 0.35), rgba(255, 180, 84, 0.12));
  font-weight: 600;
}

.mv-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}
.mv-hero h2 { font-size: 32px; line-height: 1.1; letter-spacing: -0.4px; }
.mv-hero p { margin: 0 0 14px; color: var(--mv-muted); font-size: 15px; line-height: 1.6; }
.mv-app-promo {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 122, 230, 0.35);
  background: rgba(16, 12, 30, 0.7);
}
.mv-app-aside .mv-app-promo {
  margin-top: 0;
  grid-template-columns: 1fr;
}
.mv-app-text h3 {
  margin: 8px 0 6px;
  font-size: 16px;
}
.mv-app-text p {
  margin: 0 0 12px;
  color: var(--mv-muted);
  font-size: 14px;
}
.mv-app-shot {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 122, 230, 0.4);
  box-shadow: 0 16px 32px rgba(6, 4, 16, 0.5);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.mv-app-shot:hover {
  transform: translateY(-2px);
  border-color: rgba(178, 141, 255, 0.8);
}
.mv-app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; align-items: center; font-size: 14px; }
.kv .k { color: var(--mv-muted); }

.profile-name { font-size: 18px; font-weight: 700; }
.profile-note { color: var(--mv-muted); font-size: 12px; margin-top: 6px; }
.detail-label { font-size: 11px; color: var(--mv-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-value { font-size: 13px; }

.status { font-size: 12px; }
.status.ok { color: var(--mv-good); }
.status.warn { color: var(--mv-warn); }
.status.err { color: var(--mv-bad); }

footer { margin-top: 14px; color: var(--mv-muted); font-size: 12px; text-align: center; }

@media (max-width: 980px) {
  .row, .row3, .grid, .details-grid, .profile-cards, .mv-hero, .scene-layout { grid-template-columns: 1fr; }
  .mv-app-promo { grid-template-columns: 1fr; }
}

.mv-admin-hero { margin-bottom: 16px; }
.mv-admin-hero h1 { margin: 0; font-size: 26px; }

@media (min-width: 1100px) {
  .mv-content,
  .wrap {
    max-width: 1080px;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 860px) {
  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
}

@media (max-width: 520px) {
  .mv-hero h2 { font-size: 26px; }
  .nav a, .nav-links a, nav a { font-size: 12px; padding: 6px 10px; }
}
/* --- Page specific helpers --- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hero h1 { margin: 0; font-size: 26px; }
.hero .sub { font-size: 14px; }

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title p { margin: 0; color: var(--mv-muted); font-size: 13px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-title {
  font-size: 12px;
  color: var(--mv-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.sceneDesc { color: var(--mv-muted); }

.filter-block { margin-top: 8px; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 4px 0 2px; }
.chip {
  width: auto;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 18, 26, 0.8);
  font-size: 12px;
  letter-spacing: 0.2px;
}
.chip.active {
  border-color: rgba(255, 122, 89, 0.6);
  background: linear-gradient(120deg, rgba(255, 122, 89, 0.35), rgba(255, 180, 84, 0.12));
  color: #fff;
}

.week-nav {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(130, 106, 210, 0.35);
  background: rgba(20, 14, 36, 0.8);
}

.week-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(173, 145, 255, 0.45);
  background: rgba(24, 18, 40, 0.7);
  color: var(--mv-text);
  font-size: 18px;
  font-weight: 600;
  padding: 0;
}

.week-nav-label {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #e8ddff;
}

.nav-pill {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 122, 89, 0.6);
  background: rgba(255, 122, 89, 0.12);
  white-space: nowrap;
}

.mv-card-title { margin: 0 0 10px; font-size: 15px; }
.mv-align-center { align-self: center; }

.mv-auth .card { width: 100%; max-width: 780px; }

nav.mv-nav.footer {
  position: static;
  margin-top: 18px;
  border-top: 1px solid var(--mv-line);
  border-bottom: none;
  background: rgba(10, 14, 20, 0.78);
}

@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
}
/* Override legacy mv-nav so it does not stick to top */
nav.mv-nav {
  position: static;
  top: auto;
  z-index: auto;
  padding: 12px 20px;
  background: rgba(10, 14, 20, 0.78);
  border-bottom: 1px solid var(--mv-line);
}
.meta {
  border: 1px solid var(--mv-line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--mv-radius);
  padding: 16px;
}
.meta h3 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--mv-muted);
}
.mv-gap-top-sm { margin-top: 6px; }
.mv-gap-bottom { margin-bottom: 8px; }
.mv-hr-tight { margin: 10px 0; }
.mv-hr-wide { margin: 12px 0; }
.mv-card-compact { padding: 12px; }
.mv-panel {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mv-radius-sm);
  background: rgba(9, 12, 18, 0.7);
}
.notice {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 18, 26, 0.7);
  color: var(--mv-text);
  font-size: 12px;
}
.mv-label-small { font-size: 12px; }
.mv-link-block { display: inline-block; text-decoration: none; }
.mv-ml-auto { margin-left: auto; }

/* --- iOS inspired refresh --- */
:root {
  --mv-font: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mv-bg-0: #0b0716;
  --mv-bg-1: #130c26;
  --mv-bg-2: #1a1133;
  --mv-card: rgba(28, 20, 52, 0.78);
  --mv-card-strong: rgba(36, 26, 66, 0.92);
  --mv-line: rgba(130, 106, 210, 0.35);
  --mv-text: #f5f1ff;
  --mv-muted: rgba(229, 220, 255, 0.68);
  --mv-accent: #8b5cf6;
  --mv-accent-2: #b28dff;
  --mv-good: #38d39f;
  --mv-shadow: 0 22px 48px rgba(6, 4, 16, 0.6);
  --mv-radius: 22px;
  --mv-radius-sm: 14px;
}

body {
  background:
    radial-gradient(900px 640px at 12% -12%, rgba(128, 85, 255, 0.35), transparent 60%),
    radial-gradient(700px 520px at 92% 8%, rgba(75, 170, 255, 0.2), transparent 60%),
    radial-gradient(820px 520px at 50% 110%, rgba(178, 141, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #0a0614 0%, #120b23 52%, #0a0614 100%);
  background-attachment: fixed;
}

body::before {
  background:
    radial-gradient(520px 420px at 10% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    radial-gradient(600px 520px at 85% 10%, rgba(255, 255, 255, 0.05), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 18px);
  opacity: 0.55;
}

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

.topbar,
.mv-topbar {
  background: rgba(8, 6, 18, 0.72);
  border-bottom: 1px solid rgba(128, 106, 210, 0.25);
  backdrop-filter: blur(16px);
}

.brand-text .mv-brand-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.logo {
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(154, 122, 255, 0.65), rgba(75, 52, 140, 0.8));
  border: 1px solid rgba(168, 140, 255, 0.45);
  box-shadow: 0 10px 22px rgba(15, 9, 34, 0.65);
}

.mv-pill,
.nav-pill {
  border-color: rgba(173, 145, 255, 0.5);
  background: rgba(138, 95, 255, 0.2);
  color: #e8ddff;
}

.mv-top-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(173, 145, 255, 0.5);
  background: rgba(24, 18, 44, 0.8);
  color: #e8ddff;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.icon-btn .icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card,
.mv-card,
.profile-card,
.detail-card,
.detail-item,
.sceneHeader,
.aggStarsBox {
  background: linear-gradient(160deg, var(--mv-card-strong), var(--mv-card));
  border: 1px solid rgba(148, 122, 230, 0.4);
  box-shadow: 0 18px 40px rgba(7, 5, 18, 0.6);
}

button,
.btn,
.btnWarn,
.btnDanger {
  border-color: rgba(168, 140, 255, 0.55);
  background: linear-gradient(135deg, rgba(120, 86, 255, 0.7), rgba(178, 141, 255, 0.35));
}

button.secondary,
.btn.secondary,
.secondary {
  background: rgba(24, 18, 40, 0.7);
  border-color: rgba(130, 106, 210, 0.4);
}

.tab-btn.active,
.chip.active {
  border-color: rgba(178, 141, 255, 0.75);
  background: linear-gradient(120deg, rgba(120, 86, 255, 0.45), rgba(178, 141, 255, 0.2));
}

.scene-list {
  background: rgba(16, 12, 28, 0.7);
  border: 1px solid rgba(130, 106, 210, 0.3);
}

.scene-item {
  border-radius: 16px;
  background: rgba(24, 18, 40, 0.8);
  border: 1px solid rgba(130, 106, 210, 0.35);
  padding: 12px 14px;
}

.scene-item.active {
  border-color: rgba(178, 141, 255, 0.85);
  background: linear-gradient(130deg, rgba(120, 86, 255, 0.4), rgba(178, 141, 255, 0.18));
}

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

.match-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(130, 106, 210, 0.35);
  background: rgba(20, 14, 36, 0.85);
  color: var(--mv-text);
}

.match-card.active {
  border-color: rgba(178, 141, 255, 0.9);
  background: linear-gradient(140deg, rgba(120, 86, 255, 0.35), rgba(178, 141, 255, 0.18));
}

.match-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--mv-muted);
  font-size: 12px;
}

.match-teams {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.match-league {
  border: 1px solid rgba(173, 145, 255, 0.55);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: #e8ddff;
  background: rgba(138, 95, 255, 0.2);
}

.match-arrow {
  font-size: 16px;
  color: var(--mv-muted);
}

@media (max-width: 768px) {
  .match-meta {
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 6px;
  }
  .match-card {
    grid-template-columns: 72px 1fr;
    grid-auto-rows: auto;
  }
  .match-league,
  .match-stat-link {
    white-space: nowrap;
    font-size: 11px;
    padding: 3px 8px;
  }
  .match-arrow {
    margin-left: 6px;
  }
}

.mv-live-card {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
  }
  .mv-live-content { display: flex; flex-direction: column; gap: 6px; width: 100%; }

.mv-live-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(138, 95, 255, 0.2);
  border: 1px solid rgba(173, 145, 255, 0.45);
  font-weight: 700;
}

.mv-live-title {
  font-size: 16px;
  font-weight: 600;
}

.mv-live-sub {
    font-size: 12px;
    color: var(--mv-muted);
  }

  .mv-live-list { display: grid; gap: 8px; margin-top: 6px; }
  .mv-live-match {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(12, 14, 22, 0.55);
    color: inherit;
    text-align: left;
    cursor: pointer;
  }
  .mv-live-match:hover { border-color: rgba(255, 255, 255, 0.2); }
  .mv-live-match-title { font-weight: 600; }
  .mv-live-match-time { font-size: 12px; color: var(--mv-muted); white-space: nowrap; }

@media (max-width: 720px) {
  .mv-live-card { align-items: flex-start; }
  .mv-live-match { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  .mv-admin .table-wrap { overflow-x: visible; }
  .mv-admin .table-wrap table { border-spacing: 0; }
  .mv-admin .table-wrap thead { display: none; }
  .mv-admin .table-wrap tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }
  .mv-admin .table-wrap tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
  }
  .mv-admin .table-wrap tbody td::before {
    content: attr(data-label);
    color: var(--mv-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
  .mv-admin .table-wrap tbody td[data-label="Aktion"] {
    align-items: flex-start;
  }
  .mv-admin .table-wrap tbody td[data-label="Aktion"]::before {
    margin-top: 6px;
  }
  .mv-admin .table-wrap tbody td .mv-inline {
    width: 100%;
    gap: 8px;
  }
  .mv-admin .table-wrap tbody td .mv-inline button {
    flex: 1;
  }
  .mv-admin .table-wrap tbody td.section-note {
    display: block;
    padding: 6px 0;
  }
  .mv-admin .table-wrap tbody td.section-note::before {
    content: none;
  }
}

.rating-scale {
  display: inline-flex;
  gap: 6px;
  margin-top: 8px;
}

.rating-scale span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
  text-stroke: 1px rgba(255, 255, 255, 0.9);
}

.rating-scale span.active,
.rating-scale span.hover {
  color: #f6c34a;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.9);
  text-stroke: 1px rgba(255, 255, 255, 0.9);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.choice-row button {
  height: auto;
  min-height: 44px;
  font-size: 13px;
  line-height: 1.2;
  background: rgba(20, 14, 36, 0.8);
  border-color: rgba(130, 106, 210, 0.35);
  padding: 8px 10px;
  white-space: normal;
  text-wrap: balance;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 600px) {
  .choice-row button {
    font-size: 12px;
    min-height: 56px;
  }
}

.choice-row button.active {
  background: linear-gradient(140deg, rgba(120, 86, 255, 0.5), rgba(178, 141, 255, 0.25));
  border-color: rgba(178, 141, 255, 0.85);
}

.section-title h2 {
  font-size: 18px;
}

.hero {
  padding-bottom: 6px;
}

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

@media (max-width: 720px) {
  .match-card {
    grid-template-columns: 70px 1fr;
  }
  .match-meta {
    justify-self: end;
  }
}

.profile-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-email {
  font-size: 20px;
  font-weight: 700;
}

.profile-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-list {
  display: grid;
  gap: 10px;
}

.profile-list .detail-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(18, 12, 32, 0.75);
  border: 1px solid rgba(130, 106, 210, 0.3);
}

.profile-list .detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
