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

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: white;
    background:
        radial-gradient(circle at top, rgba(229, 9, 20, .25), transparent 40%),
        linear-gradient(135deg, #000, #120000, #000);
    padding: 22px;
}

.header {
    margin-bottom: 24px;
}

.logo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.logo-row img,
.logo-row .genre-logo {
    display: block;
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e50914;
    box-shadow: 0 0 14px rgba(229, 9, 20, .5);
}

.header h1 {
    font-size: 34px;
    margin-bottom: 8px;
}

.header p {
    color: #bbb;
    line-height: 1.6;
}

.search {
    width: 100%;
    margin: 18px 0 24px;
    padding: 13px 14px;
    background: #141414;
    border: 1px solid #333;
    border-radius: 10px;
    color: white;
    font-size: 15px;
}

.section-title {
    margin: 20px 0 14px;
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.genre-btn {
    background: #151515;
    color: white;
    border: 1px solid rgba(229, 9, 20, .25);
    border-radius: 14px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: .25s;
}

.genre-btn:hover,
.genre-btn.active {
    background: #e50914;
    transform: translateY(-4px);
    box-shadow: 0 0 18px rgba(229, 9, 20, .25);
}

.genre-btn strong {
    display: block;
    margin-bottom: 6px;
}

.genre-btn span {
    color: #aaa;
    font-size: 13px;
}

.genre-btn:hover span,
.genre-btn.active span {
    color: white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.card {
    background: #151515;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(229, 9, 20, .25);
}

.card:active {
    transform: scale(.98);
}

.poster {
    height: 280px;
    position: relative;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.poster img.fallback {
    object-fit: contain;
    padding: 30px;
    background: #111;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
}

.badge.vip {
    background: #e50914;
    color: white;
    box-shadow: 0 0 12px rgba(229, 9, 20, .6);
}

.badge.free {
    background: rgba(255, 255, 255, .18);
    color: white;
}

.info {
    padding: 12px;
}

.info h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.info p {
    color: #aaa;
    font-size: 13px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #ccc;
}

.loading {
    text-align: center;
    color: #aaa;
    padding: 40px 0;
}

@media (max-width: 600px) {
    body {
        padding: 18px;
    }

    .header h1 {
        font-size: 28px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .poster {
        height: 220px;
    }
}
