/* General Styles */
:root {
    --primary-color: #FF0000; /* Bright Red (accents) */
    --secondary-color: #FFFFFF; /* Pure White (text on dark) */
    --tertiary-color: #000000; /* Pure Black (main background) */

    --background-main: #121212; /* Very dark grey, slightly softer than pure black */
    --background-card: #1E1E1E; /* Slightly lighter dark grey for cards/sections */
    --text-primary: var(--secondary-color); /* Main text is white */
    --text-secondary: #B3B3B3; /* Lighter grey for secondary text */
    --border-color-dark: #383838; /* Darker border color */
    --accent-color: var(--primary-color); /* Red for accents */
    --hover-background: #282828; /* Slightly lighter dark for hover states */
}

html, body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.6;
    color: var(--text-primary); /* Default text color is white */
    background-color: var(--background-main); /* Main background is dark grey */
    background-image: url('./images/fullBackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.app-container {
    display: flex;
    min-height: 100vh;
    padding-bottom: 90px; /* Space for the fixed bottom player */
    position: relative;
    background-image: url('./images/fullBackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.app-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    pointer-events: none;
}

.main-content {
    flex-grow: 1;
    padding: 0px 20px;
    padding-top: 80px; /* Add padding to prevent content from going under fixed header */
}

/* Sidebar */
.sidebar {
    width: 80px;
    background-color: transparent; /* Transparent sidebar */
    background-image: url('./images/fullBackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: none;
    position: relative;
}

/* Removed overlay for transparent sidebar */

.sidebar-header {
    margin-bottom: 40px;
}

.logo-icon {
    font-size: 2.5rem;
    color: #000000; /* Black logo icon */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav ul li {
    margin-bottom: 30px;
}

.sidebar-nav ul li a {
    color: #000000; /* Black links */
    font-size: 1.5rem;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.sidebar-nav ul li a:hover {
    color: var(--accent-color); /* Red on hover */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

/* Main Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; /* Added horizontal padding to align with content */
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0; /* Remove margin-bottom */
    background-color: transparent;
    background-image: url('./images/fullBackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: fixed; /* Keep header fixed */
    width: calc(100% - 80px); /* Adjust width for sidebar */
    top: 0;
    left: 80px; /* Align with sidebar */
    z-index: 1000; /* Ensure it stays on top */
    box-shadow: none;
}

/* Removed overlay for transparent header */

.top-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.top-nav ul li {
    margin-right: 30px;
}

.top-nav ul li a {
    color: #000000; /* Black text for top nav */
    text-decoration: none;
    font-family: 'Orbitron', 'Arial Black', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
}

.top-nav ul li a:hover {
    color: var(--accent-color); /* Red on hover */
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    letter-spacing: 2px;
}

.top-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.top-nav ul li a:hover::after {
    width: 100%;
}

/* Hero Station Section */
.hero-station-section {
    display: flex;
    margin-bottom: 50px;
    background: url('./images/fondosectionHero.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: local;
    background-color: var(--background-card); /* Fallback color */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}


.station-info-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.station-art-wrapper {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.station-artist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.station-details {
    flex-grow: 1;
}

.station-label {
    color: #000000; /* Black text for better contrast on glass background */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    display: block;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.station-name {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--accent-color); /* Red station name */
}

.station-description {
    color: #000000; /* Black text for better contrast on glass background */
    font-size: 1rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.station-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.play-button {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.05);
}

.follow-button {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.follow-button:hover {
    background-color: var(--accent-color);
    color: var(--secondary-color);
    border-color: var(--accent-color);
}

/* Most Popular Section */
.most-popular-section {
    margin-bottom: 20px; /* Reduced margin */
}

.most-popular-section h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--accent-color);
}

#most-popular-youtube-videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px; /* Add margin to separate from next section */
}

.most-popular-video-item {
    background-color: var(--background-card);
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.most-popular-video-item:hover {
    background-color: var(--hover-background);
    transform: translateY(-3px);
}

.most-popular-video-item img {
    width: 100%;
    height: 160px; /* Standard YouTube thumbnail aspect ratio (16:9 for 280px width) */
    object-fit: cover;
    border-radius: 4px;
}

.most-popular-video-item .video-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.most-popular-video-item .video-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.most-popular-video-item .video-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.most-popular-video-item .video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.most-popular-video-item .video-stats i {
    color: var(--accent-color);
}

.popular-tracks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.track-item {
    display: flex;
    align-items: center;
    background-color: var(--background-card); /* Dark card background */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.track-item:hover {
    background-color: var(--hover-background); /* Slightly lighter dark on hover */
}

.track-number {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-right: 20px;
    width: 30px;
    text-align: center;
}

.track-cover {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.track-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.track-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.track-artist {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.track-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.track-likes,
.track-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.track-likes .fas.fa-heart {
    color: var(--accent-color);
    margin-right: 5px;
}

.add-button {
    background-color: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.add-button:hover {
    color: var(--accent-color);
}

/* Right Sidebar */
.right-sidebar {
    width: 280px;
    background-color: var(--tertiary-color); /* Black right sidebar */
    padding: 20px;
    padding-top: 60px; /* Add more top padding to move content down */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.right-sidebar h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#youtube-videos-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    background-image: url('./images/fullBackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}

#youtube-videos-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    z-index: -1;
}

.youtube-thumbnail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--background-card);
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background-color 0.2s ease;
}

.youtube-thumbnail-item:hover {
    background-color: var(--hover-background);
}

.youtube-thumbnail-item img {
    width: 80px;
    height: 45px; /* 16:9 aspect ratio for thumbnails */
    object-fit: cover;
    border-radius: 4px;
}

.youtube-thumbnail-item .video-title {
    flex-grow: 1;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Podcast Section */
.podcast-section {
    padding: 20px 0px; /* Adjusted vertical padding, removed horizontal */
    background-color: var(--background-main);
    margin-top: 0;
}

.podcast-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
}

.podcast-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.podcast-card {
    background-color: var(--background-card);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.podcast-card:hover {
    background-color: var(--hover-background);
    transform: translateY(-3px);
}

.podcast-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.podcast-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Dynamic Podcast Items - Gallery Style */
.podcast-item {
    background-color: var(--background-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.podcast-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.podcast-thumbnail {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.podcast-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.podcast-item:hover .podcast-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.podcast-item:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    color: white;
    font-size: 20px;
    margin-left: 2px;
}

.podcast-info {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.podcast-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
    margin-bottom: 8px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.podcast-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.podcast-date,
.podcast-duration {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 500;
}

.loading-podcasts {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading-podcasts i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Full YouTube Gallery Section */
.youtube-gallery-section {
    padding: 20px 0px; /* Adjusted vertical padding, removed horizontal */
    background-color: var(--background-main);
    margin-top: 0;
}

.youtube-gallery-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.youtube-gallery-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
}

#youtube-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.youtube-gallery-item {
    background-color: var(--background-card);
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.youtube-gallery-item:hover {
    background-color: var(--hover-background);
    transform: translateY(-3px);
}

.youtube-gallery-item img {
    width: 100%;
    height: 160px; /* Standard YouTube thumbnail aspect ratio */
    object-fit: cover;
    border-radius: 4px;
}

.youtube-gallery-item .video-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.youtube-gallery-item .video-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.youtube-gallery-item .video-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.youtube-gallery-item .video-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.youtube-gallery-item .video-stats i {
    color: var(--accent-color);
}

/* Contact Section */
.contact-section {
    padding: 40px 20px;
    background-color: var(--background-main);
    margin-bottom: 100px; /* Increased margin to push it above the fixed player */
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-logo {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.social-card {
    background-color: var(--background-card);
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-card:hover {
    background-color: var(--hover-background);
    transform: translateY(-3px);
}

.social-card i {
    font-size: 3rem;
    color: var(--accent-color);
}

.social-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.social-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Specific Social Card Styling */
.social-card.instagram {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: var(--secondary-color);
}

.social-card.instagram i {
    color: var(--secondary-color);
}

.social-card.instagram h3,
.social-card.instagram p {
    color: var(--secondary-color);
}

.social-card.facebook {
    background-color: #3b5998;
    color: var(--secondary-color);
}

.social-card.facebook i {
    color: var(--secondary-color);
}

.social-card.facebook h3,
.social-card.facebook p {
    color: var(--secondary-color);
}

.social-card.twitter {
    background-color: #1DA1F2;
    color: var(--secondary-color);
}

.social-card.twitter i {
    color: var(--secondary-color);
}

.social-card.twitter h3,
.social-card.twitter p {
    color: var(--secondary-color);
}

/* Bottom Player */
.bottom-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--tertiary-color); /* Black bottom player */
    border-top: 1px solid var(--border-color-dark);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.6);
    z-index: 1001;
}

.player-controls {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.current-song-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    position: relative; /* Remove if not needed */
    overflow: hidden; /* Remove if not needed */
    background-color: var(--tertiary-color); /* Revert to black background */
    border-radius: 0; /* Remove border-radius */
    padding: 0; /* Remove padding */
}

.current-song-cover {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
    z-index: auto; /* Revert z-index */
}

.song-details {
    display: flex;
    flex-direction: column;
    z-index: auto; /* Revert z-index */
}

.song-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary); /* White text on black player */
}

.song-artist {
    font-size: 0.9rem;
    color: var(--text-secondary); /* Grey text on black player */
}

#hero-waveform-visualizer {
    background-color: transparent; /* Make background transparent */
    border-radius: 4px;
    margin-left: 15px; /* Add some space from text */
    flex-shrink: 0; /* Prevent it from shrinking */
}

.player-buttons {
    display: flex;
    gap: 15px;
}

.player-buttons button {
    background-color: transparent;
    border: none;
    color: var(--text-primary); /* White buttons on black player */
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.player-buttons button:hover {
    color: var(--accent-color); /* Red on hover */
}

.player-buttons .fa-play,
.player-buttons .fa-pause {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.progress-bar {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 10px;
}

.progress-bar .current-time,
.progress-bar .total-time {
    font-size: 0.8rem;
    color: var(--text-primary); /* White text on black player */
}

.progress-bar .total-time::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.progress-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 5px;
    background: var(--border-color-dark);
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 5px;
}

.progress-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--accent-color) var(--progress-value, 0%), var(--border-color-dark) var(--progress-value, 0%));
    border-radius: 5px;
}

.progress-slider::-moz-range-track {
    background: linear-gradient(to right, var(--accent-color) var(--progress-value, 0%), var(--border-color-dark) var(--progress-value, 0%));
    border-radius: 5px;
}

.progress-slider:hover {
    opacity: 1;
}

.progress-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

.progress-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .station-name {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    }

    .sidebar-header {
        margin-bottom: 0;
        margin-right: 30px;
    }

    .sidebar-nav ul {
        flex-direction: row;
    }

    .sidebar-nav ul li {
        margin-bottom: 0;
        margin: 0 15px;
    }

    .right-sidebar {
        width: 100%;
        background-color: var(--background-main); /* Black background */
        padding: 20px;
        padding-top: 40px; /* Add more top padding for mobile */
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.4);
    }

    .hero-station-section {
        background: url('./images/fondosectionHero.jpg') no-repeat center center;
        background-size: cover;
        background-attachment: local;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        image-rendering: high-quality;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: auto;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        transform: translateZ(0);
    }

    .hero-station-section .station-info-container {
        flex-direction: column;
        text-align: center;
    }

    .station-art-wrapper {
        margin-bottom: 20px;
    }

    .station-description {
        max-width: none;
    }

    .station-actions {
        justify-content: center;
    }

    .bottom-player {
        flex-direction: column;
        padding: 10px 20px;
        height: auto;
    }

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

    .current-song-info {
        min-width: unset;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .player-buttons {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .progress-bar {
        width: 100%;
        justify-content: center;
    }

    .main-header {
        width: 100%;
        left: 0;
        padding: 15px 20px; /* Consistent padding */
    }
}

@media (max-width: 768px) {
    .main-header .top-nav ul li {
        margin-right: 15px;
    }
    
    .main-header .top-nav ul li a {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

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

    .station-art-wrapper {
        width: 200px;
        height: 200px;
    }

    .most-popular-section h2 {
        font-size: 1.8rem;
    }

    .track-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .track-number,
    .track-cover,
    .track-details,
    .track-meta {
        margin: 5px 0;
        width: 100%;
        justify-content: center;
    }

    .track-details {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-header .top-nav ul li {
        margin-right: 10px;
        font-size: 0.9rem;
    }

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

    .play-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .follow-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .current-song-cover {
        width: 50px;
        height: 50px;
    }

    .song-title {
        font-size: 1rem;
    }

    .song-artist {
        font-size: 0.8rem;
    }

    .player-buttons button {
        font-size: 1rem;
    }

    .player-buttons .fa-play,
    .player-buttons .fa-pause {
        font-size: 1.5rem;
    }
}
