/*
    ========================================
    OTT - KING
    Premium IPTV Live Streaming Platform
    ========================================
    Website: https://ottking.top/
    Phone: 01315124700
    Telegram: @im_rasel
    ========================================
    Stylesheet for OTT - KING Platform
    ========================================
*/

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

body {
    font-family: 'Outfit', sans-serif;
    background: #0a0e27;
    color: #e8eef7;
    overflow-x: hidden;
}

/* ========== HEADER ========== */
.header {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1428 100%);
    padding: 12px 0;
    border-bottom: 1px solid #1e2a4a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 40px;
}

.app-downloads {
    display: flex;
    gap: 12px;
    align-items: center;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #e50914 0%, #f5004a 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    animation: lightingFlash 2.5s ease-in-out infinite;
    position: relative;
}

.app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.6);
}

.app-btn.tv-app {
    background: linear-gradient(135deg, #1ea346 0%, #2dd967 100%);
    animation: lightingFlash 2.5s ease-in-out infinite;
}

.app-btn.tv-app:hover {
    box-shadow: 0 4px 12px rgba(30, 163, 70, 0.6);
}

@keyframes lightingFlash {
    0%, 10%, 90%, 100% {
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.3), inset 0 0 10px rgba(229, 9, 20, 0.2);
    }
    50%, 55% {
        box-shadow: 0 0 30px rgba(229, 9, 20, 0.8), 0 0 50px rgba(229, 9, 20, 0.6), inset 0 0 15px rgba(229, 9, 20, 0.4);
        text-shadow: 0 0 10px rgba(229, 9, 20, 0.8);
    }
    45% {
        box-shadow: 0 0 15px rgba(229, 9, 20, 0.5), inset 0 0 8px rgba(229, 9, 20, 0.3);
    }
}

.app-btn i {
    font-size: 16px;
}

/* ========== PULSE ANIMATION ========== */
.animate-pulse {
    animation: pulsing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulsing {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
}

.logo i {
    color: #e50914;
    font-size: 28px;
}

/* ========== PLAYER SECTION ========== */
.player-section {
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(10,14,39,0.8), #0a0e27);
}

.player-box {
    position: relative;
    width: 100%;
    max-width: 85%;
    margin: 0 auto;
    padding-bottom: 47.8%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* ========== CONTENT SECTION ========== */
.content-section {
    padding: 30px 0 50px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 2px solid #2a3a5a;
    color: #b0b9c8;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.filter-btn:hover {
    border-color: #e50914;
    color: #e50914;
}

.filter-btn.active {
    background: linear-gradient(135deg, #e50914 0%, #f5004a 100%);
    border-color: #e50914;
    color: #fff;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

/* ========== CHANNELS GRID ========== */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.channel {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #0f1428;
    transition: all 0.3s ease;
    animation: cardFade 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes cardFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.channel:nth-child(1) { animation-delay: 0.05s; }
.channel:nth-child(2) { animation-delay: 0.1s; }
.channel:nth-child(3) { animation-delay: 0.15s; }
.channel:nth-child(4) { animation-delay: 0.2s; }
.channel:nth-child(5) { animation-delay: 0.25s; }
.channel:nth-child(6) { animation-delay: 0.3s; }
.channel:nth-child(7) { animation-delay: 0.35s; }
.channel:nth-child(8) { animation-delay: 0.4s; }
.channel:nth-child(9) { animation-delay: 0.45s; }
.channel:nth-child(10) { animation-delay: 0.5s; }
.channel:nth-child(11) { animation-delay: 0.55s; }
.channel:nth-child(12) { animation-delay: 0.6s; }
.channel:nth-child(13) { animation-delay: 0.65s; }
.channel:nth-child(14) { animation-delay: 0.7s; }
.channel:nth-child(15) { animation-delay: 0.75s; }
.channel:nth-child(16) { animation-delay: 0.8s; }
.channel:nth-child(17) { animation-delay: 0.85s; }
.channel:nth-child(18) { animation-delay: 0.9s; }

.channel:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.2);
    border: 1px solid #e50914;
}

.ch-img {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #1a2540;
    overflow: hidden;
}

.ch-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.channel:hover .ch-img img {
    transform: scale(1.05);
}

.ch-img a {
    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 ease;
}

.channel:hover .ch-img a {
    opacity: 1;
}

.ch-img a::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
}

.ch-img a::after {
    content: '\f04b';
    font-family: 'FontAwesome';
    position: absolute;
    color: #fff;
    font-size: 20px;
    z-index: 2;
}

.channel:hover .ch-img a::before {
    background: #f5004a;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
    transform: scale(1.1);
}

.ch-info {
    padding: 12px;
    text-align: center;
}

.ch-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: #e8eef7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #0f1428 0%, #1a1f3a 100%);
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #1e2a4a;
    color: #7a8a9e;
    font-size: 14px;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
}

.dev-link {
    color: #e50914;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dev-link:hover {
    color: #f5004a;
    text-decoration: underline;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 1024px) {
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .player-section {
        padding: 15px 0;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .content-section {
        padding: 20px 0 40px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .header-wrapper {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 18px;
        gap: 8px;
    }
    
    .logo i {
        font-size: 22px;
    }
    
    .player-section {
        padding: 12px 0;
    }
    
    .channels-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .ch-info h3 {
        font-size: 12px;
    }
    
    .content-section {
        padding: 15px 0 30px;
    }
}

@media (max-width: 360px) {
    .channels-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/*
    ========================================
    OTT - KING
    Premium IPTV Live Streaming Platform
    ========================================
    Website: https://ottking.top/
    Phone: 01315124700
    Telegram: @im_rasel
    
    © 2026 OTT - KING. All Rights Reserved.
    ========================================
*/

/* ========== FAVORITE BUTTON ========== */
.channel {
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.fav-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: scale(1.1);
}

.fav-btn i {
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s ease;
}

.channel.favourite .fav-btn i {
    color: #e50914;
}

.channel.favourite .fav-btn {
    background: rgba(229, 9, 20, 0.6);
}

.channel.favourite {
    border: 2px solid #e50914;
}
