@font-face {
    font-family: 'MinecraftCustom';
    src: url('font/minecraft.ttf') format('truetype'),
         url('font/minecraft.otf') format('opentype');
}
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --mc-font: 'MinecraftCustom', 'Press Start 2P', monospace;
    --color-yellow: #EBD626;
    --color-white: #FFFFFF;
    --color-black: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none !important;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: var(--mc-font);
    background: var(--color-black);
    color: var(--color-white);
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 18px;
}

::-webkit-scrollbar {
    display: none;
}
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- HEADER PRINCIPAL --- */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 95px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.header-left, .header-nav, .header-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-icon {
    height: 55px;
    cursor: pointer;
    transition: transform 0.2s;
}
.header-icon:hover { transform: scale(1.1); }

.header-nav {
    gap: 35px;
}

.nav-link {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--mc-font);
    font-size: 1.15rem;
    padding: 10px 8px;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active { 
    color: var(--color-yellow); 
}

.admin-btn {
    background: #EBD626;
    color: #000000;
    border: 2px solid #000000;
    padding: 12px 22px;
    font-family: var(--mc-font);
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    border-radius: 0px; 
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
    transition: transform 0.05s ease, filter 0.2s ease;
    letter-spacing: 1px;
}
.admin-btn:hover { 
    filter: brightness(1.05); 
    transform: translateY(-1px);
}
.admin-btn:active {
    transform: translateY(2px);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.panel-btn { 
    background: #EBD626; 
    color: #000000; 
}

.logout-btn { 
    background: #ef4444; 
    color: var(--color-white); 
    padding: 12px 16px;
}

/* --- CONTENEUR DES PAGES --- */
.page-container {
    position: relative;
    z-index: 10;
    width: 100%;
}

.content-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 120px 20px 100px 20px;
}

/* --- FRAME ACCUEIL --- */
.hero-section {
    background: url('hud/other/background/fnaf1Back.svg') no-repeat center center fixed;
    background-size: cover;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 85%, #000000 100%);
    backdrop-filter: blur(1px);
    z-index: 1;
    pointer-events: none;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: auto;
}

.main-title-img {
    max-width: 80vw;
    width: 900px;
    height: auto;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.9));
}

.hero-title-text {
    font-size: 3.5rem;
    color: var(--color-white);
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px var(--color-black);
}

.hero-footer-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #d1d5db;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

/* --- FRAMES PRODUITS & DESIGN DES CARTES --- */
.page-section {
    background: var(--color-black);
    align-items: center;
    justify-content: flex-start;
}

.section-header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.2rem;
    color: var(--color-yellow);
    margin-bottom: 15px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
    width: 100%;
    max-width: 1400px;
    padding: 10px 0;
    margin: 0 auto;
}

.item-card {
    background: rgba(14, 14, 14, 0.95);
    border: none;
    border-radius: 0px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
}
.item-card:hover { 
    transform: scale(1.03); 
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
    z-index: 10;
}

.card-version {
    position: absolute;
    top: 22px;
    right: 22px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--color-yellow);
    font-size: 0.75rem;
    padding: 6px 12px;
    border: 1px solid #333;
    letter-spacing: 1px;
    z-index: 3;
}

.item-card img.card-thumb { 
    width: 100%; 
    aspect-ratio: 3/4; 
    object-fit: cover; 
    border-radius: 0px; 
    margin-bottom: 20px; 
}

.card-title { 
    font-size: 0.95rem; 
    margin-bottom: 25px; 
    text-align: left;
    color: var(--color-white);
    line-height: 1.4;
}

.card-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.like-action-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.img-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform 0.15s ease;
}
.img-action-btn:hover { transform: scale(1.15); }

.like-icon-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    image-rendering: high-quality;
}

.likes-count {
    font-size: 0.9rem;
    color: #ccc;
    font-weight: bold;
}

/* --- BOUTON GET --- */
.get-download-btn {
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--mc-font);
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    padding: 8px 16px;
    transition: color 0.2s ease, transform 0.1s ease;
}
.get-download-btn:hover {
    color: var(--color-yellow);
    transform: scale(1.05);
}

/* --- SECTION INFOS --- */
.glass-box {
    background: rgba(12, 12, 12, 0.85);
    border: none !important;
    padding: 35px;
    width: 100%;
    max-width: 500px;
    border-radius: 0px;
    text-align: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9);
    margin: 0 auto;
}

.info-box-clean {
    max-width: 750px !important;
    padding: 40px !important;
    text-align: center;
}

.info-main-title {
    color: var(--color-yellow);
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.box-desc {
    font-size: 0.8rem;
    color: #dedede;
    line-height: 1.6;
    margin-bottom: 25px;
}

.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin: 25px 0;
}

.yt-main-btn {
    margin-bottom: 30px;
}

.team-title {
    color: var(--color-yellow);
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.team-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.team-link-btn {
    background: rgba(0, 0, 0, 0.6);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    font-family: var(--mc-font);
    font-size: 0.75rem;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.team-link-btn:hover {
    background: var(--color-yellow);
    color: var(--color-black);
    border-color: var(--color-yellow);
    transform: translateY(-2px);
}

/* --- BOUTON DE FICHIER PERSONNALISÉ --- */
.file-custom-label {
    display: block;
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--mc-font);
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.file-custom-label:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: var(--color-yellow);
}
.file-input-hidden {
    display: none;
}

/* --- MODALES --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.minecraft-hud-box {
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 40px;
    width: 90%;
    max-width: 480px;
    border-radius: 0px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    text-align: center;
    font-family: var(--mc-font);
}

.hud-title {
    color: var(--color-yellow);
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.hud-input-group {
    margin-bottom: 18px;
}

.minecraft-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-family: var(--mc-font);
    font-size: 0.85rem;
    border-radius: 0px;
    transition: border-color 0.2s ease;
}
.minecraft-input:focus {
    border-color: var(--color-yellow);
}

.minecraft-action-btn {
    width: 100%;
    background: var(--color-yellow);
    color: #000000;
    border: none;
    padding: 16px;
    font-family: var(--mc-font);
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 0px;
    transition: filter 0.2s ease, transform 0.1s ease;
    letter-spacing: 1px;
}
.minecraft-action-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.hud-toggle-link {
    margin-top: 20px;
    color: #aaa;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.hud-toggle-link:hover {
    color: var(--color-yellow);
}

.hud-close-btn {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(239, 68, 68, 0.8);
    color: #ffffff;
    border: none;
    width: 32px; height: 32px;
    font-family: var(--mc-font);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0px;
    transition: background 0.2s ease;
}
.hud-close-btn:hover {
    background: #ef4444;
}

.manage-sub-title {
    color: var(--color-yellow);
    font-size: 0.85rem;
    margin-top: 20px;
    margin-bottom: 8px;
    text-align: left;
}

/* --- BOUTONS EDIT & X DANS LE PANEL --- */
.manage-action-btn-edit {
    background: #333333;
    color: var(--color-white);
    border: 1px solid #555555;
    padding: 6px 12px;
    font-family: var(--mc-font);
    font-size: 0.65rem;
    cursor: pointer;
    border-radius: 0px;
    transition: background 0.2s, border-color 0.2s;
}
.manage-action-btn-edit:hover {
    background: var(--color-yellow);
    color: var(--color-black);
    border-color: #000;
}

.manage-action-btn-del {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
    padding: 6px 12px;
    font-family: var(--mc-font);
    font-size: 0.65rem;
    cursor: pointer;
    border-radius: 0px;
    transition: background 0.2s, color 0.2s;
}
.manage-action-btn-del:hover {
    background: #ef4444;
    color: var(--color-white);
}

/* --- PANEL PLEIN ÉCRAN --- */
.full-screen-panel {
    width: 95% !important;
    max-width: 950px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
}

.auth-box-inner {
    max-width: 480px;
    margin: 0 auto;
}

.panel-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

@media(max-width: 768px) {
    .panel-form-grid {
        grid-template-columns: 1fr;
    }
}

.manage-scroll-box-large {
    height: 320px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
}

/* --- LECTEUR AUDIO --- */
#toggle-player-btn {
    position: fixed;
    bottom: 15px;
    left: 30px;
    z-index: 1001;
    background: transparent;
    color: var(--color-white);
    border: none;
    font-family: var(--mc-font);
    font-size: 0.7rem;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: bottom 0.3s ease, color 0.2s;
}
#toggle-player-btn:hover {
    color: var(--color-yellow);
}

body.player-open #toggle-player-btn {
    bottom: 92px; 
}

#apple-music-player {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    height: 85px;
    background: transparent;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    transition: transform 0.3s ease;
}

#apple-music-player.hidden {
    transform: translateY(100%);
}

#apple-music-player::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%);
    z-index: -1;
    pointer-events: none;
}

.player-left, .player-center, .player-right {
    position: relative;
    z-index: 2;
}

.player-left { display: flex; align-items: center; gap: 15px; width: 25%; }
.album-art { width: 50px; height: 50px; border-radius: 0px; object-fit: cover; background: #222; }
.track-title { font-size: 0.75rem; color: var(--color-white); margin-bottom: 4px; }
.track-artist { font-size: 0.6rem; color: var(--color-yellow); }

.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 50%; }
.player-buttons { display: flex; align-items: center; gap: 20px; }

.p-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.player-svg-icon { width: 24px; height: 24px; object-fit: contain; transition: filter 0.2s; }
.p-btn:hover .player-svg-icon { filter: drop-shadow(0 0 2px var(--color-yellow)); }

.progress-container { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 450px; }
.time-display { font-size: 0.6rem; color: var(--color-white); width: 35px; }

.progress-bar { 
    flex-grow: 1; 
    height: 6px; 
    appearance: none; 
    background: #333; 
    border-radius: 0px; 
    cursor: pointer; 
}
.progress-bar::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 14px;
    background: var(--color-white);
    border: 1px solid #000;
    cursor: pointer;
}

.player-right { display: flex; align-items: center; gap: 10px; width: 25%; justify-content: flex-end; }
.vol-label { font-size: 0.75rem; color: var(--color-white); }

#volume-slider {
    width: 90px;
    height: 6px;
    appearance: none;
    background: #333;
    border-radius: 0px;
    cursor: pointer;
}
#volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 14px;
    background: var(--color-white);
    border: 1px solid #000;
    cursor: pointer;
    transition: background 0.2s;
}

/* --- FOOTER --- */
.site-footer {
    width: 100%;
    background: #000000;
    padding: 50px 0 30px 0;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo-img {
    height: 167px;
    width: auto;
}

.footer-nav-links {
    display: flex;
    gap: 25px;
}

.footer-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-family: var(--mc-font);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.footer-nav-links a:hover {
    color: var(--color-yellow);
}

.footer-line {
    border: none;
    border-top: 1px solid #ffffff;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mc-font);
    font-size: 0.7  5rem;
}

.footer-copyright {
    color: #ffffff;
}

.footer-disclaimer {
    color: #EBD626;
}

@media(max-width: 768px) {
    .footer-top, .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* --- STYLES POUR LES PAGES LÉGALES & LEUR HEADER --- */
.legal-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-bottom: none
}

.legal-header-logo {
    height: 150px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.legal-header-logo:hover {
    transform: scale(1.08);
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 130px 20px 80px 20px;
    font-family: var(--mc-font);
    color: #ffffff;
    line-height: 1.6;
}

.legal-page h1 {
    color: var(--color-yellow);
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-align: center;
}

.legal-page h2 {
    color: var(--color-yellow);
    font-size: 1rem;
    margin-top: 30px;
    margin-bottom: 12px;
}

.legal-page p, .legal-page li {
    font-size: 0.75rem;
    color: #dedede;
    margin-bottom: 10px;
}

.legal-page ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.legal-back-btn {
    display: inline-block;
    margin-top: 40px;
    background: var(--color-yellow);
    color: #000;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
}
.legal-back-btn:hover {
    filter: brightness(1.1);
}
/* --- BOUTON BURGER (Caché sur PC par défaut) --- */
.burger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    padding: 0;
    z-index: 102;
}
.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-white);
    transition: background 0.2s;
}
.burger-btn:hover span {
    background: var(--color-yellow);
}

/* Menu Mobile HUD (Caché par défaut) */
.mobile-nav-hud {
    position: fixed;
    top: 95px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 0;
    z-index: 99;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav-hud.hidden {
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
}
.mobile-nav-hud .nav-link {
    font-size: 1.1rem;
}


/* --- MEDIA QUERIES POUR TABLETTES & TÉLÉPHONES --- */

/* Tablettes (max-width: 1024px) */
@media(max-width: 1024px) {
    .main-header {
        padding: 0 20px;
    }
    .header-nav {
        gap: 15px;
    }
    .nav-link {
        font-size: 0.9rem;
    }
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        max-width: 900px;
    }
}

/* Téléphones (max-width: 768px) */
@media(max-width: 768px) {
    .main-header {
        padding: 0 15px;
        height: 75px;
    }
    .header-icon {
        height: 40px;
    }
    /* Masquer la navigation classique PC sur mobile */
    .header-nav {
        display: none !important;
    }
    /* Afficher le bouton Burger */
    .burger-btn {
        display: flex;
    }
    .admin-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    /* Ajustement de la grille de produits sur mobile */
    .content-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .content-section {
        padding: 90px 10px 80px 10px;
    }

    /* --- ADAPTATION DU LECTEUR AUDIO SUR TÉLÉPHONE --- */
    #apple-music-player {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 12px;
        background: rgba(12, 12, 12, 0.95);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .player-left, .player-center, .player-right {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .player-right {
        display: none; /* Masquer le volume sur petit écran pour gagner de la place, ou le garder centré */
    }
    
    .player-center {
        gap: 4px;
    }
    
    .progress-container {
        max-width: 100%;
    }

    body.player-open #toggle-player-btn {
        bottom: 165px; /* Ajuster la position du bouton music quand le player mobile est ouvert */
    }
}
/* --- PANEL PLEIN ÉCRAN ADATAPTABLE --- */
.full-screen-panel {
    width: 95% !important;
    max-width: 950px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px 20px;
}

.auth-box-inner {
    max-width: 480px;
    margin: 0 auto;
}

.panel-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    text-align: left;
}

.manage-scroll-box-large {
    height: 320px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px;
}

/* --- ADAPTATION MOBILE ET TABLETTE POUR LE PANEL --- */
@media(max-width: 768px) {
    .full-screen-panel {
        width: 98% !important;
        padding: 20px 15px;
        max-height: 95vh;
    }

    .panel-form-grid {
        grid-template-columns: 1fr; /* Passage sur une seule colonne empilée sur téléphone */
        gap: 20px;
    }

    .manage-scroll-box-large {
        height: 220px; /* Réduction de la hauteur de la liste sur mobile pour éviter les débordements */
    }
}