:root {
  /* Sombre ardoise + une seule couleur d'accent (#38bdf8) */
  --bg-canvas: #0d1117;
  --bg-surface: #131820;
  --bg-elevated: #19202b;
  --bg-subtle: #0f141b;
  --border-subtle: #232c3a;
  --border-strong: #313e51;
  --text-primary: #eef2f7;
  --text-secondary: #9ba8ba;
  --text-muted: #6c7a8e;

  --accent: #38bdf8;
  --accent-hover: #7dd3fc;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-border: rgba(56, 189, 248, 0.36);

  /* Couleurs purement fonctionnelles pour compteurs P2P & erreurs */
  --seed-ok: #4ade80;
  --warn-text: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.11);
  --danger-text: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);

  --font-sans: 'Geist Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono Variable', ui-monospace, 'Cascadia Mono', monospace;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
}

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

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.48;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-danger {
  color: var(--danger-text);
}

.text-green {
  color: var(--seed-ok);
}

.text-warn {
  color: var(--warn-text);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  background: var(--accent);
  color: #09131c;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.app-main {
  padding: 16px 0 40px;
  min-height: calc(100vh - 120px);
}

/* Logo texte YggReborn */
.yg-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.yg-wordmark {
  font-size: 1.05rem;
  text-transform: lowercase;
}

.yg-wordmark-main {
  color: var(--text-primary);
}

.yg-wordmark-accent {
  color: var(--accent);
}

/* Bandeau horizontal compact */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo:hover {
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  color: var(--text-secondary);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
  background: var(--bg-elevated);
  text-decoration: none;
}

.nav-link.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-search {
  flex: 1 1 220px;
  max-width: 340px;
  min-width: 150px;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-icon {
  position: absolute;
  left: 9px;
  color: var(--text-muted);
  pointer-events: none;
}

.header-search-input {
  padding-left: 29px !important;
  height: 31px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-account-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.credit-inline-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.8rem;
  white-space: nowrap;
}

.credit-inline-pill:hover {
  border-color: var(--border-strong);
  text-decoration: none;
}

.credit-inline-pill.is-depleted {
  border-color: rgba(248, 113, 113, 0.45);
  background: var(--danger-soft);
}

.credit-k {
  color: var(--text-muted);
}

.credit-v {
  color: var(--text-primary);
  font-weight: 600;
}

.credit-sep {
  color: var(--border-strong);
}

.icon-nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.icon-nav-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #08121b;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-menu-wrap {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 218px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
  padding: 5px;
  z-index: 60;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--bg-elevated);
  text-decoration: none;
}

.dropdown-staff {
  color: var(--accent);
}

.dropdown-logout {
  color: var(--danger-text);
}

.dropdown-sep {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

/* Surfaces, Inputs, Buttons */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.stack-md {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-xs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input {
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.input-sm {
  padding: 6px 9px;
  font-size: 0.86rem;
}

.input-xs {
  padding: 4px 8px;
  font-size: 0.82rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #07131e;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #07131e;
}

.btn-secondary,
.btn-ghost {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.btn-sm {
  padding: 6px 10px;
  font-size: 0.83rem;
}

.btn-xs {
  padding: 4px 8px;
  font-size: 0.78rem;
}

.btn-block {
  width: 100%;
}

.btn-icon,
.btn-icon-inline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.btn-icon.is-favorited {
  color: var(--accent);
  border-color: var(--accent);
}

/* Badges & Alerts */
.independent-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
}

.independent-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.82rem;
}

.independent-banner-badge svg {
  color: var(--accent);
}

.independent-banner-text {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.79rem;
}

.pill-accent {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
}

.pill-soft,
.pill-tone,
.cat-badge,
.badge-soft,
.role-chip,
.pill-muted,
.version-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.pill-green {
  background: rgba(74, 222, 128, 0.11);
  color: var(--seed-ok);
  border-color: rgba(74, 222, 128, 0.35);
}

.pill-warn,
.badge-wait,
.wait-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--warn-soft);
  border: 1px solid rgba(251, 191, 36, 0.32);
  color: var(--warn-text);
  font-size: 0.74rem;
  font-weight: 600;
}

.pill-danger,
.badge-danger-soft {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--danger-soft);
  border: 1px solid rgba(248, 113, 113, 0.34);
  color: var(--danger-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.alert {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 13px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-subtle);
  font-size: 0.87rem;
}

.alert-success {
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
  color: #dcfce7;
}

.alert-error {
  background: var(--danger-soft);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fee2e2;
}

.alert-info {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

/* Auth 400px centré (style épuré YggReborn) */
.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-canvas);
}

.auth-topbar {
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
}

.auth-topbar-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-topbar-links {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
}

.auth-topbar-links a {
  color: var(--text-secondary);
}

.auth-center-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.auth-panel {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-eyebrow {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.auth-submit-btn {
  margin-top: 2px;
  padding: 9px 14px;
}

.auth-muted-link {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.auth-accent-link {
  font-weight: 600;
  color: var(--accent);
}

.auth-register-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.auth-mini-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 14px 16px;
}

.auth-mini-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.8rem;
}

.auth-mini-links a {
  color: var(--text-muted);
}

/* Home compact */
.home-compact-head {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-compact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.home-compact-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.announcement-inline-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin-bottom: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 14px;
  align-items: start;
}

/* Search & Catalogue Filters */
.catalog-head-row,
.page-head,
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-head-row,
.page-head {
  margin-bottom: 12px;
}

.page-title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.page-subtitle {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.section-heading {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field-icon {
  position: absolute;
  left: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input-lg {
  padding-left: 33px !important;
  flex: 1;
}

.filter-panel {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.81rem;
}

.cat-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  text-decoration: none;
}

.cat-chip.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 600;
}

.quick-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.quick-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.quick-filter-item select {
  width: auto;
  min-width: 110px;
}

.filter-display-tabs {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.seg-btn {
  border: 0;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  padding: 4px 9px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.seg-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.more-filters-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.catalog-status-bar {
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--accent);
}

.results-summary-bar,
.results-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.results-bottom-bar {
  margin-top: 10px;
  justify-content: flex-end;
}

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

/* Dense Linear + C411 Table */
.table-section-card {
  padding: 0;
  overflow: hidden;
}

.table-card-head {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.dense-table th,
.dense-table td {
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.dense-table th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--bg-subtle);
}

.dense-table tbody tr.fiche-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.dense-table th.num,
.dense-table td.num {
  text-align: right;
}

.col-actions {
  text-align: right !important;
  white-space: nowrap;
}

.row-line-1 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.row-title-link {
  font-weight: 600;
  color: var(--text-primary);
}

.row-title-link:hover {
  color: var(--accent);
}

.meta-inline-release {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.mobile-row-line-2 {
  display: none;
  font-size: 0.77rem;
  color: var(--text-secondary);
  margin-top: 3px;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.row-actions-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.child-version-row {
  background: #0f141c;
}

.child-version-main {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 12px;
  flex-wrap: wrap;
}

.child-indent {
  color: var(--text-muted);
}

.seeder-num {
  color: var(--seed-ok);
  font-weight: 600;
}

.seeder-zero {
  color: var(--text-muted);
}

.leecher-active {
  color: var(--accent);
  font-weight: 600;
}

/* Cards, Detail, Publish, Stepper */
.section-card,
.detail-header-card,
.detail-versions-card,
.detail-files-card,
.detail-description-card,
.detail-credits-card,
.detail-comments-card,
.stack-form {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.detail-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.detail-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.detail-head-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.onboarding-steps {
  margin: 6px 0;
  padding-left: 18px;
}

.onboarding-steps li {
  margin: 3px 0;
}

/* 3-Step Publish Stepper */
.publish-stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.stepper-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.stepper-item.is-current {
  border-color: var(--accent-border);
  color: var(--text-primary);
  background: var(--accent-soft);
}

.stepper-item.is-done {
  border-color: var(--border-strong);
  color: var(--text-secondary);
}

.stepper-num {
  font-weight: 700;
  color: var(--accent);
}

.step-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
}

.announce-inline-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.announce-inline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.announce-code-line {
  word-break: break-all;
  color: var(--accent);
}

.publish-mode-switch {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 0.85rem;
  cursor: pointer;
}

.mode-radio.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.field-span-2 {
  grid-column: span 2;
}

.field-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.84rem;
}

.publish-actions,
.inline-actions-row,
.inline-action-form,
.tabs-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tabs-bar {
  margin-bottom: 12px;
}

.tab-pill {
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.tab-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 600;
}

/* Misc */
.mini-stats-grid,
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.stat-cards-grid {
  margin-bottom: 12px;
}

.mini-stat,
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-val {
  font-size: 1.2rem;
}

.compact-list,
.file-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.compact-list-item,
.file-tree-list li,
.tech-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
}

.tech-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-row dt {
  color: var(--text-muted);
}

.tech-row dd {
  margin: 0;
  text-align: right;
  word-break: break-word;
}

.portal-shout-list {
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portal-shout-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: baseline;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--bg-subtle);
  font-size: 0.83rem;
}

.portal-shout-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.portal-shout-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.shout-role-badge {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.shout-role--admin,
.shout-role--modo {
  color: var(--accent);
}

.portal-shout-form,
.portal-shout-guest-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.comment-item {
  border-top: 1px solid var(--border-subtle);
  padding-top: 9px;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  padding: 16px 0;
  font-size: 0.82rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-brand {
  display: block;
  font-weight: 600;
}

.footer-sub {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
}

/* Mobile Responsive (< 720px) — résultats sur 2 lignes, 0 défilement horizontal */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
  }

  .home-layout {
    grid-template-columns: 1fr;
  }

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

  .publish-stepper {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .header-left {
    gap: 8px;
  }

  .nav-publish-btn span {
    display: none;
  }

  .credit-inline-pill .credit-k {
    display: none;
  }

  .col-hide-sm,
  .col-hide-md {
    display: none;
  }

  .mobile-row-line-2 {
    display: flex;
  }

  .dense-table th,
  .dense-table td {
    padding: 8px 8px;
  }

  .form-grid-2,
  .grid-2-cols {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .portal-shout-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ==========================================================================
   YGGREBORN VISUAL REFERENCE ALIGNMENT (Pages 01–12)
   ========================================================================== */

/* Two-tier Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-canvas);
  border-bottom: 1px solid #1c2430;
}

.site-header-tier1 {
  background: #11161d;
  border-bottom: 1px solid #1c2430;
  padding: 8px 0;
}

.site-header-tier1 .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header-tier1 .header-search {
  flex: 0 1 420px;
}

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.header-search-wrap .header-search-icon {
  position: absolute;
  left: 10px;
  color: #64748b;
  pointer-events: none;
}

.header-search-input {
  width: 100%;
  padding-left: 32px !important;
  background: #0d1117 !important;
  border: 1px solid #232d3d !important;
  border-radius: 6px !important;
  color: #e2e8f0 !important;
  font-size: 13px !important;
  height: 32px !important;
}

.header-search-input:focus {
  border-color: #38bdf8 !important;
  outline: none;
}

.yg-logo-header-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}

.header-ratio-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #161f2c;
  border: 1px solid #243245;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 12px;
  color: #e2e8f0;
  text-decoration: none;
}

.header-ratio-pill .ratio-label {
  color: #94a3b8;
  font-size: 11px;
}

.header-ratio-pill .ratio-val {
  color: #38bdf8;
  font-weight: 700;
}

.header-ratio-pill.is-guest .ratio-val {
  color: #4ade80;
}

/* Tier 2: Sub-navigation */
.site-header-tier2 {
  background: #0d1117;
  border-bottom: 1px solid #1c2430;
}

.subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  overflow-x: auto;
  white-space: nowrap;
}

.subnav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease;
}

.subnav-link:hover {
  color: #38bdf8;
  text-decoration: none;
}

.subnav-link.is-active {
  color: #38bdf8;
}

.subnav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #38bdf8;
  border-radius: 2px 2px 0 0;
}

/* Layout Container */
.app-main > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* Card Slate */
.card-slate {
  background: #141b24;
  border: 1px solid #222d3d;
  border-radius: 8px;
  padding: 20px;
}

.head-card {
  margin-bottom: 16px;
}

.head-card-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.sub-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.page-heading {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin: 0 0 6px;
}

/* Page 01: Home Hero */
.home-hero-banner {
  text-align: center;
  padding: 28px 16px 36px;
}

.home-hero-center {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-hero-logo {
  max-width: 320px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.home-hero-tagline {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e2e8f0;
  line-height: 1.5;
  margin: 0 0 18px;
}

.btn-hero-support {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid #d97706;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-hero-support:hover {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
  text-decoration: none;
}

.home-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e293b;
}

.group-marker {
  width: 4px;
  height: 16px;
  background: #0284c7;
  border-radius: 2px;
}

.home-group-title h2 {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

/* Poster Carousel */
.carousel-section {
  margin-bottom: 24px;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.carousel-title {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin: 0;
}

.carousel-controls {
  display: flex;
  gap: 4px;
}

.carousel-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  cursor: pointer;
}

.carousel-btn:hover {
  background: #334155;
  color: #f8fafc;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
  padding-bottom: 4px;
}

.poster-card {
  flex: 0 0 148px;
  width: 148px;
  background: #0f141c;
  border: 1px solid #1e293b;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.poster-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

.poster-cover-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  background: #111827;
  overflow: hidden;
}

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

.poster-empty-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

.poster-overlay-title {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.poster-overlay-year {
  color: #94a3b8;
  font-size: 10px;
}

.poster-overlay-seeders {
  color: #4ade80;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.poster-caption {
  padding: 6px 8px;
}

.poster-title {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow ellipsis;
}

.poster-year {
  font-size: 10px;
  display: block;
}

/* Home Evolution Stats & Announce Panels (Page 01 bottom) */
.home-stats-panel,
.home-announce-panel {
  background: #121822;
  border: 1px solid #1e293b;
  border-top: 3px solid #6fc2ff;
  border-radius: 8px;
  padding: 18px 20px;
  margin-top: 20px;
}

.home-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.home-stat-box {
  border-radius: 8px;
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 64px;
}

.home-stat-box.stat-users {
  background: #182230;
  border: 1px solid #26354a;
}
.home-stat-box.stat-users .stat-value {
  color: #f8fafc;
}

.home-stat-box.stat-users-24h {
  background: #142436;
  border: 1px solid #1e3a5f;
}
.home-stat-box.stat-users-24h .stat-value {
  color: #6fc2ff;
}

.home-stat-box.stat-seeds {
  background: #132720;
  border: 1px solid #1a4d36;
}
.home-stat-box.stat-seeds .stat-value {
  color: #3dad72;
}

.home-stat-box.stat-torrents {
  background: #152336;
  border: 1px solid #1e3a5f;
}
.home-stat-box.stat-torrents .stat-value {
  color: #6e97c7;
}

.home-stat-box.stat-torrents-active {
  background: #201a33;
  border: 1px solid #3b2d5a;
}
.home-stat-box.stat-torrents-active .stat-value {
  color: #b3a6e8;
}

.home-stat-box.stat-target {
  background: #182230;
  border: 1px solid #26354a;
}
.home-stat-box.stat-target .stat-value {
  color: #f8fafc;
}

.home-stat-box .stat-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.home-stat-box .stat-label {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-panel-note {
  font-size: 12px;
  color: #64748b;
  margin: 12px 0 0 0;
  line-height: 1.45;
}

.home-announce-box {
  background: #090d14;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-announce-url {
  font-family: var(--font-mono, "Geist Mono", monospace);
  font-size: 13px;
  color: #6fc2ff;
  word-break: break-all;
  flex: 1;
  background: transparent;
  padding: 0;
  border: none;
}

.btn-copy-announce {
  background: #151e2b;
  border: 1px solid #2b3b52;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-copy-announce:hover {
  background: #1f2d40;
  color: #f8fafc;
  border-color: #6fc2ff;
}

.btn-copy-announce.is-copied {
  color: #4ade80 !important;
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.15) !important;
}

@media (max-width: 900px) {
  .home-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-stat-box .stat-value {
    font-size: 17px;
  }
  .home-announce-url {
    font-size: 11.5px;
  }
}

/* Light Dense Table (YggReborn Table Style - Pages 06, 08, 09, 10) */
.table-responsive-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.table-ygg-dense {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #f1f5f9;
  color: #0f172a;
}

.table-ygg-dense thead {
  background: #cbd5e1;
}

.table-ygg-dense th {
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  text-align: left;
  border-bottom: 1px solid #94a3b8;
}

.table-ygg-dense th.num,
.table-ygg-dense td.num {
  text-align: right;
}

.table-ygg-dense td {
  padding: 6px 10px;
  border-bottom: 1px solid #cbd5e1;
  vertical-align: middle;
}

.table-ygg-dense tbody tr:nth-child(even) {
  background: #f8fafc;
}

.table-ygg-dense tbody tr:hover {
  background: #e2e8f0;
}

.col-type {
  width: 80px;
  white-space: nowrap;
}

.col-size {
  width: 85px;
}

.col-date {
  width: 65px;
}

.col-seed {
  width: 55px;
}

.col-leech {
  width: 55px;
}

.col-dl {
  width: 45px;
  text-align: center;
}

/* Type Pills */
.type-pill {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  min-width: 60px;
}

.badge-film { background: #0284c7; }
.badge-serie { background: #4f46e5; }
.badge-anim { background: #06b6d4; }
.badge-audio { background: #ea580c; }
.badge-ebook { background: #059669; }
.badge-jeux { background: #7c3aed; }
.badge-emission { background: #dc2626; }
.badge-sport { background: #0d9488; }
.badge-doc { background: #475569; }
.badge-other { background: #64748b; }

.title-with-poster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-thumb-link {
  flex-shrink: 0;
  display: block;
}

.catalog-thumb-img {
  width: 30px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  background: #1e293b;
  display: block;
}

.title-content-wrap {
  flex: 1;
  min-width: 0;
}

.detail-header-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.detail-poster-wrap {
  flex-shrink: 0;
}

.detail-poster-img {
  width: 140px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: block;
}

.detail-header-main {
  flex: 1;
  min-width: 0;
}

.title-main-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.torrent-link-title {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.torrent-link-title:hover {
  color: #0284c7;
  text-decoration: underline;
}

.title-year {
  font-weight: 400;
  color: #64748b;
}

.release-text {
  font-size: 11px;
  color: #475569;
}

.tag-fl {
  display: inline-block;
  background: #f59e0b;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
}

.tag-ex {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
}

.tag-wait-seed {
  display: inline-block;
  background: #ea580c;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-decoration: none;
}

.btn-dl-cloud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #0284c7;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-dl-cloud:hover {
  background: #0369a1;
  color: #fff;
  text-decoration: none;
}

.btn-dl-cloud.is-locked {
  background: #64748b;
}

.text-green {
  color: #15803d !important;
}

.text-red {
  color: #b91c1c !important;
}

/* Alert Boxes */
.alert-box {
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.alert-orange {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid #d97706;
  color: #fde68a;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #dc2626;
  color: #fca5a5;
}

.alert-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Guide API Styles (Pages 02–05) */
.guide-nav-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill-btn {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  background: #1a222e;
  border: 1px solid #283648;
  text-decoration: none;
  transition: all 0.15s;
}

.pill-btn:hover,
.pill-btn.is-active {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
  text-decoration: none;
}

.guide-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a222e;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
}

.feature-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.official-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a222e;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 10px 12px;
  text-decoration: none;
  color: #e2e8f0;
  transition: border-color 0.15s;
}

.doc-card:hover {
  border-color: #38bdf8;
  text-decoration: none;
}

.doc-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
}

.prowlarr-icon { background: #e11d48; }
.cross-seed-icon { background: #16a34a; }
.radarr-icon { background: #ca8a04; }
.sonarr-icon { background: #2563eb; }
.lidarr-icon { background: #059669; }
.servarr-icon { background: #475569; }

.copy-input-row {
  display: flex;
  gap: 8px;
}

.input-code {
  flex: 1;
  background: #0d1117 !important;
  border: 1px solid #283648 !important;
  color: #38bdf8 !important;
  font-family: var(--font-mono);
  font-size: 12px;
}

.limits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.limit-box {
  background: #1a222e;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 12px;
}

.limit-header {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.limit-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #243245;
}

.limit-row:last-child {
  border-bottom: none;
}

.torznab-cat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.torznab-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a222e;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 8px 14px;
}

.badge-cat-id {
  background: #243245;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.formats-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.format-card {
  background: #1a222e;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 12px;
}

.format-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.icon-prowlarr {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #e11d48;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
}

.icon-cross-seed {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
}

.code-block-wrap {
  position: relative;
  background: #0d1117;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 12px;
  margin: 6px 0;
}

.code-block-wrap pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e2e8f0;
  overflow-x: auto;
}

.btn-copy-code {
  position: absolute;
  top: 8px;
  right: 8px;
}

.cli-command-box {
  background: #0d1117;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 6px;
}

.cli-command-box code {
  color: #4ade80;
}

.roles-dossiers-box {
  background: #1a222e;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 10px 14px;
  margin: 10px 0;
}

.never-do-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.never-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #fca5a5;
}

.never-x {
  color: #ef4444;
  font-weight: 800;
}

.border-danger {
  border-color: #dc2626 !important;
}

/* Top 100 Medal Pills (Page 09) */
.col-rank {
  width: 40px;
  text-align: center;
}

.rank-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
}

.rank-gold {
  background: #f59e0b;
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.rank-silver {
  background: #94a3b8;
  color: #000;
  font-weight: 800;
}

.rank-bronze {
  background: #b45309;
  color: #fff;
  font-weight: 800;
}

.rank-slate {
  background: #334155;
  color: #e2e8f0;
  font-weight: 700;
}

/* Category Accordions (Page 07) */
.category-group-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 8px;
  border-bottom: 1px solid #222d3d;
  margin-bottom: 12px;
}

.group-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  margin: 0;
}

.category-subsections-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subcat-accordion {
  background: #141b24;
  border: 1px solid #222d3d;
  border-radius: 6px;
  overflow: hidden;
}

.subcat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #19212c;
}

.subcat-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #e2e8f0;
}

.btn-outline-cyan {
  border: 1px solid #0284c7;
  color: #38bdf8;
  background: transparent;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

.btn-outline-cyan:hover {
  background: #0284c7;
  color: #fff;
  text-decoration: none;
}

/* Upload Guide Ranks (Page 11) */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.rank-card {
  border-radius: 6px;
  padding: 14px;
  border: 1px solid #283648;
}

.rank-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.rank-icon-check {
  color: #22c55e;
  font-weight: 800;
  font-size: 16px;
}

.rank-icon-info {
  color: #38bdf8;
  font-weight: 800;
  font-size: 16px;
}

.rank-icon-warn {
  color: #f59e0b;
  font-weight: 800;
  font-size: 16px;
}

.rank-icon-ban {
  color: #ef4444;
  font-weight: 800;
  font-size: 16px;
}

.rank-title {
  font-size: 13px;
  color: #f8fafc;
}

.rank-badge-pct {
  display: block;
  font-size: 10px;
  color: #94a3b8;
}

.rank-card--verified {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.3);
}

.rank-card--uploader {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.3);
}

.rank-card--warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: rgba(245, 158, 11, 0.3);
}

.rank-card--blocked {
  background: rgba(239, 68, 68, 0.05);
  border-color: rgba(239, 68, 68, 0.3);
}

.rules-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rule-item {
  background: #1a222e;
  border: 1px solid #283648;
  border-radius: 6px;
  padding: 10px 14px;
}

.rule-item strong {
  display: block;
  font-size: 12.5px;
  color: #e2e8f0;
  margin-bottom: 4px;
}

.tag-fervex {
  display: inline-block;
  background: #0f172a;
  border: 1px solid #334155;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-start-upload {
  padding: 8px 24px !important;
  font-weight: 700 !important;
}

/* Forum Overview (Page 12) */
.forum-category-block {
  overflow: hidden;
}

.forum-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #19212c;
  border-bottom: 1px solid #232d3d;
}

.forum-cat-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f8fafc;
  margin: 0 0 2px;
}

.forum-cat-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-count-pill {
  background: #243245;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.btn-icon-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #0284c7;
  color: #fff;
  text-decoration: none;
}

.btn-icon-plus:hover {
  background: #0369a1;
  color: #fff;
}

.table-forum-dense {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #f1f5f9;
  color: #0f172a;
}

.table-forum-dense th {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  background: #cbd5e1;
  text-align: left;
  border-bottom: 1px solid #94a3b8;
}

.table-forum-dense td {
  padding: 8px 12px;
  border-bottom: 1px solid #cbd5e1;
  vertical-align: middle;
}

.table-forum-dense tbody tr:nth-child(even) {
  background: #f8fafc;
}

.col-replies {
  width: 70px;
  text-align: right;
}

.col-lastmsg {
  width: 160px;
  text-align: right;
}

.tag-pinned {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
}

.tag-locked {
  display: inline-block;
  background: #64748b;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  margin-right: 6px;
}

.forum-topic-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.forum-topic-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.replies-badge {
  display: inline-block;
  background: #1e293b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
}

/* Footer Alignment (Page 05) */
.site-footer {
  border-top: 1px solid #1c2430;
  background: #0d1117;
  padding: 18px 0;
  font-size: 12px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand-tag {
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
}

.footer-sub-links {
  display: flex;
  gap: 16px;
}

.footer-sub-links a {
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.footer-sub-links a:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.footer-secondary {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 8px 16px 0;
  border-top: 1px solid #141c26;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal-links {
  display: flex;
  gap: 12px;
}

.footer-legal-links a {
  color: #64748b;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: #94a3b8;
  text-decoration: underline;
}
