:root {
    --bg: #101820;
    --bg-soft: #152331;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.13);
    --stroke: rgba(255, 255, 255, 0.16);
    --text: #f8fbff;
    --muted: #a7b2bf;
    --accent: #ff7a1a;
    --accent-2: #18c6a7;
    --accent-3: #ffd166;
    --danger: #ff4d5d;
    --shadow: rgba(0, 0, 0, 0.34);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

body.light-theme {
    --bg: #f3f5f8;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.92);
    --stroke: rgba(20, 33, 48, 0.12);
    --text: #142130;
    --muted: #5f6f80;
    --shadow: rgba(31, 42, 56, 0.14);
}

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

*,
*::before,
*::after {
    transition-property: background-color, background, border-color, color, box-shadow, filter, opacity;
    transition-duration: 0.32s;
    transition-timing-function: ease;
}

*::selection {
    color: #101820;
    background: var(--accent-3);
}

*::-webkit-scrollbar {
    width: 12px;
}

*::-webkit-scrollbar-track {
    background: var(--bg);
}

*::-webkit-scrollbar-thumb {
    border: 3px solid var(--bg);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 122, 26, 0.34), transparent 34rem),
        radial-gradient(circle at 82% 18%, rgba(24, 198, 167, 0.24), transparent 32rem),
        linear-gradient(145deg, var(--bg), #0b1117 70%);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
    animation: pageReveal 0.8s ease both;
    transition: background 0.45s ease, color 0.32s ease;
}

body.light-theme {
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 122, 26, 0.25), transparent 32rem),
        radial-gradient(circle at 82% 18%, rgba(24, 198, 167, 0.18), transparent 30rem),
        linear-gradient(145deg, #f3f5f8, #edf2f6 70%);
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    appearance: none;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent-3);
    outline-offset: 4px;
}

.ambient {
    position: fixed;
    z-index: -1;
    width: 24rem;
    height: 24rem;
    border-radius: 999px;
    filter: blur(32px);
    opacity: 0.34;
    animation: floatGlow 9s ease-in-out infinite;
}

.ambient-one {
    top: 14%;
    left: -8rem;
    background: var(--accent);
}

.ambient-two {
    right: -9rem;
    bottom: 8%;
    background: var(--accent-2);
    animation-delay: -4s;
}

.site-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 42px;
}

.site-header {
    position: sticky;
    top: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
    padding: 12px 14px 12px 16px;
    border: 1px solid var(--stroke);
    border-radius: 24px;
    background: rgba(16, 24, 32, 0.72);
    box-shadow: 0 18px 48px var(--shadow);
    backdrop-filter: blur(24px);
    animation: slideDown 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    transition: background 0.45s ease, border-color 0.32s ease, box-shadow 0.32s ease;
    overflow: hidden;
}

body.light-theme .site-header {
    background: rgba(255, 255, 255, 0.76);
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
        radial-gradient(circle at 16% 0%, rgba(255, 122, 26, 0.2), transparent 34%),
        radial-gradient(circle at 84% 100%, rgba(24, 198, 167, 0.18), transparent 36%);
    opacity: 0.8;
    pointer-events: none;
}

.site-header::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
    opacity: 0.75;
    animation: headerSignal 4s ease-in-out infinite;
    pointer-events: none;
}

.site-header > * {
    position: relative;
    z-index: 1;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    min-width: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.brand:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 10px 18px rgba(255, 122, 26, 0.18));
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24), 0 0 0 6px rgba(255, 122, 26, 0.08);
    animation: logoFloat 4.5s ease-in-out infinite;
}

.brand-text {
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.brand-text span {
    color: var(--accent);
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.top-nav a {
    min-width: 82px;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover {
    color: var(--text);
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--stroke);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.telegram-link,
.download-btn,
.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.telegram-link {
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #2aa7df, #1677b8);
    box-shadow: 0 12px 28px rgba(32, 149, 210, 0.24);
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 122, 26, 0.14);
    border-color: rgba(255, 122, 26, 0.35);
}

.theme-toggle:active {
    transform: scale(0.92);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#sunIcon {
    display: none;
}

#moonIcon {
    display: block;
}

body.light-theme #sunIcon {
    display: block;
}

body.light-theme #moonIcon {
    display: none;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 38px;
    align-items: center;
    padding: 58px 0 38px;
}

.hero-copy {
    max-width: 650px;
    animation: fadeLift 0.85s 0.08s ease both;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(255, 122, 26, 0.28);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(255, 122, 26, 0.12);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    animation: softPulse 3.2s ease-in-out infinite;
}

h1,
h2 {
    letter-spacing: 0;
}

.hero-copy h1 {
    margin-top: 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    max-width: 780px;
}

.lead {
    margin-top: 22px;
    max-width: 620px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.hero-frequency {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(460px, 100%);
    height: 74px;
    margin-top: 34px;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero-frequency span {
    flex: 1;
    min-width: 10px;
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent-3), var(--accent), #ff3d6e);
    box-shadow: 0 0 24px rgba(255, 122, 26, 0.26);
    animation: frequencyDance 1.15s ease-in-out infinite alternate;
}

.hero-frequency span:nth-child(2n) {
    animation-delay: 0.18s;
    background: linear-gradient(180deg, #77ffe9, var(--accent-2));
}

.hero-frequency span:nth-child(3n) {
    animation-delay: 0.32s;
}

.hero-frequency span:nth-child(4n) {
    animation-delay: 0.48s;
}

.info-panel,
.apps-panel,
.order-section,
.player-panel,
.error-card {
    border: 1px solid var(--stroke);
    background: var(--surface);
    box-shadow: 0 22px 56px var(--shadow);
    backdrop-filter: blur(26px);
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 22px;
    isolation: isolate;
    animation: fadeLift 0.85s 0.2s ease both, panelBreath 5s ease-in-out infinite;
    min-height: 660px;
    display: flex;
    flex-direction: column;
}

.player-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, 0.16), transparent 36%),
        radial-gradient(circle at 80% 0%, rgba(24, 198, 167, 0.22), transparent 34%);
    pointer-events: none;
}

.player-panel::after {
    content: "";
    position: absolute;
    inset: -45%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 122, 26, 0.14), transparent, rgba(24, 198, 167, 0.16), transparent);
    opacity: 0.8;
    animation: panelSweep 14s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.panel-topline,
.signal-particles,
.cover-wrap,
.now-playing-card,
.city-selector,
.player-controls {
    position: relative;
    z-index: 1;
}

.signal-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.signal-particles span {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-3);
    box-shadow: 0 0 22px rgba(255, 209, 102, 0.7);
    opacity: 0.38;
    animation: particleFloat 6s ease-in-out infinite;
}

.signal-particles span:nth-child(1) { top: 14%; left: 18%; animation-delay: -0.4s; }
.signal-particles span:nth-child(2) { top: 18%; right: 18%; animation-delay: -1.6s; background: var(--accent-2); }
.signal-particles span:nth-child(3) { top: 48%; left: 8%; animation-delay: -2.4s; }
.signal-particles span:nth-child(4) { top: 58%; right: 10%; animation-delay: -3.2s; background: var(--accent-2); }
.signal-particles span:nth-child(5) { bottom: 18%; left: 24%; animation-delay: -4.2s; }
.signal-particles span:nth-child(6) { bottom: 14%; right: 26%; animation-delay: -5s; background: #ff3d6e; }

.panel-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    max-width: 100%;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.panel-topline span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--muted);
}

.active-stream .live-dot {
    background: var(--accent-2);
    box-shadow: 0 0 0 0 rgba(24, 198, 167, 0.45);
    animation: pulseDot 1.5s ease-out infinite;
}

.cover-wrap {
    display: grid;
    place-items: center;
    width: min(300px, 82vw);
    aspect-ratio: 1;
    margin: 24px auto 18px;
}

.cover-art {
    position: relative;
    z-index: 2;
    width: 76%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30%;
    object-fit: cover;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36);
    transition: transform 0.35s ease, border-radius 0.35s ease;
}

.active-stream .cover-art {
    border-radius: 50%;
    animation: coverSpin 16s linear infinite;
}

.wave-ring {
    position: absolute;
    inset: 14%;
    border: 1px solid rgba(255, 122, 26, 0.28);
    border-radius: 50%;
    opacity: 0;
}

.active-stream .wave-ring {
    animation: waveOut 2.8s ease-out infinite;
}

.active-stream .ring-two {
    animation-delay: 1.4s;
}

.now-playing-card {
    padding: 18px;
    border: 1px solid var(--stroke);
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
    min-height: 146px;
}

.now-playing-card:hover,
.info-panel:hover,
.apps-panel:hover,
.order-section:hover,
.error-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 26, 0.32);
}

body.light-theme .now-playing-card {
    background: rgba(255, 255, 255, 0.52);
}

.now-playing-card h2 {
    margin-top: 12px;
    font-size: 34px;
    min-height: 42px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-playing-card p {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.45;
    min-height: 46px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.city-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 16px;
    padding: 7px;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.city-btn {
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    color: var(--muted);
    background: transparent;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.city-btn.active {
    color: #101820;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    box-shadow: 0 10px 22px rgba(255, 122, 26, 0.23);
}

.city-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.city-btn.active:hover {
    color: #101820;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    min-height: 82px;
}

.play-btn {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #ff3d6e);
    box-shadow: 0 18px 38px rgba(255, 90, 58, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn:hover,
.telegram-link:hover,
.download-btn:hover,
.donate-btn:hover {
    transform: translateY(-2px);
    filter: saturate(1.12);
}

.play-btn:active,
.city-btn:active,
.download-btn:active,
.donate-btn:active,
.telegram-link:active {
    transform: scale(0.97);
}

.play-symbol {
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #fff;
}

.pause-symbol {
    display: none;
    gap: 7px;
}

.pause-symbol i {
    display: block;
    width: 7px;
    height: 28px;
    border-radius: 99px;
    background: #fff;
}

.equalizer {
    display: flex;
    align-items: end;
    gap: 5px;
    height: 42px;
}

.equalizer span {
    width: 6px;
    height: 10px;
    border-radius: 99px;
    background: var(--accent-2);
    opacity: 0.34;
}

.active-stream .equalizer span {
    opacity: 1;
    animation: equalizer 0.8s ease-in-out infinite alternate;
}

.equalizer span:nth-child(2) { animation-delay: 0.14s; }
.equalizer span:nth-child(3) { animation-delay: 0.28s; }
.equalizer span:nth-child(4) { animation-delay: 0.08s; }
.equalizer span:nth-child(5) { animation-delay: 0.22s; }

.content-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 20px;
    margin-top: 18px;
}

.info-panel,
.apps-panel,
.order-section {
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.info-panel {
    animation: fadeLift 0.75s 0.32s ease both;
}

.apps-panel {
    animation: fadeLift 0.75s 0.42s ease both;
}

.order-section {
    animation: fadeLift 0.75s 0.52s ease both;
}

.info-panel h2,
.apps-panel h2,
.order-copy h2 {
    margin-top: 16px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.05;
}

.info-panel p,
.apps-panel p,
.order-copy p,
.rules-box p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.founders-box {
    display: grid;
    gap: 8px;
    margin-top: 26px;
    padding: 18px;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.founders-box p {
    margin: 0;
    font-size: 15px;
}

.founders-box strong {
    color: var(--text);
}

.download-actions {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.download-btn {
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
}

.download-btn.primary {
    color: #101820;
    background: linear-gradient(135deg, var(--accent-3), var(--accent));
    box-shadow: 0 16px 30px rgba(255, 122, 26, 0.24);
    position: relative;
    overflow: hidden;
}

.download-btn.primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: translateX(-120%);
    animation: buttonShine 3.4s ease-in-out infinite;
}

.download-btn.secondary {
    border-color: var(--stroke);
    color: var(--text);
    background: var(--surface-strong);
}

.order-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}

.tariff-list {
    display: grid;
    gap: 12px;
}

.tariff-card,
.rules-box {
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    padding: 18px;
    transition: transform 0.22s ease, background 0.22s ease;
}

.tariff-card:hover,
.rules-box:hover,
.founders-box:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.09);
}

.tariff-card strong {
    display: block;
    color: var(--accent-3);
    font-size: 30px;
}

.tariff-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-weight: 700;
}

.rules-box,
.donation-grid {
    grid-column: 1 / -1;
}

.rules-box strong {
    color: var(--danger);
    font-size: 18px;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.donate-btn {
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    text-align: center;
}

.donatello { background: #ff7a1a; }
.mono { background: #151515; }
.pumb { background: #e30613; }
.privat { background: #62a51f; }
.sense { background: #0757b2; }

.error-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.error-shell {
    width: min(560px, 100%);
}

.error-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 42px 28px;
    border-radius: 32px;
    animation: fadeLift 0.75s ease both;
}

.error-theme-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
}

.error-brand {
    margin-bottom: 8px;
}

.error-code {
    color: var(--accent);
    font-size: clamp(76px, 18vw, 124px);
    font-weight: 950;
    line-height: 0.9;
}

.error-card h1 {
    font-size: clamp(30px, 6vw, 48px);
    line-height: 1.05;
}

.error-card p {
    color: var(--muted);
    line-height: 1.6;
}

@keyframes floatGlow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(34px, -28px, 0) scale(1.08); }
}

@keyframes pageReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes headerSignal {
    0%, 100% { transform: scaleX(0.72); opacity: 0.38; }
    50% { transform: scaleX(1); opacity: 0.88; }
}

@keyframes fadeLift {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes softPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 122, 26, 0); }
    50% { box-shadow: 0 0 22px rgba(255, 122, 26, 0.16); }
}

@keyframes panelBreath {
    0%, 100% { box-shadow: 0 22px 56px var(--shadow); }
    50% { box-shadow: 0 26px 72px rgba(255, 122, 26, 0.16); }
}

@keyframes buttonShine {
    0%, 48% { transform: translateX(-120%); }
    70%, 100% { transform: translateX(120%); }
}

@keyframes frequencyDance {
    0% { height: 12px; transform: translateY(14px); opacity: 0.48; }
    35% { opacity: 1; }
    100% { height: 68px; transform: translateY(0); opacity: 0.92; }
}

@keyframes panelSweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes particleFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(0.72); opacity: 0.25; }
    50% { transform: translate3d(18px, -24px, 0) scale(1.18); opacity: 0.72; }
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(24, 198, 167, 0.45); }
    100% { box-shadow: 0 0 0 12px rgba(24, 198, 167, 0); }
}

@keyframes coverSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes waveOut {
    0% { transform: scale(0.82); opacity: 0.8; }
    100% { transform: scale(1.24); opacity: 0; }
}

@keyframes equalizer {
    from { height: 8px; }
    to { height: 38px; }
}

@media (max-width: 980px) {
    .site-header {
        position: relative;
        top: 0;
        flex-wrap: wrap;
    }

    .top-nav {
        order: 3;
        width: 100%;
    }

    .top-nav a {
        flex: 1;
        min-width: 0;
    }

    .hero-section,
    .content-grid,
    .order-section {
        grid-template-columns: 1fr;
    }

    .player-panel {
        order: -1;
        min-height: auto;
    }

    .donation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    .site-shell {
        width: min(1320px, calc(100% - 56px));
    }

    .hero-section {
        grid-template-columns: minmax(0, 1fr) 470px;
    }
}

@media (max-width: 760px) {
    .site-header {
        align-items: center;
        gap: 10px;
    }

    .header-actions {
        margin-left: auto;
    }

    .content-grid,
    .order-section {
        gap: 14px;
    }
}

@media (max-width: 620px) {
    .site-shell {
        width: min(100% - 16px, 1180px);
        padding-top: 8px;
    }

    .site-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
        min-height: 0;
        padding: 10px;
        border-radius: 18px;
    }

    .site-header::after {
        left: 12px;
        right: 12px;
    }

    .brand {
        min-width: 0;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .brand-text {
        font-size: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .telegram-link {
        display: none;
    }

    .header-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .top-nav {
        grid-column: 1 / -1;
        order: initial;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 4px;
    }

    .top-nav::-webkit-scrollbar {
        display: none;
    }

    .top-nav a {
        flex: 1 0 auto;
        min-width: 92px;
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero-section {
        gap: 18px;
        padding-top: 20px;
    }

    .hero-copy h1 {
        font-size: clamp(34px, 12vw, 42px);
    }

    .lead {
        font-size: 17px;
    }

    .hero-frequency {
        height: 54px;
        margin-top: 24px;
        gap: 6px;
    }

    .player-panel,
    .info-panel,
    .apps-panel,
    .order-section {
        padding: 18px;
        border-radius: 22px;
    }

    .now-playing-card h2 {
        font-size: 28px;
        min-height: 34px;
    }

    .now-playing-card {
        min-height: 132px;
    }

    .cover-wrap {
        width: min(245px, 76vw);
        margin: 16px auto 14px;
    }

    .player-controls {
        min-height: 74px;
        margin-top: 14px;
    }

    .play-btn {
        width: 74px;
        height: 74px;
    }

    .city-selector {
        grid-template-columns: 1fr;
    }

    .player-controls {
        justify-content: space-between;
    }

    .donation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 390px) {
    .site-shell {
        width: min(100% - 12px, 1180px);
    }

    .site-header {
        padding: 9px;
    }

    .brand-text {
        font-size: 17px;
    }

    .top-nav a {
        padding: 9px 8px;
        font-size: 13px;
        min-width: 82px;
    }

    .play-btn {
        width: 72px;
        height: 72px;
    }

    .info-panel h2,
    .apps-panel h2,
    .order-copy h2 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
