/* ==================== Persistent Player Bar ==================== */
.persistent-player-bar {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    width: calc(100% - 240px);
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 12px 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
    z-index: 90;
    animation: slideUp 0.3s ease-out;
}

.player-close-btn {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
}

.player-close-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.player-close-btn:hover {
    background: #f3f4f6;
    color: #374151;
    transform: translateY(-50%);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 200px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
}

.player-meta {
    flex: 1;
    min-width: 0;
}

.player-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-tags {
    display: flex;
    gap: 8px;
}

.player-tag {
    font-size: 10px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

/* Player Controls */
.player-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.player-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: var(--primary-color);
}

.player-btn.icon-only {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.player-btn.icon-only:hover {
    background: var(--panel-bg);
}

/* Tooltip Styles */
.player-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #6d5dfc;
    color: white;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.player-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 6px solid transparent;
    border-top-color: #6d5dfc;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.player-btn[data-tooltip]:hover::after,
.player-btn[data-tooltip].show-tooltip::after,
.player-btn[data-tooltip]:hover::before,
.player-btn[data-tooltip].show-tooltip::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.feedback-btn.is-active {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.16);
    transform: translateY(-1px);
}

.feedback-btn.is-active::after,
.feedback-btn.is-active::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Skip Buttons */
.player-btn.skip-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 4px 8px;
    border-radius: 8px;
    background: transparent;
    border: none;
    gap: 2px;
    color: var(--text-primary);
    box-shadow: none;
    transition: color 0.2s, transform 0.15s;
}

.player-btn.skip-btn svg {
    width: 20px;
    height: 20px;
}

.player-btn.skip-btn:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.skip-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}

/* Play/Pause Button */
.play-pause-btn {
    width: 56px;
    height: 56px;
    background: var(--text-primary);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn:hover {
    background: black;
    transform: scale(1.05);
    color: white;
}

/* Progress Container */
.player-progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.time-current, .time-duration {
    font-size: 11px;
    color: var(--text-secondary);
    font-family: monospace;
    width: 36px;
}

.progress-bar-wrapper {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.progress-bar-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
}

.progress-thumb {
    position: absolute;
    left: 0%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.progress-bar-wrapper:hover .progress-thumb {
    opacity: 1;
}

/* Player Actions */
.player-actions {
    display: flex;
    gap: 8px;
}
