/**
 * Niko Slash Video Access — Styles player (S2)
 *
 * Palette : #1a1a1a fond | #c9a227 or | #8B0000 rouge | #f5f5f5 texte
 *
 * @package NikoSlash\VideoAccess
 */

/* ==========================================================================
   Page player globale
   ========================================================================== */

.nsva-player-page {
    background: #0d0d0d;
    min-height: 100vh;
    color: #f5f5f5;
    padding-bottom: 60px;
}

/* ==========================================================================
   Header (fil d'Ariane + titre)
   ========================================================================== */

.nsva-player-header {
    background: #1a1a1a;
    border-bottom: 1px solid #2a2a2a;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nsva-back-link {
    color: #c9a227;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: color .2s;
}

.nsva-back-link:hover,
.nsva-back-link:focus {
    color: #e8c94a;
    text-decoration: none;
}

.nsva-player-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    color: #f5f5f5;
    line-height: 1.3;
}

/* ==========================================================================
   Zone principale
   ========================================================================== */

.nsva-player-stage {
    max-width: 1100px;
    margin: 36px auto;
    padding: 0 24px;
}

/* ==========================================================================
   Container player + états
   ========================================================================== */

#nsva-player-container {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
    min-height: 200px;
    position: relative;
}

/* Loading */
#nsva-player-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 80px 24px;
    color: #777;
    font-size: 14px;
}

.nsva-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid #2a2a2a;
    border-top-color: #c9a227;
    border-radius: 50%;
    animation: nsva-spin .75s linear infinite;
}

@keyframes nsva-spin {
    to { transform: rotate( 360deg ); }
}

/* Error */
#nsva-player-error {
    display: none;
    background: rgba( 139, 0, 0, .12 );
    border: 1px solid rgba( 139, 0, 0, .6 );
    border-radius: 6px;
    padding: 18px 22px;
    color: #ff7a7a;
    font-size: 14px;
    margin-top: 14px;
    line-height: 1.5;
}

/* Player iframe wrapper (injecté par le serveur) */
.nsva-player-wrapper {
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

/* Watermark email — CSS overlay côté serveur */
.nsva-watermark {
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: rgba( 255, 255, 255, .3 );
    font-size: 11px;
    font-family: monospace;
    pointer-events: none;
    user-select: none;
    z-index: 10;
}

/* ==========================================================================
   Navigation sous-parties
   ========================================================================== */

.nsva-sub-parts {
    margin-top: 28px;
}

.nsva-sub-parts-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #666;
    margin-bottom: 10px;
}

.nsva-sub-part-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #181818;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #d0d0d0;
    padding: 13px 16px;
    margin-bottom: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    line-height: 1.4;
    transition: border-color .2s, background .2s, color .2s;
}

.nsva-sub-part-btn:hover {
    border-color: #c9a227;
    background: #1c1a10;
    color: #f5f5f5;
}

.nsva-sub-part-btn.active {
    border-color: #c9a227;
    background: #1c1a10;
    color: #f5f5f5;
    font-weight: 600;
}

.nsva-sub-part-btn .nsva-part-number {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.nsva-sub-part-btn:hover .nsva-part-number,
.nsva-sub-part-btn.active .nsva-part-number {
    background: #c9a227;
    color: #000;
}

.nsva-sub-part-btn .nsva-part-duration {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 12px;
    color: #666;
    font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media ( max-width: 640px ) {
    .nsva-player-header {
        padding: 12px 16px;
        gap: 10px;
    }

    .nsva-player-title {
        font-size: 15px;
    }

    .nsva-player-stage {
        padding: 0 14px;
        margin: 20px auto;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   TABLATURES — téléchargements sous le player (v4)
═══════════════════════════════════════════════════════════════════════ */

.nsva-player-tablatures {
    margin: 20px 0 8px;
    padding: 16px 18px;
    border: 1px solid rgba(201, 162, 39, .35);
    border-radius: 8px;
    background: rgba(201, 162, 39, .06);
}

.nsva-tablatures-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-weight: 700;
    color: #f5f5f5;
}

.nsva-tablatures-title .dashicons {
    color: #c9a227;
}

.nsva-tablatures-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nsva-btn--tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    color: #1a1a1a;
    background: #c9a227;
    border: 1px solid #c9a227;
    transition: background .15s ease, transform .05s ease;
}

.nsva-btn--tab:hover {
    background: #e0b62c;
}

.nsva-btn--tab:active {
    transform: translateY(1px);
}

.nsva-btn--tab .dashicons {
    line-height: 1;
}
