/**
 * MIN Livestream Player Styles
 * For individual livestream viewing
 */

.min-livestream-player {
    width: 100%;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.min-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.min-player-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.min-player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.min-player-container:hover .min-player-controls {
    opacity: 1;
}

.min-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.min-control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.min-player-volume {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.min-player-volume input {
    width: 100px;
}

.min-player-info {
    padding: 16px;
    background: white;
    border-top: 1px solid #eee;
}

.min-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.min-player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #f0f0f0;
}

.min-player-vendor {
    flex: 1;
}

.min-player-vendor-name {
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.min-player-vendor-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
}

.min-player-vendor-link:hover {
    color: #005a87;
}

.min-follow-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.min-follow-btn:hover {
    background: #005a87;
}

.min-follow-btn.following {
    background: #f0f0f0;
    color: #333;
}

.min-player-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.min-player-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.min-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Products Section */
.min-player-products {
    margin-top: 12px;
}

.min-products-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

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

.min-product-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.min-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.min-product-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f0f0f0;
}

.min-product-card-body {
    padding: 8px;
}

.min-product-card-name {
    font-size: 12px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.min-product-card-price {
    color: #27ae60;
    font-weight: 600;
    font-size: 12px;
}

/* Chat Section (Optional) */
.min-player-chat {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.min-chat-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.min-chat-messages {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    height: 200px;
    overflow-y: auto;
    padding: 8px;
    margin-bottom: 8px;
}

.min-chat-message {
    font-size: 12px;
    margin-bottom: 6px;
    padding: 6px 8px;
    background: white;
    border-radius: 4px;
}

.min-chat-message strong {
    color: #0073aa;
}

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

.min-chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.min-chat-input button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.min-chat-input button:hover {
    background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
    .min-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .min-player-stats {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .min-player-container {
        aspect-ratio: 9 / 16;
    }

    .min-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .min-chat-messages {
        height: 150px;
    }
}
