:root {
    --bg-color: #141414;
    --card-bg: #181818;
    --primary-red: #E50914;
    --text-color: #ffffff;
    --secondary-text: #b3b3b3;
    --nav-height: 70px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}

/* Nav Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    padding: 0 4%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    color: var(--primary-red);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    margin-right: 40px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-links a {
    color: #e5e5e5;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* Main Content Wrapper */
.main-content {
    margin-top: var(--nav-height);
    padding: 2rem 4%;
    display: flex;
    justify-content: center;
}

.video-section {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Video Container - CRITICAL FOR VISIBILITY */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

video {
    width: 100%;
    height: 100%;
    display: block;
    /* Ensure no inline spacing */
    object-fit: contain;
    background: #000;
}

/* Loader */
.player-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.player-loader i {
    font-size: 3rem;
    color: var(--primary-red);
}

/* Details Section */
.video-details {
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.match-badge {
    color: #46d369;
    font-weight: 700;
}

.duration-badge,
.year-label,
.quality-badge {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-play {
    background: #fff;
    color: #000;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.8);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero-description {
    font-size: 1.1rem;
    color: #d2d2d2;
    max-width: 700px;
}

/* Limit Overlay */
.limit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    text-align: center;
}

.limit-content h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 10px;
}

.limit-content p {
    margin-bottom: 25px;
    color: var(--secondary-text);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .main-content {
        padding: 1rem;
    }
}