/* PlayStation 3 XMB Recreation - Minimal Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
  --hl-panel-bg: rgba(0,0,0,0.35);
  --hl-panel-bg-strong: rgba(0,0,0,0.55);
  --hl-border: rgba(255,255,255,0.12);
  --hl-text: #ffffff;
  --hl-text-muted: rgba(255,255,255,0.85);
  --hl-link: rgba(255,255,255,0.92);
  --hl-link-hover: #ffffff;
  --hl-shadow: 0 18px 50px rgba(0,0,0,0.45);
  --hl-icon-filter: none;
}

body.theme-light{
  --hl-panel-bg: rgba(255,255,255,0.55);
  --hl-panel-bg-strong: rgba(255,255,255,0.75);
  --hl-border: rgba(0,0,0,0.12);
  --hl-text: #0b1220;
  --hl-text-muted: rgba(11,18,32,0.78);
  --hl-link: rgba(11,18,32,0.86);
  --hl-link-hover: #0b1220;
  --hl-shadow: 0 18px 50px rgba(0,0,0,0.18);
  --hl-icon-filter: invert(1);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000;
    color: white;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Waves Background */
#waves-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

/* Main Interface */
.interface {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 10;
    transition: opacity 0.5s ease;
}

/* PlayStation Logo */
.ps-logo-container {
    position: absolute;
    top: 30px;
    z-index: 100;
}

.ps-logo-container.left {
    left: 40px;
}

.ps-logo-container.right {
    left: 100px;
}

.ps-logo-svg {
    height: 40px;
    width: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* Right Panel */
.right-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.4) 20%, rgba(0, 0, 0, 0.7) 100%);
    padding: 40px;
    z-index: 30;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.right-panel::-webkit-scrollbar {
    width: 6px;
}

.right-panel::-webkit-scrollbar-track {
    background: transparent;
}

.right-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.right-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Right Panel Content Spacing */
.right-panel > * {
    margin-bottom: 40px;
}

.right-panel > *:last-child {
    margin-bottom: 0;
}

/* Date/Time */
.datetime-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

#current-time {
    font-size: 28px;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.95);
}

#current-date {
    font-size: 14px;
    opacity: 0.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.8);
}

/* Information Section */
.info-section {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.info-section::-webkit-scrollbar {
    width: 4px;
}

.info-section::-webkit-scrollbar-track {
    background: transparent;
}

.info-section::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

#info-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
}

#info-description {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

#info-description p {
    margin-bottom: 20px;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.highlight {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    backdrop-filter: blur(10px);
}

.highlight h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.95);
}

.highlight p {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Settings Section */
.settings-section {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
}

.settings-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Wave Settings Form */
.waves-config-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.waves-settings-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    display: block;
}

.waves-settings-select,
.waves-settings-range {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.waves-settings-select:focus,
.waves-settings-range:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.waves-settings-select {
    width: 100%;
    padding: 8px 12px;
    cursor: pointer;
}

.waves-settings-select option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

.waves-settings-range {
    width: 100%;
    height: 6px;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.waves-settings-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.waves-settings-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.waves-settings-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    min-width: 50px;
    text-align: right;
}

/* Light theme overrides for wave config */
body.theme-light .waves-settings-label{
  color: rgba(0, 0, 0, 0.80);
}

body.theme-light .waves-settings-value{
  color: rgba(0, 0, 0, 0.60);
}

body.theme-light .waves-settings-select,
body.theme-light .waves-settings-range{
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.15);
  color: rgba(0,0,0,0.85);
}

body.theme-light .waves-settings-select option{
  background: rgba(255,255,255,0.98);
  color: rgba(0,0,0,0.90);
}

/* Stats Container */
#stats-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 50;
    transition: opacity 0.3s ease;
}

#stats-container canvas {
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Interface Control */
.interface-control {
    padding-top: 20px;
}

.hide-interface-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.hide-interface-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.hide-interface-btn:active {
    transform: translateY(0);
}

/* Hidden Interface State */
.interface-hidden .interface {
    opacity: 0;
    pointer-events: none;
}

.interface-hidden #stats-container {
    opacity: 0;
    pointer-events: none;
}

.interface-hidden {
    cursor: pointer;
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-3 {
    gap: 12px;
}

.flex-1 {
    flex: 1;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .right-panel {
        width: 400px;
        padding: 30px;
    }
    
    #info-title {
        font-size: 22px;
    }
    
    #current-time {
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .right-panel {
        width: 350px;
        padding: 25px;
        gap: 25px;
    }
    
    .ps-logo-container {
        top: 20px;
        left: 20px;
    }
    
    #info-title {
        font-size: 20px;
    }
    
    #current-time {
        font-size: 22px;
    }
    
    #current-date {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    .right-panel {
        width: 100%;
        padding: 20px;
        background: rgba(0, 0, 0, 0.8);
        gap: 20px;
    }
    
    .datetime-section {
        align-items: center;
    }
    
    .settings-section {
        padding: 20px;
    }

    #stats-container {
        bottom: 10px;
        left: 10px;
    }

    .hide-interface-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
}



/* ------------------------------------------------------------------
   HybrideLabs overlay (content above the PS3-XMB waves background)
   ------------------------------------------------------------------ */

html, body {
  background: #000;
}

#waves-background {
  z-index: 0;
}

#hybridelabs {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  color: var(--hl-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

.hl-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  backdrop-filter: blur(10px);
  background: var(--hl-panel-bg);
  border-bottom: 1px solid var(--hl-border);
}

.hl-brand {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 18px;
}

.hl-tm { font-weight: 700; opacity: 0.85; }

.hl-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hl-nav a {
  color: inherit;
  text-decoration: none;
  opacity: 0.9;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.hl-nav a:hover {
  opacity: 1;
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
}

.hl-main {
  padding: 42px 22px 28px;
  max-width: 980px;
  margin: 0 auto;
}

.hl-main h1 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.05;
}

.hl-main p {
  margin: 0 0 18px;
  opacity: 0.92;
  font-size: 16px;
  line-height: 1.55;
}

.hl-card {
  margin-top: 22px;
  padding: 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--hl-border);
  background: var(--hl-panel-bg);
  backdrop-filter: blur(12px);
}

.hl-footer {
  padding: 18px 22px;
  text-align: center;
  opacity: 0.85;
  font-size: 13px;
}

/* If the demo interface is ever present, keep it hidden by default */
.interface { display: none; }


/* HybrideLabs Settings UI */
.hl-nav{
  display: flex;
  align-items: center;
  gap: 18px;
}

.hl-nav a{
  color: var(--hl-link);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease;
}

.hl-nav a:hover{
  color: var(--hl-link-hover);
  background: rgba(255,255,255,0.08);
}

body.theme-light .hl-nav a:hover{
  background: rgba(0,0,0,0.06);
}

.hl-settings-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--hl-border);
  background: var(--hl-panel-bg);
  color: var(--hl-link);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.2px;
  backdrop-filter: blur(10px);
  transition: transform 120ms ease, background 160ms ease, color 160ms ease;
}

.hl-settings-btn:hover{
  transform: translateY(-1px);
  color: var(--hl-link-hover);
}

.hl-settings-icon{
  width: 20px;
  height: 20px;
  display: inline-block;
}

.hl-settings-backdrop{
  position: fixed;
  inset: 0;
  z-index: 180;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 180ms ease;
}

.hl-settings-backdrop.open{
  opacity: 1;
}

body.theme-light .hl-settings-backdrop{
  background: rgba(0,0,0,0.18);
}

.hl-settings-panel{
  position: fixed;
  top: 16px;
  right: 16px;
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  z-index: 200;
  border: 1px solid var(--hl-border);
  background: var(--hl-panel-bg-strong);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  box-shadow: var(--hl-shadow);
  transform: translateX(calc(100% + 24px));
  opacity: 0;
  transition: transform 220ms ease, opacity 180ms ease;
  -webkit-overflow-scrolling: touch;
}

.hl-settings-panel.open{
  transform: translateX(0);
  opacity: 1;
}

.hl-settings-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--hl-border);
}

.hl-settings-title{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.hl-settings-close{
  border: 1px solid var(--hl-border);
  background: transparent;
  color: var(--hl-text);
  width: 34px;
  height: 34px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.hl-settings-body{
  padding: 0;
}

/* Tabs inside Settings */
.hl-tabs{
  display: flex;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--hl-border);
}

.hl-tab{
  flex: 1 1 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--hl-border);
  background: rgba(0,0,0,0.12);
  color: var(--hl-text);
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
}

body.theme-light .hl-tab{
  background: rgba(255,255,255,0.55);
}

.hl-tab[aria-selected="true"]{
  background: rgba(255,255,255,0.22);
}

body.theme-light .hl-tab[aria-selected="true"]{
  background: rgba(0,0,0,0.08);
}

.hl-tabpanels{
  padding: 12px 14px 16px;
}

.hl-tabpanel{
  display: grid;
  gap: 10px;
}

.hl-tabpanel[hidden]{
  display: none;
}


.hl-setting-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--hl-border);
  background: rgba(0,0,0,0.10);
}

body.theme-light .hl-setting-row{
  background: rgba(255,255,255,0.45);
}

.hl-setting-label{
  color: var(--hl-text);
  font-weight: 800;
  letter-spacing: 0.15px;
  font-size: 14px;
}

.hl-select{
  width: 150px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--hl-border);
  background: rgba(0,0,0,0.18);
  color: var(--hl-text);
  font-weight: 700;
  outline: none;
}

body.theme-light .hl-select{
  background: rgba(255,255,255,0.65);
}

/* Switch */
.hl-switch{
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.hl-switch input{
  opacity: 0;
  width: 0;
  height: 0;
}

.hl-slider{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid var(--hl-border);
  transition: background 180ms ease;
}

body.theme-light .hl-slider{
  background: rgba(0,0,0,0.12);
}

.hl-slider:before{
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  transition: transform 180ms ease, background 180ms ease;
}

body.theme-light .hl-slider:before{
  background: rgba(11,18,32,0.85);
}

.hl-switch input:checked + .hl-slider{
  background: rgba(255,255,255,0.32);
}

body.theme-light .hl-switch input:checked + .hl-slider{
  background: rgba(0,0,0,0.20);
}

.hl-switch input:checked + .hl-slider:before{
  transform: translateX(20px);
}

/* Blur toggle */
body.gaussian-off .hl-header,
body.gaussian-off .hl-card,
body.gaussian-off .hl-settings-panel,
body.gaussian-off .hl-settings-btn,
body.gaussian-off .settings-section{
  backdrop-filter: none !important;
}

body.gaussian-off .hl-header,
body.gaussian-off .hl-card{
  background: var(--hl-panel-bg-strong);
}

/* Pulsate */
@keyframes hlPulse {
  0% { transform: translateZ(0) scale(1); }
  50% { transform: translateZ(0) scale(1.010); }
  100% { transform: translateZ(0) scale(1); }
}

body.pulsate-on .hl-card{
  animation: hlPulse 3.8s ease-in-out infinite;
}

/* Make sure HybrideLabs overlay is above the PS3-XMB canvas */
#waves-background{
  position: fixed;
  inset: 0;
  z-index: 1;
}

#hybridelabs{
  position: relative;
  z-index: 10;
}


/* Theme-aware monochrome icons (white in dark, black in light) */
.themed-icon{
  filter: var(--hl-icon-filter);
}
/* ------------------------------------------------------------------
   HybrideLabs: hero + asset previews + grids (uses /img assets)
   ------------------------------------------------------------------ */

.hl-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hl-logo{
  width: 22px;
  height: 22px;
  display: inline-block;
}

.hl-settings-icon{
  width: 18px;
  height: 18px;
}

.hl-close-icon{
  width: 16px;
  height: 16px;
  display: inline-block;
}

.hl-settings-close{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hl-hero{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: center;
  padding: 10px 0 8px;
}

@media (max-width: 860px){
  .hl-hero{ grid-template-columns: 1fr; }
  .hl-hero-media{ order: -1; }
}

.hl-hero-media{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hl-hero-img{
  width: min(420px, 100%);
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0 18px 60px rgba(0,0,0,0.35));
}

.hl-cta-row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.hl-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--hl-border);
  background: var(--hl-panel-bg);
  color: var(--hl-text);
  text-decoration: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0.2px;
  backdrop-filter: blur(12px);
  transition: transform 120ms ease, background 160ms ease;
}

.hl-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

body.theme-light .hl-btn:hover{
  background: rgba(0,0,0,0.06);
}

.hl-btn-ghost{
  background: transparent;
}

.hl-btn-icon{
  width: 18px;
  height: 18px;
  display: inline-block;
}

.hl-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

@media (max-width: 860px){
  .hl-grid{ grid-template-columns: 1fr; }
  .hl-grid-2{ grid-template-columns: 1fr; }
}

.hl-thumb-card{
  border-radius: 18px;
  border: 1px solid var(--hl-border);
  background: var(--hl-panel-bg);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 14px 42px rgba(0,0,0,0.22);
}

.hl-thumb-card img{
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.hl-thumb-meta{
  padding: 12px 12px 12px;
}

.hl-thumb-title{
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.hl-thumb-sub{
  opacity: 0.9;
  font-size: 13px;
  line-height: 1.35;
}

.hl-project{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--hl-border);
  background: var(--hl-panel-bg);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: var(--hl-text);
  transition: transform 120ms ease, background 160ms ease;
}

.hl-project:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

body.theme-light .hl-project:hover{
  background: rgba(0,0,0,0.06);
}

.hl-project-img{
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.22));
}

.hl-project-title{
  font-weight: 1000;
  letter-spacing: 0.2px;
}

.hl-project-sub{
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

.hl-note{
  margin-top: 18px;
}

.hl-note-row{
  display: flex;
  gap: 12px;
  align-items: center;
}

.hl-note-icon{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.hl-section-title{
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.hl-team{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px){
  .hl-team{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .hl-team{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hl-member{
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 10px 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--hl-border);
  background: rgba(0,0,0,0.14);
}

body.theme-light .hl-member{
  background: rgba(0,0,0,0.03);
}

.hl-avatar{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--hl-border);
  object-fit: cover;
}

.hl-member-name{
  font-weight: 900;
  font-size: 12px;
  opacity: 0.95;
}

.hl-links{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 860px){
  .hl-links{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hl-linkbtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--hl-border);
  background: rgba(0,0,0,0.14);
  color: var(--hl-text);
  text-decoration: none;
  font-weight: 900;
}

body.theme-light .hl-linkbtn{ background: rgba(0,0,0,0.03); }

.hl-link-icon{
  width: 22px;
  height: 22px;
  border-radius: 8px;
  overflow: hidden;
}

/* --- Language flag next to the language select --- */
.hl-lang-wrap{
  display:flex;
  align-items:center;
  gap:10px;
}

.hl-lang-flag{
  width:22px;
  height:16px;
  border-radius:4px;
  object-fit:cover;
  flex:0 0 auto;
  box-shadow:0 0 0 1px rgba(255,255,255,0.12) inset;
}

/* Header — GitHub button */
.hl-github-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;          /* zone cliquable confortable */
  height: 36px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 120ms ease, background 160ms ease;
}

.hl-github-link:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
}

.hl-github-icon{
  width: 28px;
  height: 28px;
}

/* ===== XMB Maintenance Overlay (Glass) ===== */
#hlMaintenance{
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: radial-gradient(1200px 600px at 50% 40%, rgba(255,255,255,.10), rgba(0,0,0,.35) 60%, rgba(0,0,0,.55));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.hl-maintenance-card{
  width: min(720px, calc(100vw - 40px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.28));
  box-shadow:
    0 18px 60px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.18);
  color: #fff;
  padding: 18px 18px 16px 18px;
  position: relative;
  overflow: hidden;
  animation: hlFadeUp 260ms ease-out;
}

/* petite lueur “XMB” */
.hl-maintenance-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(800px 220px at 30% 0%, rgba(120,170,255,.25), transparent 60%);
  pointer-events:none;
}

/* fine barre en haut */
.hl-maintenance-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding: 6px 8px;
  margin: -6px -6px 12px -6px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.hl-maintenance-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(130,200,255,.85);
  box-shadow: 0 0 14px rgba(130,200,255,.65);
  flex: 0 0 auto;
}

.hl-maintenance-title{
  font-size: 26px;
  font-weight: 900;
  letter-spacing: .2px;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}

.hl-maintenance-msg{
  font-size: 15px;
  opacity: .92;
  line-height: 1.55;
  margin-bottom: 8px;
}

.hl-maintenance-sub{
  font-size: 13px;
  opacity: .72;
}

/* bouton optionnel */
.hl-maintenance-actions{
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.hl-maintenance-btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color: #fff;
  padding: 9px 14px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform 120ms ease, background 160ms ease;
}

.hl-maintenance-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
}

@keyframes hlFadeUp{
  from{ opacity: 0; transform: translateY(8px) scale(.99); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}
