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

body {
    font-family: 'BBC Reith Sans', Arial, sans-serif;
    background-color: #fefefe;
    color: #202020;
    min-height: 100vh;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
    font-size: 36px;
    display: block;
}

/* Header */
header {
    background-color: #ffffff;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #ff6600;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

nav a:hover {
    color: #ff6600;
}

/* Main Player Section */
.player-section {
    background-color: #1a1a1a;
    padding-top:22px;
    padding-bottom:34px;
    padding-left: 20px;
    padding-right: 20px;

    border-bottom: 0px solid #444;
}

.player-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.show-image-container {
    position: relative;
    flex-shrink: 0;
}

.show-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #333;
}

.station-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #ff6600;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 38px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.player-info {
    flex: 1;
    padding-top: 20px;
    position: relative;
}

.station-name {
    color: #999;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.show-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
}

.show-subtitle {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 20px;
}

.show-synopsis {
    font-size: 16px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 30px;
}

/* Progress Bar */
.progress-container {
    margin-top: 40px;
    position: relative;
}

.progress-bar {
    height: 4px;
    background-color: #666;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    transition: height 0.2s ease;
    position: relative;
}

.progress-bar:hover {
    height: 6px;
}

.progress-available {
    position: absolute;
    height: 100%;
    background-color: #444;
    width: 0%;
    transition: width 0.3s;
    top: 0;
    left: 0;
}

.progress-fill {
    position: absolute;
    height: 100%;
    background-color: #ff6600;
    width: 0%;
    transition: width 0.3s;
    top: 0;
    left: 0;
}

.progress-dot {
    position: absolute;
    top: -6px;
    width: 16px;
    height: 16px;
    background-color: #ff6600;
    border-radius: 50%;
    left: 0%;
    transform: translateX(-50%);
    cursor: grab;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    z-index: 10;
}

.progress-dot:hover {
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

.progress-dot:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.progress-bar:hover .progress-dot {
    transform: translateX(-50%) scale(1.1);
}

.time-tooltip {
    position: absolute;
    bottom: 30px;
    left: 0%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.time-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.live-indicator {
    position: absolute;
    right: 0;
    top: -30px;
    background-color: #ff6600;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.live-indicator.rewound {
    background-color: #666;
    padding: 4px 8px 4px 12px;
}

.live-indicator.rewound .live-dot {
    animation: none;
}

.go-live-btn {
    background-color: #ff6600;
    color: white;
    border: 1px solid white;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.2s;
}

.go-live-btn:hover {
    background-color: white;
    color: #ff6600;
    border-color: white;
}

/* Controls */
.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.volume-section {
    display: flex;
    align-items: center;
}

.play-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    opacity: 0.7;
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn svg {
    width: 36px;
    height: 36px;
    fill: white;
    margin-left: 0px;
}

.play-btn.playing svg {
    margin-left: 0;
}

.skip-btn {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0 8px;
}

.skip-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.skip-btn .btn-label {
    font-size: 10px;
    font-weight: bold;
    color: white;
    line-height: 1;
}

.skip-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.skip-btn:disabled:hover {
    opacity: 0.3;
}

.skip-btn:not(:disabled):hover {
    opacity: 0.8;
}

.skip-btn:not(:disabled):active {
    transform: scale(0.9);
}

.skip-btn.clicked {
    animation: button-click 0.3s ease;
}

@keyframes button-click {
    0% { transform: scale(1); }
    50% { transform: scale(0.85); background-color: rgba(255, 102, 0, 0.2); }
    100% { transform: scale(1); background-color: transparent; }
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Volume Control Styling */
.volume-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.volume-btn {
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.volume-slider-container {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: rgba(40, 40, 40, 0.95);
    border-radius: 20px;
    padding: 10px 15px 10px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.volume-control-wrapper:hover .volume-slider-container {
    opacity: 1;
    visibility: visible;
}

.volume-slider-track {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: 10px;
}

.volume-bar {
    width: 6px;
    height: 20px;
    background: #444;
    border-radius: 3px;
    transition: background 0.2s ease, transform 0.1s ease;
    cursor: pointer;
}

.volume-bar.active {
    background: #ff6600;
}

.volume-bar:hover {
    background: #666;
    transform: scaleY(1.1);
}

.volume-bar.active:hover {
    background: #ff8833;
}

.volume-value {
    color: #fff;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
    font-weight: bold;
}

/* Schedule */
.schedule-section {
    background-color: #1a1a1a;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
    border-radius: 8px;
    margin-bottom: -8px;
}


.schedule-label {
    color: #ff8736;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 600;
}

.schedule-time {
    font-size: 14px;
    color: #e0e0e0;
    margin-bottom: 4px;
}

.schedule-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #fff;
}

.schedule-subtitle {
    font-size: 14px;
    color: #e0e0e0;
}

/* Recent Tracks */
.recent-section {
    max-width: 1438px;
    margin: 24px auto;
    padding: 0 20px;
}

.recent-header {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 16px;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
}

.recent-item {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    animation: fadeIn 0.5s ease-in;
}

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

.recent-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.recent-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #333;
    transition: opacity 0.3s ease;
}

.recent-item:hover .recent-image {
    opacity: 0.9;
}

.recent-info {
    padding: 15px;
}

.recent-time {
    color: #ff8738;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.recent-time.now-playing {
    color: #fff;
    background-color: #ff6600;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.recent-song {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #fff;
}

.recent-artist {
    font-size: 14px;
    color: #ccc9c9;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.error {
    text-align: center;
    padding: 40px;
    color: #ff6666;
}

/* Error message */
.error-message {
    display: none;
    color: #ff6666;
    margin: 10px 0;
}

.retry-button {
    background: #ff6600;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.retry-button:hover {
    background: #ff8833;
}

.retry-button:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Controls spacer */
.controls-spacer {
    width: 24px;
}

/* Accessibility improvements */
.volume-bar:focus {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

button:focus-visible {
    outline: 2px solid #ff6600;
    outline-offset: 2px;
}

/* Connection status */
.connection-status {
    margin-left: auto;
    font-size: 14px;
}

.offline-indicator {
    color: #ff6666;
    font-weight: bold;
    padding: 4px 12px;
    background: rgba(255, 102, 102, 0.1);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.connection-status.offline {
    animation: pulse 2s infinite;
}

/* Medium screens */
@media (max-width: 1024px) {
    .schedule-section {
        gap: 20px;
    }
    
    .schedule-item {
        padding: 0 10px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .player-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .show-image {
        width: 200px;
        height: 200px;
    }

    .controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .play-controls {
        position: static;
        transform: none;
    }

    .controls-spacer {
        display: none;
    }

    .volume-slider-container {
        left: 50%;
        top: auto;
        bottom: 40px;
        transform: translateX(-50%);
    }

    .schedule-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    nav {
        display: none;
    }
}