:root {
    --primary-color: #FF6B6B;
    --secondary-color: #FF8E53;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
}

@media (max-width: 320px) {
    html {
        font-size: 14px;
    }
}

body {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: white;
    text-align: center;
}

.app-container {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #333;
    position: relative;
    overflow: visible;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.station-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.slogan {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.player-container {
    background-color: #f8f8f8;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.live-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #FF0000;
    color: white;
    padding: 3px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.album-art {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

.song-info {
    flex: 1 1 150px;
    text-align: left;
    overflow: visible;
}

.song-title {
    font-weight: bold;
    font-size: 16px;
    white-space: normal;
    overflow-wrap: break-word;
    text-overflow: unset;
}

.song-artist {
    font-size: 14px;
    color: #666;
    white-space: normal;
    overflow-wrap: break-word;
    text-overflow: unset;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.control-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.volume-container {
    width: 100%;
    margin-bottom: 5px;
    max-width: 100%;
}

.player-status {
    font-size: 14px;
    color: var(--primary-color);
    text-align: center;
    margin-top: 5px;
    min-height: 20px;
    font-weight: bold;
}

.station-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.station-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 50px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    flex-grow: 1;
    max-width: calc(50% - 10px);
}

.station-btn.active {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 400px) {
    .station-btn {
        max-width: 100%;
        flex-grow: 0;
    }
}

.install-prompt {
    background-color: rgba(0,0,0,0.7);
    color: white;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.5s;
}

.install-btn {
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.smart-banner {
    background: rgba(255, 255, 255, 0.15);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    font-weight: bold;
    font-size: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.smart-banner span {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ad-banner-top {
    width: 100%;
    max-width: 320px;
    margin: 10px auto;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
}


