:root {
    --player-bg: #ffffff;
    --player-shadow: rgba(0, 0, 0, 0.07);
    --accent-play: #FF8C00; /* Orange */
    --accent-play-hover: #E67E00; /* Darker Orange */
    --accent-pause: #6c757d; /* Grey */
    --accent-pause-hover: #5a6268; /* Darker Grey */
    --text-primary: #212529;
    --text-secondary: #868e96;
    --wave-progress-grad-start: rgba(255, 140, 0, 0.8);
    --wave-progress-grad-end: rgba(255, 165, 0, 0.7);
    --wave-bg: rgba(108, 117, 125, 0.1);
    --cursor-color: #343a40;
    --progress-bar-bg: #e9ecef;
}

.podcast-player-modern {
    background: var(--player-bg);
    padding: 20px 25px;
    margin: 40px 0;
    box-shadow: 0 10px 35px var(--player-shadow);
    animation: fadeInPlayer 0.7s ease-in-out;
}

@keyframes fadeInPlayer {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.podcast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.podcast-title-modern {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.2em;
    margin: 0;
}

.podcast-icon {
    font-size: 1.4em;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.podcast-icon.is-playing {
    color: var(--accent-play);
    animation: pulse-icon 1.5s infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.waveform-container {
    width: 100%;
    height: 60px; /* Made thinner */
    margin-bottom: 10px;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: var(--progress-bar-bg);
    margin-bottom: 15px;
    cursor: pointer;
}

.progress-bar {
    width: 0;
    height: 100%;
    background-color: var(--accent-play);
    transition: width 0.1s linear;
}

.podcast-footer {
    padding: 0;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8em;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.podcast-controls-modern {
    display: flex;
    align-items: center;
    justify-content: center; /* Centered controls */
    gap: 25px;
}

.play-pause-button {
    background: var(--accent-pause); /* Paused state */
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    outline: none;
}

.play-pause-button:focus {
    outline: none;
    box-shadow: none;
}

.play-pause-button:hover {
    background: var(--accent-play); /* Hover in paused state */
    transform: scale(1.08);
}

.play-pause-button.is-playing {
    background: var(--accent-play); /* Playing state */
}

.play-pause-button.is-playing:hover {
    background: var(--accent-play-hover); /* Hover in playing state */
    transform: scale(1.08);
}

.speed-control-modern {
    background: var(--text-secondary); /* Default grey background */
    color: white;
    border: none; /* No border */
    border-radius: 0; /* Make it perfectly square */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none; /* Remove outline on focus */
}

.speed-control-modern:focus {
    outline: none;
    box-shadow: none;
}

.speed-control-modern:hover {
    background-color: var(--accent-play); /* Orange on hover */
    color: white;
}

.speed-control-modern .speed-text {
    transition: transform 0.3s ease-in-out;
    display: inline-block;
}

.speed-control-modern.speed-changing .speed-text {
    transform: translateY(-100%);
}