* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #141414;
    color: #fff;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
}

header {
    padding: 1.5rem 3rem;
    background: linear-gradient(180deg, #000 0%, transparent 100%);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.logo img {
    width: 48px;
    height: auto;
}

nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

nav a:hover {
    color: #b3b3b3;
}

main {
    padding-top: 80px;
    padding-bottom: 2rem;
}

.hero {
    padding: 3rem 3rem 0 3rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: #408290;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    line-height: 1.5;
    color: #b3b3b3;
}

#featured-video {
    padding: 0 3rem;
    margin-bottom: 3rem;
}

.featured-card {
    width: calc(600px + 0.5rem);
    cursor: pointer;
    transition: transform 0.3s;
}

.featured-card:hover {
    transform: scale(1.02);
}

.featured-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.featured-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-info {
    margin-top: 1rem;
}

.featured-info h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #408290;
}

.featured-info p {
    color: #b3b3b3;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.category {
    padding: 0 3rem;
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #408290;
}

.video-row {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #555 transparent;
}

.video-row::-webkit-scrollbar {
    height: 8px;
}

.video-row::-webkit-scrollbar-track {
    background: transparent;
}

.video-row::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.video-card {
    flex: 0 0 auto;
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.video-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.play-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.video-info {
    margin-top: 0.5rem;
}

.video-title {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #fff;
}

.video-meta {
    font-size: 0.8rem;
    color: #808080;
}

#player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

#player-modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 0.7;
}

#player-container {
    width: 100%;
    aspect-ratio: 16 / 9;
}

footer {
    background: #0a0a0a;
    padding: 3rem 3rem 1rem 3rem;
    margin-top: 4rem;
    border-top: 1px solid #333;
    display: none;
}

footer.visible {
    display: block;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #408290;
}

.footer-legal {
    margin-left: -0.5rem;
}

.footer-section p {
    color: #b3b3b3;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0.5rem 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #b3b3b3;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #408290;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.footer-bottom p {
    color: #808080;
    font-size: 0.85rem;
    margin: 0;
}

/* Mobile and Tablet Responsive */
@media (max-width: 768px) {
    #featured-video {
        padding: 0 1.5rem;
    }

    .featured-card {
        width: 100%;
    }

    .featured-info h2 {
        font-size: 1.3rem;
    }

    .featured-info p {
        font-size: 0.9rem;
    }

    header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    nav {
        flex-wrap: wrap;
        gap: 1rem;
        font-size: 0.85rem;
    }

    main {
        padding-top: 120px;
    }

    .hero {
        padding: 2rem 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .category {
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .video-card {
        width: 250px;
    }

    #grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .modal-content {
        width: 95%;
    }

    .close-btn {
        top: -35px;
        font-size: 1.5rem;
    }

    footer {
        padding: 2rem 1.5rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo img {
        width: 40px;
    }

    nav {
        font-size: 0.8rem;
        gap: 0.75rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .video-card {
        width: 200px;
    }

    .video-title {
        font-size: 0.85rem;
    }

    .video-meta {
        font-size: 0.75rem;
    }

    .category-title {
        font-size: 1.1rem;
    }
}
