/* ==========================================================
   MaxLiv TV Header
   Premium Frosted Glass UI (Compact Version)
========================================================== */

:root {

    --glass: rgba(255, 255, 255, .08);
    --glass-light: rgba(255, 255, 255, .12);
    --border: rgba(255, 255, 255, .14);

    --text: #ffffff;

    --telegram1: #2AABEE;
    --telegram2: #0A84FF;

}

/* ==========================================================
   Header
========================================================== */

.app-header {

    position: sticky;
    top: 14px;

    z-index: 1000;

    width: min(1280px, calc(100% - 32px));
    margin: 14px auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 8px 16px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.12),
            rgba(255,255,255,.05)
        );

    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);

    border: 1px solid var(--border);

    border-radius: 20px;

    overflow: hidden;

    box-shadow:
        inset 0 1px rgba(255,255,255,.18),
        inset 0 -1px rgba(255,255,255,.05),
        0 12px 35px rgba(0,0,0,.28);

}

/* Glass shine */

.app-header::before {

    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,.18),
            transparent 25%,
            transparent 72%,
            rgba(255,255,255,.05)
        );

    pointer-events: none;

}

.app-header::after {

    content: "";

    position: absolute;

    top: -90px;
    left: -90px;

    width: 180px;
    height: 180px;

    border-radius: 30%;

    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.18),
            transparent 70%
        );

    filter: blur(32px);

    pointer-events: none;

}

/* ==========================================================
   Brand
========================================================== */

.app-brand {

    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;

    color: var(--text);

    z-index: 2;

}

.app-brand img {

    width: 46px;
    height: 46px;

    object-fit: contain;

    padding: 5px;

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.15),
            rgba(255,255,255,.05)
        );

    border: 1px solid rgba(255,255,255,.12);

    box-shadow:
        inset 0 1px rgba(255,255,255,.20),
        0 6px 18px rgba(0,0,0,.20);

    transition: .35s ease;

}

.app-brand:hover img {

    transform: scale(1.08) rotate(-5deg);

}

.brand-text h1 {

    margin: 0;

    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;

    color: #fff;

    line-height: 1;

    text-shadow: 0 2px 10px rgba(255,255,255,.12);

}

/* ==========================================================
   Telegram Button
========================================================== */

.telegram-btn {

    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;
    gap: 8px;

    padding: 10px 18px;

    text-decoration: none;

    color: #fff;

    font-size: 14px;
    font-weight: 600;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--telegram1),
            var(--telegram2)
        );

    border: 1px solid rgba(255,255,255,.18);

    box-shadow:
        inset 0 1px rgba(255,255,255,.25),
        0 8px 24px rgba(10,132,255,.30);

    transition: .35s ease;

    z-index: 2;

}

.telegram-btn::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.35),
            transparent
        );

    transition: .7s;

}

.telegram-btn:hover::before {

    left: 150%;

}

.telegram-btn svg {

    width: 17px;
    height: 17px;

    transition: .35s;

}

.telegram-btn:hover {

    transform: translateY(-2px);

    box-shadow:
        inset 0 1px rgba(255,255,255,.25),
        0 14px 30px rgba(10,132,255,.45);

}

.telegram-btn:hover svg {

    transform: translateX(3px);

}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width:768px) {

    .app-header {

        width: calc(100% - 16px);

        padding: 8px 12px;

        border-radius: 18px;

    }

    .app-brand {

        gap: 10px;

    }

    .app-brand img {

        width: 40px;
        height: 40px;

        border-radius: 12px;

    }

    .brand-text h1 {

        font-size: 18px;

    }

    .telegram-btn {

        width: 42px;
        height: 42px;

        padding: 0;

        justify-content: center;

        border-radius: 14px;

    }

    .telegram-btn span {

        display: none;

    }

}