/* Phone-only additions. Existing desktop/tablet styles remain untouched. */
.mobile-dock, .floating-menu, .hero-flag, .player-side-air, .player-side-hint, .desktop-navigation { display: none; }
@media screen and (max-width:760px) {
  /* Keep root overscroll native: pull-to-refresh must remain available. */
  body.has-mobile-dock:has(.portal-main--projects) { background:#f7fbfd; }
  body.has-mobile-dock:has(.portal-main--article,.portal-main--exclusive) { background:#fff; }
  .header { flex-wrap: nowrap; gap: 12px; }
  .header .header-links, .header .live-button { display: none; }
  .header .header-actions { flex-shrink: 0; margin-left: auto; gap: 8px; }
  .header .icon-button { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
  .header .icon-button svg { width: 21px; height: 21px; min-width: 21px; }
  .hero .city-cta { display: none; }
  .hero .hero-message { --hero-copy-height: clamp(79.2px,18.612cqw,110.88px); padding-bottom: 0; bottom: min(max(142px,calc(100% - 100svh + 96px + env(safe-area-inset-bottom,0px))),calc(100% - 456px - var(--hero-copy-height) - 17px)); }
  .hero .hero-message { translate: 0 var(--hero-message-shift,0px); }
  .hero .hero-message.is-scroll-shifting { will-change: translate; }
  .hero .hero-flag { display: flex; gap: 4px; margin-top: 14px; }
  .hero .hero-flag i { display: block; width: 34px; height: 3px; border-radius: 2px; background: #2a82ff; box-shadow: 0 0 5px #217aff40; }
  .hero .hero-flag i + i { background: #f6d544; box-shadow: 0 0 5px #e8c94730; }
  .hero #hero-title {
    color: #f6fbff;
    background: linear-gradient(180deg,#fff 12%,#f1faff 48%,#a9d5f1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: .3px #173b5b66;
    filter: drop-shadow(0 2px 2px #001c35b3) drop-shadow(0 0 10px #65bfff66);
  }
  body.has-mobile-dock { padding-bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
  html.has-mobile-dock { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
  body.has-mobile-dock .toast { bottom: calc(76px + env(safe-area-inset-bottom,0px)); }
  .mobile-dock {
    --dock-ink: #b8d6e9;
    display: block;
    position: fixed;
    z-index: 40;
    left: 50%;
    bottom: calc(10px + env(safe-area-inset-bottom,0px));
    width: calc(100% - 24px);
    max-width: 500px;
    height: 56px;
    transform: translateX(-50%);
    color: var(--dock-ink);
    isolation: isolate;
  }
  .mobile-dock-panel {
    height: 100%;
    border: 1px solid #9cd1ef40;
    border-radius: 30px;
    background: linear-gradient(180deg,#244964f5,#092a42fa 45%,#0d304cfa);
    box-shadow: inset 0 1px 2px #c3eaff26,0 5px 18px #03162e55,0 0 8px #57baff20;
  }
  .mobile-dock-actions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); height: 100%; list-style: none; margin: 0; padding: 4px; }
  .mobile-dock-actions > li { position: relative; min-width: 0; }
  .mobile-dock-action {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 0 1px;
    border: 0;
    border-radius: 14px;
    background: none;
    color: var(--dock-ink);
    text-align: center;
    touch-action: manipulation;
    transition: color .14s;
  }
  .mobile-dock-action::before {
    content: '';
    position: absolute;
    inset: 2px 0;
    border: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 50%,#70c9f04d,transparent 78%),linear-gradient(100deg,transparent,#52a0c927,transparent);
    box-shadow: 0 0 12px #69caff30;
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s;
  }
  .mobile-dock-action.is-selected { color: #f6fcff; }
  .mobile-dock-action.is-selected::before, .mobile-dock-action:active::before { opacity: 1; }
  .mobile-dock-action:focus-visible {   color: #fff; }
  .mobile-dock-action:focus-visible::before { opacity: 1; }
  .mobile-dock-symbol { position: relative; display: grid; place-items: center; width: 26px; height: 24px; flex-shrink: 0; transition: transform .12s; }
  .mobile-dock-symbol > svg { display: block; width: 21px; height: 21px; }
  .mobile-dock-action:active .mobile-dock-symbol { transform: scale(.9); }
  .mobile-dock-action.is-selected .mobile-dock-symbol { filter: drop-shadow(0 0 4px #71c8ff99); }
  .mobile-dock-label { position: relative; display: block; color: inherit; font-family: Arial,sans-serif; font-size: clamp(9px,2.55vw,11px); line-height: 13px; white-space: nowrap; }
  .mobile-dock-action.is-selected .mobile-dock-label { font-weight: 700; }
  .mobile-dock-disc { width: 26px; height: 24px; border: 0; background: none; color: #e7f7ff; }
  .mobile-dock-disc > svg { width: 18px; height: 18px; }
  .mobile-dock-disc .mobile-dock-pause-icon { display: none; }
  .is-playing .mobile-dock-disc .mobile-dock-play-icon { display: none; }
  .is-playing .mobile-dock-disc .mobile-dock-pause-icon { display: block; }
  .is-playing .mobile-dock-disc { color: #a7e5ff; filter: drop-shadow(0 0 4px #75cfff88); }
  .is-loading .mobile-dock-disc::after { content: ''; position: absolute; inset: -3px; border: 1.5px solid transparent; border-top-color: #d0f5ff; border-right-color: #76cfff; border-radius: 50%; animation: mobile-dock-connect .9s linear infinite; }
  .mobile-dock[data-background] .mobile-dock-disc::after { animation-play-state: paused; }

  .floating-menu { display: flex; align-items: center; gap: 8px; position: fixed; z-index: 42; top: calc(10px + env(safe-area-inset-top,0px)); right: calc(12px + env(safe-area-inset-right,0px)); height: 44px; padding: 0 13px; border-radius: 24px; border: 1px solid #9ec7dc33; background: #0a2e43f2; color: #e8f5ff; font-size: 12px; box-shadow: 0 4px 14px #00182930; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s,transform .18s,visibility .18s; }
  .floating-menu svg { width: 20px; height: 20px; }
  .floating-menu.is-visible { opacity: 1; visibility: visible; transform: none; }
  .floating-menu.is-bottom { top:auto; bottom:calc(78px + env(safe-area-inset-bottom,0px)); }
  body.has-lowered-mobile-menu .header #menu-toggle { visibility:hidden; pointer-events:none; }
  .floating-menu:active { background: #245d76; }
  .dialog-open .floating-menu { opacity: 0; visibility: hidden; }
  #radio-player { display: flex; position: fixed; z-index: 45; top: 50%; right: calc(8px + env(safe-area-inset-right,0px)); left: auto; bottom: auto; width: 58px; max-width: 58px; flex-direction: column; justify-content: center; gap: 8px; padding: 10px 6px; border-radius: 25px; border: 1px solid #b3dce633; background: linear-gradient(180deg,#143c55f7,#06283df7); box-shadow: 0 5px 20px #031b3540,0 0 10px #80caf51a; transform: translate3d(var(--player-slide,0px),-50%,0); transition: transform .18s ease,opacity .18s; animation: none; touch-action: pan-y; }
  #radio-player.is-dragging { transition: none; }
  #radio-player .player-station { min-width: 0; gap: 0; justify-content: center; }
  #radio-player .player-station img { width: 26px; height: 26px; }
  #radio-player .player-station > div { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  #radio-player .volume-control { display: none; }
  #radio-player .player-toggle { width: 44px; height: 44px; min-width: 44px; flex-shrink: 0; color: #e4f4ff; background: #528fba3b; box-shadow: 0 0 9px #66c2f02b; }
  #radio-player .player-toggle:active { background: #5aadd672; }
  #radio-player .player-close { display: grid; place-items: center; width: 44px; height: 44px; font-size: 25px; background: none; color: #cbe3ef; opacity: .8; }
  #radio-player .player-side-air { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 8px; letter-spacing: .08em; color: #b7d9e9; }
  #radio-player .player-side-air span { display: flex; align-items: center; height: 9px; gap: 2px; }
  #radio-player .player-side-air i { display: block; width: 2px; height: 5px; border-radius: 2px; background: #9de2ff; }
  .is-playing #radio-player .player-side-air i { animation: mobile-radio-wave .65s ease-in-out infinite alternate; }
  .is-playing #radio-player .player-side-air i:nth-child(2) { animation-delay: -.23s; }
  .is-playing #radio-player .player-side-air i:nth-child(3) { animation-delay: -.44s; }
  .is-loading #radio-player .player-toggle { opacity: .65; }
  #radio-player .player-side-hint { display: none; }
  .is-background #radio-player .player-side-air i { animation-play-state: paused; }
  .is-page-loading .site-frame { cursor: progress; }
}
@media screen and (max-width:760px) and (hover:hover) {
  .mobile-dock-action:hover { color: #fff; }
  .mobile-dock-action:hover::before { opacity: .55; }
  .mobile-dock-action.is-selected:hover::before { opacity: 1; }
}
@keyframes mobile-radio-wave { to { transform: scaleY(.35); } }
@keyframes mobile-dock-connect { to { transform: rotate(360deg); } }
@media screen and (max-width:760px) and (prefers-reduced-motion:reduce) {
  .mobile-dock *, .mobile-dock *::before, .mobile-dock *::after, .floating-menu, #radio-player, #radio-player * { transition: none !important; animation: none !important; }
}

/* One desktop shortcut to the existing global dialog; no second menu state. */
@media screen and (min-width:1201px) {
 .desktop-navigation { position:fixed; z-index:35; right:26px; bottom:26px; display:inline-flex; align-items:center; gap:12px; min-height:56px; padding:9px 20px 9px 10px; border:1px solid #88bdd03b; border-radius:20px; isolation:isolate; color:#f3fbff; background:#073548; box-shadow:0 8px 28px #00324b33,inset 0 1px 0 #c7e8f52b; font:600 11px/1.4 var(--display); letter-spacing:.015em; transition:background .2s,box-shadow .2s; }
 .desktop-navigation::before { content:''; position:absolute; z-index:-1; inset:-5px; border-radius:24px; box-shadow:0 0 20px 5px #6dbbd270,0 0 34px 9px #82c8de35; pointer-events:none; animation:desktop-navigation-pulse 4.6s ease-in-out infinite; }
 .desktop-navigation-icon { width:36px; height:36px; display:grid; place-items:center; border-radius:11px; background:#86bed022; color:#bce5f3; }
 .desktop-navigation-icon svg { width:22px; height:22px; }
 .desktop-navigation:hover { background:#154e64; box-shadow:0 8px 28px #00324b45,0 0 22px #8dcee34d; }
 .desktop-navigation:active { background:#205e76; }
 .dialog-open .desktop-navigation { visibility:hidden; pointer-events:none; }
 .dialog-open .desktop-navigation::before { animation-play-state:paused; }
 .desktop-navigation.is-pulse-paused::before { animation-play-state:paused; }
}
@keyframes desktop-navigation-pulse { 0%,100% { opacity:.4; transform:scale(.98); } 50% { opacity:.85; transform:scale(1.035); } }
@media (prefers-reduced-motion:reduce) { .desktop-navigation::before { animation:none; opacity:.6; } .desktop-navigation { transition:none; } }
@media print { .desktop-navigation { display:none!important; } }

/* A shared overlay must never become relative inside a page component. */
body > #radio-player{position:fixed;z-index:45}
