html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: black;
    overflow: hidden;
    font-family: Arial, sans-serif;
}
.tv-screen {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: black;
    display: flex;
}
iframe {
    flex: 1;
    height: 100vh;
    border: none;
    z-index: 1;
}
.playlist-panel {
    width: 385px;
    background: rgba(0,0,0,0.8);
    color: white;
    z-index: 2;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
}
#playlist {
    flex: 1;
    overflow-y: auto;
    background: rgb(136 136 136 / 65%);
    padding: 15px;
}
.playlist-panel h2 {
    margin-top: 0;
    font-size: 20px;
    padding: 20px 20px 10px 20px;
    background: rgba(0,0,0,0.8);
    text-align: center;
}
.playlist-item {
    margin-bottom: 10px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
}
.playlist-item:hover {
    text-decoration: none;
    background-color: rgba(255,255,255,0.1);
}
.playlist-item.active {
    font-size: 18px;
    font-weight: bold;
    color: #ff4040;
    background-color: rgb(0 0 0 / 61%);
}
canvas#tvCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
}
.social {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 4;
    background: #00000078;
    padding: 5px;
    border-radius: 5px;
}
.social a img {
    width: 32px;
    height: 32px;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: brightness(0) invert(1);
}
.social a:hover img {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .tv-screen {
        flex-direction: column;
    }
    iframe {
        height: 50vh;
    }
    .playlist-panel {
        width: 100%;
        height: 50vh;
        max-height: 50vh;
        order: 2;
    }
    .playlist-panel h2 {
        padding: 15px 15px 5px 15px;
        font-size: 18px;
    }
    .social {
        position: relative;
        top: unset;
        left: unset;
        transform: none;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        margin: 10px auto;
        background: rgba(100, 100, 100, 0.2);
        padding: 10px;
        border-radius: 8px;
        width: fit-content;
    }
}
.sponsor {
    background-color: rgb(50 50 50 / 75%);
    padding: 10px;
    font-size: 14px;
    text-align: center;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sponsor a {
    color: #fff;
    text-decoration: none;
}
.sponsor a:hover {
    text-decoration: underline;
}
#playlist {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
#playlist:hover {
    scrollbar-color: rgba(255, 0, 0, 0.8) transparent;
}
#playlist::-webkit-scrollbar {
    width: 8px;
}
#playlist::-webkit-scrollbar-track {
    background: transparent;
}
#playlist::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}
#playlist:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 0, 0, 0.8);
}
#infoPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.popup-content {
    background: #111;
    padding: 25px;
    border-radius: 8px;
    max-width: 50%;
    width: 100%;
    text-align: center;
    position: relative;
    color: #c44;
}
.popup-content p {
    color: #ddd;
    line-height: 1.6;
}
.popup-content p a {
    color: #6af;
}
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}
.popup-close:hover {
    color: white;
}
@media (max-width: 768px) {
    .popup-content {
        max-width: 85%;
        padding: 20px;
    }
    .popup-content h2 {
        font-size: 20px;
    }
}
#infoButton .bar-c {
    overflow: hidden;
    height: 30px;
    width: 35px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
#infoButton .bar {
    height: 1px;
    width: 3px;
    background-color: #ffffd2;
    display: inline-block;
    animation-duration: 500ms;
    animation-play-state: running;
    animation-direction: alternate;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    -webkit-animation-duration: 500ms;
    -webkit-animation-play-state: running;
    -webkit-animation-direction: alternate;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
}
#infoButton .bar.noAnim {
    animation-name: none !important;
    -webkit-animation-name: none !important;
    height: 1px !important;
}
#infoButton #bar-1 {
    animation-name: danceHeight1;
    animation-delay: 0ms;
    -webkit-animation-name: danceHeight1;
    -webkit-animation-delay: 0ms;
}
#infoButton #bar-2 {
    animation-name: danceHeight2;
    animation-delay: 300ms;
    -webkit-animation-name: danceHeight2;
    -webkit-animation-delay: 300ms;
}
#infoButton #bar-3 {
    animation-name: danceHeight3;
    animation-delay: 600ms;
    -webkit-animation-name: danceHeight3;
    -webkit-animation-delay: 600ms;
}
#infoButton #bar-4 {
    animation-name: danceHeight4;
    animation-delay: 900ms;
    -webkit-animation-name: danceHeight4;
    -webkit-animation-delay: 900ms;
}
#infoButton #bar-5 {
    animation-name: danceHeight5;
    animation-delay: 1200ms;
    -webkit-animation-name: danceHeight5;
    -webkit-animation-delay: 1200ms;
}
#infoButton #bar-6 {
    animation-name: danceHeight6;
    animation-delay: 1500ms;
    -webkit-animation-name: danceHeight6;
    -webkit-animation-delay: 1500ms;
}
@keyframes danceHeight1 {
    from { height: 1px; }
    to { height: 22px; }
}
@-webkit-keyframes danceHeight1 {
    from { height: 1px; }
    to { height: 22px; }
}
@keyframes danceHeight2 {
    from { height: 1px; }
    to { height: 15px; }
}
@-webkit-keyframes danceHeight2 {
    from { height: 1px; }
    to { height: 15px; }
}
@keyframes danceHeight3 {
    from { height: 1px; }
    to { height: 30px; }
}
@-webkit-keyframes danceHeight3 {
    from { height: 1px; }
    to { height: 30px; }
}
@keyframes danceHeight4 {
    from { height: 1px; }
    to { height: 20px; }
}
@-webkit-keyframes danceHeight4 {
    from { height: 1px; }
    to { height: 20px; }
}
@keyframes danceHeight5 {
    from { height: 1px; }
    to { height: 15px; }
}
@-webkit-keyframes danceHeight5 {
    from { height: 1px; }
    to { height: 15px; }
}
@keyframes danceHeight6 {
    from { height: 1px; }
    to { height: 15px; }
}
@-webkit-keyframes danceHeight6 {
    from { height: 1px; }
    to { height: 15px; }
}
.social #infoButton {
    padding-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 36px;
}
#infoButton:hover .bar-c {
    transform: scale(1.1);
}
#infoButton .bar-c {
    transition: transform 0.2s ease;
}
@media (max-width: 768px) {
    .social #infoButton {}
    #infoButton .bar-c {}
}