/* Radion v13 — approved mobile direction, sharing the existing player/catalog engine. */
.r13-top-favorites,
.r13-mobile-dock,
.r13-recent { display: none; }

@media (max-width: 980px) {
  body {
    --r13-bg: #080e19;
    --r13-muted: #a5acc4;
    --r13-line: rgba(131, 156, 191, .23);
    --r13-coral: #ff715f;
    --r92-coral: #ff715f;
    --r92-purple: #a278cf;
    background: var(--r13-bg);
    padding-bottom: 0;
  }
  #root .site-shell {
    min-height: 100svh;
    padding-bottom: calc(155px + env(safe-area-inset-bottom));
    background: radial-gradient(ellipse at 100% 3%, #24122d40, transparent 520px), var(--r13-bg);
  }
  #root .site-shell::before { display: none; }
  #root .topbar {
    z-index: 30;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center;
    width: 100%;
    height: 64px;
    gap: 7px;
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  #root .topbar > .brand {
    grid-area: 1 / 1;
    width: max-content;
    justify-self: start;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    font-size: 28px;
    text-align: left;
    letter-spacing: -.055em;
  }
  #root .brand-mark { margin-left: 3px; }
  #root .brand-mark i { background: #ff7564; box-shadow: none; }
  #root .topbar > .mobile-search { grid-area: 1 / 2; }
  #root .topbar > .r13-top-favorites { grid-area: 1 / 3; }
  #root .topbar .mobile-search,
  #root .r13-top-favorites {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #8e99c03b;
    border-radius: 50%;
    color: #bac1df;
    background: #13182780;
    cursor: pointer;
  }
  #root .mobile-search svg,
  #root .r13-top-favorites svg { width: 23px; height: 23px; }
  #root .r13-top-favorites.is-active { color: #ff8978; }
  #root .r92-mobile-status { display: none; }
  #root .r92-mobile-deck {
    position: relative;
    z-index: 2;
    display: block;
    width: min(calc(100% - 32px), 720px);
    margin: 0 auto;
    padding: 0;
  }
  .r13-flow {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    margin: 0 0 12px;
    padding: 12px;
    border: 1px solid #9786c44d;
    border-radius: 19px;
    background: linear-gradient(90deg, #080d1980, transparent 65%), url('/assets/radion-flow-hero-v8.webp') 61% center / cover no-repeat;
    box-shadow: inset 0 1px #ffffff05;
  }
  .r13-flow h1 {
    position: relative;
    margin: 0;
    color: #fff9f6;
    font-size: 34px;
    font-weight: 780;
    line-height: .94;
    letter-spacing: -.045em;
    text-shadow: 0 2px 18px #08091b66;
  }
  .r13-flow h1 em { display: block; color: #ff997d; font-style: normal; }
  .r13-flow > p { margin: 5px 0 9px; color: #c1bdd4; font-size: 11px; line-height: 1.4; text-shadow: 0 1px 8px #070b19; }
  .r13-flow > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 15px 0 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #ff6d5c;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }
  .r13-flow > button svg { width: 18px; height: 18px; }
  .r92-mobile-search-field {
    height: 46px;
    gap: 11px;
    padding: 0 16px;
    border: 1px solid #69a5bb70;
    border-radius: 16px;
    background: #0b1725b3;
    box-shadow: none;
  }
  .r92-mobile-search-field svg { color: #a5adce; }
  .r92-mobile-search-field input { min-width: 0; color: #f3f1fa; font-size: 16px; letter-spacing: -.02em; }
  .r92-mobile-search-field input::placeholder { color: #8794ae; }
  .r92-mobile-search-field:focus-within { border-color: #ff9b83; box-shadow: 0 0 0 2px #ff756415; }
  .r13-moods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
  .r13-moods button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--r13-line);
    border-radius: 13px;
    color: #c0c5df;
    background: linear-gradient(120deg, #181826, #0b1522);
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
  }
  .r13-moods svg { flex-shrink: 0; width: 22px; height: 22px; color: #ff8272; }
  .r13-moods button.is-active { border-color: #ff8b7366; background: #ff705c12; color: #fff2ee; }
  .r13-zapping { margin-top: 10px; overflow: hidden; border: 1px solid #ff92752b; border-radius: 13px; background: #23191e55; }
  .r13-zapping > summary {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 8px 12px;
    list-style: none;
    cursor: pointer;
    user-select: none;
  }
  .r13-zapping > summary::-webkit-details-marker { display: none; }
  .r13-zapping > summary svg { flex-shrink: 0; width: 19px; height: 19px; color: #ff9b83; }
  .r13-zapping > summary strong { color: #f6d5cc; font-size: 12px; font-weight: 650; }
  .r13-zapping > summary span { margin-left: auto; color: #a799a9; font-size: 10px; }
  .r13-zapping > summary b { color: #bca9b5; font-size: 15px; font-weight: 400; }
  .r13-zapping[open] > summary b { transform: rotate(180deg); }
  .r13-zapping.is-active { border-color: #ff8b7366; }
  .r13-zapping.is-active > summary { background: #ff826a0b; }
  .r13-zap-body { padding: 0 12px 13px; border-top: 1px solid #ff92751c; }
  .r13-zap-body > p { margin: 10px 0 12px; color: #b3a6b7; font-size: 11px; line-height: 1.5; }
  .r13-zap-controls { display: flex; align-items: stretch; gap: 7px; }
  .r13-zap-controls label { flex: 1; min-width: 0; padding: 4px 9px; border: 1px solid #9d8fbb38; border-radius: 9px; color: #a59bad; background: #101522; font-size: 9px; }
  .r13-zap-controls select { display: block; width: 100%; height: 26px; padding: 0; border: 0; color: #e7dfec; background: #101522; font: inherit; font-size: 12px; }
  .r13-zap-controls button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; border: 0; border-radius: 9px; color: #fff6ef; background: #e66856; font-size: 11px; font-weight: 650; cursor: pointer; }
  .r13-zap-controls button svg { width: 18px; height: 18px; }
  .r13-zap-controls [data-r13-zap-next] { width: 44px; padding: 0; color: #ffb099; border: 1px solid #ff927548; background: #39232c; }
  .r13-zap-status { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin: 11px 0 8px; color: #b9a9be; font-size: 10px; }
  .r13-zap-status > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .r13-zap-status > strong { flex-shrink: 0; color: #ffb49f; font-variant-numeric: tabular-nums; font-size: 11px; }
  .r13-zap-progress { height: 3px; overflow: hidden; border-radius: 9px; background: #92859a29; }
  .r13-zap-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #ff8b71; transition: width .15s linear; }

  #root .stations-section { width: min(calc(100% - 32px), 720px); margin: 0 auto; padding: 10px 0 35px; scroll-margin-top: 16px; }
  #root .stations-section .section-heading,
  #root .stations-section .browse-panel,
  #root .stations-section .results-meta { display: none; }
  .r92-mobile-stations-head { display: block; margin: 0 0 8px; }
  .r13-stations-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .r92-mobile-stations-head h2 { margin: 0; color: #f6f4fa; font-size: 21px; font-weight: 740; letter-spacing: -.04em; }
  .r13-category-label { min-width: 0; max-width: 118px; }
  .r13-category-label select { width: 100%; height: 34px; padding: 0 0 0 4px; border: 0; color: #aaaac5; background: var(--r13-bg); font: inherit; font-size: 11px; cursor: pointer; }
  .r13-scopes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; border-bottom: 1px solid #758fa52e; }
  .r13-scopes button { position: relative; min-width: 0; min-height: 36px; padding: 0 3px 5px; border: 0; color: #a6aecb; background: transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
  .r13-scopes button.is-active { color: #ff8a76; }
  .r13-scopes button.is-active::after { content: ''; position: absolute; inset: auto 7px -1px; height: 2px; border-radius: 9px; background: #ff7865; }

  #root .station-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #root .station-card,
  body.r92-player-empty #root .station-card.is-selected { min-height: 0; border: 1px solid #7293b047; border-radius: 16px; background: #0e1522; box-shadow: none; }
  #root .station-card .station-card__main,
  body:not(.r92-player-empty) #root .station-card.is-selected .station-card__main { position: relative; display: block; width: 100%; height: 108px; min-height: 0; padding: 0; overflow: hidden; border-radius: inherit; }
  #root .station-card .station-card__art-wrap { position: absolute; inset: 0; border-radius: inherit; }
  #root .station-card .station-art--small,
  #root .station-card .station-art--small.has-logo,
  #root .station-card .station-art--small[data-r92-visual] { width: 100%; height: 100%; border-radius: inherit; background: #101522 url('/assets/radion-card-arcs-v13.svg') right bottom / cover no-repeat; box-shadow: none; }
  #root .station-card .station-art--small::before,
  #root .station-card .station-art--small::after,
  #root .station-card .station-art--small .art-orbit,
  #root .station-card .station-art--small .art-grain,
  #root .station-card .r92-station-wordmark { display: none; }
  #root .station-card .station-card__info,
  body:not(.r92-player-empty) #root .station-card.is-selected .station-card__info { position: absolute; z-index: 4; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; min-height: 0; padding: 18px 38px 12px 13px; background: transparent; text-align: left; }
  #root .station-card .station-card__title { display: block; width: 100%; min-width: 0; }
  #root .station-card .station-card__title h3,
  body:not(.r92-player-empty) #root .station-card.is-selected .station-card__title h3 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; width: 100%; color: #f9f8fc; font-size: clamp(18px, 5.3vw, 24px); font-weight: 750; line-height: 1.1; letter-spacing: -.035em; white-space: normal; overflow-wrap: anywhere; text-shadow: none; }
  #root .station-card .station-card__title::after,
  #root .station-card .station-card__info > p,
  #root .station-card .equalizer,
  #root .station-card .catalog-badge,
  #root .station-card .card-share,
  #root .station-card .r92-mobile-card-controls,
  body:not(.r92-player-empty) #root .station-card.is-selected .r92-mobile-card-controls { display: none; }
  #root .station-card .station-card__tags { display: block; flex-shrink: 0; width: 100%; overflow: hidden; margin: 7px 0 0; }
  #root .station-card .station-card__tags > span { display: none; }
  #root .station-card .station-card__tags > span:first-child { display: block; overflow: hidden; width: 100%; padding: 0; border: 0; color: #a9b0ca; background: transparent; font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
  #root .station-card .card-tools,
  body:not(.r92-player-empty) #root .station-card.is-selected .card-tools { top: 1px; right: 1px; left: auto; transform: none; gap: 0; }
  #root .station-card .card-heart { width: 40px; height: 44px; border: 0; color: #b4bdd9; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  #root .station-card .card-heart.is-favorite { color: #ff9783; }
  #root .station-card .card-play,
  body:not(.r92-player-empty) #root .station-card.is-selected .card-play { z-index: 5; display: grid; top: auto; right: 11px; bottom: 11px; width: 36px; height: 36px; border: 0; color: #fff8f2; background: #ff735f; box-shadow: none; opacity: 1; transform: none; }
  #root .station-card .card-play svg { width: 17px; height: 17px; }
  body:not(.r92-player-empty) #root .station-card.is-selected { border-color: #ff8c7399; box-shadow: 0 0 0 1px #ff8b7318; }
  #root .load-more-wrap { padding-top: 19px; }
  #root .load-more { min-height: 46px; border-color: var(--r13-line); color: #bac1d4; background: #121b29; font-size: 11px; }
  #root .load-more span { color: #ffe4dd; background: #984d49; }
  #root .empty-state { padding: 28px 15px; border-color: var(--r13-line); background: #111928; }
  .r13-recent { display: block; margin-top: 28px; }
  .r13-recent[hidden] { display: none; }
  .r13-recent h2 { margin: 0 0 12px; color: #dedeee; font-size: 17px; }
  .r13-recent > div { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
  .r13-recent button { display: flex; align-items: center; gap: 7px; flex: 1 0 105px; min-height: 50px; padding: 8px; border: 1px solid var(--r13-line); border-radius: 11px; color: #c5c9db; background: #111827; font-size: 11px; text-align: left; cursor: pointer; }
  .r13-recent svg { flex-shrink: 0; width: 19px; height: 19px; color: #c27e80; }
  .r13-recent button span { overflow-wrap: anywhere; }

  #root .mini-player { display: none !important; }
  .r13-mobile-dock { position: fixed; z-index: 80; right: 0; bottom: calc(65px + env(safe-area-inset-bottom)); left: 0; display: block; width: 100%; margin: auto; border-top: 1px solid #8194b53d; border-bottom: 1px solid #8194b529; color: #f5f4f8; background: #0c1523f5; box-shadow: 0 -6px 24px #04081333; backdrop-filter: blur(20px); }
  .r13-dock-main { display: flex; align-items: center; gap: 4px; width: min(100%, 752px); height: 72px; margin: 0 auto; padding: 8px 12px; }
  .r13-dock-meta { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; height: 54px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
  .r13-dock-art { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 44px; border-radius: 11px; color: #aeb4cf; background: linear-gradient(135deg, #292335, #141c2b); }
  .r13-dock-art svg { width: 25px; height: 25px; }
  .r13-dock-copy { min-width: 0; }
  .r13-dock-copy strong { display: block; overflow: hidden; color: #f3f2fa; font-size: 13px; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
  .r13-dock-copy small { display: block; overflow: hidden; color: #8e9bb3; font-size: 10px; line-height: 1.6; text-overflow: ellipsis; white-space: nowrap; }
  .r13-dock-controls { display: flex; align-items: center; gap: 1px; }
  .r13-dock-controls button { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; border-radius: 50%; color: #d3d5e9; background: transparent; cursor: pointer; }
  .r13-dock-controls svg { width: 22px; height: 22px; }
  .r13-dock-controls .r13-dock-play { width: 44px; height: 44px; color: #fff9f4; background: #ed705f; }
  .r13-dock-controls button:disabled { color: #6c7590; cursor: default; }
  .r13-dock-controls .r13-dock-play:disabled { background: #252d41; }
  .r13-dock-meta:disabled { cursor: default; opacity: 1; }
  .r13-mobile-dock.is-playing .r13-dock-art { color: #ff9d85; }
  .r13-mobile-dock.is-playing .r13-dock-copy small::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 5px 1px 0; border-radius: 50%; background: #67c7a1; }
  .r13-mobile-dock.has-error .r13-dock-copy small { color: #ff998b; }
  .r13-dock-zap { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 752px); min-height: 36px; margin: 0 auto; padding: 0 13px; border-bottom: 1px solid #ff9a741f; background: #38202b60; }
  .r13-dock-zap > span { display: inline-flex; align-items: center; gap: 6px; color: #dab4b0; font-size: 11px; }
  .r13-dock-zap svg { width: 15px; height: 15px; color: #ff9b83; }
  .r13-dock-zap b { font-size: 11px; font-variant-numeric: tabular-nums; }
  .r13-dock-zap button { min-height: 36px; padding: 0 10px; border: 0; color: #ffb9a4; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
  .r13-dock-zap[hidden], [data-r13-zap-next][hidden] { display: none !important; }
  body.r13-zapping-active #root .site-shell { padding-bottom: calc(195px + env(safe-area-inset-bottom)); }

  .r92-mobile-nav { z-index: 85; height: calc(65px + env(safe-area-inset-bottom)); padding: 5px max(9px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); border-top: 0; background: #08111eef; box-shadow: none; backdrop-filter: blur(20px); }
  .r92-mobile-nav button { min-height: 50px; gap: 5px; color: #8490ac; border-radius: 10px; }
  .r92-mobile-nav button span { display: block; width: 23px; height: 23px; }
  .r92-mobile-nav button svg { display: block; width: 100%; height: 100%; }
  .r92-mobile-nav button b { font-size: 10px; font-weight: 550; }
  .r92-mobile-nav button.is-active { color: #ff8c79; background: transparent; }
  .r92-player-sheet { background: radial-gradient(ellipse at 70% 0, #59295745, transparent 55%), #091120; }
  .r92-sheet-controls .r92-sheet-play { color: #fff9f3; background: #ff7661; }
  .r92-sheet-wave i { background: linear-gradient(#9271b9, #ff8a70); }
  .r92-sheet-copy .r13-sheet-error { margin: 14px 0 0; color: #ffa395; font-size: 12px; line-height: 1.6; }
  #root footer { padding: 20px 16px 10px; }
  #root button:focus-visible, #root summary:focus-visible, .r13-mobile-dock button:focus-visible, .r92-mobile-nav button:focus-visible { outline: 2px solid #ffb497; outline-offset: 3px; }
}

@media (min-width: 600px) and (max-width: 980px) {
  .r13-flow { min-height: 248px; padding: 31px; background-position: center; }
  .r13-flow h1 { font-size: 58px; }
  .r13-flow > p { font-size: 15px; margin-block: 14px; }
  .r13-flow > button { height: 44px; font-size: 14px; }
  .r13-moods button { min-height: 58px; font-size: 14px; }
  .r13-zapping > summary { min-height: 50px; }
  .r13-zapping > summary strong { font-size: 14px; }
  .r13-zapping > summary span { font-size: 12px; }
  #root .station-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  #root .station-card .station-card__main,
  body:not(.r92-player-empty) #root .station-card.is-selected .station-card__main { height: 155px; }
  .r13-scopes button { font-size: 14px; }
}

@media (max-width: 355px) {
  #root .topbar { height: 64px; gap: 5px; }
  #root .topbar > .brand { font-size: 26px; }
  .r13-flow { min-height: 154px; padding: 12px; }
  .r13-flow h1 { font-size: 32px; }
  .r13-flow > p { font-size: 11px; }
  .r13-flow > button { min-height: 38px; font-size: 11px; }
  .r13-moods { gap: 6px; }
  .r13-moods button { gap: 5px; font-size: 11px; }
  .r13-moods svg { width: 20px; height: 20px; }
  .r13-zapping > summary { gap: 7px; padding-inline: 9px; }
  .r13-zapping > summary span { font-size: 9px; }
  .r92-mobile-stations-head h2 { font-size: 19px; }
  .r13-category-label { max-width: 90px; }
  #root .station-card .station-card__info,
  body:not(.r92-player-empty) #root .station-card.is-selected .station-card__info { padding-left: 11px; padding-right: 34px; }
  #root .station-card .station-card__title h3,
  body:not(.r92-player-empty) #root .station-card.is-selected .station-card__title h3 { font-size: 16px; }
  .r13-dock-main { padding-inline: 9px; }
  .r13-dock-meta { gap: 7px; }
  .r13-dock-art { width: 33px; height: 40px; }
  .r13-dock-copy strong { font-size: 12px; }
  .r13-dock-copy small { font-size: 9px; }
  .r13-dock-controls button { width: 33px; }
  .r13-dock-controls .r13-dock-play { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .r13-zap-progress i { transition: none; }
}
