﻿:root {
    --ivory: #FAF7F2;
    --ink: #FFFFFF;
    --muted: #6B6B6B;
    --line: #DDD7CF;
    --gest: #CCCCCC; /* fons fosc */
    --accent: #2F3A4A; /* blau fosc editorial */
    --card: #FFFFFF;
    --btnbkp: #0fcb35;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: black;
    color: var(--ink);
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
        text-decoration-color: var(--line);
        text-underline-offset: 4px;
    }

option {
    background-color: #333333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
 
}
.container2 {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    
    background: rgba(255,255,255,.12); 
    border:1px solid rgba(255,255,255,.2); 
    border-radius:16px; 
    padding:16px;

}

.container3 {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 16px;
    padding: 16px;
}

.FonsInputEdit {

    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.6);
    background: rgba(255,255,255,.3);
    color: var(--txt);
}


.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 200;
    pointer-events: none;
    height: auto;
    border-bottom: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 48px;
    gap: .75rem;
    padding: 0 1.25rem;
    pointer-events: none;
}

/* ── Hamburger button ── */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s;
    pointer-events: auto;
}

.hamburger-btn:hover {
    background: rgba(0,0,0,.65);
}

.hamburger-btn span {
    display: block;
    height: 2px;
    background: #e5e5e5;
    border-radius: 1px;
    transition: transform .25s, opacity .25s;
}

.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Top bar right ── */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 4px 14px 4px 10px;
    pointer-events: auto;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-username {
    color: var(--txt, #e5e5e5);
    font-size: .82rem;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-brand {
    font-family: Calibri, sans-serif;
    font-size: 1.35rem;
    color: #FFDE59;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    white-space: nowrap;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 4px 14px;
    pointer-events: auto;
}

.topbar-brand:hover { color: #ffe680; }


.brand .title {
    font-family: Calibri;
    font-size: 1.9rem;
    letter-spacing: 0.2px;
    color: #FFDE59;
    white-space: nowrap;
}

/* ── Hamburger drawer ── */
.hamburger-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -300px;
    width: 280px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-left: 1px solid rgba(255,255,255,.08);
    z-index: 300;
    transition: right .3s ease;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    pointer-events: auto;
    padding-top: 0;
}

.hamburger-drawer.open {
    right: 0;
}

/* ── Drawer: marca LPMania ── */
.drawer-brand-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.drawer-brand-link {
    font-family: Calibri, sans-serif;
    font-size: 1.5rem;
    color: #FFDE59;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
}

.drawer-brand-link:hover {
    color: #ffe680;
}

/* ── Drawer: secció usuari ── */
.drawer-user-section {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.drawer-username {
    color: #e5e5e5;
    font-size: .92rem;
    font-weight: 500;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hamburger-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 250;
}

.hamburger-overlay.open {
    display: block;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.drawer-nav a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.5rem;
    color: #d1d5db;
    text-decoration: none;
    font-size: .95rem;
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}

.drawer-nav a:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-left-color: #d9a441;
}

.drawer-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: .7;
}

.drawer-section {
    padding: .5rem 1.5rem;
    margin-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.06);
}

.drawer-section-title {
    font-size: .7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .5rem;
}

/* Hide old nav (now inside drawer) */
.nav { display: none !important; }
.brand { display: none !important; }

.hero {
    padding: 20px 0 2rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: start;
  
}

.hero-cover {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.25rem;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.cover-frame {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 500px;
    border-radius: 4px;
    overflow: hidden;
    background: #f2eee6;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
}

    .cover-frame img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.cover-frame-detall {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 500px;
    border-radius: 4px;
    overflow: hidden;
    background: #f2eee6;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
}

    .cover-frame-detall img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.hero-meta h1 {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.2rem;
    line-height: 1.15;
    margin: 0 0 0.75rem 0;
}

.hero-meta .lead {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 0 1.25rem 0;
    max-width: 42ch;
}

.hero-meta .fine {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 1.25rem;
    border-left: 2px solid var(--line);
    padding-left: 0.9rem;
}

.btn-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.15rem;
    border-radius: 4px;
    font-size: 0.95rem;
    border: 1px solid var(--accent);
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--ivory);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
}

.section {
    padding: 1.75rem 0 0 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

    .section-title h2 {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 1.35rem;
        margin: 0;
    }

    .section-title .hint {
        color: var(--muted);
        font-size: 0.9rem;
    }

.grid {
    display: grid;
    gap: 1.25rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.album-card {
    width: 100%;
    max-width: 250px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 120ms ease;
}

    .album-card:hover {
        transform: translateY(-2px);
    }

    .album-card .thumb {
        aspect-ratio: 1 / 1;
        background: #f2eee6;
        border-bottom: 1px solid var(--line);
        position: relative;
    }

        .album-card .thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .album-card .thumb .card-actions {
            position: absolute;
            bottom: 6px;
            right: 6px;
            display: flex;
            gap: 6px;
            opacity: 0;
            transition: opacity 180ms ease;
        }

    .album-card:hover .thumb .card-actions {
        opacity: 1;
    }

        .album-card .thumb .card-actions button {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            background: rgba(0,0,0,.55);
            color: #fff;
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            backdrop-filter: blur(4px);
            transition: background 120ms ease, transform 120ms ease;
        }

            .album-card .thumb .card-actions button:hover {
                background: rgba(0,0,0,.8);
                transform: scale(1.12);
            }

    .album-card .info {
        padding: 0.9rem 0.95rem 1rem 0.95rem;
    }

    .album-card .name {
        font-family: Georgia, "Times New Roman", Times, serif;
        font-size: 1.05rem;
        margin: 0 0 0.25rem 0;
    }

    .album-card .meta {
        color: var(--muted);
        font-size: 0.9rem;
        display: flex;
        gap: 0.6rem;
        flex-wrap: wrap;
    }

.badge {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(250,247,242,0.7);
}

.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 1.25rem;
}

    .footer-grid a {
        text-decoration: none;
    }

        .footer-grid a:hover {
            text-decoration: underline;
            text-decoration-color: var(--line);
        }

/* Header background removed - now transparent overlay */

/* Album Details */
.album-details {
    padding: 2.25rem 0 1.5rem 0;
}

.album-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.25rem;
    align-items: start;
}

.panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.25rem;
}

.album-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 2.1rem;
    line-height: 1.15;
    margin: 0 0 0.5rem 0;
}

.album-submeta {
    color: var(--muted);
    font-size: 0.95rem;
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
}

.prologue {
    color: var(--ink);
    margin: 0 0 1.15rem 0;
    max-width: 62ch;
}

.kv {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin: 0.6rem 0 0 0;
}

    .kv .badge {
        border-color: var(--line);
    }

.buy-panel {
    position: sticky;
    top: 92px; /* header 72 + aire */
}

.buy-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.15rem;
    margin: 0 0 0.75rem 0;
}

.buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 0;
    border-top: 1px solid var(--line);
}

    .buy-row:first-of-type {
        border-top: none;
        padding-top: 0;
    }

    .buy-row .label {
        display: flex;
        flex-direction: column;
        gap: .1rem;
    }

        .buy-row .label .main {
            font-size: .98rem;
        }

        .buy-row .label .sub {
            font-size: .85rem;
            color: var(--muted);
        }

.price {
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    width: 280px;
}

.progress {
    margin-top: .75rem;
    border-top: 1px solid var(--line);
    padding-top: .75rem;
}

    .progress .bar {
        height: 8px;
        background: #eee7de;
        border: 1px solid var(--line);
        border-radius: 999px;
        overflow: hidden;
    }

        .progress .bar > span {
            display: block;
            height: 100%;
            background: var(--accent);
            width: 0%;
        }

    .progress .txt {
        margin-top: .4rem;
        font-size: .85rem;
        color: var(--muted);
    }

.section-block {
    margin-top: 1.75rem;
}

.block-title {
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
}

.tracklist {
    border-top: 1px solid var(--line);
}

.track {
    display: grid;
    grid-template-columns: 48px minmax(0, auto) 1fr auto auto;
    gap: .75rem;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}

    .track audio {
        display: none;
    }

    .track .num {
        color: var(--muted);
        font-variant-numeric: tabular-nums;
    }

    .track .tname {
        margin: 0;
        font-size: 1rem;
    }

    .track .dur {
        color: var(--muted);
        font-variant-numeric: tabular-nums;
        text-align: right;
    }

.playbtn {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(250,247,242,0.7);
    cursor: pointer;
}

.lyrics-btn {
    background: #d9a441;
    border-color: #d9a441;
}

.lyrics-btn img {
    filter: brightness(0) invert(1);
}

    .playbtn:hover {
        border-color: var(--accent);
    }

.notes {
    color: var(--muted);
    max-width: 70ch;
}

.mini-links a {
    text-decoration: none;
}

    .mini-links a:hover {
        text-decoration: underline;
        text-decoration-color: var(--line);
    }

/* Galeria */
.gallery-slider {
    margin-top: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .25rem;
}

.gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: 1rem;
}

.gallery-item {
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-subtitle {
    margin: 1.2rem 0 .6rem 0;
    font-size: 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.video-card {
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--card);
}

.video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: #000;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-title {
    padding: .75rem;
    font-size: .9rem;
    color: var(--muted);
}

.FonsEditFosc {
    
}

    /* Tema fosc per Inici i Àlbums (sense tocar la capçalera) */
    main {
    background: #000;
    color: var(--ink);
    --ink: #EDEDED;
    --muted: #A3A3A3;
    --line: #2A2A2A;
    --card: #333333;
    --accent: #7AA2FF;
}

    main .panel,
    main .hero-cover,
    main .album-card,
    main .gallery-item,
    main .video-card {
        background: var(--card);
        border-color: var(--line);
    }

        main .album-card .thumb {
            background: #0B0B0B;
            border-color: var(--line);
        }

    main .tracklist,
    main .track,
    main .progress,
    main .progress .bar {
        border-color: var(--line);
    }

        main .progress .bar {
            background: #1B1B1B;
        }

    main .playbtn {
        background: rgba(255, 255, 255, 0.06);
        border-color: var(--line);
        color: var(--ink);
    }

    main .btn-primary,
    main .btn-secondary {
        background: #D4AF37;
        color: #0B0B0B;
        border-color: #D4AF37;
    }

        main .btn-primary:hover,
        main .btn-secondary:hover {
            background: #E3C35B;
            border-color: #E3C35B;
            color: #0B0B0B;
        }

    /* Badges en tema fosc (mel fosc + text blanc) */
    main .badge {
        background: #9A742B;
        color: #FFFFFF;
        border-color: #9A742B;
    }

/* Footer en fosc */
.site-footer {
    background: #000;
    border-color: #2A2A2A;
    --ink: #EDEDED;
    --muted: #A3A3A3;
    --line: #2A2A2A;
}

.credits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 980px) {
    .credits-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE: Tablet ===== */
@media (max-width: 768px) {
    .container, .container2, .container3 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .site-header {
        height: auto;
    }

    .header-inner {
        height: 44px;
        padding: 0 .75rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-cover {
        max-width: 100%;
    }

    .album-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-card {
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .track {
        grid-template-columns: 32px minmax(0, auto) 1fr auto auto;
        gap: .5rem;
        font-size: .9rem;
    }

    .track .dur {
        display: none;
    }

    .buy-row {
        flex-direction: column;
        align-items: flex-start;
        gap: .5rem;
    }
}

/* ===== RESPONSIVE: Mòbil ===== */
@media (max-width: 480px) {
    .hero {
        padding: 20px 0 1rem 0;
    }

    .hero-cover {
        padding: .75rem;
    }

    .grid-4 {
        grid-template-columns: 1fr;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .album-title {
        font-size: 1.5rem;
    }

    .track {
        grid-template-columns: 28px minmax(0, auto) 1fr auto auto;
        padding: .6rem 0;
    }

    .playbtn {
        width: 28px;
        height: 28px;
    }

    .section-block {
        margin-top: 1rem;
    }
}