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

/* Base */
body {
    background: #000000;
    color: #e8e0d4;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Links */
a {
    color: #367783;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #367783;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo-icon {
    height: 1.1em;
    width: auto;
}

.logo:hover {
    color: #679E85;
}

/* Control buttons */
.ctrl-btn {
    background: none;
    border: none;
    color: #e8e0d4;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.15s;
}

.ctrl-btn:hover { opacity: 1; }

/* Volume group */
.volume-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 64px;
    height: 3px;
    background: #444;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8e0d4;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e8e0d4;
    border: none;
    cursor: pointer;
}

/* Spacer */
.controls-spacer { flex: 1; }

/* Timestamp */
.timestamp {
    font-size: 12px;
    color: #888;
    font-variant-numeric: tabular-nums;
}

/* Live badge */
.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e44;
    background: rgba(228, 68, 68, 0.12);
    border: none;
    padding: 3px 10px;
    border-radius: 3px;
    cursor: default;
}

.live-badge.behind {
    color: #888;
    background: rgba(136, 136, 136, 0.12);
    cursor: pointer;
}

.live-badge.behind:hover {
    color: #aaa;
    background: rgba(136, 136, 136, 0.2);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e44;
    box-shadow: 0 0 6px #e44;
    animation: pulse 2s infinite;
}

.live-badge.behind .live-dot {
    background: #555;
    box-shadow: none;
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Unmute button (overlay on player) */
.unmute-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.unmute-btn:hover {
    background: rgba(0, 0, 0, 0.85);
}

/* Player */
.player-wrap {
    position: relative;
    background: #000;
    overflow: hidden;
}

video {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.player-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #111;
    font-size: 13px;
    color: #888;
}

/* Fullscreen: video fills screen, controls float as overlay */
.player-wrap:fullscreen video {
    max-height: 100vh;
    width: 100%;
    height: 100vh;
}

.player-wrap:fullscreen .player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}

.player-wrap:fullscreen:hover .player-controls {
    opacity: 1;
}

.player-wrap:fullscreen .unmute-btn {
    z-index: 20;
}


/* Now Playing */
.now-playing {
    padding: 28px 0;
    border-bottom: 1px solid #1a1a1a;
}

.section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #367783;
    margin-bottom: 12px;
}

.now-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

.now-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 12px;
}

.now-meta span + span::before {
    content: " · ";
}

.genres {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.genre {
    font-size: 11px;
    padding: 2px 10px;
    border: 1px solid #333;
    border-radius: 12px;
    color: #aaa;
}

.synopsis {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 12px;
    line-height: 1.6;
}

.cast {
    font-size: 13px;
    color: #666;
}

.countdown {
    margin-top: 16px;
    font-size: 13px;
    color: #888;
}

.countdown strong {
    color: #367783;
    font-variant-numeric: tabular-nums;
}

.break-indicator {
    margin-top: 8px;
    font-size: 6px;
    color: #444;
    letter-spacing: 4px;
    opacity: 0.5;
}

/* Up Next */
.up-next {
    padding: 28px 0;
}

.upcoming-list {
    list-style: none;
}

.upcoming-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 0;
    border-bottom: 1px solid #141414;
}

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

.upcoming-title {
    font-size: 15px;
    font-weight: 500;
}

.upcoming-detail {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}

.upcoming-time {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    margin-left: 16px;
    font-variant-numeric: tabular-nums;
}

/* Footer */
footer {
    padding: 28px 0;
    text-align: center;
    font-size: 12px;
    color: #444;
    border-top: 1px solid #1a1a1a;
}

footer a {
    color: #555;
}

footer a:hover {
    color: #367783;
}

/* Blocked page */
.blocked {
    text-align: center;
    padding: 120px 0;
}

.blocked h1 {
    font-size: 24px;
    font-weight: 600;
    color: #e8e0d4;
    margin-bottom: 12px;
}

.blocked p {
    color: #888;
    font-size: 15px;
    margin-bottom: 14px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.blocked p:last-child {
    margin-bottom: 0;
}

.blocked strong {
    color: #e8e0d4;
}

.blocked em {
    color: #aaa;
    font-style: italic;
}

.blocked .blocked-note {
    color: #666;
    font-size: 13px;
    margin-top: 24px;
}

/* About page */
.about {
    padding: 40px 0 60px;
    max-width: 600px;
}

.about h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about h2 {
    font-size: 16px;
    font-weight: 600;
    color: #367783;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 36px;
    margin-bottom: 12px;
}

.about p {
    color: #aaa;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.about p:last-child {
    margin-bottom: 0;
}

.about strong {
    color: #e8e0d4;
}

/* Empty / loading state */
.empty {
    padding: 40px 0;
    text-align: center;
    color: #555;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    .logo { font-size: 22px; letter-spacing: 2px; }
    .now-title { font-size: 20px; }
    .container { padding: 0 12px; }
.unmute-btn { font-size: 14px; padding: 10px 18px; }
    .live-badge { font-size: 10px; }
    .volume-slider { width: 48px; }
    .timestamp { font-size: 11px; }
}
