:root {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f5f5f5;
    background: #101114;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #242731 0, #101114 45%);
}

header { padding: 56px 24px 40px; text-align: center; }
header h1 { margin: 0; font-size: clamp(2.2rem, 6vw, 4.5rem); letter-spacing: -0.04em; }
header p { margin: 12px 0 0; color: #a7a9b2; font-size: 1.1rem; }
main { width: min(1100px, calc(100% - 32px)); margin: 0 auto 80px; }
.status { margin-bottom: 24px; color: #a7a9b2; }

.emission {
    margin-bottom: 28px;
    padding: 28px;
    border: 1px solid #2b2e37;
    border-radius: 18px;
    background: #181a20;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.emission h2 { margin: 0 0 22px; font-size: 1.7rem; }
.section { margin-top: 22px; }
.section h3 { margin: 0 0 10px; font-size: 1rem; color: #bfc2cc; text-transform: uppercase; letter-spacing: 0.08em; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; margin-top: 8px; border-radius: 12px; background: #22252d; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play-button { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; background: #f5f5f5; color: #101114; font-weight: 700; }
.play-button:hover { transform: translateY(-1px); }
.empty { padding: 40px; text-align: center; color: #a7a9b2; }

@media (max-width: 600px) {
    header { padding-top: 40px; }
    .emission { padding: 20px; }
    .file { align-items: flex-start; flex-direction: column; }
}

.sponsors {
    width: 100%;
    margin: 80px 0 40px;
    padding: 35px 0;
    border-top: 1px solid #2b2e37;
    border-bottom: 1px solid #2b2e37;
    background: #14161b;
    overflow: hidden;
}
.sponsors h2 { margin: 0 0 25px; text-align: center; font-size: 1.25rem; color: #bfc2cc; }
.sponsors-window { width: 100%; overflow: hidden; }
.sponsors-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    width: max-content;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
.sponsor {
    width: 180px;
    height: 80px;
    flex: 0 0 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #2b2e37;
    border-radius: 12px;
    background: #1c1f26;
}
.sponsors .sponsor img {
    display: block;
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 55px;
    object-fit: contain;
}

.audio-player {
    position: fixed;
    z-index: 1000;
    right: 24px;
    bottom: 24px;
    width: min(390px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid #3a3e49;
    border-radius: 18px;
    background: rgba(24, 26, 32, 0.96);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    user-select: none;
    touch-action: none;
}
.audio-player.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.audio-player.is-dragging { cursor: grabbing; transition: none; }
.audio-player-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 2px 12px; cursor: grab; }
.audio-player-title-wrap { display: flex; align-items: center; min-width: 0; gap: 10px; }
.audio-player-icon { font-size: 1.25rem; }
.audio-player-label { color: #a7a9b2; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.audio-player-title { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; font-weight: 700; }
.audio-player-close { border: 0; background: transparent; color: #a7a9b2; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 2px 5px; }
.audio-player-close:hover { color: #fff; }
.audio-player-controls { display: flex; align-items: center; gap: 12px; }
.audio-control-main { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; background: #f5f5f5; color: #101114; font-weight: 800; cursor: pointer; }
.audio-player-progress-wrap { min-width: 0; flex: 1; }
.audio-player-progress, .audio-player-volume-range { width: 100%; cursor: pointer; accent-color: #f5f5f5; }
.audio-player-times { display: flex; justify-content: space-between; margin-top: 2px; color: #888c97; font-size: 0.7rem; }
.audio-player-volume { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #a7a9b2; font-size: 0.8rem; }
.audio-player-volume-range { flex: 1; }

@media (max-width: 600px) {
    .sponsors { margin-top: 50px; padding: 30px 0; }
    .sponsor { width: 150px; height: 70px; flex-basis: 150px; }
    .sponsors-track { gap: 15px; }
    .audio-player { right: 16px; bottom: 16px; width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
    .audio-player { transition: none; }
}
