.mdr-brand, .mdr-ticker-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; }
}
@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; }
}
