/* ThreeGigs v25 - Mini Player Styles */
/* File: /css/v25/components/mini-player.css */

/* Overlay */
.mini-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: var(--tg-spacing-lg);
}

    .mini-player-overlay.active {
        opacity: 1;
    }

/* Modal */
.mini-player-modal {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--tg-surface);
    border-radius: var(--tg-radius-xl);
    box-shadow: var(--tg-shadow-2xl);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.mini-player-overlay.active .mini-player-modal {
    transform: scale(1);
}

/* Close button */
.mini-player-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .mini-player-close:hover {
        background: var(--tg-primary);
        transform: rotate(90deg);
    }

/* Content */
.mini-player-content {
    display: flex;
    flex-direction: column;
}

/* Media Stage */
.mini-player-stage {
    position: relative;
    width: 100%;
    background: #000;
}

/* Video container for ThreeGigsVideoPlayer */
.mini-player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

    /* Override ThreeGigsVideoPlayer styles in mini context */
    .mini-player-container .tg-video-player {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .mini-player-container .tg-video-element {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

/* Audio wrapper */
.mini-player-audio-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem 2rem;
    gap: 2rem;
}

.mini-player-artwork {
    width: 200px;
    height: 200px;
    border-radius: var(--tg-radius-lg);
    overflow: hidden;
    box-shadow: var(--tg-shadow-lg);
}

    .mini-player-artwork img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Info section */
.mini-player-info {
    padding: 1.5rem 2rem;
    background: var(--tg-background);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.mini-player-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    flex: 1;
}

/* Watch full button */
.btn-watch-full {
    background: var(--tg-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--tg-radius-md);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .btn-watch-full:hover {
        background: var(--tg-primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .mini-player-overlay {
        padding: 0;
    }

    .mini-player-modal {
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    .mini-player-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mini-player-stage {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mini-player-info {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .mini-player-title {
        text-align: center;
    }

    .btn-watch-full {
        justify-content: center;
    }

    .mini-player-audio-wrapper {
        flex: 1;
        justify-content: center;
    }
}
