/* World Cup Live Streaming - Styles */

:root {
    --primary-color: #1a237e;
    --secondary-color: #0d47a1;
    --accent-color: #ffd700;
    --success-color: #4caf50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196f3;
    --bg-dark: #0a0e27;
    --bg-medium: #1a1f3a;
    --bg-light: #2a2f4a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3f5a;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-color);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Sidebar */
.sidebar {
    width: 350px;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

.sidebar h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stream List */
.stream-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stream-item {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.stream-item:hover {
    background: var(--bg-dark);
    border-color: var(--accent-color);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.stream-item-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.stream-item-content i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.stream-item-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.stream-item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-play {
    background: var(--accent-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-color);
}

.no-streams {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

/* Custom Stream Section */
.custom-stream-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffed4e 100%);
    color: var(--bg-dark);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Player Section */
.player-section {
    flex: 1;
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.player-header h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.player-controls {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: var(--bg-medium);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.icon-btn:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Player Container */
.player-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 1rem;
}

#video-player,
#youtube-player {
    width: 100%;
    height: 100%;
}

#youtube-player iframe {
    width: 100%;
    height: 100%;
}

/* Welcome Screen */
.welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-medium) 100%);
    text-align: center;
    padding: 2rem;
}

.welcome-screen i {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.welcome-screen h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.welcome-screen p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.welcome-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature i {
    font-size: 2rem;
    color: var(--accent-color);
    animation: none;
}

.feature span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Stream Info */
.stream-info {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    background: var(--bg-medium);
    border-radius: 8px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: var(--bg-light);
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.footer strong {
    color: var(--warning-color);
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-light);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-content h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.modal-content ul,
.modal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.modal-content code {
    background: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--accent-color);
    font-family: 'Courier New', monospace;
}

.modal-content .legal-notice {
    background: var(--bg-dark);
    padding: 1rem;
    border-left: 4px solid var(--warning-color);
    border-radius: 4px;
    margin-top: 1.5rem;
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: -400px;
    background: var(--bg-light);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    min-width: 300px;
    transition: right 0.3s ease;
    border-left: 4px solid var(--info-color);
}

.notification.show {
    right: 20px;
}

.notification-success {
    border-left-color: var(--success-color);
}

.notification-error {
    border-left-color: var(--error-color);
}

.notification-warning {
    border-left-color: var(--warning-color);
}

.notification-info {
    border-left-color: var(--info-color);
}

.notification i {
    font-size: 1.5rem;
}

.notification-success i {
    color: var(--success-color);
}

.notification-error i {
    color: var(--error-color);
}

.notification-warning i {
    color: var(--warning-color);
}

.notification-info i {
    color: var(--info-color);
}

/* Video.js Customization */
.video-js {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.video-js .vjs-big-play-button {
    background-color: var(--accent-color);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    font-size: 3rem;
}

.video-js .vjs-big-play-button:hover {
    background-color: #ffed4e;
}

.video-js .vjs-control-bar {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .sidebar {
        width: 300px;
    }
}

@media (max-width: 968px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        max-height: 400px;
    }

    .welcome-features {
        gap: 1rem;
    }

    .feature {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .header-info {
        font-size: 0.9rem;
    }

    .main-content {
        padding: 1rem;
        gap: 1rem;
    }

    .sidebar {
        padding: 1rem;
    }

    .player-section {
        padding: 1rem;
    }

    .player-header h2 {
        font-size: 1.2rem;
    }

    .welcome-screen h2 {
        font-size: 1.5rem;
    }

    .welcome-screen p {
        font-size: 1rem;
    }

    .stream-info {
        gap: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 10% auto;
    }

    .notification {
        min-width: 250px;
    }

    .notification.show {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        display: none;
    }

    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .welcome-features {
        flex-direction: column;
    }

    .stream-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .stream-item-content {
        width: 100%;
    }

    .btn-play {
        width: 100%;
        border-radius: 6px;
        height: 45px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Loading Animation */
@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    border: 4px solid var(--bg-medium);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin-loader 1s linear infinite;
}

/* Made with Bob */
