* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPgogIDxkZWZzPgogICAgPHBhdHRlcm4gaWQ9InBhdHRlcm4iIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj4KICAgICAgPHJlY3Qgd2lkdGg9IjEwMCIgaGVpZ2h0PSIxMDAiIGZpbGw9IiMxYTFhMmUiLz4KICAgICAgPHBhdGggZD0iTTAgNTBoMTAwTTUwIDB2MTAwIiBzdHJva2U9IiMyMDJkNDEiIHN0cm9rZS13aWR0aD0iMC41Ii8+CiAgICA8L3BhdHRlcm4+CiAgPC9kZWZzPgogIDxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz4KICA8ZyBmaWxsPSJub25lIiBzdHJva2U9IiMwMDZmZmYiIG9wYWNpdHk9IjAuMSIgc3Ryb2tlLXdpZHRoPSIyIj4KICAgIDxjaXJjbGUgY3g9IjIwJSIgY3k9IjMwJSIgcj0iNTAiLz4KICAgIDxjaXJjbGUgY3g9IjcwJSIgY3k9IjYwJSIgcj0iNzAiLz4KICAgIDxjaXJjbGUgY3g9IjQwJSIgY3k9IjgwJSIgcj0iMzAiLz4KICA8L2c+Cjwvc3ZnPg==');
    z-index: -1;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 1rem 0.5rem;
    position: relative;
    z-index: 10;
    padding-top: max(1rem, env(safe-area-inset-top));
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.slogan-container {
    margin-top: 0.5rem;
}

.slogan {
    font-size: 1rem;
    text-align: center;
    font-weight: bold;
}

.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.track-info {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 15px;
}

.album-art img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.track-details {
    flex: 1;
    min-width: 0;
}

.track-title-container {
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
}

.track-title {
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    animation: marquee 15s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.track-artist {
    font-size: 0.9rem;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a6fa5, #3a5a8a);
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.control-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.progress-container {
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 6px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #4a6fa5, #6a8fc5);
    width: 0%;
    transition: width 0.1s;
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #ccc;
}

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 10px;
    width: 90%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.volume-control i {
    font-size: 1.2rem;
}

#volume {
    flex: 1;
    height: 6px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    outline: none;
}

#volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #4a6fa5;
    cursor: pointer;
}

.equalizer {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1.5rem;
    height: 40px;
    align-items: flex-end;
}

.bar {
    width: 5px;
    background: linear-gradient(to top, #4a6fa5, #6a8fc5);
    border-radius: 3px;
    animation: equalizer 1s infinite alternate;
}

@keyframes equalizer {
    0% { height: 10px; }
    100% { height: 40px; }
}

.bar:nth-child(1) { animation-delay: 0.1s; height: 30px; }
.bar:nth-child(2) { animation-delay: 0.2s; height: 25px; }
.bar:nth-child(3) { animation-delay: 0.3s; height: 35px; }
.bar:nth-child(4) { animation-delay: 0.4s; height: 20px; }
.bar:nth-child(5) { animation-delay: 0.5s; height: 40px; }
.bar:nth-child(6) { animation-delay: 0.6s; height: 15px; }
.bar:nth-child(7) { animation-delay: 0.7s; height: 30px; }

.social-links-container {
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.social-link, .yapyap-link {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    transition: background 0.3s;
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.15);
}

.social-link:hover, .yapyap-link:hover {
    background: rgba(74, 111, 165, 0.5);
}

.chat-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.radio-info {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.info-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.info-content {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer {
    text-align: center;
    padding: 1.2rem;
    font-size: 0.8rem;
    background: rgba(0, 0, 0, 0.4);
    margin-top: auto;
    padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
}

.footer p {
    margin: 0.3rem 0;
}

@media (max-width: 480px) {
    .track-title {
        font-size: 1rem;
        animation: marquee 12s linear infinite;
    }
    
    .social-link {
        min-width: 100px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .control-btn {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .album-art img, .logo img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 360px) {
    .slogan {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .social-link {
        min-width: 90px;
        font-size: 0.75rem;
    }
}
