:root {
    --c1: #2872fa;
    --c2: #1559ed;
    --c3: #3A4F66;
    --c4: #192a3d;
}
*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    margin: 0; padding: 0;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

header {
    background: #f0fffa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 100;
}
.site-header-inner {
    display: flex; justify-content: space-between; align-items: center; padding: 1rem 0;
}
.site-logo img { max-height: 80px; width: auto; }
.main-nav ul { display: flex; list-style: none; gap: 1.5rem; margin: 0; padding: 0; }
.main-nav a { font-weight: 600; color: var(--c3); text-transform: uppercase; font-size: 0.9rem; }
.main-nav a:hover { color: var(--c1); }

.search-container { margin: 2rem 0; display: flex; justify-content: center; }
#station-search {
    width: 100%; max-width: 500px;
    padding: 0.8rem 1.2rem;
    border: 2px solid #eee; border-radius: 50px;
    font-size: 1rem; transition: border-color 0.3s;
}
#station-search:focus { outline: none; border-color: var(--c1); }

.station-grid { display: flex; flex-direction: column; gap: 1rem; padding-bottom: 4rem; }

.station-card {
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    display: flex; align-items: center; padding: 0.5rem 1rem; gap: 1rem;
}
.station-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.station-link-wrapper { display: flex; align-items: center; flex-grow: 1; gap: 1.5rem; }
.station-thumb { width: 60px; height: 60px; object-fit: contain; background: #f9f9f9; border-radius: 4px; flex-shrink: 0; }
.station-info { text-align: left; flex-grow: 1; }
.station-title { font-size: 1.1rem; margin: 0; font-weight: 700; }

.play-station-btn {
    background: var(--c1); color: white; border: none;
    padding: 0.8rem 1.5rem; border-radius: 50px;
    cursor: pointer; font-weight: 600;
    display: flex; align-items: center; gap: 0.5rem;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.play-station-btn:hover { background: var(--c2); transform: scale(1.05); }
.play-station-btn.playing { background: #e53e3e; }

.station-single {
    display: flex; flex-direction: column; align-items: center;
    padding: 4rem 1rem; text-align: center; gap: 1.5rem;
}
.station-single-logo {
    width: 180px; height: 180px; object-fit: contain;
    border-radius: 16px; background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.station-single-title { font-size: 2rem; font-weight: 800; margin: 0; }
.play-station-btn--big { font-size: 1.1rem; padding: 1rem 2.5rem; }
.back-link { color: var(--c1); font-weight: 600; font-size: 0.95rem; }
.back-link:hover { color: var(--c2); }

.playback-waves {
    display: flex; align-items: flex-end; gap: 4px; height: 30px;
}
.playback-waves span {
    display: block; width: 5px; background: var(--c1); border-radius: 3px;
    height: 5px; transition: height 0.2s;
}
.playback-waves.active span:nth-child(1) { animation: wave 0.8s 0s infinite; }
.playback-waves.active span:nth-child(2) { animation: wave 0.8s 0.15s infinite; }
.playback-waves.active span:nth-child(3) { animation: wave 0.8s 0.3s infinite; }
.playback-waves.active span:nth-child(4) { animation: wave 0.8s 0.45s infinite; }
.playback-waves.active span:nth-child(5) { animation: wave 0.8s 0.6s infinite; }
@keyframes wave {
    0%, 100% { height: 5px; }
    50% { height: 28px; }
}

footer {
    background: #222; color: #fff;
    padding: 2rem 0; text-align: center;
}
.footer-links a { color: #ccc; margin: 0 0.5rem; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
footer p { margin: 1rem 0 0; font-size: 0.85rem; color: #aaa; }

.sticky-player {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 0.5rem 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    height: 80px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.sticky-player.visible { transform: translateY(0); }
.player-container {
    display: flex; align-items: center;
    width: 100%; max-width: 1200px;
    margin: 0 auto; padding: 0 1rem; gap: 2rem;
}
.player-info { display: flex; align-items: center; gap: 1rem; width: 300px; }
.player-thumb { width: 60px; height: 60px; object-fit: contain; background: #f0f0f0; border-radius: 4px; }
.player-meta h4 { margin: 0; font-size: 1rem; }
.player-meta span { font-size: 0.8rem; color: #777; }
.player-controls { display: flex; align-items: center; gap: 1.5rem; flex-grow: 1; justify-content: center; }
.ctrl-btn { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: #333; display: flex; align-items: center; justify-content: center; }
.ctrl-btn.play-pause { width: 50px; height: 50px; border-radius: 50%; background: var(--c1); color: white; font-size: 1.2rem; }
.player-volume { width: 200px; display: flex; align-items: center; gap: 0.5rem; }
.player-volume input { width: 100%; }

@media (max-width: 768px) {
    .site-header-inner { flex-direction: column; gap: 1rem; }
    .station-card { flex-wrap: wrap; }
    .play-station-btn { width: 100%; justify-content: center; }
    .player-container { flex-wrap: wrap; height: auto; padding: 0.75rem 1rem; gap: 0.75rem; }
    .player-info { width: auto; flex-grow: 1; }
    .player-volume { display: none; }
    .sticky-player { height: auto; }
    .station-single-title { font-size: 1.4rem; }
}
