:root {
    --primary-color: #e50914;
    --text-color: #ffffff;
    --bg-dark: #051024; /* Dark blue background from image */
    --accent: #b81d24;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header */
header {
    padding: 20px 50px;
    width: 100%;
}

.header-container {
    max-width: 1200px; /* Match grid width */
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: inline-block;
}

.logo span {
    color: var(--text-color);
}

.btn-download {
    display: block; /* On new line or adjusted */
    width: fit-content;
    background-color: #e50914; /* Red button */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn-download:hover {
    background-color: var(--accent);
}

/* Channels Section */
.channels-section {
    padding: 40px 20px;
    text-align: center;
}

.channels-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.subtitle {
    color: #8899a6;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.channel-grid {
    display: grid;
    /* 7 columns fixed */
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.channel-card {
    background-color: #ffffff;
    border-radius: 8px;
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    overflow: hidden;
}

.channel-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Badge Styles */
.badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.5rem;
    font-weight: 800;
    padding: 3px 6px;
    border-bottom-left-radius: 4px;
    color: #000;
    text-transform: uppercase;
    z-index: 10;
}

.badge.premium {
    background-color: #ffd700; /* Yellow */
}

.badge.free {
    background-color: #00c853; /* Green */
    color: white;
}

/* Logo Text Styling */
.logo-text {
    font-weight: 900;
    font-size: 1rem;
    text-align: center;
    line-height: 1.1;
    padding: 5px;
}

/* CTA Download Section */
.cta-download {
    padding: 60px 20px;
    text-align: center;
    background-color: #1a1a1a; /* Dark background like image */
    color: #ffffff;
    margin-top: 40px;
}

.cta-download h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
}

.cta-download p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 30px;
}

.btn-cta {
    display: inline-block;
    background-color: #e50914; /* Red button */
    color: white;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.btn-cta:hover {
    background-color: #b81d24;
}

/* Specific Channel Colors */
.hbo { color: #000; font-family: sans-serif; letter-spacing: 1px; }
.cinemax { color: #000; text-transform: uppercase; font-style: italic; }
.axn { color: #e50914; font-style: italic; }
.bein { color: #5a2e99; }
.spotv { color: #000; letter-spacing: 1px; }
.sportstar { color: #e50914; }
.soccer { color: #00468c; font-size: 0.9rem; }
.local { color: #333; }
.nick { color: #ff8c00; }
.rock { color: #000; font-weight: 900; font-style: italic; transform: skew(-5deg); }
.tvn { color: #fa4616; font-family: sans-serif; }
.animax { color: #00a0e9; }
.atx { color: #d6000f; font-weight: bold; }
.kids { color: #e60012; font-family: 'Comic Sans MS', cursive, sans-serif; }

/* Responsive */
@media (max-width: 1024px) {
    .channel-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .channel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    header {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .channel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
