/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --warning: #f39c12;
    --info: #1abc9c;
    --text: #333;
    --text-light: #777;
    --bg: #f9f9f9;
    --white: #fff;
    --border: #e0e0e0;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

button, input, textarea {
    font-family: inherit;
    outline: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: #c0392b;
}

/* Live Bar */
.live-bar {
    background: linear-gradient(90deg, var(--accent), #c0392b);
    color: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.live-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.live-badge {
    background: var(--white);
    color: var(--accent);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 200px;
}

.now-playing span {
    opacity: 0.8;
}

.current-show {
    margin-left: 5px;
}

.current-hosts {
    font-size: 14px;
    opacity: 0.8;
    margin-right: 10px;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.audio-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.audio-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

#volumeSlider {
    width: 100px;
    cursor: pointer;
    accent-color: var(--white);
}

.live-stats {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-stats i {
    margin-left: 5px;
}

/* Header */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 60px;
    z-index: 999;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary);
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    display: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    padding: 10px 15px;
    color: var(--primary);
    font-weight: 500;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--accent);
    background: rgba(231, 76, 60, 0.1);
}

.main-nav a i {
    font-size: 16px;
}

/* Breaking News */
.breaking-news {
    background: var(--primary);
    color: var(--white);
    padding: 10px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.breaking-label {
    background: var(--accent);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 24px;
}

.ticker-content {
    position: absolute;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker-item {
    margin-left: 40px;
    display: inline-block;
}

/* Main Content */
main {
    padding: 30px 0;
}

section {
    margin-bottom: 50px;
}

h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

h2 i {
    color: var(--secondary);
}

/* Live Section */
.live-section {
    margin-top: 20px;
}

.live-player {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.radio-studio {
    position: relative;
}

.radio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.studio-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 20px;
}

.on-air {
    background: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.current-guests {
    font-size: 16px;
}

.player-controls {
    padding: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.player-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    font-size: 16px;
}

.play-btn {
    background: var(--secondary);
    color: var(--white);
}

.play-btn:hover {
    background: #2980b9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

.schedule-btn {
    background: var(--light);
    color: var(--dark);
}

.schedule-btn:hover {
    background: #d5dbdb;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.share-btn {
    background: var(--info);
    color: var(--white);
}

.share-btn:hover {
    background: #16a085;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(22, 160, 133, 0.3);
}

.live-chat {
    border-top: 1px solid var(--border);
    padding: 20px;
}

.live-chat h3 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-messages {
    height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg);
    border-radius: 5px;
}

.message {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
}

.message:last-child {
    border-bottom: none;
}

.message strong {
    color: var(--primary);
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 5px;
}

.chat-input button {
    background: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: 5px;
    width: 50px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background: #2980b9;
}

/* Episodes Section */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.episode-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.episode-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.episode-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.episode-content {
    padding: 20px;
}

.episode-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.episode-desc {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
}

.episode-meta {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.episode-meta i {
    margin-left: 5px;
}

.episode-player {
    width: 100%;
    margin-bottom: 15px;
}

.episode-actions {
    display: flex;
    gap: 10px;
}

.episode-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: var(--transition);
}

.episode-actions button:first-child {
    background: var(--light);
    color: var(--dark);
}

.episode-actions button:first-child:hover {
    background: #d5dbdb;
}

.episode-actions button:last-child {
    background: var(--info);
    color: var(--white);
}

.episode-actions button:last-child:hover {
    background: #16a085;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 25px;
    background: var(--primary);
    color: var(--white);
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Programs Section */
.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.program-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.program-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.program-content {
    padding: 20px;
}

.program-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.program-schedule {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.program-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--secondary);
    font-size: 14px;
    font-weight: 500;
}

.program-link:hover {
    color: var(--accent);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.team-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 5px solid var(--light);
}

.team-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent);
    font-size: 14px;
    margin-bottom: 15px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--secondary);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--white);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--accent);
}

.footer-col p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-subscribe {
    display: flex;
    margin-top: 20px;
}

.footer-subscribe input {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-subscribe button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}

.footer-subscribe button:hover {
    background: #c0392b;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateX(-5px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info i {
    width: 20px;
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    opacity: 0.7;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

/* Animations */
@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .programs-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 120px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 120px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 998;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .live-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .audio-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .player-controls {
        flex-direction: column;
    }
    
    .player-btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .programs-grid, .team-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .radio-img {
        height: 200px;
    }
}