:root {

    --background: #080a10;

    --surface: #111522;

    --surface-light: #171c2b;

    --text: #ffffff;

    --muted: #9ba3b7;

    --border: #252c3d;

    --accent: #7c5cff;

    --accent-light: #b56cff;

}


body.light {

    --background: #f4f6fb;

    --surface: #ffffff;

    --surface-light: #eef1f8;

    --text: #141722;

    --muted: #667085;

    --border: #dce1eb;

}


* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

    scroll-behavior: smooth;

}


body {

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(124,92,255,.18),
            transparent 30%
        ),
        var(--background);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

}


a {

    text-decoration: none;

    color: inherit;

}


/* ================= NAVBAR ================= */

.navbar {

    height: 72px;

    padding: 0 6%;

    display: flex;

    align-items: center;

    gap: 25px;

    position: sticky;

    top: 0;

    z-index: 100;

    background: rgba(8,10,16,.85);

    backdrop-filter: blur(15px);

    border-bottom:
        1px solid var(--border);

}


body.light .navbar {

    background:
        rgba(255,255,255,.85);

}


.logo {

    font-size: 23px;

    font-weight: 900;

    margin-right: auto;

}


.logo span,
.footer-logo span {

    color: var(--accent);

}


.navbar nav {

    display: flex;

    gap: 22px;

}


.navbar nav a {

    color: var(--muted);

    font-size: 14px;

    font-weight: 700;

    transition: .2s;

}


.navbar nav a:hover {

    color: var(--text);

}


.theme-button,
.menu-button {

    border:
        1px solid var(--border);

    background:
        var(--surface);

    color:
        var(--text);

    border-radius:
        10px;

    padding:
        9px 12px;

    cursor:
        pointer;

}


.menu-button {

    display: none;

}


/* ================= HERO ================= */

.hero {

    max-width: 1200px;

    min-height: 650px;

    margin: auto;

    padding:
        100px 6%;

    display: grid;

    grid-template-columns:
        1.3fr .7fr;

    gap: 60px;

    align-items: center;

}


.status {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 12px;

    border:
        1px solid var(--border);

    border-radius: 100px;

    background:
        var(--surface);

    color:
        var(--muted);

    font-size: 11px;

    font-weight: 900;

}


.status span {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #34d399;

    box-shadow:
        0 0 15px #34d399;

}


.hero h1 {

    margin:
        25px 0;

    font-size:
        clamp(45px,7vw,82px);

    line-height: .98;

    letter-spacing:
        -4px;

}


.hero h1 strong {

    display: block;

    color:
        var(--accent);

}


.hero-content > p {

    max-width: 650px;

    color:
        var(--muted);

    font-size: 18px;

}


.hero-buttons {

    display: flex;

    gap: 12px;

    margin-top: 28px;

}


/* ================= BUTTONS ================= */

.button {

    display: inline-block;

    padding:
        13px 19px;

    border-radius:
        12px;

    font-weight:
        900;

}


.primary {

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-light)
        );

    color: white;

    box-shadow:
        0 15px 35px
        rgba(124,92,255,.25);

}


.secondary {

    background:
        var(--surface);

    border:
        1px solid var(--border);

}


/* ================= PROFILE ================= */

.profile-card {

    padding:
        38px;

    text-align:
        center;

    border:
        1px solid var(--border);

    border-radius:
        25px;

    background:
        linear-gradient(
            145deg,
            var(--surface-light),
            var(--surface)
        );

    box-shadow:
        0 20px 60px rgba(0,0,0,.35);

}


.profile-picture {

    width:
        130px;

    height:
        130px;

    margin:
        auto;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-light)
        );

    font-size:
        40px;

    font-weight:
        900;

}


.profile-card h2 {

    margin-top:
        20px;

}


.profile-card > p {

    color:
        var(--muted);

}


.profile-stats {

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        8px;

    margin-top:
        25px;

}


.profile-stats div {

    padding:
        12px;

    background:
        var(--surface-light);

    border-radius:
        11px;

}


.profile-stats strong,
.profile-stats span {

    display:
        block;

}


.profile-stats span {

    color:
        var(--muted);

    font-size:
        10px;

}


/* ================= SECTIONS ================= */

.section {

    max-width:
        1200px;

    margin:
        auto;

    padding:
        75px 6%;

}


.section-header {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        end;

    margin-bottom:
        28px;

}


.section-header small {

    color:
        var(--accent);

    font-weight:
        900;

    letter-spacing:
        2px;

}


.section-header h2 {

    font-size:
        36px;

    margin-top:
        3px;

}


.small-button {

    padding:
        9px 13px;

    border:
        1px solid var(--border);

    background:
        var(--surface);

    color:
        var(--text);

    border-radius:
        10px;

    cursor:
        pointer;

}


/* ================= VIDEOS ================= */

.video-grid {

    display:
        grid;

    grid-template-columns:
        repeat(3,1fr);

    gap:
        18px;

}


.video-card {

    overflow:
        hidden;

    border:
        1px solid var(--border);

    border-radius:
        17px;

    background:
        var(--surface);

    transition:
        .2s;

}


.video-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--accent);

}


.video-thumbnail {

    height:
        190px;

    display:
        grid;

    place-items:
        center;

    font-size:
        45px;

    background:
        linear-gradient(
            135deg,
            #25155a,
            #121a35
        );

}


.video-card:nth-child(2)
.video-thumbnail {

    background:
        linear-gradient(
            135deg,
            #4d193b,
            #191a38
        );

}


.video-info {

    padding:
        17px;

}


.video-info h3 {

    margin-bottom:
        5px;

}


.video-info p {

    color:
        var(--muted);

    font-size:
        13px;

}


/* ================= LIVE ================= */

.live-container {

    display:
        grid;

    grid-template-columns:
        1fr 1fr;

    gap:
        25px;

    padding:
        35px;

    border:
        1px solid var(--border);

    border-radius:
        24px;

    background:
        linear-gradient(
            135deg,
            var(--surface-light),
            var(--surface)
        );

}


.live-container h2 {

    font-size:
        38px;

    margin:
        18px 0 5px;

}


.live-container p {

    color:
        var(--muted);

    margin-bottom:
        20px;

}


.stream-preview {

    min-height:
        250px;

    border-radius:
        17px;

    background:
        linear-gradient(
            135deg,
            #151b30,
            #28154c
        );

    display:
        grid;

    place-items:
        center;

}


.play-button {

    width:
        70px;

    height:
        70px;

    border-radius:
        50%;

    display:
        grid;

    place-items:
        center;

    background:
        var(--accent);

    color:
        white;

    font-size:
        25px;

}


/* ================= SCHEDULE ================= */

.schedule-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        15px;

}


.schedule-card {

    padding:
        22px;

    border:
        1px solid var(--border);

    border-radius:
        17px;

    background:
        var(--surface);

}


.schedule-card strong,
.schedule-card span {

    display:
        block;

}


.schedule-card span {

    color:
        var(--muted);

    font-size:
        13px;

}


/* ================= STATS ================= */

.statistics-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        15px;

}


.stat-card {

    padding:
        25px;

    border:
        1px solid var(--border);

    border-radius:
        17px;

    background:
        var(--surface);

}


.stat-card strong {

    display:
        block;

    font-size:
        30px;

}


.stat-card span {

    color:
        var(--muted);

    font-size:
        13px;

}


/* ================= SOCIALS ================= */

.social-grid {

    display:
        grid;

    grid-template-columns:
        repeat(4,1fr);

    gap:
        15px;

}


.social-card {

    padding:
        22px;

    display:
        flex;

    align-items:
        center;

    gap:
        15px;

    border:
        1px solid var(--border);

    border-radius:
        17px;

    background:
        var(--surface);

    transition:
        .2s;

}


.social-card:hover {

    transform:
        translateY(-4px);

}


.social-card > strong {

    font-size:
        25px;

}


.social-card b,
.social-card small {

    display:
        block;

}


.social-card small {

    color:
        var(--muted);

    font-weight:
        normal;

}


/* ================= FOOTER ================= */

footer {

    border-top:
        1px solid var(--border);

    padding:
        35px 6%;

    display:
        flex;

    justify-content:
        space-between;

    color:
        var(--muted);

}


.footer-logo {

    font-size:
        22px;

    font-weight:
        900;

}


/* ================= TOP BUTTON ================= */

.top-button {

    position:
        fixed;

    right:
        22px;

    bottom:
        22px;

    display:
        none;

    width:
        45px;

    height:
        45px;

    border:
        none;

    border-radius:
        50%;

    background:
        var(--accent);

    color:
        white;

    font-size:
        20px;

    cursor:
        pointer;

}


/* ================= MOBILE ================= */

@media(max-width:850px) {

    .menu-button {

        display:
            block;

    }


    .navbar nav {

        display:
            none;

        position:
            absolute;

        top:
            72px;

        left:
            0;

        right:
            0;

        padding:
            20px;

        flex-direction:
            column;

        background:
            var(--surface);

        border-bottom:
            1px solid var(--border);

    }


    .navbar nav.open {

        display:
            flex;

    }


    .hero {

        grid-template-columns:
            1fr;

        padding-top:
            65px;

    }


    .video-grid {

        grid-template-columns:
            1fr;

    }


    .live-container {

        grid-template-columns:
            1fr;

    }


    .schedule-grid,
    .statistics-grid,
    .social-grid {

        grid-template-columns:
            repeat(2,1fr);

    }


    footer {

        display:
            block;

    }

}


@media(max-width:520px) {

    .hero {

        padding-left:
            5%;

        padding-right:
            5%;

    }


    .section {

        padding:
            55px 5%;

    }


    .hero h1 {

        letter-spacing:
            -2px;

    }


    .schedule-grid,
    .statistics-grid,
    .social-grid {

        grid-template-columns:
            1fr;

    }

}
/* =========================================
   YOUTUBE
========================================= */

.video-thumbnail {

    height: 190px;

    background-size: cover;

    background-position: center;

    position: relative;

    display: grid;

    place-items: center;

}


.youtube-play {

    width: 65px;

    height: 65px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: rgba(124,92,255,.95);

    color: white;

    font-size: 22px;

    opacity: .9;

    transition: .2s;

}


.video-card:hover
.youtube-play {

    transform: scale(1.12);

}


.loading {

    grid-column: 1 / -1;

    text-align: center;

    padding: 60px;

    color: var(--muted);

}


.loading-spinner {

    width: 35px;

    height: 35px;

    margin: 0 auto 15px;

    border-radius: 50%;

    border: 4px solid var(--border);

    border-top-color: var(--accent);

    animation: spin .8s linear infinite;

}


.youtube-error {

    grid-column: 1 / -1;

    padding: 40px;

    text-align: center;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: var(--surface);

}


.youtube-error p {

    color: var(--muted);

}


@keyframes spin {

    to {

        transform:
            rotate(360deg);

    }

}
/* =========================================
   DISCORD POPUP
========================================= */

.discord-modal {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .75);

    backdrop-filter:
        blur(8px);

}


.discord-modal.active {

    display: flex;

}


.discord-popup {

    position: relative;

    width: 100%;

    max-width: 450px;

    padding: 40px 35px;

    text-align: center;

    background:
        var(--surface);

    border:
        1px solid var(--border);

    border-radius:
        25px;

    box-shadow:
        0 30px 100px rgba(0,0,0,.5);

    animation:
        discordPopupIn .25s ease;

}


@keyframes discordPopupIn {

    from {

        opacity: 0;

        transform:
            scale(.9)
            translateY(20px);

    }

    to {

        opacity: 1;

        transform:
            scale(1)
            translateY(0);

    }

}


.discord-close {

    position: absolute;

    top: 15px;

    right: 15px;

    width: 35px;

    height: 35px;

    border: none;

    border-radius: 50%;

    background:
        var(--surface-light);

    color:
        var(--text);

    font-size: 24px;

    cursor: pointer;

}


.discord-close:hover {

    background:
        #5865f2;

    color: white;

}


.discord-icon {

    width: 80px;

    height: 80px;

    margin:
        0 auto 20px;

    display: grid;

    place-items: center;

    border-radius: 22px;

    background:
        #5865f2;

    color: white;

    font-size: 40px;

    box-shadow:
        0 15px 35px
        rgba(88,101,242,.35);

}


.discord-popup h2 {

    font-size: 30px;

    margin-bottom: 8px;

}


.discord-popup > p {

    color:
        var(--muted);

    margin-bottom: 25px;

}


.discord-invite {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 7px;

    margin-bottom: 15px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background:
        var(--surface-light);

}


.discord-invite span {

    flex: 1;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color:
        var(--muted);

    font-size: 14px;

}


.discord-invite button {

    border: none;

    padding:
        9px 13px;

    border-radius:
        8px;

    background:
        var(--accent);

    color:
        white;

    font-weight:
        800;

    cursor:
        pointer;

}


.discord-join {

    display: block;

    width: 100%;

    padding:
        14px;

    border-radius:
        12px;

    background:
        #5865f2;

    color:
        white;

    font-weight:
        900;

    transition:
        .2s;

}


.discord-join:hover {

    transform:
        translateY(-2px);

    background:
        #4752c4;

}


.copy-message {

    min-height:
        20px;

    margin-top:
        12px !important;

    margin-bottom:
        0 !important;

    color:
        #34d399 !important;

    font-size:
        13px;

/* =========================================
   STREAM SECTION
========================================= */

.stream-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Information above the preview */

.stream-info {
    position: relative;
    z-index: 2;
    padding: 0 0 24px 0;
}

/* =========================================
   STATUS
========================================= */

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 8px 14px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;

    color: #aaa;

    margin-bottom: 16px;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #888;

    flex-shrink: 0;
}

/* LIVE */

.live-status.is-live {
    color: #ff4d67;
}

.live-status.is-live .status-dot {
    background: #ff334f;

    box-shadow: 0 0 10px rgba(255, 51, 79, 0.8);

    animation: livePulse 1.2s infinite;
}

/* OFFLINE */

.live-status.is-offline {
    color: #aaa;
}

.live-status.is-offline .status-dot {
    background: #777;
}

/* ERROR */

.live-status.is-error {
    color: #ffc107;
}

.live-status.is-error .status-dot {
    background: #ffc107;
}

/* =========================================
   TEXT
========================================= */

.stream-info h2 {
    margin: 0 0 8px 0;

    font-size: 26px;
    line-height: 1.2;

    color: #ffffff;
}

.stream-info p {
    margin: 0 0 18px 0;

    font-size: 15px;
    line-height: 1.5;

    color: #aaa;
}

/* =========================================
   BUTTON
========================================= */

.stream-info .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 12px;

    text-decoration: none;

    font-weight: 700;

    box-sizing: border-box;
}

/* =========================================
   STREAM PREVIEW
========================================= */

.stream-preview {
    position: relative;

    width: 100%;
    height: 250px;

    border-radius: 18px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #171a38 0%,
            #20194b 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.06);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* Play button */

.preview-play {
    width: 70px;
    height: 70px;

    border-radius: 50%;

    background: #7955ff;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;

    padding-left: 4px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* =========================================
   ANIMATION
========================================= */

@keyframes livePulse {

    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.75);
        opacity: 0.55;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .stream-info h2 {
        font-size: 22px;
    }

    .stream-preview {
        height: 200px;
        border-radius: 14px;
    }

    .preview-play {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
.video-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.video-actions a {
    text-decoration: none;
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-card {
    overflow: hidden;
}

@media (max-width: 600px) {

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .video-actions {
        width: 100%;
    }


}
/* PHP/MySQL additions */
.empty-card{padding:30px;border:1px solid var(--border);border-radius:17px;background:var(--surface);color:var(--muted)}
.twitch-card{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding:35px;border:1px solid var(--border);border-radius:24px;background:linear-gradient(135deg,var(--surface-light),var(--surface))}
.twitch-card-content h2{font-size:38px;margin:18px 0 5px}
.twitch-card-content>p{color:var(--muted);margin-bottom:20px}
.stream-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}
.stream-detail{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.stream-detail small,.stream-detail strong{display:block}.stream-detail small{color:var(--muted)}
.stream-preview{min-height:300px;border-radius:17px;background:linear-gradient(135deg,#151b30,#28154c);display:grid;place-items:center;overflow:hidden}
.preview-overlay{text-align:center}.preview-icon{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-size:25px;margin:auto auto 12px}
.live-status.is-live .status-dot{background:#ef4444;box-shadow:0 0 15px #ef4444}
.live-status.is-offline .status-dot{background:#6b7280;box-shadow:none}
.discord-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:500;place-items:center;padding:20px}
.discord-modal.show{display:grid}.discord-popup{position:relative;max-width:450px;width:100%;padding:35px;border-radius:20px;background:var(--surface);border:1px solid var(--border);text-align:center}
.discord-close{position:absolute;right:15px;top:10px;background:none;color:var(--text);font-size:28px;border:0;cursor:pointer}
.discord-icon{font-size:45px;color:var(--accent)}.discord-popup p{color:var(--muted)}
.discord-invite{display:flex;gap:8px;margin:20px 0}.discord-invite span{flex:1;padding:12px;background:var(--surface-light);border-radius:8px}.discord-invite button{border:0;border-radius:8px;padding:0 14px;background:var(--accent);color:#fff}
.discord-join{display:block;padding:13px;border-radius:10px;background:var(--accent);color:#fff;font-weight:bold}.copy-message{min-height:20px;margin-top:10px}
@media(max-width:850px){.twitch-card{grid-template-columns:1fr}.stream-details{grid-template-columns:1fr}}
