/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    background: #080808;

    overscroll-behavior-x: none;

    touch-action: pan-y;
}


body {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    background: #080808;

    color: #f5f5f5;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    touch-action: pan-y;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.site-header h1 {
    margin: 0;

    font-size: 28px;
}


.subtitle {
    margin: 5px 0 0;

    color: #999;

    font-size: 14px;
}


/* =====================================================
   STATUS BADGE
===================================================== */

.status-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    padding: 6px 10px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: bold;

    white-space: nowrap;
}


.status-badge.offline {
    background: #303030;

    color: #aaa;
}


.status-badge.online {
    background: #e00000;

    color: white;

    box-shadow:
        0 0 10px
        rgba(255, 0, 0, .25);
}


/* =====================================================
   MAIN
===================================================== */

main {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px 30px;
}


/* =====================================================
   PLAYERE
===================================================== */

.players-container {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 20px;
}


.player-card {
    width: 100%;
    min-width: 0;

    overflow: hidden;

    background: #151515;

    border:
        1px solid
        #292929;

    border-radius: 15px;

    padding: 15px;
}


.player-title {
    width: 100%;
    min-width: 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 12px;
}


.player-title > div {
    min-width: 0;
}


.player-title h2 {
    margin: 0;

    font-size: 20px;

    color: #fff;
}


.player-title p {
    margin: 5px 0 0;

    color: #999;

    font-size: 13px;
}


/* =====================================================
   VIDEO
===================================================== */

.video-box {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    background: #000;

    border-radius: 10px;

    overflow: hidden;
}


.video-box video {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;

    background: #000;

    object-fit: contain;
}


.offline-message {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .92);

    color: #aaa;

    text-align: center;

    font-size: 15px;
}


/* =====================================================
   PLAYER INFO
===================================================== */

.player-info {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: 12px;

    color: #aaa;

    font-size: 13px;
}


.player-info strong {
    color: #fff;
}


/* =====================================================
   STATUS GENERAL
===================================================== */

.info {
    width: 100%;

    margin-top: 20px;

    padding: 20px;

    background: #151515;

    border:
        1px solid
        #292929;

    border-radius: 15px;
}


.info h2 {
    margin-top: 0;
}


.info p {
    color: #aaa;
}


.stats {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 15px;
}


.stats > div {
    padding: 15px;

    background: #0e0e0e;

    border-radius: 10px;

    text-align: center;
}


.stats strong {
    display: block;

    color: #fff;

    font-size: 22px;
}


.stats span {
    display: block;

    margin-top: 5px;

    color: #888;

    font-size: 12px;
}


/* =====================================================
   CHAT
===================================================== */

.chat-section {
    width: 100%;

    margin-top: 20px;

    padding: 20px;

    background: #151515;

    border:
        1px solid
        #292929;

    border-radius: 15px;
}


.chat-section h2 {
    margin-top: 0;
}


.iframe-container {
    width: 100%;

    height: 500px;

    overflow: hidden;

    border-radius: 10px;

    background: #000;
}


.iframe-container iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: 0;
}


/* =====================================================
   INSTRUCTIUNI
===================================================== */

.help-section {
    width: 100%;

    margin-top: 20px;

    padding: 20px;

    background: #151515;

    border:
        1px solid
        #292929;

    border-radius: 15px;

    overflow: hidden;
}


.help-section h2 {
    margin-top: 0;

    color: #fff;
}


.help-section h3 {
    margin-top: 25px;

    color: #fff;
}


.help-section p,
.help-section li {
    color: #bbb;

    line-height: 1.6;
}


.help-section ul,
.help-section ol {
    padding-left: 25px;
}


/* =====================================================
   CODE
===================================================== */

.code {
    width: 100%;
    max-width: 100%;

    padding: 14px;

    background: #080808;

    border:
        1px solid
        #292929;

    border-radius: 8px;

    color: #8cff8c;

    font-family:
        Consolas,
        monospace;

    font-size: 13px;

    line-height: 1.6;

    overflow-x: auto;

    overflow-wrap: anywhere;

    word-break: break-word;
}


/* =====================================================
   START BUTTON
===================================================== */

.start-button {
    width: 100%;

    padding: 14px;

    margin: 15px 0;

    background: #e00000;

    border-radius: 8px;

    color: #fff;

    font-weight: bold;

    text-align: center;
}


.camerafi-button {
    background: #b400ff;
}


/* =====================================================
   LIVE EXAMPLE
===================================================== */

.live-example {
    display: inline-block;

    padding: 8px 12px;

    background: #e00000;

    border-radius: 7px;

    color: #fff;

    font-weight: bold;

    font-size: 12px;
}


/* =====================================================
   QR
===================================================== */

.qr-box {
    width: 100%;

    padding: 20px;

    margin-top: 10px;

    background: #0d0d0d;

    border-radius: 10px;

    text-align: center;
}


.qr-box img {
    display: block;

    width: 220px;
    max-width: 100%;

    height: auto;

    margin: 0 auto 12px;
}


.qr-box strong {
    display: block;

    color: #fff;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    width: 100%;

    padding: 25px 20px;

    text-align: center;

    color: #666;

    font-size: 13px;
}


/* =====================================================
   SMARTPHONE
===================================================== */

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        max-width: 100%;

        overflow-x: hidden;

        touch-action: pan-y;
    }


    .site-header {
        width: 100%;

        padding:
            15px 10px;

        gap: 10px;
    }


    .site-header h1 {
        font-size: 23px;
    }


    .subtitle {
        font-size: 12px;
    }


    main {
        width: 100%;

        padding:
            0 10px 25px;
    }


    /* un player sub altul */

    .players-container {
        width: 100%;

        grid-template-columns: 1fr;

        gap: 15px;
    }


    .player-card {
        width: 100%;

        padding: 10px;

        border-radius: 12px;
    }


    .player-title {
        margin-bottom: 10px;
    }


    .player-title h2 {
        font-size: 17px;
    }


    .player-title p {
        font-size: 11px;
    }


    .video-box {
        width: 100%;

        aspect-ratio: 16 / 9;
    }


    .player-info {
        font-size: 12px;
    }


    .info,
    .chat-section,
    .help-section {
        width: 100%;

        padding: 15px;

        border-radius: 12px;
    }


    .stats {
        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }


    .stats > div {
        padding: 12px 5px;
    }


    .stats strong {
        font-size: 20px;
    }


    .stats span {
        font-size: 11px;
    }


    .iframe-container {
        width: 100%;

        height: 420px;
    }


    .code {
        font-size: 11px;

        padding: 12px;
    }


    .help-section h2 {
        font-size: 19px;
    }


    .help-section h3 {
        font-size: 16px;
    }


    .help-section p,
    .help-section li {
        font-size: 14px;
    }


    .qr-box img {
        width: 200px;
    }

}


/* =====================================================
   TELEFON FOARTE INGUST
===================================================== */

@media (max-width: 380px) {

    .site-header {
        padding-left: 8px;
        padding-right: 8px;
    }


    main {
        padding-left: 8px;
        padding-right: 8px;
    }


    .player-title h2 {
        font-size: 15px;
    }


    .status-badge {
        padding: 5px 7px;

        font-size: 9px;
    }


    .stats strong {
        font-size: 18px;
    }


    .iframe-container {
        height: 380px;
    }

}

