.mdr-brand, .mdr-ticker-content, .mdr-outline-content, .mdr-notes-content { display: none; }
.mdr-strip {
    box-sizing: border-box;
    position: relative;
    z-index: 4;
    width: 100%;
    height: 80px;
    padding: 8px 20px;
    background: linear-gradient(110deg, #0756ed, #6530d8 47%, #d70a68);
    font-family: Montserrat, Arial, sans-serif;
    line-height: 1.2;
}
.mdr-strip *, .mdr-strip *::before, .mdr-strip *::after { box-sizing: border-box; }
.mdr-strip .mdr-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    height: 64px;
    margin: 0 auto;
    padding: 5px 18px;
    border: 1px solid #ffb9c9;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff174d, #ed0030 50%, #bf003b);
    box-shadow: inset 0 0 8px #ff9bb5, 0 0 15px #ff186780;
    color: #fff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mdr-strip .mdr-link:visited, .mdr-strip .mdr-link:hover { color: #fff; text-decoration: none; }
.mdr-strip .mdr-link:focus-visible { outline: 3px solid #ffe65e; outline-offset: 3px; }
.mdr-play-wrap { display: flex; align-items: center; justify-content: center; gap: 9px; flex: 0 0 auto; }
.mdr-play { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #e60032; transform-origin: center; }
.mdr-play svg { display: block; width: 26px; height: 26px; }
.mdr-wave { width: 14px; height: 34px; border-left: 4px solid #ffffff70; border-right: 4px solid #ffffff70; border-radius: 50%; }
.mdr-wave-left { clip-path: inset(0 40% 0 0); margin-right: -6px; }
.mdr-wave-right { clip-path: inset(0 0 0 40%); margin-left: -6px; }
.mdr-copy { min-width: 0; }
.mdr-title { display: block; font-size: clamp(18px, 2.5vw, 28px); font-weight: 800; white-space: nowrap; }
.mdr-subtitle { display: none; margin-top: 3px; font-size: 16px; font-weight: 500; color: #657197; }
.mdr-bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 36px; flex: 0 0 auto; }
.mdr-bars i { display: block; width: 6px; height: 100%; background: linear-gradient(#fff, #ff84a6); transform-origin: center bottom; transform: scaleY(.45); }
.mdr-bars i:nth-child(2) { transform: scaleY(.7); }
.mdr-bars i:nth-child(3) { transform: scaleY(1); }
.mdr-bars i:nth-child(4) { transform: scaleY(.65); }
.mdr-bars i:nth-child(5) { transform: scaleY(.4); }
.mdr-live { display: block; flex: 0 0 auto; padding: 8px 11px; border-radius: 22px; background: #ffe534; color: #28152b; font: 800 20px/1.1 Arial,sans-serif; }
.mdr-white .mdr-link { background: linear-gradient(#fff, #f0f3ff); border-color: #fff; box-shadow: 0 4px 15px #26166822; color: #08074d; }
.mdr-white .mdr-link:visited, .mdr-white .mdr-link:hover { color: #08074d; }
.mdr-white .mdr-play { background: linear-gradient(145deg, #29e0f0, #009dff 60%, #075eea); box-shadow: 0 0 16px #15c8ee88; color: #fff; }
.mdr-white .mdr-wave, .mdr-white .mdr-live { display: none; }
.mdr-white .mdr-subtitle { display: block; }
.mdr-white .mdr-bars { gap: 5px; }
.mdr-white .mdr-bars i { width: 10px; border-radius: 8px; background: linear-gradient(#ff48b9, #cc00a1); transform: scaleY(.55); }
.mdr-white .mdr-bars i:nth-child(2) { background: linear-gradient(#64e5ee, #00a6ff); transform: scaleY(1); }
.mdr-white .mdr-bars i:nth-child(3) { background: linear-gradient(#a7e84d, #00c782); transform: scaleY(.8); }
.mdr-white .mdr-bars i:nth-child(n+4) { display: none; }
.mdr-animate-play .mdr-play { animation: mdr-play 1.8s ease-in-out infinite; }
.mdr-animate-bars .mdr-bars i { animation: mdr-bars .95s ease-in-out infinite alternate; }
.mdr-animate-bars .mdr-bars i:nth-child(2) { animation-delay: -.4s; animation-duration: .7s; }
.mdr-animate-bars .mdr-bars i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.1s; }
.mdr-animate-bars .mdr-bars i:nth-child(4) { animation-delay: -.6s; animation-duration: .8s; }
.mdr-animate-bars .mdr-bars i:nth-child(5) { animation-delay: -.3s; }
.mdr-red.mdr-animate-live .mdr-live { animation: mdr-live 1.7s ease-in-out infinite; }
@keyframes mdr-play { 0%,100% { transform: scale(.94); } 50% { transform: scale(1.06); } }
@keyframes mdr-bars { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes mdr-live { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 #ffe53400; } 50% { transform: scale(1.06); box-shadow: 0 0 0 4px #ffe53440, 0 0 14px #ffe53480; } }
/* The TIM theme uses an absolute-positioned header. No strip means no offset. */
#md-radio[data-theme="muzdorojka"] ~ .header { top: 80px; }
@media (max-width: 640px) {
    .mdr-strip { height: 64px; padding: 6px 8px; }
    .mdr-strip .mdr-link { height: 52px; padding: 5px 9px; gap: 9px; }
    .mdr-play { width: 38px; height: 38px; }
    .mdr-play svg { width: 21px; height: 21px; }
    .mdr-play-wrap { gap: 2px; }
    .mdr-wave { width: 7px; height: 25px; border-width: 2px; }
    .mdr-wave-left { margin-right: -3px; }
    .mdr-wave-right { margin-left: -3px; }
    .mdr-title { font-size: clamp(12px, 3.6vw, 22px); }
    .mdr-subtitle { font-size: clamp(11px, 3vw, 16px); margin-top: 3px; }
    .mdr-bars { gap: 2px; height: 27px; }
    .mdr-bars i { width: 3px; }
    .mdr-live { font-size: 12px; padding: 7px; }
    .mdr-white .mdr-bars { gap: 3px; }
    .mdr-white .mdr-bars i { width: 6px; }
    #md-radio[data-theme="muzdorojka"] ~ .header { top: 64px; }
}
/* Logo variants keep the original logo intact and a compact, predictable header height. */
.mdr-brand-white, .mdr-brand-dark { height: 180px; padding: 10px 20px; background: #f6f5f2; }
.mdr-brand-white .mdr-link, .mdr-brand-dark .mdr-link { height: 160px; max-width: 850px; padding: 12px 22px; border-radius: 24px; background: #fff; border: 1px solid #e5e8ef; box-shadow: 0 5px 18px #12304c18; color: #082750; }
.mdr-brand-white .mdr-link:hover, .mdr-brand-white .mdr-link:visited { color: #082750; }
.mdr-brand-white .mdr-link > span:not(.mdr-brand), .mdr-brand-dark .mdr-link > span:not(.mdr-brand) { display: none; }
.mdr-brand-white .mdr-brand, .mdr-brand-dark .mdr-brand { display: flex; align-items: center; justify-content: center; gap: 28px; width: 100%; height: 100%; }
.mdr-strip .mdr-logo { display: block; width: 52%; height: 100%; object-fit: contain; background: #fff; border-radius: 14px; margin: 0; padding: 4px; border: 1px solid #aabbd0; box-shadow: none; }
.mdr-brand-content { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; flex: 1; }
.mdr-brand-title { font-size: 28px; font-weight: 800; white-space: nowrap; }
.mdr-brand-action { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 7px 22px; border-radius: 100px; background: linear-gradient(145deg,#15bcff,#0068ef); color: white; font-size: 24px; font-weight: 800; order: 3; }
.mdr-brand-action .mdr-play { width: 32px; height: 32px; background: none; color: white; border-radius: 0; }
.mdr-brand-bars { height: 24px; gap: 5px; order: 2; }
.mdr-brand-bars i { width: 7px; border-radius: 8px; background: #00a7fa; }
.mdr-brand-bars i:nth-child(4n+1) { background: #fb39a5; animation-delay: -.3s; transform: scaleY(.4); }
.mdr-brand-bars i:nth-child(4n+2) { background: #ffbf24; animation-delay: -.65s; transform: scaleY(.8); }
.mdr-brand-bars i:nth-child(4n+3) { background: #8ace37; animation-delay: -.15s; transform: scaleY(.6); }
.mdr-brand-dark { background: #eaf0f7; }
.mdr-brand-dark .mdr-link { background: linear-gradient(125deg,#073d61,#021733); border: 2px solid #12cdff; box-shadow: inset 0 0 14px #00c8ff44,0 0 12px #04bfff44; color: white; }
.mdr-brand-dark .mdr-link:hover, .mdr-brand-dark .mdr-link:visited { color: white; }
.mdr-brand-dark .mdr-brand-action { background: linear-gradient(#00d9ec,#0097f5); box-shadow: 0 0 12px #00ceff77,inset 0 0 5px #ccffff; order: 2; }
.mdr-brand-dark .mdr-brand-bars { order: 3; }
#md-radio.mdr-brand-white[data-theme="muzdorojka"] ~ .header, #md-radio.mdr-brand-dark[data-theme="muzdorojka"] ~ .header { top: 180px; }
@media (max-width: 640px) {
    .mdr-brand-white, .mdr-brand-dark { height: 132px; padding: 6px; }
    .mdr-brand-white .mdr-link, .mdr-brand-dark .mdr-link { height: 120px; padding: 8px; border-radius: 18px; }
    .mdr-brand-white .mdr-brand, .mdr-brand-dark .mdr-brand { gap: 10px; }
    .mdr-strip .mdr-logo { width: 51%; border-radius: 10px; padding: 2px; }
    .mdr-brand-title { font-size: clamp(16px,4.4vw,25px); }
    .mdr-brand-content { gap: 7px; }
    .mdr-brand-action { font-size: clamp(15px,4vw,22px); padding: 6px 10px; gap: 5px; min-height: 44px; }
    .mdr-brand-action .mdr-play { width: 22px; height: 24px; }
    .mdr-brand-action .mdr-play svg { width: 20px; height: 20px; }
    .mdr-brand-bars { height: 18px; gap: 3px; }
    .mdr-brand-bars i { width: 5px; }
    #md-radio.mdr-brand-white[data-theme="muzdorojka"] ~ .header, #md-radio.mdr-brand-dark[data-theme="muzdorojka"] ~ .header { top: 132px; }
}
.mdr-ticker { height: 72px; padding: 10px 14px; background: #faf6f8; }
.mdr-strip.mdr-ticker .mdr-link { height: 52px; padding: 0; border: 1px solid #261a4b; border-radius: 18px 18px 0 0; overflow: hidden; background: #ffdc00; box-shadow: none; max-width: 1200px; }
.mdr-ticker .mdr-link > span:not(.mdr-ticker-content) { display: none; }
.mdr-ticker .mdr-ticker-content { display: flex; width: 100%; height: 100%; align-items: stretch; min-width: 0; }
.mdr-fm { display: flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 85px; background: #ec2027; color: #fff; font-size: 14px; font-weight: 900; }
.mdr-fm .mdr-play { background: none; color: #fff; width: 16px; height: 24px; font-size: 16px; border-radius: 0; }
.mdr-ticker-window { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; }
.mdr-ticker-track { display: flex; width: max-content; flex: 0 0 auto; }
.mdr-ticker-group { display: flex; align-items: center; flex: 0 0 auto; gap: 20px; padding-right: 20px; white-space: nowrap; color: #17103c; font-size: 17px; font-weight: 900; }
.mdr-ticker-group b { color: #ec2027; font-size: 19px; }
.mdr-ticker-cta { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 132px; color: #ffdf00; background: #211641; font-size: 14px; font-weight: 800; }
.mdr-ticker-cta span { font-size: 22px; }
.mdr-animate-ticker .mdr-ticker-track { animation: mdr-ticker-scroll 24s linear infinite; }
.mdr-ticker .mdr-link:hover .mdr-ticker-track, .mdr-ticker .mdr-link:focus .mdr-ticker-track { animation-play-state: paused; }
@keyframes mdr-ticker-scroll { to { transform: translateX(-50%); } }
#md-radio.mdr-ticker[data-theme="muzdorojka"] ~ .header { top: 72px; }
@media (max-width: 640px) {
    .mdr-ticker { height: 62px; padding: 6px; }
    .mdr-strip.mdr-ticker .mdr-link { height: 50px; }
    .mdr-fm { flex-basis: 54px; gap: 4px; font-size: 12px; }
    .mdr-ticker-cta { flex-basis: 88px; font-size: 12px; gap: 4px; }
    .mdr-ticker-group { font-size: 14px; gap: 16px; padding-right: 16px; }
    #md-radio.mdr-ticker[data-theme="muzdorojka"] ~ .header { top: 62px; }
}
.mdr-outline { height: 100px; padding: 10px 18px; background: #fff; }
.mdr-strip.mdr-outline .mdr-link {
    height: 80px;
    max-width: 1200px;
    padding: 5px 8px;
    border: 3px solid transparent;
    border-radius: 999px;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(100deg, #18bff4, #2369ff 32%, #7839e8 62%, #e0008c) border-box;
    box-shadow: 0 8px 20px #6638c326;
    color: #10125d;
}
.mdr-outline .mdr-link:hover, .mdr-outline .mdr-link:visited { color: #10125d; }
.mdr-outline .mdr-link > span:not(.mdr-outline-content) { display: none; }
.mdr-outline .mdr-outline-content { display: flex; align-items: center; gap: 24px; width: 100%; height: 100%; min-width: 0; }
.mdr-outline-play { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.mdr-outline-play .mdr-play { width: 64px; height: 64px; background: linear-gradient(145deg, #21d4ef, #0787f1 62%, #1166e7); color: #fff; box-shadow: 0 7px 18px #008de94d; }
.mdr-spark { position: relative; display: block; width: 28px; height: 52px; }
.mdr-spark i { position: absolute; left: 3px; width: 22px; height: 7px; border-radius: 8px; transform-origin: right center; }
.mdr-spark i:nth-child(1) { top: 4px; background: #eb41c6; transform: rotate(44deg); }
.mdr-spark i:nth-child(2) { top: 22px; background: #ffdd52; }
.mdr-spark i:nth-child(3) { bottom: 4px; background: #64c9f1; transform: rotate(-44deg); }
.mdr-outline-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-right: auto; }
.mdr-outline-copy strong { color: #11135f; font-size: clamp(25px, 3vw, 40px); font-weight: 800; line-height: 1; white-space: nowrap; }
.mdr-outline-copy small { margin-top: 5px; color: #667098; font-size: clamp(15px, 1.8vw, 24px); line-height: 1; white-space: nowrap; }
.mdr-outline-bars { align-items: flex-end; height: 48px; gap: 6px; }
.mdr-outline-bars i { width: 13px; border-radius: 7px; background: linear-gradient(#f22bbf, #cf13ae); }
.mdr-outline-bars i:nth-child(2) { background: linear-gradient(#c729e9, #7032df); transform: scaleY(1); }
.mdr-outline-bars i:nth-child(3) { background: linear-gradient(#31d9f2, #139af2); transform: scaleY(.72); }
.mdr-outline-bars i:nth-child(4) { background: linear-gradient(#9fe353, #42c360); transform: scaleY(.55); }
.mdr-outline-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex: 0 0 250px; height: 62px; border-radius: 999px; background: linear-gradient(120deg, #ff2c98, #d80088); box-shadow: 0 8px 18px #dd08834d; color: #fff; font-size: 28px; font-weight: 800; }
.mdr-outline-cta b { font: 400 52px/1 Arial, sans-serif; transform: translateY(-2px); }
#md-radio.mdr-outline[data-theme="muzdorojka"] ~ .header { top: 100px; }
@media (max-width: 640px) {
    .mdr-outline { height: 76px; padding: 6px; }
    .mdr-strip.mdr-outline .mdr-link { height: 64px; padding: 4px 6px; border-width: 2px; }
    .mdr-outline .mdr-outline-content { gap: 6px; }
    .mdr-spark { display: none; }
    .mdr-outline-play .mdr-play { width: 46px; height: 46px; }
    .mdr-outline-play .mdr-play svg { width: 23px; height: 23px; }
    .mdr-outline-copy strong { font-size: clamp(15px, 4.5vw, 24px); }
    .mdr-outline-copy small { margin-top: 3px; font-size: clamp(9px, 2.7vw, 14px); }
    .mdr-outline-bars { height: 32px; gap: 3px; }
    .mdr-outline-bars i { width: 6px; }
    .mdr-outline-cta { flex-basis: 88px; height: 46px; gap: 5px; font-size: 14px; }
    .mdr-outline-cta b { font-size: 30px; }
    #md-radio.mdr-outline[data-theme="muzdorojka"] ~ .header { top: 76px; }
}
.mdr-notes { height: 100px; padding: 10px 18px; background: #f9fbff; }
.mdr-strip.mdr-notes .mdr-link {
    height: 80px;
    max-width: 1200px;
    padding: 6px 10px;
    border: 1px solid #f0f4fb;
    border-radius: 999px;
    background: linear-gradient(105deg, #fff, #fbfdff);
    box-shadow: 0 9px 25px #3150801f;
    color: #11145f;
}
.mdr-notes .mdr-link:hover, .mdr-notes .mdr-link:visited { color: #11145f; }
.mdr-notes .mdr-link > span:not(.mdr-notes-content) { display: none; }
.mdr-notes .mdr-notes-content { display: flex; align-items: center; gap: 24px; width: 100%; height: 100%; min-width: 0; }
.mdr-notes-art { position: relative; flex: 0 0 190px; height: 64px; overflow: hidden; }
.mdr-notes-art i { position: absolute; z-index: 2; font: 800 49px/1 Arial, sans-serif; font-style: normal; filter: drop-shadow(0 5px 7px #8a68d42b); }
.mdr-notes-art i:nth-child(1) { left: 12px; bottom: 3px; color: #e2099c; transform: rotate(-9deg); }
.mdr-notes-art i:nth-child(2) { left: 92px; top: -3px; color: #ffad22; transform: rotate(8deg); }
.mdr-notes-art i:nth-child(3) { right: 4px; bottom: 1px; color: #17afe8; transform: rotate(10deg); }
.mdr-notes-art b { position: absolute; z-index: 2; width: 12px; height: 12px; border-radius: 50%; }
.mdr-notes-art b:nth-of-type(1) { left: 70px; top: 7px; background: #ee73d4; }
.mdr-notes-art b:nth-of-type(2) { left: 71px; bottom: 5px; background: #76cff2; }
.mdr-notes-art b:nth-of-type(3) { left: 125px; bottom: 2px; background: #96dc62; }
.mdr-notes-art::before, .mdr-notes-art::after { content: ""; position: absolute; left: 18px; width: 125px; height: 42px; border-bottom: 8px solid #ebddfb; border-radius: 50%; transform: rotate(-8deg); opacity: .65; }
.mdr-notes-art::before { bottom: 9px; }
.mdr-notes-art::after { bottom: 0; left: 42px; width: 105px; border-color: #def3ff; }
.mdr-notes-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-right: auto; }
.mdr-notes-copy strong { color: #11145f; font-size: clamp(25px, 3vw, 40px); font-weight: 800; line-height: 1; white-space: nowrap; }
.mdr-notes-copy small { margin-top: 5px; color: #657199; font-size: clamp(15px, 1.8vw, 24px); line-height: 1; white-space: nowrap; }
.mdr-notes-bars { align-items: flex-end; height: 46px; gap: 7px; }
.mdr-notes-bars i { width: 14px; border-radius: 8px; background: linear-gradient(#f63bc9, #c910ae); transform: scaleY(.75); }
.mdr-notes-bars i:nth-child(2) { background: linear-gradient(#31daf2, #1399ec); transform: scaleY(.6); }
.mdr-notes-bars i:nth-child(3) { background: linear-gradient(#a4e954, #45c458); transform: scaleY(.42); }
.mdr-notes-cta { display: flex; align-items: center; justify-content: center; gap: 20px; flex: 0 0 290px; height: 62px; border-radius: 999px; background: linear-gradient(115deg, #6134f0, #c416c0 48%, #ed008b); box-shadow: inset 0 4px 7px #ffffff45, 0 9px 19px #aa16b44a; color: #fff; font-size: 28px; font-weight: 800; }
.mdr-notes-cta b { font: 400 52px/1 Arial, sans-serif; transform: translateY(-2px); }
#md-radio.mdr-notes[data-theme="muzdorojka"] ~ .header { top: 100px; }
@media (max-width: 640px) {
    .mdr-notes { height: 76px; padding: 6px; }
    .mdr-strip.mdr-notes .mdr-link { height: 64px; padding: 4px 6px; }
    .mdr-notes .mdr-notes-content { gap: 6px; }
    .mdr-notes-art { flex-basis: 55px; height: 48px; }
    .mdr-notes-art i { font-size: 29px; }
    .mdr-notes-art i:nth-child(1) { left: 1px; }
    .mdr-notes-art i:nth-child(2) { left: 20px; top: -1px; }
    .mdr-notes-art i:nth-child(3) { right: 0; }
    .mdr-notes-art b, .mdr-notes-art::before, .mdr-notes-art::after { display: none; }
    .mdr-notes-copy strong { font-size: clamp(15px, 4.5vw, 24px); }
    .mdr-notes-copy small { margin-top: 3px; font-size: clamp(9px, 2.7vw, 14px); }
    .mdr-notes-bars { height: 32px; gap: 3px; }
    .mdr-notes-bars i { width: 6px; }
    .mdr-notes-cta { flex-basis: 88px; height: 46px; gap: 5px; font-size: 14px; }
    .mdr-notes-cta b { font-size: 30px; }
    #md-radio.mdr-notes[data-theme="muzdorojka"] ~ .header { top: 76px; }
}
@media (prefers-reduced-motion: reduce) {
    .mdr-strip .mdr-ticker-track { animation: none; }
    .mdr-strip .mdr-play, .mdr-strip .mdr-bars i, .mdr-strip .mdr-live { animation: none; }
}
