* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0b0e17;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.bg-slider { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.bg-slider .slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 2s ease-in-out;
}
.bg-slider .slide.active { opacity: 1; }
.bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background: rgba(11,14,23,0.75); pointer-events: none; }
.content { position: relative; z-index: 2; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

header {
    background: rgba(20,27,43,0.85);
    backdrop-filter: blur(8px);
    padding: 16px 0;
    border-bottom: 2px solid #ff6b6b;
    box-shadow: 0 4px 20px rgba(255,107,107,0.2);
    position: sticky; top: 0; z-index: 100;
}
.header-content {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}

nav ul { display: flex; list-style: none; gap: 30px; align-items: center; }
nav ul li a {
    color: #ccc; text-decoration: none; font-weight: 500;
    transition: 0.3s; font-size: 1.05rem; padding: 6px 0; position: relative;
}
nav ul li a:hover { color: #fff; }
nav ul li a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0;
    height: 2px; background: #ff6b6b; transition: width 0.3s ease;
    box-shadow: 0 0 12px #ff6b6b;
}
nav ul li a:hover::after { width: 100%; }
nav ul li a.active { color: #fff; }
nav ul li a.active::after { width: 100%; }

.logo { display: flex; flex-direction: column; align-items: flex-start; }
.logo-row { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 2.6rem; width: auto; filter: drop-shadow(0 0 10px #ff6b6b); }
.logo h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: 1.5px; }
.logo h1 span { color: #ff6b6b; }
.logo .slogan { font-size: 0.8rem; color: #aaa; margin-top: 2px; }

.player-section {
    background: rgba(20,27,43,0.8); backdrop-filter: blur(8px);
    border-radius: 30px; padding: 40px 30px; margin: 40px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(42,54,80,0.6); text-align: center;
}
.player-header {
    display: flex; align-items: center; justify-content: center;
    gap: 24px; margin-bottom: 20px; flex-wrap: wrap;
}
.player-header .logo-big {
    height: 6rem; width: auto;
    filter: drop-shadow(0 0 20px rgba(255,107,107,0.4)); border-radius: 12px;
}
.player-header .title-group { text-align: left; }
.player-header .title-group h2 { font-size: 2.2rem; margin-bottom: 4px; color: #e0e0e0; }
.player-header .title-group .sub { font-size: 1.1rem; color: #aaa; margin-bottom: 0; }

.section-title { font-size: 2rem; margin: 50px 0 30px; border-left: 5px solid #ff6b6b; padding-left: 20px; color: #e0e0e0; }
.about-text {
    background: rgba(20,27,43,0.8); backdrop-filter: blur(8px);
    padding: 30px; border-radius: 20px;
    border-left: 4px solid #ff6b6b; font-size: 1.1rem; color: #e0e0e0;
}

.ads-guide-btn {
    color: #ff6b6b; text-decoration: none; font-weight: 700; cursor: pointer;
    transition: 0.3s; border: 1px solid rgba(255,107,107,0.3);
    padding: 4px 14px; border-radius: 20px;
    background: rgba(255,107,107,0.08); display: inline-block;
}
.ads-guide-btn:hover { background: rgba(255,107,107,0.2); border-color: #ff6b6b; transform: scale(1.02); }

footer {
    margin-top: 60px; padding: 30px 0;
    border-top: 1px solid rgba(42,54,80,0.6);
    text-align: center; color: #888;
}
footer .dev-note {
    margin-top: 20px; font-size: 2rem; font-weight: 700;
    color: #ff6b6b; letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(255,107,107,0.3);
}

.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 1000;
    justify-content: center; align-items: center; backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal-content {
    background: linear-gradient(145deg, #141b2b, #1e273b);
    border: 1px solid #ff6b6b; border-radius: 30px;
    padding: 40px 36px; max-width: 700px; width: 95%;
    max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255,107,107,0.3); position: relative;
}
.modal-close {
    position: absolute; top: 16px; right: 22px; font-size: 2rem; color: #aaa;
    cursor: pointer; transition: 0.3s; background: none; border: none;
}
.modal-close:hover { color: #ff6b6b; transform: rotate(90deg); }
.modal-content h2 {
    font-size: 2.2rem; font-weight: 700; color: #ff6b6b;
    margin-bottom: 20px; letter-spacing: 2px; text-transform: uppercase; text-align: center;
}
.modal-content .ad-section-title {
    font-size: 1.1rem; font-weight: 700; color: #ff6b6b;
    margin: 20px 0 12px; border-left: 3px solid #ff6b6b; padding-left: 14px;
}
.modal-content .ad-list { list-style: none; padding: 0; margin: 0 0 16px 0; }
.modal-content .ad-list li {
    padding: 6px 0 6px 24px; position: relative;
    color: #d0d5e0; font-size: 0.95rem; line-height: 1.5;
}
.modal-content .ad-list li::before { content: "▸"; position: absolute; left: 0; color: #ff6b6b; font-weight: 700; }
.modal-content .contact-line { text-align: center; font-size: 1.4rem; margin: 10px 0 20px; }
.modal-content .contact-line a { color: #ff6b6b; text-decoration: none; font-weight: 600; }
.modal-content .contact-line a:hover { text-decoration: underline; }

/* ═══════════════ ПЛЕЕР ═══════════════ */
.radio-player {
    display: flex; align-items: center; gap: 22px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(20,27,43,0.9), rgba(30,39,59,0.9));
    border: 1px solid rgba(255,107,107,0.25);
    border-radius: 24px; backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    flex-wrap: wrap; transition: 0.3s;
}
.radio-player:hover { border-color: rgba(255,107,107,0.5); }
.radio-player.playing {
    border-color: #ff6b6b;
    box-shadow: 0 10px 50px rgba(255,107,107,0.25);
}

.rp-cover {
    position: relative; width: 90px; height: 90px;
    border-radius: 18px; overflow: hidden; flex-shrink: 0;
    background: #0b0e17; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.rp-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rp-cover-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7));
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 8px; opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.radio-player.playing .rp-cover-overlay { opacity: 1; }

.rp-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.rp-eq span {
    display: block; width: 3px; background: #ff6b6b; border-radius: 2px;
    height: 30%; animation: rpEq 0.9s ease-in-out infinite;
}
.rp-eq span:nth-child(2) { animation-delay: -0.3s; height: 60%; }
.rp-eq span:nth-child(3) { animation-delay: -0.5s; height: 90%; }
.rp-eq span:nth-child(4) { animation-delay: -0.2s; height: 50%; }
.rp-eq span:nth-child(5) { animation-delay: -0.6s; height: 70%; }
@keyframes rpEq { 0%,100% { height: 20%; } 50% { height: 100%; } }
.radio-player.buffering .rp-eq span { animation-duration: 2s; opacity: 0.6; }

.rp-main { flex: 1; min-width: 180px; }
.rp-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1.2px;
    color: #888; text-transform: uppercase; margin-bottom: 6px;
}
.rp-live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #666;
    box-shadow: 0 0 6px rgba(0,0,0,0.5); transition: 0.3s;
}
.radio-player.is-live .rp-live-dot {
    background: #ff4444; animation: rpPulse 1.6s infinite; box-shadow: 0 0 10px #ff4444;
}
.radio-player.is-live .rp-status { color: #ff4444; }
@keyframes rpPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.rp-title { font-size: 1.35rem; font-weight: 700; color: #e0e0e0; margin-bottom: 2px; line-height: 1.25; word-break: break-word; }
.rp-artist { font-size: 0.95rem; color: #aaa; }
.rp-next { color: #888; font-size: 0.8rem; margin-top: 4px; }

.rp-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rp-play {
    width: 64px; height: 64px; border-radius: 50%; border: none;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #fff; font-size: 1.4rem; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 24px rgba(255,107,107,0.4);
    transition: 0.25s; flex-shrink: 0; letter-spacing: 1px;
}
.rp-play:hover { transform: scale(1.06); box-shadow: 0 8px 30px rgba(255,107,107,0.6); }
.rp-play:active { transform: scale(0.96); }
.rp-play.playing { background: linear-gradient(135deg, #4caf50, #43a047); box-shadow: 0 6px 24px rgba(76,175,80,0.4); }
.rp-play.playing:hover { box-shadow: 0 8px 30px rgba(76,175,80,0.6); }

.rp-volume {
    display: flex; align-items: center; gap: 8px; padding: 8px 14px;
    background: rgba(0,0,0,0.3); border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.06);
}
.rp-vol-icon { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 0; line-height: 1; transition: 0.2s; }
.rp-vol-icon:hover { transform: scale(1.15); }
.rp-volume input[type=range] { width: 100px; accent-color: #ff6b6b; cursor: pointer; background: transparent; }

.radio-player.is-info { border-color: #ffb400; box-shadow: 0 10px 40px rgba(255,180,0,0.2); }
.radio-player.is-info .rp-status,
.radio-player.is-info .rp-title { color: #ffb400; }
.radio-player.is-info .rp-live-dot { background: #ffb400; box-shadow: 0 0 10px #ffb400; }

/* ═══════════════ БУРГЕР-МЕНЮ ═══════════════ */
.burger {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
    flex-direction: column; justify-content: center; gap: 5px;
    z-index: 110; -webkit-tap-highlight-color: transparent;
}
.burger span {
    display: block; width: 26px; height: 3px;
    background: #ff6b6b; border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    box-shadow: 0 0 6px rgba(255,107,107,0.4);
}
.burger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 768px) {
    .burger { display: flex; }

    nav#mainNav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(20,27,43,0.98); backdrop-filter: blur(12px);
        border-bottom: 2px solid #ff6b6b;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        max-height: 0; overflow: hidden;
        transition: max-height 0.35s ease; z-index: 99;
    }
    nav#mainNav.open { max-height: 500px; }
    nav#mainNav ul { flex-direction: column; gap: 0; padding: 10px 0; width: 100%; }
    nav#mainNav ul li { width: 100%; }
    nav#mainNav ul li a {
        display: block; padding: 14px 30px; font-size: 1.05rem;
        border-bottom: 1px solid rgba(255,107,107,0.1);
    }
    nav#mainNav ul li a::after { display: none; }
    nav#mainNav ul li a.active {
        background: rgba(255,107,107,0.1); border-left: 3px solid #ff6b6b; padding-left: 27px;
    }

    .header-content { flex-wrap: nowrap; }
    .logo h1 { font-size: 1.6rem; }
    .player-header { flex-direction: column; text-align: center; gap: 16px; }
    .player-header .title-group { text-align: center; }
    .player-header .logo-big { height: 5rem; }
    .player-header .title-group h2 { font-size: 1.8rem; }
    footer .dev-note { font-size: 1.5rem; }

    .radio-player { padding: 18px; gap: 14px; }
    .rp-cover { width: 72px; height: 72px; border-radius: 14px; }
    .rp-title { font-size: 1.1rem; }
    .rp-artist { font-size: 0.85rem; }
    .rp-play { width: 54px; height: 54px; font-size: 1.2rem; }
    .rp-controls { width: 100%; justify-content: space-between; }
    .rp-volume input[type=range] { width: 80px; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .player-section { padding: 25px 15px; }
    .player-header .logo-big { height: 4rem; }
    .player-header .title-group h2 { font-size: 1.5rem; }
    footer .dev-note { font-size: 1.2rem; }
    .logo h1 { font-size: 1.4rem; }
}