/* ==========================================================================
   SwitchVault Pro — Nintendo Switch OLED Neon Red & Blue Responsive Theme
   ========================================================================== */

:root {
  --sv-red: #e60012;
  --sv-red-hover: #ff1e2d;
  --sv-blue: #0ab9e6;
  --sv-blue-hover: #29d0fb;
  --sv-gold: #ffbe0b;
  --sv-green: #10b981;

  --sv-bg: #0b0e14;
  --sv-surface: #131824;
  --sv-surface-2: #1b2232;
  --sv-border: rgba(255, 255, 255, 0.08);
  --sv-text: #f8fafc;
  --sv-muted: #94a3b8;
  --sv-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  --sv-radius: 14px;
  --sv-radius-sm: 9px;
  --sv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

body.sv-theme-light {
  --sv-bg: #f4f6fa;
  --sv-surface: #ffffff;
  --sv-surface-2: #edf1f7;
  --sv-border: rgba(15, 23, 42, 0.1);
  --sv-text: #0f172a;
  --sv-muted: #475569;
  --sv-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--sv-font);
  background: var(--sv-bg);
  color: var(--sv-text);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--sv-blue);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--sv-blue-hover);
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.sv-container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 18px;
}

.sv-main-pad {
  padding-top: 26px;
  padding-bottom: 48px;
}

/* ---------- Header ---------- */
.sv-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sv-border);
}

body.sv-theme-light .sv-header {
  background: rgba(255, 255, 255, 0.94);
}

.sv-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.sv-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sv-text);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.sv-brand-link:hover {
  color: var(--sv-text);
}

.sv-joycon-mark {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.sv-jc-left,
.sv-jc-right {
  width: 12px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.sv-jc-left {
  background: var(--sv-blue);
  border-radius: 7px 2px 2px 7px;
}

.sv-jc-left::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #0b0e14;
}

.sv-jc-right {
  background: var(--sv-red);
  border-radius: 2px 7px 7px 2px;
}

.sv-jc-right::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

/* Nav */
.sv-nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sv-nav-list > li {
  position: relative;
}

.sv-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: var(--sv-radius-sm);
  color: var(--sv-text);
  font-weight: 600;
  font-size: 0.93rem;
}

.sv-nav-list > li > a:hover,
.sv-nav-list > li.current-menu-item > a {
  background: var(--sv-surface-2);
  color: var(--sv-blue);
}

.sv-nav-list .sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 220px;
  max-height: 360px;
  overflow-y: auto;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--sv-shadow);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 950;
}

.sv-nav-list > li:hover > .sub-menu,
.sv-nav-list > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sv-nav-list .sub-menu li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--sv-text);
  font-size: 0.9rem;
}

.sv-nav-list .sub-menu li a:hover {
  background: var(--sv-surface-2);
  color: var(--sv-blue);
}

/* Header Actions */
.sv-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sv-search-form {
  display: flex;
  align-items: center;
  background: var(--sv-surface-2);
  border: 1px solid var(--sv-border);
  border-radius: 999px;
  padding: 3px 6px 3px 14px;
  min-width: 210px;
}

.sv-search-input {
  background: transparent;
  border: 0;
  color: var(--sv-text);
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

.sv-search-input::placeholder {
  color: var(--sv-muted);
}

.sv-search-btn {
  background: var(--sv-red);
  color: #fff;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sv-search-btn:hover {
  background: var(--sv-red-hover);
}

/* Language Switcher */
.sv-lang-switcher {
  position: relative;
}

.sv-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sv-surface-2);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.sv-lang-btn:hover {
  border-color: var(--sv-blue);
}

.sv-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 195px;
  max-height: 340px;
  overflow-y: auto;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: 12px;
  padding: 6px;
  margin: 0;
  list-style: none;
  box-shadow: var(--sv-shadow);
  display: none;
  z-index: 980;
}

.sv-lang-switcher.is-open .sv-lang-menu {
  display: block;
}

.sv-lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--sv-text);
  font-size: 0.88rem;
}

.sv-lang-option:hover,
.sv-lang-option.is-active {
  background: var(--sv-surface-2);
  color: var(--sv-blue);
}

.sv-lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 5px;
  background: rgba(10, 185, 230, 0.14);
  color: var(--sv-blue);
}

.sv-lang-option.is-active .sv-lang-badge {
  background: var(--sv-red);
  color: #fff;
}

.sv-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--sv-surface-2);
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}

.sv-mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--sv-text);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.sv-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sv-surface) 0%, var(--sv-surface-2) 100%);
  border: 1px solid var(--sv-border);
  border-radius: 20px;
  padding: 36px 28px;
  margin-bottom: 30px;
  box-shadow: var(--sv-shadow);
}

.sv-hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.22;
  pointer-events: none;
}

.sv-glow-red {
  background: var(--sv-red);
  top: -100px;
  inset-inline-end: -60px;
}

.sv-glow-blue {
  background: var(--sv-blue);
  bottom: -110px;
  inset-inline-start: -60px;
}

.sv-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.sv-hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(230, 0, 18, 0.16);
  color: #ff5b67;
  border: 1px solid rgba(230, 0, 18, 0.35);
  margin-bottom: 12px;
}

body.sv-theme-light .sv-hero-badge {
  color: var(--sv-red);
}

.sv-hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.6vw, 2.65rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.sv-hero-subtitle {
  margin: 0 0 20px;
  color: var(--sv-muted);
  font-size: 1rem;
  max-width: 680px;
}

.sv-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sv-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--sv-bg);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  font-size: 0.84rem;
  font-weight: 600;
}

.sv-pill:hover,
.sv-pill.is-active {
  background: var(--sv-red);
  border-color: var(--sv-red);
  color: #fff;
}

/* ---------- Section Headings & ROM Grid ---------- */
.sv-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.sv-section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sv-section-title::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--sv-blue), var(--sv-red));
  display: inline-block;
}

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

.sv-rom-card {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sv-rom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 185, 230, 0.45);
  box-shadow: var(--sv-shadow);
}

.sv-card-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  background: var(--sv-surface-2);
  padding: 8px;
  overflow: hidden;
}

.sv-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.sv-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(10, 185, 230, 0.2), rgba(230, 0, 18, 0.2));
  color: var(--sv-text);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
}

.sv-card-badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sv-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.sv-badge-format.is-nsp {
  background: var(--sv-red);
  color: #fff;
}

.sv-badge-format.is-xci {
  background: var(--sv-blue);
  color: #07131a;
}

.sv-badge-size {
  background: rgba(11, 14, 20, 0.85);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.sv-badge-fw {
  background: rgba(255, 190, 11, 0.16);
  color: var(--sv-gold);
  border: 1px solid rgba(255, 190, 11, 0.35);
}

.sv-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sv-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sv-card-title a {
  color: var(--sv-text);
}

.sv-card-title a:hover {
  color: var(--sv-blue);
}

.sv-card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.sv-genre-chip {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--sv-surface-2);
  color: var(--sv-muted);
  border: 1px solid var(--sv-border);
}

.sv-genre-chip:hover {
  color: var(--sv-text);
  border-color: var(--sv-blue);
}

/* ---------- Breadcrumbs & Archive ---------- */
.sv-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--sv-muted);
  margin-bottom: 18px;
}

.sv-crumb-current {
  color: var(--sv-text);
  font-weight: 600;
}

.sv-archive-header {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: var(--sv-radius);
  padding: 22px 24px;
  margin-bottom: 24px;
}

.sv-archive-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.sv-archive-desc {
  margin-top: 8px;
  color: var(--sv-muted);
}

/* ---------- Single ROM Page ---------- */
.sv-single-hero {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 26px;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: var(--sv-shadow);
}

.sv-single-cover {
  background: var(--sv-surface-2);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sv-border);
}

.sv-cover-img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}

.sv-single-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

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

.sv-single-title {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.2;
}

.sv-single-genres {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.sv-meta-lbl {
  font-size: 0.85rem;
  color: var(--sv-muted);
  font-weight: 600;
}

.sv-single-tags {
  margin: 0;
  font-size: 0.9rem;
  color: var(--sv-muted);
}

.sv-single-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Buttons */
.sv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sv-btn-primary {
  background: linear-gradient(135deg, var(--sv-red), #ff2a3c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(230, 0, 18, 0.35);
}

.sv-btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(230, 0, 18, 0.5);
}

.sv-btn-outline {
  background: var(--sv-surface-2);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
}

.sv-btn-outline:hover {
  color: var(--sv-blue);
  border-color: var(--sv-blue);
}

.sv-btn-full {
  width: 100%;
}

@keyframes svPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 0, 18, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(230, 0, 18, 0); }
}

.sv-btn-pulse {
  animation: svPulse 2.4s infinite;
}

/* Panels */
.sv-panel {
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 22px;
}

.sv-panel-title {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  border-bottom: 1px solid var(--sv-border);
  padding-bottom: 10px;
}

.sv-prose p {
  margin: 0 0 14px;
  color: var(--sv-text);
}

.sv-prose p:last-child {
  margin-bottom: 0;
}

/* Specs Grid */
.sv-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sv-spec-item {
  background: var(--sv-surface-2);
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sv-spec-label {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sv-muted);
  font-weight: 700;
}

.sv-spec-value {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--sv-text);
}

/* Screenshots */
.sv-screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.sv-screen-item {
  padding: 0;
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--sv-surface-2);
  cursor: pointer;
}

.sv-screen-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.sv-screen-item:hover img {
  transform: scale(1.04);
}

/* Secure Download Deck */
.sv-download-deck {
  border-color: rgba(10, 185, 230, 0.32);
  background: linear-gradient(180deg, var(--sv-surface) 0%, rgba(10, 185, 230, 0.05) 100%);
}

.sv-dl-note {
  margin: 0 0 16px;
  color: var(--sv-muted);
}

.sv-dl-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sv-dl-row-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--sv-surface-2);
  border: 1px solid var(--sv-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.sv-dl-file-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sv-dl-type-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(10, 185, 230, 0.16);
  color: var(--sv-blue);
}

.sv-dl-type-pill.is-update {
  background: rgba(255, 190, 11, 0.16);
  color: var(--sv-gold);
}

.sv-dl-type-pill.is-dlc {
  background: rgba(16, 185, 129, 0.16);
  color: var(--sv-green);
}

.sv-dl-file-size {
  font-size: 0.85rem;
  color: var(--sv-muted);
  font-weight: 600;
}

.sv-dl-trust {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--sv-green);
  font-weight: 600;
}

/* Share Bar */
.sv-share-heading {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.sv-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sv-share-btn {
  padding: 9px 15px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
  border: 0;
  cursor: pointer;
}

.sv-share-btn:hover {
  color: #fff;
  opacity: 0.9;
}

.sv-share-btn.is-wa { background: #25d366; }
.sv-share-btn.is-tg { background: #0088cc; }
.sv-share-btn.is-fb { background: #1877f2; }
.sv-share-btn.is-x  { background: #111827; border: 1px solid var(--sv-border); }
.sv-share-btn.is-copy { background: var(--sv-surface-2); color: var(--sv-text); border: 1px solid var(--sv-border); }

/* Post Navigation & Pagination */
.sv-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0;
}

.sv-post-nav a {
  display: inline-block;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--sv-text);
  font-weight: 600;
  font-size: 0.9rem;
}

.sv-post-nav a:hover {
  border-color: var(--sv-blue);
  color: var(--sv-blue);
}

.sv-pagination {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.sv-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sv-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  color: var(--sv-text);
  font-weight: 700;
  font-size: 0.9rem;
}

.sv-pagination .page-numbers.current,
.sv-pagination a.page-numbers:hover {
  background: var(--sv-red);
  border-color: var(--sv-red);
  color: #fff;
}

/* Comments */
.sv-comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.sv-comment-list .comment-body {
  background: var(--sv-surface-2);
  border: 1px solid var(--sv-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.sv-comments-panel textarea,
.sv-comments-panel input[type="text"],
.sv-comments-panel input[type="email"],
.sv-comments-panel input[type="url"] {
  width: 100%;
  background: var(--sv-surface-2);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.94rem;
}

/* ---------- Emulators Bar & Footer ---------- */
.sv-emulators-bar {
  background: var(--sv-surface);
  border-top: 1px solid var(--sv-border);
  padding: 26px 0;
}

.sv-emus-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.sv-emus-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.sv-emus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sv-emu-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--sv-surface-2);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  font-weight: 700;
  font-size: 0.9rem;
}

.sv-emu-btn:hover {
  border-color: var(--sv-blue);
  color: var(--sv-blue);
}

.sv-emu-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sv-blue);
}

.sv-emu-ryujinx .sv-emu-dot { background: var(--sv-red); }
.sv-emu-eden .sv-emu-dot { background: var(--sv-blue); }
.sv-emu-citron .sv-emu-dot { background: var(--sv-gold); }

.sv-footer {
  border-top: 1px solid var(--sv-border);
  padding: 20px 0;
  font-size: 0.88rem;
  color: var(--sv-muted);
}

.sv-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sv-footer-menu {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sv-footer-menu a {
  color: var(--sv-muted);
}

.sv-footer-menu a:hover {
  color: var(--sv-text);
}

/* ---------- Modals (CAPTCHA + Lightbox + Trailer) ---------- */
.sv-modal[hidden] {
  display: none !important;
}

.sv-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.sv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 13, 0.78);
  backdrop-filter: blur(5px);
}

.sv-modal-card,
.sv-media-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.sv-media-card {
  max-width: 900px;
  padding: 14px;
}

.sv-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--sv-border);
  background: var(--sv-surface-2);
  color: var(--sv-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.sv-modal-head {
  text-align: center;
  margin-bottom: 18px;
}

.sv-shield-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(10, 185, 230, 0.15);
  color: var(--sv-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.sv-modal-head h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.sv-modal-subtitle {
  margin: 0;
  font-size: 0.88rem;
  color: var(--sv-muted);
}

.sv-captcha-slot {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.sv-math-box {
  background: var(--sv-surface-2);
  border: 1px solid var(--sv-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.sv-math-label {
  display: block;
  font-size: 0.88rem;
  color: var(--sv-muted);
  margin-bottom: 8px;
}

.sv-math-q {
  display: inline-block;
  margin-inline-start: 6px;
  font-size: 1.05rem;
  color: var(--sv-blue);
}

.sv-math-input {
  width: 100%;
  background: var(--sv-bg);
  color: var(--sv-text);
  border: 1px solid var(--sv-border);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 1rem;
  font-weight: 700;
}

.sv-modal-status {
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 20px;
}

.sv-modal-status.is-error { color: #ff5b67; }
.sv-modal-status.is-ok { color: var(--sv-green); }

.sv-final-link-wrap {
  margin-top: 12px;
  text-align: center;
}

.sv-media-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
}

.sv-media-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}

.sv-empty-state {
  text-align: center;
  background: var(--sv-surface);
  border: 1px solid var(--sv-border);
  border-radius: 16px;
  padding: 40px 24px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 1120px) {
  .sv-rom-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .sv-mobile-toggle {
    display: inline-flex;
  }

  .sv-nav {
    position: fixed;
    top: 68px;
    inset-inline: 0;
    background: var(--sv-surface);
    border-bottom: 1px solid var(--sv-border);
    padding: 14px 18px;
    display: none;
    z-index: 890;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .sv-nav.is-open {
    display: block;
  }

  .sv-nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .sv-nav-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 4px;
    background: var(--sv-surface-2);
  }

  .sv-search-form {
    min-width: 150px;
  }

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

@media (max-width: 680px) {
  .sv-single-hero {
    grid-template-columns: 1fr;
  }

  .sv-single-cover {
    max-width: 240px;
    margin: 0 auto;
  }

  .sv-rom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .sv-search-form {
    display: none;
  }

  .sv-hero {
    padding: 24px 18px;
  }
}

@media (max-width: 380px) {
  .sv-container {
    padding: 0 12px;
  }

  .sv-rom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
