:root {
    --primary-color: #e50914;
    --bg-color: #141414;
    --card-bg: #1f1f1f;
    --text-color: #ffffff;
    --text-secondary: #b3b3b3;
    --header-height: 80px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Search Section */
.search-section {
    width: 90%;
    max-width: 700px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.search-input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 1.1rem;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
    transform: scale(1.02);
}

.search-btn {
    white-space: nowrap;
    padding: 12px 25px;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Main Layout */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    min-height: 80vh;
}

/* Player Section */
.player-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px;
    background: #000;
    position: relative;
    aspect-ratio: 16/9;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.player-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Sticky Player State */
.player-wrapper.sticky {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 400px;
    height: 225px;
    z-index: 9999;
    border: 2px solid var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideIn {
    from {
        transform: translateY(100%) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Categories */
.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0 20px;
    margin-bottom: 20px;
    scrollbar-width: none;
    justify-content: center;
    flex-wrap: wrap;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: white;
}

.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
    transform: scale(1.05);
}

/* Channel Grid */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 25px;
    padding: 10px;
}

.channel-card {
    background: rgba(31, 31, 31, 0.6);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.channel-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    z-index: 10;
    background: rgba(45, 45, 45, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.channel-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: filter 0.2s;
}

.channel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.channel-card:hover .channel-info {
    opacity: 1;
}

/* Footer */
.modern-footer {
    background: #0a0a0a;
    border-top: 1px solid #333;
    padding: 40px 20px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.brand-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    height: 60px;
    object-fit: contain;
}

.footer-btn {
    display: inline-flex;
    width: auto;
    padding: 12px 30px;
}

.links-section {
    flex: 1;
    min-width: 250px;
}

.links-section h3 {
    color: var(--primary-color);
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.link-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.footer-link:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Download Button */
.download-btn {
    background: linear-gradient(45deg, #e50914, #ff4b1f);
    color: white;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    border: 2px solid transparent;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.8);
    background: linear-gradient(45deg, #ff4b1f, #e50914);
    color: white;
    text-decoration: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(229, 9, 20, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .channel-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .player-wrapper.sticky {
        width: calc(100vw - 20px);
        height: auto;
        bottom: 10px;
        right: 10px;
    }

    .search-section {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }
}