

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
}

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.85));
    backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 10px 20px;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.video-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 20px;
}

.video-time {
    font-size: 16px;
    font-weight: 500;
    color: #c084fc;
    font-variant-numeric: tabular-nums;
    margin-right: 20px;
}

.video-remaining {
    font-size: 14px;
    font-weight: 500;
    color: #e6006f;
    font-variant-numeric: tabular-nums;
}

.progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #9600e1 0%, #c084fc 100%);
    width: 0%;
    transition: width 0.3s ease-out;
    border-radius: 2px;
}

.obs-container {
    position: relative;
    width: 1920px;
    height: 1080px;
    margin: 70px auto 0;
    
    background-color: #000000;
    overflow: hidden;
    border-radius: 15px;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    
    background-color: #000000;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.main-video.fade-out {
    opacity: 0;
}

.main-video.fade-in {
    opacity: 1;
}

.music-player {
    display: none;
}

.youtube-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: #000000;
}

.youtube-container.active {
    display: block;
}

.youtube-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.loading-indicator,
.error-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.loading-indicator.visible,
.error-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #c084fc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-text,
.error-text {
    font-size: 24px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.error-icon {
    font-size: 72px;
    margin-bottom: 20px;
}

.error-indicator {
    background: rgba(255, 0, 0, 0.1);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.ticker-bar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 50px;
    background: transparent;
    backdrop-filter: none;
    display: none;
    align-items: center;
    z-index: 200;
    overflow: hidden;
    border-top: none;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-message {
    display: inline-block;
    white-space: nowrap;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
        2px 2px 4px rgba(0, 0, 0, 0.4);
    padding-right: 50vw;
    
    animation: scroll-ticker 25s linear infinite;
    animation-play-state: running;
}

@keyframes scroll-ticker {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(-100%);
    }
}

.ticker-content.paused .ticker-message {
    animation-play-state: paused;
    transform: translateX(0);
}

.info-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 150;
    pointer-events: none;
}

.music-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(150, 0, 225, 0.3), rgba(230, 0, 111, 0.2));
    padding: 15px 30px;
    border-radius: 12px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(150, 0, 225, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.music-indicator.visible {
    opacity: 1;
    transform: translateX(0);
}

.music-indicator.visible {
    animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {

    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(150, 0, 225, 0.5);
    }
}

@media screen and (max-width: 1920px) {
    .obs-container {
        width: 100vw;
        height: 56.25vw;
        
        max-height: 100vh;
        max-width: 177.78vh;
        
    }

    
    .ticker-message {
        font-size: 1.67vw;
        
    }

    #currentTime {
        font-size: 1.46vw;
        
    }

    .music-indicator {
        font-size: 1.25vw;
        
    }
}

.ticker-message,
.main-video,
.music-indicator,
.progress-fill,
.spinner {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.obs-container {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.hidden {
    display: none !important;
}

.invisible {
    opacity: 0 !important;
    visibility: hidden !important;
}

.visible {
    opacity: 1 !important;
    visibility: visible !important;
}

body.debug .obs-container {
    outline: 2px solid red;
}

body.debug .video-container {
    outline: 2px solid blue;
}

body.debug .ticker-bar {
    outline: 2px solid green;
}

body.debug .info-overlay {
    outline: 2px solid yellow;
}