/**
 * TV Display CSS - SMK Pembangunan Bogor
 * Dioptimalkan untuk resolusi Full HD (1920x1080) Fullscreen
 */

.tv-body {
    background-color: var(--bg-dark);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: var(--text-white);
    padding: 0;
    margin: 0;
}

/* Header TV */
.tv-header {
    background: linear-gradient(to bottom, rgba(0, 91, 172, 0.4), rgba(7, 25, 47, 0));
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 30px;
    height: 10vh;
    min-height: 80px;
}

.tv-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.tv-time-box {
    text-align: right;
    font-weight: 600;
}

/* Layout Grid Utama TV */
.tv-main {
    height: 82vh;
    padding: 20px;
    overflow: hidden;
}

/* Card Nomor Panggilan */
.tv-call-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.tv-active-label {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tv-active-number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 2px;
    line-height: 1;
    margin: 20px 0;
    text-shadow: 0 10px 30px rgba(255, 213, 79, 0.3);
}

.tv-active-counter {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* Riwayat Loket Lain */
.tv-history-list {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    width: 100%;
}

.tv-history-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 15px;
    font-size: 1.1rem;
}

.tv-history-item:last-child {
    border-bottom: none;
}

/* Video Player Area */
.tv-video-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    background: #000;
}

.tv-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.tv-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Statistik PPDB Area */
.tv-stats-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.tv-stats-title {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 8px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.stat-item-badge {
    background: rgba(0, 91, 172, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 91, 172, 0.2);
}

.stat-val-big {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
}

.progress-tv {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-tv {
    background-color: var(--primary-light);
    border-radius: 6px;
}

.stats-list-scroll {
    overflow: hidden;
    flex-grow: 1;
    padding-right: 5px;
}

.stats-list-scroll::-webkit-scrollbar {
    width: 4px;
}
.stats-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Running Text Footer */
.tv-footer {
    height: 8vh;
    min-height: 50px;
    background: #005BAC;
    border-top: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-text {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 25s linear infinite;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

@keyframes marquee {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* Blinking Effect when called */
.called-animation {
    animation: pulse-border 1s infinite alternate, shake-card 0.5s 3;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 8px 32px 0 rgba(255, 213, 79, 0.2);
        border-color: var(--border-glass);
    }
    100% {
        box-shadow: 0 8px 45px 5px rgba(255, 213, 79, 0.6);
        border-color: var(--accent-color);
    }
}

@keyframes shake-card {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Floating Fullscreen Button */
.btn-fullscreen {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-fullscreen:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: scale(1.1);
}
