#v360{
        position: relative;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        font-family: 'Inter', system-ui, -apple-system, sans-serif;
        background-color: #090a0f;
        color: #ffffff;

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        user-select: none;
        -webkit-user-select: none;
    }

    /* 360 WebGL Canvas Viewport */
    #viewport {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        cursor: grab;
        z-index: 1;
        touch-action: none;
        -webkit-tap-highlight-color: transparent;
    }

    #viewport:active {
        cursor: grabbing;
    }

    /* Container pour le mode Flat 2D (Vidéo standard) */
    #flat-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        background: #000;
        z-index: 2;
    }

    #flat-video {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* Navigation Haute & Barres de Playlists */
    .top-bar {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 24px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0));
        transition: opacity 0.3s ease;
    }

    .top-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }


    .playlist-nav-wrapper {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 1;
        min-width: 0;
        position: relative;
    }

    .playlist-tabs {
        display: flex;
        align-items: center;
        overflow-x: auto;
        scroll-behavior: smooth;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        flex: 1;
    }

    .playlist-tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .nav-arrow {
        background: rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #ffffff;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        flex-shrink: 0;
        transition: all 0.2s ease;
        font-size: 0.85rem;
    }

    .nav-arrow:hover {
        background: rgba(99, 102, 241, 0.85);
        border-color: #818cf8;
        box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
        transform: scale(1.05);
    }

    .playlist-tab {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.85);
        padding: 4px 4px 4px 4px;
        border-radius: 24px;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .playlist-tab:hover {
        background: rgba(255, 255, 255, 0.22);
        color: #fff;
        transform: translateY(-1px);
    }

    .playlist-tab.active {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9));
        border-color: #818cf8;
        color: #fff;
        box-shadow: 0 0 14px rgba(99, 102, 241, 0.5);
    }

    .tab-thumb {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        object-fit: cover;
        border: 1.5px solid rgba(255, 255, 255, 0.4);
        background: #1e293b;
        flex-shrink: 0;
    }

    .url-input-container input {
        background: transparent;
        border: none;
        outline: none;
        color: #fff;
        font-size: 0.85rem;
        width: 100%;
        font-family: inherit;
    }

    .url-input-container button {
        background: linear-gradient(135deg, #6366f1, #4f46e5);
        border: none;
        color: white;
        padding: 6px 14px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s;
        white-space: nowrap;
    }

    /* Grand Bouton Lecture Central */
    #play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 5;
        width: 86px;
        height: 86px;
        border-radius: 50%;
        background: rgba(99, 102, 241, 0.85);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
        transition: all 0.3s ease;
    }

    #play-overlay i {
        font-size: 2.2rem;
        color: #ffffff;
        margin-left: 4px;
    }

    #play-overlay:hover {
        transform: translate(-50%, -50%) scale(1.1);
        background: rgba(99, 102, 241, 1);
        box-shadow: 0 0 45px rgba(99, 102, 241, 0.8);
    }

    #play-overlay.hidden {
        opacity: 0;
        pointer-events: none;
        transform: translate(-50%, -50%) scale(0.8);
    }

    /* Barre de Contrôles Inférieure toujours disponible */
    .bottom-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        padding: 24px 24px max(16px, env(safe-area-inset-bottom));
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 70%, rgba(0, 0, 0, 0));
        display: flex;
        flex-direction: column;
        gap: 12px;
        touch-action: auto;
        pointer-events: auto !important;
    }

    /* Barre de progression vidéo */
    .progress-container {
        width: 100%;
        height: 8px;
        background: rgba(255, 255, 255, 0.45);
        backdrop-filter: blur(4px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 8px rgba(255, 255, 255, 0.15);
        border-radius: 4px;
        cursor: pointer;
        position: relative;
        transition: height 0.15s ease, background 0.2s ease;
    }

    .progress-container:hover {
        height: 12px;
        background: rgba(255, 255, 255, 0.6);
    }

    .progress-bar {
        height: 100%;
        background: linear-gradient(90deg, #2563eb 0%, #3b82f6 30%, #ec4899 70%, #ef4444 100%);
        border-radius: 4px;
        width: 0%;
        position: relative;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.7), 0 0 6px rgba(37, 99, 235, 0.5);
    }

    .progress-bar::after {
        content: '';
        position: absolute;
        right: -7px;
        top: 50%;
        transform: translateY(-50%) scale(0);
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: #ffffff;
        border: 2px solid #ef4444;
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.9), 0 0 6px rgba(59, 130, 246, 0.8);
        transition: transform 0.15s ease;
    }

    .progress-container:hover .progress-bar::after {
        transform: translateY(-50%) scale(1);
    }

    .controls-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .controls-left, .controls-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .ctrl-btn {
        background: transparent;
        border: none;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.1rem;
        cursor: pointer;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
    }

    .ctrl-btn:hover {
        color: #ffffff;
        background: rgba(255, 255, 255, 0.15);
    }

    .ctrl-btn.active {
        color: #818cf8;
        background: rgba(99, 102, 241, 0.25);
        box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    }

    .mode-badge {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 5px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mode-badge:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .time-display {
        font-size: 0.85rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.8);
        font-variant-numeric: tabular-nums;
    }

    /* Notifications Toasts */
    #status-badge {
        position: absolute;
        top: 100px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        background: rgba(15, 23, 42, 0.85);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.15);
        padding: 8px 18px;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    #status-badge.show {
        opacity: 1;
        transform: translateX(-50%) translateY(5px);
    }

    /* Hint Box */
    .hint-overlay {
        position: absolute;
        bottom: 90px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(6px);
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.75);
        pointer-events: none;
        display: flex;
        align-items: center;
        gap: 8px;
        animation: fadeInOut 6s forwards;
    }

    @keyframes fadeInOut {
        0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
        15% { opacity: 1; transform: translateX(-50%) translateY(0); }
        85% { opacity: 1; transform: translateX(-50%) translateY(0); }
        100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    }

    @media (max-width: 768px) {
        .top-bar { padding: 12px 16px; }
        .url-input-container { max-width: 100%; }
    }
}