:root {
    --background-btn: rgba(255, 255, 255, 0.1);
    --primary-btn: #4759f7;
    --hover-btn: #5a95f5;
    --panel-bg: #1a1a1a;
    --gradient-overlay: linear-gradient(135deg, rgba(71, 89, 247, 0.1), rgba(90, 149, 245, 0.1));
    --border-color: rgba(255, 255, 255, 0.12);
}

.hidden {
    display: none;
}

.qariyo-ex-highlight {
    background-color: rgba(71, 89, 247, 0.2);
    transition: background-color 0.3s ease;
}

/* Playback Panel */
.playback-panel-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    padding: 8px;
    border-radius: 12px;
    z-index: 10000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    background: #1a1a1a var(--gradient-overlay);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    0 2px 8px rgba(71, 89, 247, 0.1);
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--panel-bg);
    background-image: var(--gradient-overlay);
}

.playback-panel-container:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5),
    0 4px 12px rgba(71, 89, 247, 0.15);
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    margin: 8px;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.player-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.player-subtitle {
    font-size: 14px;
    color: #888;
}

/** Options Section */
.btn {
    background-color: var(--background-btn);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 32px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(1px);
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    min-width: 80px;
}

.language-btn .flag {
    font-size: 14px;
}

.language-btn .voice-name {
    font-weight: 500;
    flex: 1;
    text-align: left;
}

/** Control Buttons Section */
.player-footer {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.player-controls{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.player-options {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.play-pause {
    background-color: var(--primary-btn);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(71, 89, 247, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.play-pause:hover {
    background-color: #5a95f5;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(71, 89, 247, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.play-pause img {
    width: 20px;
    height: 20px;
    filter: brightness(1.2);
    transition: transform 0.2s ease;
}

.play-pause:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(71, 89, 247, 0.2);
}

.forward-btn, .backward-btn, .credits-btn {
    background-color: var(--background-btn);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forward-btn:hover, .backward-btn:hover, .credits-btn:hover {
    background-color: rgba(71, 89, 247, 0.2);
    border-color: var(--primary-btn);
    transform: scale(1.05);
}

.forward-btn img, .backward-btn img, .credits-btn img {
    width: 14px;
    height: 14px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.forward-btn:hover img, .backward-btn:hover img, .credits-btn:hover img {
    opacity: 1;
}