@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;700;900&display=swap');

:root {
    --bg-black: #000000;
    --bg-card: #121212;
    --bg-hover: #282828;
    --sp-green: #1db954;
    --text-muted: #b3b3b3;
}

body {
    background-color: var(--bg-black); color: #fff;
    font-family: 'Figtree', sans-serif; margin: 0; overflow: hidden;
}

#bgCover {
    position: fixed; width: 100%; height: 100%; z-index: -2;
    background-size: cover; background-position: center;
    filter: blur(80px) brightness(0.3); transition: background-image 1s ease-in-out;
}

.spotify-wrapper { display: flex; height: calc(100vh - 90px); padding: 8px; gap: 8px; }

/* SIDEBAR */
.spotify-sidebar { width: 300px; display: flex; flex-direction: column; background: #000; border-radius: 8px; }
.sidebar-box { background-color: var(--bg-card); border-radius: 8px; padding: 12px; margin-bottom: 8px; }
.beat-logo-container { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.beat-logo-img { width: 40px; height: 40px; border-radius: 50%; }
.beat-logo-text { font-size: 20px; font-weight: 900; letter-spacing: -0.5px; }

.sidebar-nav a {
    display: flex; align-items: center; gap: 16px; color: var(--text-muted);
    text-decoration: none !important; font-weight: 700; height: 48px; padding: 0 16px; transition: 0.2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { color: #fff; background: rgba(255,255,255,0.05); border-radius: 4px; }

/* CONTENT MAIN */
.spotify-content { 
    flex-grow: 1; background: #121212; border-radius: 8px; 
    overflow-y: auto; position: relative;
    background: linear-gradient(to bottom, #202020 0%, #121212 100%);
}

.content-padding { padding: 24px 32px; }

/* RADIO HERO */
.radio-hero { 
    display: flex; align-items: flex-end; padding: 80px 32px 32px; gap: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    position: relative; min-height: 400px;
}
#artwork { width: 232px; height: 232px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); background-size: cover; background-color: #333; }
.hero-text { z-index: 2; flex: 1; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.display-song { font-size: 4rem; font-weight: 900; margin: 10px 0; line-height: 1; }
.live-indicator { background: red; color: #fff; display: inline-block; padding: 4px 8px; font-size: 10px; font-weight: 900; border-radius: 4px; letter-spacing: 1px; }

/* BUSQUEDA & CHIPS */
.sticky-search-bar { position: sticky; top: 0; background: #121212; z-index: 50; padding-top: 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.search-input-wrapper { background: #2a2a2a; border-radius: 500px; padding: 12px 20px; display: flex; align-items: center; width: 100%; max-width: 400px; transition: 0.2s; }
.search-input-wrapper:focus-within { background: #333; box-shadow: 0 0 0 2px #fff; }
.search-input-wrapper input { background: transparent; border: none; outline: none; margin-left: 10px; width: 100%; color: #fff; font-weight: 500; font-size: 16px; }
.search-input-wrapper i { color: #b3b3b3; }
#clearSearch { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; display: none; }

.filters-container { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; }
.filter-chip { background: #2a2a2a; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: 0.2s; }
.filter-chip:hover { background: #3a3a3a; }
.filter-chip.active { background: #fff; color: #000; }

/* CARDS */
.category-card { height: 160px; border-radius: 8px; padding: 20px; font-size: 24px; font-weight: 900; cursor: pointer; position: relative; overflow: hidden; transition: 0.3s; }
.category-card:hover { transform: scale(1.02); }
.c-news { background: #e91429; } .c-music { background: #1e3264; } .c-tech { background: #509bf5; } .c-edu { background: #b02897; }

.card-spotify { background: #181818; padding: 16px; border-radius: 6px; cursor: pointer; transition: 0.3s; height: 100%; }
.card-spotify:hover { background: #282828; }
.card-spotify img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

/* HORIZONTAL SCROLL */
.horizontal-scroll { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 20px; scrollbar-width: none; }
.horizontal-scroll::-webkit-scrollbar { display: none; }
.scroll-item { min-width: 180px; max-width: 180px; }

/* EPISODES LIST */
.btn-back { background: rgba(0,0,0,0.5); border: none; color: #fff; padding: 8px 16px; border-radius: 20px; font-weight: 700; cursor: pointer; }
.episode-row { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-radius: 4px; border-bottom: 1px solid rgba(255,255,255,0.1); cursor: pointer; transition: 0.2s; }
.episode-row:hover { background: rgba(255,255,255,0.1); }
.ep-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.ep-action i { font-size: 28px; color: #fff; opacity: 0; transition: 0.2s; }
.episode-row:hover .ep-action i { opacity: 1; }
.limit-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* PLAYER */
.spotify-footer { height: 90px; background: #000; border-top: 1px solid #282828; display: flex; align-items: center; padding: 0 20px; z-index: 100; }
.footer-left { width: 30%; display: flex; align-items: center; }
.footer-left img { width: 56px; height: 56px; border-radius: 4px; margin-right: 15px; }
.footer-center { width: 40%; display: flex; flex-direction: column; align-items: center; }
.player-controls { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.control-btn { background: none; border: none; color: #b3b3b3; font-size: 16px; }
.control-btn:hover { color: #fff; }
.play-btn-footer { width: 32px; height: 32px; background: #fff; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: 0.2s; color: #000; }
.play-btn-footer:hover { transform: scale(1.1); }

.playback-bar { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 11px; color: #b3b3b3; }
.progress-bg { flex: 1; height: 4px; background: #4d4d4d; border-radius: 2px; position: relative; overflow: hidden; }
#fakeProgress { height: 100%; background: #fff; width: 0%; border-radius: 2px; }

.footer-right { width: 30%; display: flex; justify-content: flex-end; align-items: center; }
.volume-slider { width: 100px; accent-color: var(--sp-green); height: 4px; }

.btn-play-large { width: 56px; height: 56px; border-radius: 50%; background: var(--sp-green); border: none; font-size: 24px; color: #000; transition: 0.2s; }
.btn-play-large:hover { transform: scale(1.05); }
.btn-circle-alt { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #777; background: transparent; color: #fff; }

@media (max-width: 768px) {
    .spotify-sidebar { display: none; }
    .display-song { font-size: 2.5rem; }
    .radio-hero { padding: 40px 20px; }
}
