﻿*,*:before,*:after{
    box-sizing: border-box;
}
body{
    background: #1e1e1e;
    padding: 0;
    margin:0;
}
.tv{
    position: relative;
    width: 100vw;
    height: 100vh;
}
#player {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 90vh;
    object-fit: cover;
    aspect-ratio: 1 / 1;

    border-radius: 5em;
    padding: 1em;
    border: 3em solid #1e1e1e;
}
.logo{
    position: absolute;
    top: 10%;
    width: 8vw;
    left: 10%;
    z-index: 3;
}
#noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        /* Scanlines */
            linear-gradient(
                    rgba(18, 16, 16, 0.1) 50%,
                    rgba(0, 0, 0, 0.25) 50%
            ),
            linear-gradient(
                    90deg,
                    rgba(255, 0, 0, 0.05) 0%,
                    rgba(0, 255, 0, 0.02) 50%,
                    rgba(0, 0, 255, 0.05) 100%
            );
    background-size: 100% 2px, 100% 100%;
    opacity: 0.3;
}

/* Static noise effect using box-shadow */
#noise-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    box-shadow:
        /* Random noise dots */
            0 0 0 1px rgba(255, 255, 255, 0.05) inset,
            10px 5px 0 1px rgba(255, 255, 255, 0.05) inset,
            20px 15px 0 1px rgba(255, 255, 255, 0.05) inset,
            30px 25px 0 1px rgba(255, 255, 255, 0.05) inset,
            40px 35px 0 1px rgba(255, 255, 255, 0.05) inset,
            50px 45px 0 1px rgba(255, 255, 255, 0.05) inset,
            60px 55px 0 1px rgba(255, 255, 255, 0.05) inset,
            70px 65px 0 1px rgba(255, 255, 255, 0.05) inset,
            80px 75px 0 1px rgba(255, 255, 255, 0.05) inset,
            90px 85px 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: noise 0.2s infinite;
}

@keyframes noise {
    0% {
        box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                10px 5px 0 1px rgba(255, 255, 255, 0.05) inset,
                20px 15px 0 1px rgba(255, 255, 255, 0.05) inset;
    }
    20% {
        box-shadow:
                5px 10px 0 1px rgba(255, 255, 255, 0.05) inset,
                25px 20px 0 1px rgba(255, 255, 255, 0.05) inset,
                40px 30px 0 1px rgba(255, 255, 255, 0.05) inset;
    }
    40% {
        box-shadow:
                15px 25px 0 1px rgba(255, 255, 255, 0.05) inset,
                35px 40px 0 1px rgba(255, 255, 255, 0.05) inset,
                50px 55px 0 1px rgba(255, 255, 255, 0.05) inset;
    }
    60% {
        box-shadow:
                25px 35px 0 1px rgba(255, 255, 255, 0.05) inset,
                45px 50px 0 1px rgba(255, 255, 255, 0.05) inset,
                60px 65px 0 1px rgba(255, 255, 255, 0.05) inset;
    }
    80% {
        box-shadow:
                35px 45px 0 1px rgba(255, 255, 255, 0.05) inset,
                55px 60px 0 1px rgba(255, 255, 255, 0.05) inset,
                70px 75px 0 1px rgba(255, 255, 255, 0.05) inset;
    }
    100% {
        box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                10px 5px 0 1px rgba(255, 255, 255, 0.05) inset,
                20px 15px 0 1px rgba(255, 255, 255, 0.05) inset;
    }
}


.off-overlay{
    position: absolute;
    inset:0;
    background-color: rgba(0, 0, 0, 1);
    z-index: 4;
    display: none;
    &.show{
        display: block;
    }
}

.controls{
    z-index: 5;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1em;
    height: 10vh;
    background-color: #333;
    display: flex;
    align-items: center;
    gap: 1em;
    .unmute{
        border: 4px solid #555;
        background-color: #333;
        color: red;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.2s ease;
    }
}

#artist-caption{
    position: absolute;
    bottom: 15vh;
    left: 5%;
    background: rgba(255, 203, 5, 0.7);
    color: #ed1c24;
    font-family: 'Arial Black', sans-serif;
    font-size: 20px;
    padding: 10px 20px;
    box-shadow: 5px -5px 1px rgba(0, 171, 226, 0.8);
    border: 1px solid black;
    border-radius: 1px;
    text-shadow: 2px 0 1px rgba(0, 171, 226, 0.8);
    z-index: 100;
    display: none;
    width:100%;
    max-width: 50vw;
}
.tv-switch {
    position: relative;
    width: 80px;
    height: 40px;
    background: #333;
    border-radius: 20px;
    cursor: pointer;
    border: 3px solid #555;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.tv-switch::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #8B0000; /* Dark red for "off" */
    top: 3px;
    left: 3px;
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.tv-switch.active::after {
    left: 43px;
    background: #008000; /* Green for "on" */
}

/* Optional: Add a label */
.tv-switch-label {
    font-family: 'Courier New', monospace;
    color: #ccc;
    font-size: 12px;
    text-align: center;
    margin-top: 5px;
}