*{
    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) 0%,
    transparent 40%),
    linear-gradient(135deg,#000,#120000,#000);

    animation:fadeIn .3s ease;

    -webkit-overflow-scrolling:touch;

    position:relative;
}

body::before{
    content:"";

    position:fixed;
    inset:0;

    background:
        url('/img/ui/telflix100.jpg')
        center center /
        1920px no-repeat;

    opacity:.01;

    pointer-events:none;

    z-index:-1;
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 40px;
}

.logo{
    display:flex;
    align-items:center;
    gap:2px;
    font-size:32px;
    font-weight:bold;
}

.logo img{
    width:28px;
    height:28px;
    border-radius:50%;
    object-fit:cover;
    margin-left:-8px;
    display:block;
    border:2px solid #e50914;
    box-shadow:0 0 10px rgba(229,9,20,.5);
}

.logo-wrap{
    display:flex;
    align-items:center;
    gap:12px;
}

.menu-btn{
    width:48px;
    height:48px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:rgba(15,15,15,.58);
    border:1px solid rgba(229,9,20,.22);
    border-radius:12px;
    color:white;
    font-size:28px;
    cursor:pointer;
    line-height:1;
}

.tel{
    color:white;
}

.flix{
    color:#e50914;
}

.search{
    width:250px;
    padding:10px 14px;
    background:#141414;
    border:1px solid #333;
    border-radius:8px;
    color:white;
}

.hero{
    position:relative;
    overflow:hidden;
    padding:25px 40px 30px;
}

.hero p{
    color:#c8c8c8;
    max-width:600px;
    margin-bottom:25px;
    line-height:1.6;
}

.hero button{
    background:rgba(229,9,20,.18);
    color:white;
    border:1px solid rgba(229,9,20,.35);
    border-radius:8px;
    padding:14px 30px;
    font-weight:bold;
    cursor:pointer;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    box-shadow:0 0 14px rgba(229,9,20,.16);
    transition:.2s;
}

.hero button:hover{
    background:rgba(229,9,20,.28);
    box-shadow:0 0 18px rgba(229,9,20,.25);
    transform:translateY(-2px);
}

.hero button:active{
    transform:scale(.97);
}

.vip-banner{
    margin:0 40px 20px;
    padding:16px 20px;
    border-radius:16px;

    background:
    linear-gradient(
        135deg,
        rgba(229,9,20,.18),
        rgba(229,9,20,.04)
    );

    border:1px solid rgba(229,9,20,.22);

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.vip-banner h3{
    margin-bottom:6px;
}

.vip-banner p{
    color:#bbb;
}

.vip-banner button{
    background:rgba(229,9,20,.18);
    color:white;
    border:1px solid rgba(229,9,20,.35);
    border-radius:10px;
    padding:12px 20px;
    font-weight:bold;
    cursor:pointer;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    box-shadow:0 0 12px rgba(229,9,20,.14);
    transition:.2s;
}

.vip-banner button:hover{
    background:rgba(229,9,20,.28);
    box-shadow:0 0 16px rgba(229,9,20,.22);
    transform:translateY(-2px);
}

.vip-banner button:active{
    transform:scale(.97);
}

.home-reward-card{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin:0 40px 20px;
    padding:18px 20px;
    border:1px solid rgba(229,9,20,.26);
    border-radius:16px;
    background:
    radial-gradient(
        circle at top left,
        rgba(255,184,0,.11),
        transparent 34%
    ),
    linear-gradient(
        135deg,
        rgba(229,9,20,.22),
        rgba(24,0,0,.82) 48%,
        rgba(10,10,10,.92)
    );
    color:white;
    box-shadow:
        0 0 22px rgba(229,9,20,.18),
        inset 0 0 20px rgba(255,255,255,.025);
}

.home-reward-card span{
    display:inline-block;
    margin-bottom:8px;
    padding:6px 11px;
    border:1px solid rgba(229,9,20,.35);
    border-radius:999px;
    background:rgba(229,9,20,.15);
    color:#ff5b63;
    font-size:12px;
    font-weight:bold;
    letter-spacing:.3px;
}

.home-reward-card h2{
    margin-bottom:6px;
    font-size:22px;
}

.home-reward-card p{
    max-width:620px;
    margin-bottom:0;
    color:#bbb;
    line-height:1.5;
}

.home-reward-card button{
    background:rgba(229,9,20,.18);
    color:white;
    border:1px solid rgba(229,9,20,.35);
    border-radius:10px;
    padding:12px 20px;
    font-weight:bold;
    cursor:pointer;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    box-shadow:0 0 12px rgba(229,9,20,.14);
    transition:.2s;
    white-space:nowrap;
}

.home-reward-card button:hover{
    background:rgba(229,9,20,.28);
    box-shadow:0 0 16px rgba(229,9,20,.22);
    transform:translateY(-2px);
}

.home-reward-card button:active{
    transform:scale(.97);
}

.section{
    padding:20px 40px 60px;
}

.section h2{
    margin-bottom:20px;
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
}

.row-scroll{
    display:flex;
    gap:16px;
    overflow-x:auto;

    padding-top:6px;
    padding-bottom:8px;

    scroll-behavior:smooth;
}

.row-scroll::-webkit-scrollbar{
    display:none;
}

.row-scroll .card{
    min-width:200px;
    max-width:200px;
    flex-shrink:0;
}

.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:320px;
    position:relative;
}

.badge{
    position:absolute;
    top:10px;
    right:10px;
    z-index:2;
    padding:5px 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:bold;
    letter-spacing:.3px;
}

.badge.vip{
    background:#e50914;
    color:white;
    box-shadow:0 0 12px rgba(229,9,20,.6);
}

.badge.free{
    background:#22c55e;
    color:#04130a;
}

.poster img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.poster img.fallback{
    object-fit:contain;
    padding:30px;
    background:#111;
}

.info{
    padding:12px;
}

.info h3{
    margin-bottom:5px;
}

.info p{
    color:#aaa;
    font-size:13px;
}

.loading{
    text-align:center;
    color:#aaa;
    padding:30px;
}

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:220px;
    height:100%;

    background:rgba(10,10,10,.7);

    border-right:1px solid rgba(229,9,20,.15);

    z-index:9999;
    transform:translateX(-100%);
    visibility:hidden;
    pointer-events:none;
    transition:.3s;
    padding-top:80px;
}

.sidebar.show{
    transform:translateX(0);
    visibility:visible;
    pointer-events:auto;
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
}

.overlay{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.25);
    z-index:9998;
    opacity:0;
    visibility:hidden;
    transition:.3s;
}

.overlay.show{
    display:block;
    opacity:1;
    visibility:visible;
}

.sidebar a,
.sidebar-dropdown-btn{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    min-height:50px;
    color:white;
    text-decoration:none;
    padding:15px 25px;
    border-bottom:1px solid #222;
    border-left:3px solid transparent;
    font-size:16px;
    transition:.2s;
}

.sidebar-dropdown-btn{
    background:none;
    border-top:0;
    border-right:0;
    cursor:pointer;
    font:inherit;
    text-align:left;
    justify-content:space-between;
}

.sidebar a:hover,
.sidebar-dropdown-btn:hover{
    background:rgba(229,9,20,.15);
    transform:translateX(5px);
}

.sidebar a:active,
.sidebar-dropdown-btn:active{
    transform:translateX(5px) scale(.97);
}

.sidebar a.active{
    border-left:3px solid #e50914;

    animation:pulseRed 4s infinite;
}

.sidebar-dropdown.active > .sidebar-dropdown-btn{
    border-left:3px solid #e50914;
    background:rgba(229,9,20,.12);
}

.sidebar-dropdown.open .sidebar-dropdown-btn{
    background:rgba(229,9,20,.08);
}

.sidebar-chevron{
    transition:.2s;
}

.sidebar-dropdown.open .sidebar-chevron{
    transform:rotate(180deg);
}

.sidebar-submenu{
    display:none;
    background:rgba(0,0,0,.18);
    border-bottom:1px solid #222;
}

.sidebar-dropdown.open .sidebar-submenu{
    display:block;
}

.sidebar-submenu a{
    min-height:50px;
    padding:15px 25px 15px 45px;
    color:#ddd;
    font-size:16px;
    border-bottom:0;
    border-left:3px solid transparent;
}

@keyframes pulseRed{
    0%,100%{
        background:rgba(229,9,20,.08);
    }

    50%{
        background:rgba(229,9,20,.18);
    }
}

@media (max-width:600px){
    
    .vip-banner{
        margin:0 20px 20px;
        flex-direction:column;
        align-items:flex-start;
    }

    .home-reward-card{
        margin:0 20px 20px;
        padding:16px 18px;
        flex-direction:column;
        align-items:flex-start;
    }

    .home-reward-card h2{
        font-size:20px;
    }

    .home-reward-card button{
        width:100%;
    }

    .navbar{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
        padding:18px 20px;
    }

    .search{
        width:140px;
        font-size:13px;
        padding:8px 10px;
    }

    #profile{
        display:flex;
        align-items:center;
        gap:6px;
        flex-wrap:wrap;
        font-size:14px;
    }

    #profile strong{
        color:white;
        font-weight:700;
    }

    .status-badge{
        font-size:11px;
        padding:3px 8px;
        border-radius:8px;
        font-weight:600;
        background:#222;
    }

    .admin-badge{
        background:#ffb800;
        color:#000;
    }

    .vip-badge{
        background:#2ecc71;
        color:white;
    }

    .free-badge{
        background:#444;
        color:white;
    }

    .coin-badge{
        background:#ffb800;
        color:#000;
        font-size:11px;
        padding:3px 8px;
        border-radius:8px;
        font-weight:700;
    }

    .hero{
        padding:45px 20px 30px;
    }

    .hero h1{
        font-size:28px;
    }

    .section{
        padding:20px;
    }

    .grid{
        grid-template-columns:repeat(2,1fr);
    }

    .poster{
        height:220px;
    }
}

html{
    scroll-behavior:smooth;
}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(5px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
