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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0b0c10;
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 480px;
    background: #1a1c22;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

header h1 span {
    color: #e63946;
    background: #ffffff;
    padding: 0 8px;
    border-radius: 6px;
    font-style: italic;
}

.tagline {
    margin-top: 0.5rem;
    color: #a0a0b0;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.player {
    margin: 2.5rem 0 1.5rem;
}

.now-playing {
    background: #2b2d35;
    padding: 12px 20px;
    border-radius: 30px;
    margin-bottom: 1.8rem;
    display: inline-block;
    font-size: 0.95rem;
    color: #ccc;
}

.now-playing strong {
    color: #e63946;
    font-weight: 600;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.play-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e63946;
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

.play-btn:hover {
    background: #d62839;
    transform: scale(1.05);
}

.play-btn.playing {
    background: #2b2d35;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.volume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.volume-container label {
    font-size: 0.8rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="range"] {
    width: 120px;
    accent-color: #e63946;
}

.status-indicator {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    min-height: 24px;
}

footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #555;
}

/* Кнопка пожертвований */
.donate-section {
    margin-top: 2rem;
}

.donate-btn {
    background: linear-gradient(135deg, #f9ca24, #f0932b);
    color: #0b0c10;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 8px 18px rgba(249, 202, 36, 0.35);
}

.donate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(249, 202, 36, 0.5);
}

/* Модальное окно (фон) */
/* Модальное окно (фон) */
.modal {
    /* Вместо display используем комбинацию visibility и opacity */
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;                   /* оставляем flex, но он будет невидим */
    align-items: center;
    justify-content: center;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #1a1c22;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    color: #f0f0f0;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}
.close-modal {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal:hover {
    color: #e63946;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #f9ca24;
}

.donate-methods {
    margin-top: 20px;
    background: #2b2d35;
    padding: 15px;
    border-radius: 12px;
}

.donate-link {
    display: inline-block;
    margin-top: 15px;
    background: #e63946;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.donate-link:hover {
    background: #d62839;
    transform: scale(1.03);
}

/* Убираем синюю подсветку при тапе на мобильных */
button,
.donate-link {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}