/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #000000; /* Black */
    --secondary-color: #E74C3C; /* Red */
    --text-color: #FFFFFF; /* White */
    --card-bg: #FFFFFF;
    --card-text: #333333;
    --grey-text-light: #CCCCCC;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Branding & Navigation --- */
.navbar {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.branding {
    display: flex;
    flex-direction: column;
}

.logo {
    font-weight: 900;
    font-size: 1.5em;
    letter-spacing: 1px;
    line-height: 1;
}

.logo-small {
    font-weight: 900;
    font-size: 1.2em;
    letter-spacing: 1px;
}

.tagline {
    font-size: 0.7em;
    font-weight: 300;
    color: var(--grey-text-light);
    margin-top: 2px;
}

.secondary-color-text {
    color: var(--secondary-color);
}

.nav-links {
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.95em;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: border-bottom 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    border-bottom: 3px solid var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
}

/* --- Main Content Area --- */
.main-content {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    width: 90%;
    flex-grow: 1;
}

/* Left Panel (Show Banner) - UPDATED FOR BACKGROUND IMAGE */
.show-banner {
    flex: 2;
    /* --- NEW BACKGROUND IMAGE URL --- */
    background: 
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
        url('../img/bg/hero.png') no-repeat center center;
    /* --------------------------------- */
    background-size: cover;
    min-height: 450px;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    overflow: hidden;
}

/* Replicating the purple stripe effect with black/red/gradient */
.show-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(255, 68, 68, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 68, 68, 0.1) 50%, rgba(255, 68, 68, 0.1) 75%, transparent 75%, transparent),
        linear-gradient(to right, #1a1a1a, var(--primary-color));
    background-size: 40px 40px;
    mix-blend-mode: soft-light;
}

.show-info-text {
    position: relative;
    z-index: 2;
}
.show-info-text h2 { font-size: 2.5em; }
.show-info-text p { color: var(--grey-text-light); }


/* Right Panel (Live Info Card) */
.live-info-card {
    flex: 1;
    background-color: var(--card-bg);
    color: var(--card-text);
    padding: 30px;
    border-radius: 5px;
    margin-left: 20px;
    min-width: 350px;
}

.live-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #555;
}

.live-status .fa-circle {
    color: var(--secondary-color);
    font-size: 0.7em;
    margin-right: 5px;
}

.show-details h3 {
    font-size: 1.8em;
    margin-bottom: 5px;
    line-height: 1.1;
}

.show-details p {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.play-button-area {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: -55px; 
    margin-bottom: 10px;
}

.play-button-area .fa-video {
    color: #999;
    font-size: 1.5em;
}

.play-button-icon {
    background-color: var(--secondary-color);
    color: var(--text-color);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, background-color 0.2s;
}

.play-button-icon:hover {
    transform: scale(1.05);
    background-color: #CC4433; /* Darker red on hover */
}

.separator {
    border: 0;
    height: 1px;
    background-color: #EEE;
    margin: 10px 0 20px 0;
}

/* Currently Playing Track */
.current-track {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.track-time {
    color: #999;
    font-size: 0.8em;
    font-weight: bold;
    min-width: 40px;
}

.track-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.album-art {
    width: 50px;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
}

.track-title {
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 3px;
    color: var(--card-text);
}

.track-artist {
    font-size: 0.9em;
    color: #666;
}

/* All Tracks Button */
.all-tracks-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 15px 20px;
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9em;
    border: none;
}

.all-tracks-button:hover {
    background-color: #CC4433;
}


/* --- Bottom Footer/Media Controls --- */
.bottom-controls {
    background-color: var(--primary-color);
    height: 60px;
    width: 100%;
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 10;
    border-top: 1px solid #111;
}

.media-timeline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color) 20%, #444 20%);
}

.footer-left {
    min-width: 180px;
}

.footer-center {
    display: flex;
    gap: 40px;
}

.control-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7em;
    color: var(--grey-text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.control-item:hover {
    color: var(--secondary-color);
}

.control-item i {
    font-size: 1.2em;
    margin-bottom: 3px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9em;
}

.radio-source, .volume-control i {
    color: var(--grey-text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.radio-source:hover, .volume-control i:hover {
    color: var(--text-color);
}

.open-in-window {
    background-color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background-color 0.2s;
}
.open-in-window:hover {
    background-color: #444;
}

/* --- Responsiveness (Media Queries) --- */
@media (max-width: 1100px) {
    .main-content {
        /* Stack the main sections vertically */
        flex-direction: column;
    }
    .live-info-card {
        margin-left: 0;
        margin-top: 30px;
        min-width: unset;
        width: 100%;
    }
    .play-button-area {
        margin-top: -85px; /* Adjust vertical positioning */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .nav-links {
        display: none; 
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        flex-direction: column;
        padding: 10px 0;
        z-index: 5;
        max-height: 0; /* Used for JS transition */
        opacity: 0; /* Used for JS transition */
        overflow: hidden;
    }
    .nav-links.active {
        display: flex;
        max-height: 400px; /* Large enough to show all links */
        opacity: 1;
    }
    .nav-links a {
        margin: 10px 20px;
    }
    .menu-toggle {
        display: block; 
    }

    .bottom-controls {
        padding: 0 10px;
        height: 80px;
        flex-wrap: wrap;
    }

    .footer-left {
        order: 1;
        width: 100%;
        text-align: center;
        padding-bottom: 5px;
    }
    .footer-center {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 20px;
    }
    .footer-right {
        order: 2;
        display: none; 
    }
    .show-banner {
        min-height: 300px;
    }
    .show-info-text h2 {
        font-size: 1.8em;
    }
}

/* --- New Image Logo Styles for Navbar --- */
.logo-link {
    display: inline-block;
}

.logo-image {
    height: 40px; /* Adjust as necessary, but this size fits the existing navbar height */
    width: auto;
    vertical-align: middle;
}

/* --- New Image Logo Styles for Footer --- */
.logo-image-small {
    height: 30px; /* Slightly smaller for the footer area */
    width: auto;
    vertical-align: middle;
}

/* HIDE old text logo classes if they still exist in CSS, though they are removed from HTML */
.logo, .logo-small {
    /* Optional: Ensure old text styles don't interfere */
    display: none; 
}