:root { color-scheme: dark; --white: #f8fafc; --muted: rgba(238, 242, 247, .62); --lime: #d4ff45; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: #030303; color: var(--white); }
button, a { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.player { position: relative; width: 100%; height: 100%; min-height: 100dvh; overflow: hidden; background: #050505; isolation: isolate; }
.ambient { position: absolute; inset: -8%; z-index: -2; background: radial-gradient(circle at 50% 25%, #263044, #07080a 58%); filter: blur(32px) saturate(.75); transform: scale(1.06); transition: background-image .8s ease; }
.media-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.media { width: 100%; height: 100%; object-fit: cover; }
.photo { animation: image-in .8s cubic-bezier(.2, .75, .2, 1); }
@keyframes image-in { from { opacity: .3; transform: scale(1.035); } }
.video { background: #000; }
.text-card { width: min(1000px, 88vw); max-height: 74vh; padding: clamp(28px, 6vw, 80px); display: grid; align-content: center; gap: 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: clamp(28px, 5vw, 64px); background: linear-gradient(145deg, rgba(31, 40, 55, .96), rgba(10, 12, 17, .98)); box-shadow: 0 50px 160px rgba(0, 0, 0, .48); }
.text-channel { margin: 0; color: var(--lime); font: 750 13px/1.2 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.text-card h1 { margin: 0; font-size: clamp(27px, 4.5vw, 64px); line-height: 1.08; letter-spacing: -.045em; overflow: hidden; text-wrap: balance; }
.scrim { position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.top-scrim { top: 0; height: 28%; background: linear-gradient(rgba(0, 0, 0, .68), transparent); }
.bottom-scrim { bottom: 0; height: 45%; background: linear-gradient(transparent, rgba(0, 0, 0, .86)); }
.chrome { position: absolute; z-index: 5; left: max(25px, env(safe-area-inset-left)); right: max(25px, env(safe-area-inset-right)); }
.top-chrome { top: max(22px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.source { min-width: 0; display: flex; align-items: center; gap: 12px; }
.source-avatar { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 15px; background: rgba(8, 9, 11, .44); backdrop-filter: blur(18px); color: var(--lime); font-weight: 850; letter-spacing: -.06em; }
.source-copy { min-width: 0; display: grid; gap: 3px; text-shadow: 0 2px 18px #000; }
.source-copy strong, .source-copy small { max-width: 58vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-copy strong { font-size: 15px; }
.source-copy small { color: var(--muted); font-size: 11px; }
.status-cluster { display: flex; align-items: center; gap: 12px; }
.voice-status, .position { min-height: 34px; padding: 0 12px; display: flex; align-items: center; gap: 7px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: rgba(4, 5, 6, .44); backdrop-filter: blur(16px); font: 700 10px ui-monospace, monospace; letter-spacing: .08em; }
.voice-status i { width: 6px; height: 6px; border-radius: 50%; background: #747c87; }
.voice-status.live i { background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: blink 1.4s infinite; }
.voice-status.blocked i { background: #ff9b55; }
@keyframes blink { 50% { opacity: .35; } }
.summary { position: absolute; z-index: 4; left: max(26px, env(safe-area-inset-left)); bottom: max(145px, calc(env(safe-area-inset-bottom) + 126px)); width: min(760px, calc(100vw - 52px)); padding: 20px 22px; border-left: 3px solid var(--lime); border-radius: 4px 18px 18px 4px; background: rgba(4, 5, 7, .54); backdrop-filter: blur(22px); transition: opacity .3s, transform .3s; }
.summary p { margin: 0; font-size: clamp(16px, 2.1vw, 25px); line-height: 1.42; letter-spacing: -.02em; text-shadow: 0 2px 18px #000; }
.slide-dots { display: flex; gap: 6px; margin-top: 14px; }
.slide-dots i { width: 17px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .25); transition: .2s; }
.slide-dots i.active { width: 35px; background: var(--lime); }
.voice-panel { position: absolute; z-index: 6; left: 50%; bottom: max(119px, calc(env(safe-area-inset-bottom) + 102px)); width: min(520px, calc(100vw - 44px)); min-height: 68px; padding: 12px 18px; display: flex; align-items: center; gap: 14px; border: 1px solid rgba(212, 255, 69, .22); border-radius: 22px; background: rgba(8, 11, 6, .76); backdrop-filter: blur(25px); transform: translateX(-50%); }
.voice-panel small { color: var(--lime); }
.voice-panel p { max-width: 390px; margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d7dcce; font-size: 13px; }
.voice-orb { width: 40px; height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: center; gap: 3px; border-radius: 50%; background: var(--lime); }
.voice-orb i { width: 3px; height: 13px; border-radius: 99px; background: #111; animation: wave .8s ease-in-out infinite alternate; }
.voice-orb i:nth-child(2) { height: 22px; animation-delay: -.3s; }.voice-orb i:nth-child(3) { animation-delay: -.55s; }
@keyframes wave { to { transform: scaleY(.35); } }
.controls { position: absolute; z-index: 7; left: max(20px, env(safe-area-inset-left)); right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 76px 1fr 76px; align-items: end; gap: 15px; }
.control-button { height: 70px; display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 24px; background: rgba(9, 10, 12, .58); backdrop-filter: blur(18px); cursor: pointer; }
.control-button span { font-size: 25px; }.control-button small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.control-button:active { transform: scale(.95); background: rgba(212, 255, 69, .14); }
.video-controls { justify-self: center; display: flex; align-items: center; gap: 10px; }
.seek-button, .play-button { border: 1px solid rgba(255, 255, 255, .15); background: rgba(8, 9, 11, .66); backdrop-filter: blur(18px); cursor: pointer; }
.seek-button { width: 92px; height: 60px; display: grid; place-items: center; align-content: center; gap: 1px; border-radius: 21px; }
.seek-button b { font-size: 15px; }.seek-button small { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.play-button { width: 70px; height: 70px; border-radius: 50%; background: var(--lime); color: #111; font-size: 20px; font-weight: 900; }
.seek-button:active, .play-button:active { transform: scale(.94); }
.replay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(0, 0, 0, .38); backdrop-filter: blur(5px); }
.replay-button { width: 178px; height: 178px; display: grid; place-items: center; align-content: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(9, 10, 12, .78); backdrop-filter: blur(24px); cursor: pointer; box-shadow: 0 0 0 10px rgba(212, 255, 69, .1); }
.replay-button span { color: var(--lime); font-size: 44px; line-height: .9; }.replay-button strong { font-size: 20px; }.replay-button small { color: var(--muted); }
.start-screen, .empty-screen { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; align-content: center; padding: 28px; background: radial-gradient(circle at 50% 10%, #293319, #080909 52%); text-align: center; }
.start-logo { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 24px; background: var(--lime); color: #111; font-size: 24px; font-weight: 900; letter-spacing: -.08em; transform: rotate(-5deg); }
.overline { margin: 0 0 17px; color: var(--lime); font: 750 11px ui-monospace, monospace; letter-spacing: .15em; }
.start-screen h1, .empty-screen h1 { max-width: 820px; margin: 0; font-size: clamp(38px, 7vw, 90px); line-height: .97; letter-spacing: -.065em; text-wrap: balance; }
.start-screen > p:not(.overline), .empty-screen p { max-width: 640px; margin: 24px 0 30px; color: #a8b0bc; font-size: clamp(14px, 2vw, 18px); line-height: 1.55; }
.start-button, .empty-screen a { min-width: 220px; min-height: 58px; padding: 0 26px; display: grid; place-items: center; border: 0; border-radius: 18px; background: var(--lime); color: #101208; font-weight: 850; text-decoration: none; cursor: pointer; box-shadow: 0 14px 50px rgba(212, 255, 69, .14); }
.empty-screen span { font-size: 58px; color: var(--lime); }.empty-screen h1 { font-size: clamp(36px, 6vw, 72px); }
.error-toast { position: absolute; z-index: 40; top: max(90px, calc(env(safe-area-inset-top) + 74px)); left: 50%; max-width: min(520px, calc(100vw - 40px)); padding: 12px 18px; border: 1px solid rgba(255, 111, 120, .28); border-radius: 13px; background: rgba(48, 12, 16, .9); color: #ffadb2; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: .25s; }
.error-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (orientation: portrait) and (max-width: 720px) {
  .summary { bottom: max(136px, calc(env(safe-area-inset-bottom) + 120px)); }
  .voice-panel { bottom: max(116px, calc(env(safe-area-inset-bottom) + 100px)); }
  .summary:has(+ .voice-panel:not([hidden])) { bottom: max(200px, calc(env(safe-area-inset-bottom) + 184px)); }
  .controls { grid-template-columns: 62px 1fr 62px; }
  .control-button { height: 62px; border-radius: 20px; }
  .seek-button { width: 72px; height: 55px; }.seek-button small { display: none; }.play-button { width: 59px; height: 59px; }
  .source-copy strong, .source-copy small { max-width: 42vw; }
  .voice-status > span { display: none; }
  .position { display: none; }
  .text-card { width: calc(100vw - 32px); max-height: 69vh; padding: 28px; border-radius: 30px; }
  .text-card h1 { font-size: clamp(25px, 8vw, 42px); }
}
@media (max-height: 520px) {
  .top-chrome { top: 13px; }.summary { bottom: 90px; max-width: 54vw; padding: 13px 16px; }.summary p { font-size: 14px; }.controls { bottom: 10px; }.control-button { height: 55px; }.voice-panel { left: auto; right: 110px; bottom: 10px; transform: none; width: 330px; min-height: 55px; }.video-controls .seek-button { height: 52px; }.play-button { width: 55px; height: 55px; }
}
.player.portrait-split { --media-pane: 56%; }
.player.portrait-split .media-stage { right: calc(100% - var(--media-pane)); border-right: 1px solid rgba(255, 255, 255, .1); background: #000; }
.player.portrait-split .media { object-fit: contain; background: #000; }
.player.portrait-split .top-scrim, .player.portrait-split .bottom-scrim { right: calc(100% - var(--media-pane)); }
.player.portrait-split .summary { top: max(92px, calc(env(safe-area-inset-top) + 78px)); right: max(30px, env(safe-area-inset-right)); bottom: max(104px, calc(env(safe-area-inset-bottom) + 88px)); left: calc(var(--media-pane) + 30px); width: auto; max-width: none; padding: 12px 0 12px 24px; overflow: auto; border-left: 3px solid var(--lime); border-radius: 0; background: transparent; backdrop-filter: none; }
.player.portrait-split .summary::before { content: 'КРАТКО'; display: block; margin-bottom: 16px; color: var(--lime); font: 800 10px/1 ui-monospace, monospace; letter-spacing: .16em; }
.player.portrait-split .summary p { font-size: clamp(16px, 2.25vw, 29px); line-height: 1.34; text-shadow: none; }
.player.portrait-split .slide-dots { margin-top: 20px; }
.player.portrait-split .video-controls { transform: translateX(-22vw); }
.player.portrait-split .voice-panel { left: 78%; width: min(38vw, 520px); }
@media (max-height: 520px) and (orientation: landscape) {
  .player.portrait-split .summary { top: 72px; bottom: 74px; padding: 8px 0 8px 18px; }
  .player.portrait-split .summary::before { margin-bottom: 10px; }
  .player.portrait-split .summary p { font-size: clamp(14px, 2vw, 20px); }
  .player.portrait-split .voice-panel { right: auto; bottom: 8px; transform: translateX(-50%); width: 38vw; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
