body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #0a0e1a;
}

/* Simple Header */
.player-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    background: rgba(18, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 16px;
    user-select: none;
    touch-action: none;
    transition: box-shadow 0.2s ease;
}

.player-popup:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: move;
}

.popup-title {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.data-controls {
    display: flex;
    gap: 12px;
}

.player-controls {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-container {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    overflow: visible;
}

.progress-bar {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-handle {
    position: absolute;
    right: -6px;
    top: 50%;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-container:hover .progress-handle {
    opacity: 1;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.speed-controls {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
    border-radius: 20px;
}

.speed-btn {
    border: none;
    background: none;
    color: #fff;
    padding: 4px 12px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.speed-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

.speed-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

#app {
    width: 100%;
    height: calc(100vh - 60px);
    margin-top: 60px;
    background-color: #000000;
}

.tvjs-no-data-text {
    color: #888;
}