/* ======================================================================
   TrackTrack Clone — Thème Glassmorphism Vert d'eau
   Verre depoli, calques lumineux, degrades aquamarine/teal.
   Full responsive mobile-first.
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

:root,
[data-theme="teal"] {
    --sea-1: #0d3b3e;
    --sea-2: #115e59;
    --sea-3: #14b8a6;
    --sea-4: #5eead4;
    --sea-5: #a7f3d0;
    --ink: #0a1f21;
    --bg-1: #071819;
    --bg-2: #0a2b2d;
    --bg-3: #0d3b3e;
    --text-soft: rgba(255,255,255,0.88);
    --text-strong: #f0fdfa;

    --glass-bg: rgba(255, 255, 255, 0.14);
    --glass-bg-strong: rgba(255, 255, 255, 0.22);
    --glass-border: rgba(255, 255, 255, 0.32);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
}



/* ---------- Thème : Orange (coucher de soleil) ---------- */
[data-theme="orange"] {
    --sea-1: #4a1d0d;
    --sea-2: #9a3412;
    --sea-3: #f97316;
    --sea-4: #fdba74;
    --sea-5: #fed7aa;
    --ink: #1f0f05;
    --bg-1: #170b04;
    --bg-2: #2b1206;
    --bg-3: #4a1d0d;
}

/* ---------- Thème : Rose (fuchsia nuit) ---------- */
[data-theme="pink"] {
    --sea-1: #3f0d2e;
    --sea-2: #9d174d;
    --sea-3: #ec4899;
    --sea-4: #f9a8d4;
    --sea-5: #fbcfe8;
    --ink: #1a0611;
    --bg-1: #140410;
    --bg-2: #260a1c;
    --bg-3: #3f0d2e;
}

/* ---------- Thème : Violet (galaxie) ---------- */
[data-theme="violet"] {
    --sea-1: #2e1065;
    --sea-2: #6d28d9;
    --sea-3: #a78bfa;
    --sea-4: #c4b5fd;
    --sea-5: #ddd6fe;
    --ink: #100a26;
    --bg-1: #0b0718;
    --bg-2: #180f2e;
    --bg-3: #2e1065;
}

/* ---------- Thème : Bleu (océan profond) ---------- */
[data-theme="blue"] {
    --sea-1: #0c2d55;
    --sea-2: #1d4ed8;
    --sea-3: #3b82f6;
    --sea-4: #93c5fd;
    --sea-5: #bfdbfe;
    --ink: #05132b;
    --bg-1: #040f22;
    --bg-2: #081d3f;
    --bg-3: #0c2d55;
}

/* ---------- Thème : Jaune (soleil doré) ---------- */
[data-theme="yellow"] {
    --sea-1: #4a3a05;
    --sea-2: #a16207;
    --sea-3: #eab308;
    --sea-4: #fde047;
    --sea-5: #fef9c3;
    --ink: #201a03;
    --bg-1: #171204;
    --bg-2: #2c2308;
    --bg-3: #4a3a05;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Sora', sans-serif;
    color: var(--text-strong);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 45%, var(--bg-3) 100%);
    transition: background 0.4s ease;
}

/* ---------- Halos lumineux flottants en fond ---------- */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    opacity: 0.35;
    animation: floatGlow 16s ease-in-out infinite alternate;
}

body::before {
    width: 480px;
    height: 480px;
    top: -120px;
    left: -100px;
    background: radial-gradient(circle, var(--sea-3), transparent 70%);
}

body::after {
    width: 420px;
    height: 420px;
    bottom: -100px;
    right: -80px;
    background: radial-gradient(circle, var(--sea-4), transparent 70%);
    animation-delay: -8s;
}

@keyframes floatGlow {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.15); }
}

/* ---------- Base glass panel réutilisable ---------- */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

/* ---------- Navigation ---------- */
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(6, 22, 24, 0.85);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.logo {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.2px;
    color: var(--text-strong);
}

.logo .porthole {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sea-4), var(--sea-3));
    box-shadow: 0 0 18px rgba(94, 234, 212, 0.6);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: 999px;
    transition: background 0.25s, color 0.25s;
}

.nav-links a:hover, .nav-links a.active-link {
    background: var(--glass-bg-strong);
    color: var(--text-strong);
    border: 1px solid var(--glass-border);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 40;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text-strong);
    border-radius: 3px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Containers ---------- */
.submarine-container {
    max-width: 460px;
    margin: 56px auto;
    padding: clamp(28px, 5vw, 46px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.submarine-container.wide { max-width: 1100px; }

.submarine-container, .friend-row, .album-card, .chat-layout {
    background: rgba(6, 30, 32, 0.55);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.submarine-container { border-radius: var(--radius-lg); }

h1, h2 {
    color: var(--text-strong);
    font-weight: 700;
    letter-spacing: -0.3px;
}

h1 {
    font-size: clamp(22px, 4vw, 28px);
    margin-top: var(--space-1);
    color: var(--text-strong);
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

h1 .accent {
    color: var(--sea-4);
}

h2 { font-size: clamp(17px, 3vw, 21px); }

/* ---------- Formulaires ---------- */
.yellow-form { text-align: left; }

.yellow-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--sea-5);
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.yellow-form input {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'Sora', sans-serif;
    background: #f0fdfa;
    color: #0a1f21;
    caret-color: #0a1f21;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.yellow-form input::placeholder { color: #5b7d7a; }

.yellow-form input:focus {
    outline: none;
    border-color: var(--sea-3);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.3);
}

.yellow-form input:-webkit-autofill {
    -webkit-text-fill-color: #0a1f21;
    -webkit-box-shadow: 0 0 0 1000px #f0fdfa inset;
}

.yellow-form button, .btn-yellow {
    background: linear-gradient(135deg, var(--sea-3) 0%, var(--sea-2) 100%);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    padding: 14px 26px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    text-decoration: none;
    color: var(--text-strong);
    display: inline-block;
    width: 100%;
}

.btn-yellow:hover, .yellow-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(20, 184, 166, 0.5);
    filter: brightness(1.08);
}

.btn-yellow:active, .yellow-form button:active { transform: translateY(0); }

.btn-grey {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 600;
    color: var(--text-soft);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-grey:hover { background: rgba(255,255,255,0.16); }

.btn-yellow.small, .btn-grey.small {
    padding: 8px 18px;
    font-size: 13px;
    width: auto;
    box-shadow: none;
}

.error {
    color: #fecaca;
    background: rgba(239, 68, 68, 0.15);
    font-weight: 500;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.success {
    color: var(--sea-5);
    font-weight: 500;
    background: rgba(20, 184, 166, 0.15);
    border: 1px solid rgba(20, 184, 166, 0.4);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
}

.submarine-container p a {
    color: var(--sea-4);
    font-weight: 600;
    text-decoration: none;
}

.submarine-container p a:hover { text-decoration: underline; }

/* ---------- Grille d'albums ---------- */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.album-card {
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: left;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.album-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-strong);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.album-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
}

.album-title { font-weight: 700; margin: 10px 0 2px; font-size: 14px; color: var(--text-strong); text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
.album-artist { font-size: 13px; color: #7dd3c0; margin: 0; font-weight: 600; }
.album-meta { font-size: 11.5px; color: rgba(255,255,255,0.65); margin: 3px 0 0; }

/* ---------- Amis ---------- */
.friend-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    transition: background 0.2s;
}

.friend-row:hover { background: var(--glass-bg-strong); }

.friend-row span {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-strong);
}

.friend-row span::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sea-3), var(--sea-5));
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.4);
}

/* ---------- Tchat ---------- */
.chat-layout {
    display: flex;
    max-width: 1100px;
    margin: 44px auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 560px;
}

.chat-sidebar {
    width: 250px;
    flex-shrink: 0;
    padding: 22px 14px;
    overflow-y: auto;
    background: rgba(0,0,0,0.35);
    border-right: 1px solid var(--glass-border);
}

.chat-sidebar h2 { font-size: 16px; margin-top: 4px; color: var(--text-soft); }

.chat-contact {
    display: block;
    padding: 12px 14px;
    color: var(--text-soft);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.chat-contact.active, .chat-contact:hover {
    background: linear-gradient(135deg, rgba(20,184,166,0.35), rgba(94,234,212,0.2));
    color: var(--text-strong);
    border: 1px solid var(--glass-border);
}

.chat-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.messages-box {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.message { margin-bottom: 12px; max-width: 75%; }
.message.me { margin-left: auto; text-align: right; }

.message p {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 16px;
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.4;
}

.message.me p {
    background: linear-gradient(135deg, var(--sea-3), var(--sea-2));
    color: var(--text-strong);
    border-bottom-right-radius: 4px;
}

.message.friend p {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    color: var(--text-strong);
    border-bottom-left-radius: 4px;
}

.msg-author {
    font-size: 10.5px;
    color: rgba(255,255,255,0.6);
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-input { display: flex; gap: 10px; }

.chat-input input {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: 'Sora', sans-serif;
    font-size: 14px;
    background: #f0fdfa;
    color: #0a1f21;
    caret-color: #0a1f21;
}

.chat-input input::placeholder { color: #5b7d7a; }

.chat-input input:focus {
    outline: none;
    border-color: var(--sea-3);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.3);
}

.chat-input button {
    background: linear-gradient(135deg, var(--sea-3), var(--sea-2));
    border: none;
    border-radius: 999px;
    padding: 13px 26px;
    font-weight: 600;
    color: var(--text-strong);
    cursor: pointer;
    transition: transform 0.18s;
}

.chat-input button:hover { transform: scale(1.05); }

/* ======================================================================
   RESPONSIVE — Mobile first
   ====================================================================== */

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 300px);
        background: rgba(10, 31, 33, 0.85);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 24px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        border-left: 1px solid var(--glass-border);
        z-index: 35;
    }

    .nav-links.open { transform: translateX(0); }

    .nav-links a {
        width: 100%;
        margin: 4px 0;
        font-size: 16px;
    }

    .burger { display: flex; }

    .submarine-container {
        margin: 28px 14px;
        padding: 28px 20px;
    }

    .chat-layout {
        flex-direction: column;
        margin: 20px 10px;
        min-height: auto;
    }

    .chat-sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 14px;
        white-space: nowrap;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .chat-contact { margin-bottom: 0; flex-shrink: 0; }

    .chat-main { padding: 16px; }
    .messages-box { max-height: 50vh; }

    .album-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .friend-row {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .friend-row form { display: flex; gap: 8px; }
}

@media (max-width: 420px) {
    .logo { font-size: 17px; }
    h1 { font-size: 20px; }
    .album-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    body::before, body::after { animation: none; }
    * { transition: none !important; }
}


/* ======================================================================
   MODALE — Détails album + liens streaming
   ====================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 15, 16, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: rgba(10, 40, 42, 0.92);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    max-width: 520px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.12);
    border: 1px solid var(--glass-border);
    color: var(--text-strong);
    font-size: 22px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    z-index: 5;
    transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.24); }

#modal-cover {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    background: rgba(0,0,0,0.25);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: block;
}

.modal-info {
    padding: 24px 26px 28px;
    text-align: left;
}

.modal-info h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: var(--text-strong);
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.modal-artist {
    font-size: 15px;
    font-weight: 600;
    color: var(--sea-4);
    margin: 0 0 10px;
}

.modal-meta, .modal-genre {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin: 3px 0;
}

.modal-actions {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-btn {
    width: 100%;
    text-align: center;
}

.modal-link {
    text-align: center;
    font-size: 13px;
    color: var(--sea-4);
    text-decoration: none;
    margin-top: 4px;
    font-weight: 500;
}

.modal-link:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .modal-box { max-height: 92vh; }
    #modal-cover { max-height: 260px; }
    .modal-info { padding: 20px; }
}


/* ======================================================================
   RECHERCHE — Barre de recherche collection
   ====================================================================== */

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: var(--space-2);
}

.collection-header h1 { margin: 0; }

.search-bar {
    position: relative;
    flex: 1;
    max-width: 380px;
    min-width: 220px;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 18px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-family: 'Sora', sans-serif;
    background: #f0fdfa;
    color: #0a1f21;
    caret-color: #0a1f21;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input::placeholder { color: #5b7d7a; }

.search-bar input:focus {
    outline: none;
    border-color: var(--sea-3);
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.3);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(10, 31, 33, 0.15);
    color: #0a1f21;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.search-clear:hover { background: rgba(10, 31, 33, 0.28); }

.no-results {
    text-align: center;
    color: var(--text-soft);
    font-size: 15px;
    padding: 40px 0;
}

@media (max-width: 600px) {
    .collection-header {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar { max-width: none; }
}


/* ======================================================================
   SÉLECTEUR DE THÈME
   ====================================================================== */

.theme-switcher {
    position: relative;
    width: 100%;
}

@media (min-width: 769px) {
    .theme-switcher { width: auto; }
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Sora', sans-serif;
    color: var(--text-soft);
    transition: background 0.2s, color 0.2s;
    width: 100%;
    text-align: left;
    justify-content: flex-start;
}

.theme-toggle-btn:hover { background: var(--glass-bg-strong); color: var(--text-strong); }

.theme-panel {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: rgba(6, 20, 22, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 50;
}

.theme-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s, border-color 0.15s;
    flex-shrink: 0;
}

.theme-swatch:hover { transform: scale(1.15); }
.theme-swatch.active { border-color: #ffffff; }

.theme-swatch[data-swatch="teal"]   { background: linear-gradient(135deg, #14b8a6, #5eead4); }
.theme-swatch[data-swatch="orange"] { background: linear-gradient(135deg, #f97316, #fdba74); }
.theme-swatch[data-swatch="pink"]   { background: linear-gradient(135deg, #ec4899, #f9a8d4); }
.theme-swatch[data-swatch="violet"] { background: linear-gradient(135deg, #a78bfa, #c4b5fd); }
.theme-swatch[data-swatch="blue"]   { background: linear-gradient(135deg, #3b82f6, #93c5fd); }
.theme-swatch[data-swatch="yellow"] { background: linear-gradient(135deg, #eab308, #fde047); }

@media (max-width: 768px) {
    .theme-panel {
        right: -10px;
    }
}


/* Fiche album detaillee dans la modale */
.modal-details {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 13.5px;
}

.modal-detail-label {
    color: var(--sea-4);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.4px;
    align-self: center;
}

.modal-detail-row span:last-child {
    color: var(--text-strong);
    font-weight: 500;
    text-align: right;
}


/* Ajustement du switcher intégré dans la barre de navigation desktop */
@media (min-width: 769px) {
    .nav-links .theme-switcher {
        display: flex;
        align-items: center;
    }
    .nav-links .theme-panel {
        top: 46px;
        right: 0;
    }
}

.notif-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff4d6d;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}
