* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d2ff, #3a7bd5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d2ff;
}

body {
    margin: 0;
    background: url("https://plain-apac-prod-public.komododecks.com/202603/11/drPmki5n2LscqCcNSb9V/image.jpg") center/cover fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

header,
#searchBox,
#main,
#footer {
    animation: superHitIntro 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes superHitIntro {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: none;
        filter: blur(0);
    }
}

header {
    padding: 10px 20px;
    background: rgba(4, 11, 22, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 35px rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
}

.title {
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 1px;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.9);
}

.title img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.headerBtn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 210, 255, 0.3);
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.headerBtn:hover {
    background: rgba(0, 210, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

#backBtn {
    display: none;
}

#searchBox {
    display: none;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 210, 255, 0.2);
    animation: slideDown 0.3s ease forwards;
    z-index: 999;
    position: sticky;
    top: 55px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#searchInput {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid rgba(0, 210, 255, 0.5);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00d2ff;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
}

#main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    align-items: flex-start;
}

#left {
    flex: 1 1 65%;
    max-width: 100%;
    display: none;
    flex-direction: column;
    gap: 15px;
    position: sticky;
    top: 75px;
    z-index: 900;
}

#right {
    flex: 1 1 30%;
    min-width: 280px;
    background: rgba(8, 14, 28, 0.65);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(0, 210, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

#videoWrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    border: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

#video {
    width: 100%;
    height: 100%;
    background: #000;
}

#currentInfo {
    background: linear-gradient(135deg, rgba(10, 20, 40, 0.9), rgba(5, 10, 20, 0.95));
    backdrop-filter: blur(25px);
    padding: 12px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(0, 210, 255, 0.15);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

#currentLogo {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    object-fit: contain;
}

#currentName {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

#category {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
}

#category::-webkit-scrollbar {
    height: 4px;
}

#category::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.5);
    border-radius: 10px;
}

.catBtn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ddd;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.catBtn:hover {
    background: rgba(0, 210, 255, 0.15);
    color: #fff;
    border-color: rgba(0, 210, 255, 0.4);
}

.catBtn.active {
    background: linear-gradient(135deg, #00d2ff, #3a7bd5);
    color: #fff;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.5);
}

#list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    padding: 15px;
    flex-grow: 1;
    align-content: start;
    max-height: 80vh;
    overflow-y: auto;
}

.channelItem {
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, #ff8c00, #00ff55) border-box;
    border-radius: 15px;
    border: 2px solid transparent;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.channelItem:hover {
    background: linear-gradient(#ffffff, #ffffff) padding-box, linear-gradient(135deg, #00ff55, #ff8c00) border-box;
    transform: translateY(-3px) scale(1.05);
}

.channelItem.active {
    background: #e0f7ff;
    border: 3px solid #00d2ff;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.8);
    transform: scale(1.05);
}

.channelItem img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#footer {
    background: linear-gradient(135deg, rgba(0, 40, 120, 0.95), rgba(0, 10, 35, 0.98));
    border-top: 1px solid rgba(0, 210, 255, 0.4);
    padding: 20px;
    z-index: 2000;
    margin-top: auto;
    align-items: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #d0e8ff;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.footer-links a {
    color: #00d2ff;
    text-decoration: none;
    font-weight: 800;
}

@media(max-width: 968px) {
    #main {
        flex-direction: column;
        padding: 0;
        gap: 0;
        align-items: stretch;
    }

    #left {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        position: sticky;
        top: 55px;
        z-index: 950;
        background: #000;
    }

    #videoWrap {
        width: 100%;
        border-radius: 0;
        border: none;
    }

    #currentInfo {
        border-radius: 0;
        margin: 0;
        border: none;
    }

    #right {
        flex: 1;
        min-width: 0;
        width: 100%;
        height: auto;
        overflow-y: visible;
        background: transparent;
        box-shadow: none;
        padding: 10px;
        border-radius: 0;
        border: none;
    }

    #category {
        border-radius: 10px;
        margin-bottom: 10px;
    }
}