:root {
    --primary-dark: #0a0e1a;
    --secondary-dark: #141924;
    --accent-red: #e50914;
    --accent-orange: #ff6b00;
    --background-black: #000000;
    --background-dark: #0f0f0f;
    --card-background: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --text-light-gray: #808080;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.8);
    --border-radius: 4px;
    --highlight-yellow: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-black);
    color: var(--text-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: var(--primary-dark);
    padding: 20px 0;
    border-bottom: 3px solid var(--accent-red);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 60px;
    width: auto;
}

.main-content {
    flex: 1;
    padding: 40px 0;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--accent-red);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--card-background);
    border-top: 4px solid var(--accent-red);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

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

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.video-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px var(--shadow-heavy);
    border-color: var(--accent-red);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.play-overlay::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--secondary-dark);
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 2px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.video-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--accent-orange);
    color: white;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-stats {
    display: flex;
    gap: 12px;
    color: var(--text-light-gray);
    font-size: 0.8rem;
}

.video-stats span:first-child {
    color: var(--accent-orange);
    font-weight: 600;
}

.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.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--secondary-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-player {
    max-width: 1000px;
    padding: 20px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-white);
}

.modal-video-thumbnail {
    position: relative;
    width: 100%;
    margin: -30px -30px 25px -30px;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

.modal-thumbnail-image {
    width: 100%;
    height: auto;
    display: block;
}

.modal-video-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-red);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.modal-video-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-video-header {
    margin-bottom: 20px;
}

.modal-video-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-video-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-video-meta span:first-child {
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
}

.modal-video-description {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    white-space: pre-wrap;
}

.watch-button {
    background: var(--accent-red);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.watch-button::before {
    content: '▶';
    font-size: 0.9rem;
}

.watch-button:hover {
    background: #cc0711;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.video-iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--background-black);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid var(--accent-red);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.error-message {
    text-align: center;
    padding: 40px;
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-red);
}

.error-message p {
    color: var(--accent-red);
    font-size: 1.1rem;
}

.footer {
    background: var(--primary-dark);
    color: var(--text-gray);
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .modal-video-title {
        font-size: 1.4rem;
    }
    
    .logo {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .modal-video-meta {
        flex-direction: column;
        gap: 10px;
    }
}