#radio-screen { isolation: isolate; }
#radio-screen [hidden] { display: none !important; }
#radio-screen :is(button,input,textarea) { font: inherit; }
#radio-screen button { min-height: 44px; }
#radio-screen :is(button,textarea,input):focus-visible { outline: 2px solid var(--pink); outline-offset: -2px; }
#radio-screen .icon { width: 22px; height: 22px; }
.radio-main { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.radio-nav { padding-left: 14px; padding-right: 22px; }
.radio-nav h1 { font-size: 18px; line-height: 1.4; margin: 0; }
.radio-nav > span { display: flex; color: var(--green); }
.radio-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; color: var(--white); background: transparent; border-radius: 6px; }
.radio-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; overflow-wrap: anywhere; padding: 0 20px 14px; }
.radio-stage { aspect-ratio: 3 / 2; width: 100%; position: relative; overflow: hidden; background: #d5d6d6; }
.radio-host { display: block; width: 100%; height: 100%; object-fit: contain; }
#radio-talk-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.radio-speech { position: absolute; left: 72%; right: 3%; top: 38%; height: 62px; pointer-events: none; }
.radio-speech > span { position: absolute; top: 0; right: 0; width: 100%; padding: 8px 5px; border: 1px solid #39303a; border-radius: 8px; background: #f9edf3; color: #352332; font-size: 11px; font-weight: 650; line-height: 1.5; text-align: center; box-shadow: 2px 3px 0 #27212828; opacity: 0; transform-origin: left bottom; animation: radio-speech-pop 12s ease-in-out infinite; }
.radio-speech > span::after { content: ''; position: absolute; left: -7px; bottom: 8px; width: 8px; height: 10px; background: #f9edf3; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.radio-speech > span:nth-child(2) { animation-delay: 4s; }
.radio-speech > span:nth-child(3) { animation-delay: 8s; }
@keyframes radio-speech-pop {
  0%, 33%, 100% { opacity: 0; transform: translate(-3px, 7px) scale(.88); }
  4%, 23% { opacity: 1; transform: translate(0, 0) scale(1); }
  29% { opacity: 0; transform: translate(1px, -9px) scale(.98); }
}
#radio-main[inert] .radio-stage * { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .radio-speech > span { display: none; }
  .radio-speech > span:first-child { display: block; opacity: 1; transform: none; }
}
.radio-station { position: absolute; bottom: 10px; left: 10px; font-size: 10px; line-height: 1.6; font-weight: 850; color: #24262b; pointer-events: none; }
.radio-station b { font-weight: 500; }
.radio-studio-light { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 6px; background: #27292d; border: 1px solid #5b5d60; border-radius: 3px; color: #f5e8e8; font-size: 8px; font-weight: 700; line-height: 1.25; pointer-events: none; }
.radio-studio-light i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #ff6b75; box-shadow: 0 0 5px #ff6b7580; animation: radio-studio-glow 2.8s ease-in-out infinite; }
.radio-profile { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 0 10px; }
.radio-profile > div { min-width: 0; }
.radio-profile h2 { margin: 0 0 6px; font-size: 21px; line-height: 1.4; }
.radio-profile p { display: flex; gap: 4px; align-items: center; font-size: 11px; line-height: 1.6; color: var(--muted); margin: 0; }
#radio-screen .radio-profile .icon { width: 12px; height: 14px; }
.radio-profile > span { flex: 0 0 auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.radio-profile b { color: var(--green); font-size: 23px; font-weight: 800; }
.radio-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); position: sticky; top: 0; background: var(--black); z-index: 2; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.radio-filters button { background: none; padding: 8px 4px; color: var(--muted); font-size: 13px; border-bottom: 2px solid transparent; }
.radio-filters button[aria-pressed="true"] { color: var(--green); border-color: var(--green); font-weight: 700; }
.radio-list { display: grid; gap: 12px; }
.radio-entry { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.radio-entry-open { display: block; width: 100%; padding: 14px; background: var(--surface); color: var(--white); text-align: left; overflow-wrap: anywhere; }
.radio-entry-meta { display: block; font-size: 11px; color: var(--muted); line-height: 1.7; margin: 0 0 10px; }
.radio-excerpt { white-space: pre-wrap; font-size: 14px; line-height: 1.75; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.radio-media { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; min-width: 0; }
.radio-media img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: contain; border-radius: 4px; background: #19191d; }
.radio-thumbnails:has(img:nth-child(2)), #radio-draft-media:has(img:nth-child(2)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.radio-thumbnails img { aspect-ratio: 1.7; max-height: 180px; object-fit: cover; }
.radio-thumbnails:has(img:nth-child(2)) img { aspect-ratio: 1; }
.radio-media-label { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.6; padding: 8px 0; color: var(--pink); }
.radio-media-label > span { display: flex; }
.radio-sample { padding: 14px; }
.radio-sample .radio-entry-meta { color: var(--pink); }
.radio-sample > img { display: block; width: 100%; height: 142px; object-fit: cover; border-radius: 4px; }
.radio-sample-text { font-size: 13px; line-height: 1.7; margin: 10px 0 0; }
.radio-empty { margin: 25px 0; text-align: center; color: var(--muted); font-size: 13px; }
.radio-footer { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 10px 20px 24px; background: var(--black); }
.radio-primary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px !important; width: 100%; padding: 10px 12px; border-radius: 8px; color: var(--black); background: var(--green); font-weight: 750 !important; font-size: 15px !important; }
.radio-primary .icon { filter: brightness(0); }
#radio-screen [role="status"] { font-size: 12px; line-height: 1.6; margin: 0 0 8px; color: var(--muted); overflow-wrap: anywhere; }
#radio-screen [role="status"][data-error="true"] { color: var(--pink); }
#radio-screen [role="status"]:empty { display: none; }
.radio-overlay { position: absolute; inset: 0; display: flex; align-items: flex-end; background: #000a; z-index: 40; }
.radio-dialog { display: flex; flex-direction: column; background: var(--black); width: 100%; max-height: calc(100% - 28px); min-height: min(480px,calc(100% - 28px)); border-top: 1px solid #55545c; border-radius: 8px 8px 0 0; }
.radio-dialog-head { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px 4px 20px; }
.radio-dialog-head h2 { font-size: 18px; line-height: 1.5; margin: 0; }
.radio-dialog-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 0 20px 16px; overflow-wrap: anywhere; }
.radio-modes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 8px 0 18px; }
.radio-modes button { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 2px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 12px !important; }
#radio-screen .radio-modes .icon { width: 18px; height: 18px; }
.radio-modes button[aria-pressed="true"] { background: #34382b; color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.radio-text-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
#radio-text { display: block; width: 100%; resize: vertical; min-height: 110px; max-height: 240px; border: 1px solid #49494f; border-radius: 6px; background: var(--surface); color: var(--white); padding: 12px; font-size: 16px; line-height: 1.65; }
.radio-counter { text-align: right; font-size: 11px; color: var(--muted); margin: 6px 0 14px; }
.radio-file { display: flex; align-items: center; gap: 10px; position: relative; min-height: 62px; padding: 10px 12px; border: 1px dashed #68686f; border-radius: 6px; font-size: 13px; cursor: pointer; margin-bottom: 14px; }
.radio-file small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 2px; }
.radio-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.radio-file:focus-within { outline: 2px solid var(--pink); }
.radio-file:has(input:disabled) { opacity: .5; cursor: wait; }
.radio-media :is(audio,video) { display: block; width: 100%; min-width: 0; }
.radio-media audio { height: 54px; }
.radio-media video { max-height: 250px; background: #000; object-fit: contain; }
.radio-recorder { display: flex; align-items: center; gap: 10px; padding: 4px 0 14px; font-size: 13px; }
.radio-recorder output { margin-left: auto; font-size: 12px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
#radio-record { background: #39303a; border: 1px solid var(--pink); }
#radio-record[data-recording="true"] { animation: radio-record-pulse 1s ease-in-out infinite; }
.radio-dialog-footer { flex: 0 0 auto; border-top: 1px solid var(--line); padding: 10px 20px 24px; }
.radio-dialog-actions { display: flex; align-items: center; gap: 10px; }
.radio-danger { color: var(--pink); }
.radio-delete { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px; font-size: 14px !important; }
.radio-full-text { white-space: pre-wrap; font-size: 15px; line-height: 1.85; margin: 4px 0 18px; }
.radio-full-media img { max-height: none; }
#radio-screen button:disabled { opacity: .5; cursor: wait; }
#radio-screen > .home-indicator { z-index: 45; pointer-events: none; }
@keyframes radio-studio-glow { 50% { opacity: .5; box-shadow: 0 0 2px #ff6b7540; } }
@keyframes radio-record-pulse { 50% { box-shadow: 0 0 0 4px #ff76bf30; } }
.paused #radio-screen *, .document-hidden #radio-screen *, #radio-column[hidden] *, #radio-screen.radio-inactive * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { #radio-screen * { animation: none !important; } }
@media (max-height: 700px) {
  body.export .radio-footer, body.export .radio-dialog-footer { padding-bottom: 18px; }
}
