/* Professional Radio Player - Enhanced CSS */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary-color: #E74C3C;
    --primary-dark: #C0392B;
    --secondary-color: #34495E;
    --accent-color: #F39C12;
    --text-light: #FFFFFF;
    --text-dark: #2C3E50;
    --overlay-dark: rgba(0, 0, 0, 0.75);
    --border-radius: 15px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.35);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    position: relative;
}

/* Dark overlay for better readability */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Radio Player Container */
.radio-player {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 95%;
    max-width: 420px;
    padding: 30px 25px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.radio-player:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Player Header */
.player-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
}

.radio-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.radio-logo:hover {
    transform: scale(1.05) rotate(5deg);
}

.station-name {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.station-tagline {
    font-size: 0.85rem;
    color: var(--secondary-color);
    opacity: 0.8;
    font-weight: 400;
}

/* Divider */
.header-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 15px 0;
    border-radius: 2px;
}

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

/* Status Info Section */
.status-info {
    width: 100%;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, rgba(243, 156, 18, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(231, 76, 60, 0.15);
    transition: var(--transition);
}

.status-text {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-indicator.playing {
    opacity: 1;
}

.live-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
        transform: scale(1);
    }
}

/* Play/Pause Button */
.control-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.control-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #A93226 100%);
    box-shadow: var(--shadow-lg);
    transform: scale(1.08);
}

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

.control-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Volume Control Section */
.volume-section {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.05) 0%, rgba(52, 73, 94, 0.08) 100%);
    border-radius: 12px;
    border: 1px solid rgba(52, 73, 94, 0.1);
}

.volume-label {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

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

.volume-icon {
    color: var(--primary-color);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.volume-control:hover .volume-icon {
    transform: scale(1.1);
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #DDD 0%, #CCC 100%);
    border-radius: 3px;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-md);
}

#volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border: none;
    transition: var(--transition);
}

#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: var(--shadow-md);
}

/* Additional Info Section */
.info-section {
    width: 100%;
    padding: 12px;
    background: rgba(52, 73, 94, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--accent-color);
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-align: center;
    opacity: 0.8;
    margin-top: 10px;
}

/* Responsive Design for Mobile */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .radio-player {
        width: 100%;
        max-width: none;
        padding: 25px 20px;
        border-radius: 20px;
    }

    .player-header {
        margin-bottom: 25px;
    }

    .radio-logo {
        width: 70px;
        height: 70px;
        border-width: 3px;
        margin-bottom: 12px;
    }

    .station-name {
        font-size: 1.6rem;
    }

    .station-tagline {
        font-size: 0.8rem;
    }

    .control-btn {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
    }

    .status-info {
        padding: 12px;
    }

    .status-text {
        font-size: 0.95rem;
    }

    .volume-section {
        padding: 12px;
    }

    .volume-label {
        font-size: 0.75rem;
    }

    .volume-icon {
        font-size: 1.1rem;
    }

    .info-section {
        font-size: 0.75rem;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .radio-player {
        padding: 20px 18px;
    }

    .player-header {
        margin-bottom: 20px;
    }

    .radio-logo {
        width: 65px;
        height: 65px;
    }

    .station-name {
        font-size: 1.4rem;
    }

    .header-divider {
        width: 40px;
        height: 2px;
        margin: 12px 0;
    }

    .control-btn {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }

    .player-controls {
        gap: 18px;
    }

    .status-text {
        font-size: 0.9rem;
    }

    .live-indicator {
        font-size: 0.8rem;
    }

    .live-dot {
        width: 8px;
        height: 8px;
        margin-right: 6px;
    }
}

@media (max-width: 360px) {
    .radio-player {
        padding: 18px 15px;
    }

    .radio-logo {
        width: 60px;
        height: 60px;
    }

    .station-name {
        font-size: 1.3rem;
    }

    .control-btn {
        width: 65px;
        height: 65px;
        font-size: 1.4rem;
    }

    .status-text {
        font-size: 0.85rem;
    }

    .volume-control {
        gap: 10px;
    }

    .volume-icon {
        font-size: 1rem;
    }
}

/* Landscape Mode Adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .radio-player {
        padding: 15px 25px;
        max-width: 500px;
    }

    .player-header {
        margin-bottom: 15px;
    }

    .radio-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 8px;
    }

    .station-name {
        font-size: 1.4rem;
    }

    .control-btn {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }

    .player-controls {
        gap: 15px;
    }

    .status-info {
        padding: 10px;
    }

    .status-text {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .volume-section {
        padding: 10px;
    }
}