/* JalaLive Stream Plugin Styles */

/* Video Player Styles */
.jalalive-video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.jalalive-video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.jalalive-video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jalalive-video-container:hover .jalalive-video-controls {
    opacity: 1;
}

.jalalive-play-btn {
    background: #ff4757;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.jalalive-play-btn:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.jalalive-quality-selector {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

.jalalive-live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.jalalive-live-dot {
    width: 8px;
    height: 8px;
    background: #ff4757;
    border-radius: 50%;
    animation: jalalive-pulse 1.5s infinite;
}

@keyframes jalalive-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.jalalive-live-text {
    background: #ff4757;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Matches List Styles */
.jalalive-matches-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.jalalive-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.jalalive-match-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.jalalive-match-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: #ff4757;
}

.jalalive-match-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    color: white;
    text-align: center;
}

.jalalive-league-name {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.jalalive-match-time {
    font-size: 16px;
    font-weight: bold;
}

.jalalive-teams-container {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jalalive-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.jalalive-team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jalalive-team-name {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.jalalive-vs {
    font-size: 18px;
    font-weight: bold;
    color: #666;
    margin: 0 15px;
}

.jalalive-match-footer {
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jalalive-streamers-count {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.jalalive-watch-btn {
    background: #ff4757;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.jalalive-watch-btn:hover {
    background: #ff3742;
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* Single Match Page Styles */
.jalalive-single-match {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.jalalive-match-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.jalalive-main-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.jalalive-match-info {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.jalalive-match-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.jalalive-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.jalalive-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.jalalive-sidebar-content {
    padding: 20px;
}

/* Chat Styles */
.jalalive-chat-container {
    height: 400px;
    display: flex;
    flex-direction: column;
}

.jalalive-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.jalalive-chat-message {
    margin-bottom: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jalalive-chat-input {
    display: flex;
    gap: 10px;
}

.jalalive-chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

.jalalive-chat-input button {
    background: #ff4757;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
}

/* Loading Styles */
.jalalive-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.jalalive-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff4757;
    border-radius: 50%;
    animation: jalalive-spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes jalalive-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .jalalive-match-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .jalalive-matches-grid {
        grid-template-columns: 1fr;
    }
    
    .jalalive-teams-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .jalalive-vs {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .jalalive-video-controls {
        padding: 10px;
        gap: 10px;
    }
    
    .jalalive-play-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Theater Mode */
.jalalive-theater-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jalalive-theater-mode .jalalive-video-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.jalalive-theater-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

/* Error States */
.jalalive-error {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.jalalive-error-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ff4757;
}

/* Admin Styles */
.jalalive-admin-container {
    max-width: 1200px;
    margin: 20px 0;
}

.jalalive-admin-card {
    background: white;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    margin-bottom: 20px;
}

.jalalive-admin-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ccd0d4;
    background: #f9f9f9;
    font-weight: bold;
}

.jalalive-admin-content {
    padding: 20px;
}

.jalalive-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.jalalive-stat-card {
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.jalalive-stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #ff4757;
    display: block;
}

.jalalive-stat-label {
    color: #666;
    margin-top: 5px;
}

/* Widget Styles */
.jalalive-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.jalalive-widget-match {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.jalalive-widget-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #ff4757;
}

/* Widget Full Layout */
.jalalive-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.jalalive-widget-league {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.jalalive-widget-time {
    font-size: 12px;
    color: #999;
}

.jalalive-widget-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.jalalive-widget-team {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.jalalive-widget-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

.jalalive-widget-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.jalalive-widget-vs {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin: 0 10px;
}

.jalalive-widget-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jalalive-widget-live {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #ff4757;
    font-weight: bold;
}

.jalalive-widget-dot {
    width: 6px;
    height: 6px;
    background: #ff4757;
    border-radius: 50%;
    animation: jalalive-pulse 1.5s infinite;
}

.jalalive-widget-streams {
    font-size: 11px;
    color: #666;
}

/* Widget Compact Layout */
.jalalive-widget-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jalalive-widget-teams-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.jalalive-widget-logo-small {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
}

.jalalive-widget-match-text {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.jalalive-widget-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jalalive-widget-time-small {
    font-size: 11px;
    color: #666;
}

.jalalive-widget-live-small {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #ff4757;
    font-weight: bold;
}

.jalalive-widget-dot-small {
    width: 5px;
    height: 5px;
    background: #ff4757;
    border-radius: 50%;
    animation: jalalive-pulse 1.5s infinite;
}

.jalalive-widget-more {
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 15px;
}

.jalalive-widget-more-btn {
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
    display: inline-block;
}

.jalalive-widget-more-btn:hover {
    background: #ff3742;
    color: white;
    text-decoration: none;
}

.jalalive-widget-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.jalalive-widget-refresh {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.3s;
}

.jalalive-widget-refresh:hover {
    background: #218838;
    color: white;
    text-decoration: none;
} 