:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --text: #20283a;
  --muted: #5e6880;
  --line: #dde3f0;
  --link: #2457d6;
  --chip: #f2f5fb;
  --control-bg: #ffffff;
  --topbar-bg: rgba(255, 255, 255, 0.78);
  --topbar-line: rgba(20, 26, 40, 0.08);
  --card-grad-start: rgba(255, 255, 255, 0.94);
  --card-grad-end: rgba(248, 250, 255, 0.88);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 18px 46px rgba(0, 0, 0, 0.14);
  --card-border-hover: rgba(36, 87, 214, 0.28);
  --kw-p1: #16a34a;
  --kw-p2: #22c55e;
  --kw-p3: #86efac;
  --kw-p4: #94a3b8;
  --kw-p5: #a8b3c7;
}

:root[data-theme="dark"] {
  --bg: #090b11;
  --panel: #10131b;
  --text: #e8eaf0;
  --muted: #a7adbd;
  --line: #23263a;
  --link: #8ab4f8;
  --chip: #1a1d2b;
  --control-bg: #0e1017;
  --topbar-bg: rgba(10, 12, 18, 0.72);
  --topbar-line: rgba(255, 255, 255, 0.06);
  --card-grad-start: rgba(255, 255, 255, 0.03);
  --card-grad-end: rgba(255, 255, 255, 0.015);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 18px 46px rgba(0, 0, 0, 0.46);
  --card-border-hover: rgba(122, 162, 255, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 15px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.serp {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 18px 60px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--topbar-line);
  padding-top: 14px;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.serp__header {
  background: transparent;
}

.serp__title {
  margin: 2px 0 4px;
  font-size: 22px;
  font-weight: 650;
  text-align: center;
}

.serp__subtitle {
  margin: 0 0 12px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.serp__search {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.serp__input {
  flex: 1;
  max-width: none;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text);
  outline: none;
}

.serp__input:focus {
  border-color: #3b82f6;
}

.serp__btn {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.serp__btn--ghost {
  min-width: 68px;
}

.serp__select {
  padding: 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--control-bg);
  color: var(--text);
}

.serp__meta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  flex-wrap: wrap;
}

.serp__toolbar {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.serp__filters {
  display: inline-flex;
  gap: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px;
}

.serp__filter {
  text-decoration: none;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
}

.serp__filter.is-active {
  color: var(--text);
  border-color: var(--line);
  background: var(--chip);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px 310px 290px;
  gap: 18px;
}

.context-col,
.enterprise-col,
.catalog-col {
  position: sticky;
  top: 102px;
  align-self: start;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding-right: 2px;
}

.enterprise-col .rail__box {
  background: color-mix(in srgb, var(--panel) 85%, #0b1020 15%);
}

.catalog-col .rail__box {
  background: color-mix(in srgb, var(--panel) 80%, #0e1326 20%);
}

.catalog-group .rail__head {
  justify-content: space-between;
}

.catalog-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: color-mix(in srgb, var(--text) 90%, transparent);
  font-size: 12px;
  line-height: 1.35;
}

.serp__results {
  margin-top: 0;
  display: grid;
  gap: 18px;
}

.fluidstream {
  width: 100%;
}

.fluidstream-deck {
  width: min(100%, 960px);
  margin: 16px auto 18px;
  display: grid;
  gap: 10px;
}

.fluidstream--tv {
  margin: 0;
}

.fluidstream__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

.fluidstream__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.radiolike-player {
  --radio-blue: #0a6dff;
  --radio-cyan: #32f6ff;
  --radio-ice: #e7f8ff;
  --radio-deep: #030712;
  --needle-angle: -176deg;
  --audio-react: 0;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
  padding: 36px;
  border: 1px solid rgba(76, 209, 255, 0.36);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 50%, rgba(18, 151, 255, 0.2), transparent 37%),
    radial-gradient(circle at 18% 78%, rgba(50, 246, 255, 0.16), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(10, 109, 255, 0.14), transparent 17%),
    radial-gradient(circle, #071427 0%, #020611 68%, #000208 100%);
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.48),
    inset 0 0 72px rgba(9, 123, 255, 0.15);
}

@keyframes radiolikeGlowBreath {
  0%, 100% {
    opacity: .82;
    filter: blur(.2px) drop-shadow(0 0 24px rgba(50, 246, 255, .82)) drop-shadow(0 0 42px rgba(10, 109, 255, .58));
  }
  50% {
    opacity: 1;
    filter: blur(.35px) drop-shadow(0 0 34px rgba(50, 246, 255, 1)) drop-shadow(0 0 62px rgba(10, 109, 255, .82));
  }
}

@keyframes radiolikeHudDrift {
  0%, 100% { opacity: .72; transform: rotate(0deg) scale(1); }
  50% { opacity: .95; transform: rotate(.45deg) scale(1.004); }
}

@keyframes radiolikeWavePulse {
  0%, 100% { transform: scaleX(.94) scaleY(.82); opacity: .72; }
  50% { transform: scaleX(1.04) scaleY(1.16); opacity: 1; }
}

@keyframes radiolikeGlassSweep {
  0%, 100% { opacity: .22; transform: rotate(-18deg) translateY(-6px); }
  50% { opacity: .52; transform: rotate(-18deg) translateY(6px); }
}

@keyframes radiolikeFlareTwinkle {
  0%, 100% { opacity: .28; transform: scale(.82); }
  45% { opacity: .86; transform: scale(1.08); }
}

@keyframes radiolikeSpectrumTicks {
  0%, 100% { opacity: .34; filter: saturate(1) brightness(1); }
  50% { opacity: .72; filter: saturate(1.35) brightness(1.22); }
}

.radiolike-player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.2;
  background:
    repeating-linear-gradient(126deg, rgba(135, 210, 255, 0.16) 0 1px, transparent 1px 8px),
    radial-gradient(circle, transparent 58%, rgba(50, 246, 255, 0.16) 59%, transparent 61%);
}

.radiolike-player::after {
  content: "";
  position: absolute;
  inset: 26px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 63%, rgba(10, 109, 255, 0.22) 64%, rgba(190, 252, 255, 0.58) 65%, rgba(50, 246, 255, 0.24) 67%, transparent 70%),
    conic-gradient(from 138deg, transparent 0deg, rgba(50, 246, 255, 0.98) 34deg, transparent 66deg, transparent 248deg, rgba(50, 246, 255, 0.98) 294deg, transparent 329deg);
  filter: blur(.2px) drop-shadow(0 0 26px rgba(50, 246, 255, 1)) drop-shadow(0 0 48px rgba(10, 109, 255, .72));
  opacity: 0.95;
  animation: radiolikeGlowBreath 5.8s ease-in-out infinite;
}

.radiolike-player__audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.radiolike-player__dial {
  position: relative;
  isolation: isolate;
  width: min(76vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 52%, rgba(5, 16, 38, 0.99) 0 29%, transparent 30%),
    radial-gradient(circle, transparent 0 65%, rgba(50, 246, 255, 0.12) 66%, transparent 70%),
    repeating-conic-gradient(from -1deg, rgba(231, 248, 255, 0.48) 0 0.55deg, transparent 0.55deg 9deg),
    repeating-conic-gradient(from 0deg, rgba(50, 246, 255, 0.24) 0 0.8deg, transparent 0.8deg 18deg),
    radial-gradient(circle, rgba(5, 13, 31, 0.98) 0 65%, transparent 66%);
  box-shadow:
    0 0 0 3px rgba(224, 253, 255, 0.98),
    0 0 0 10px rgba(10, 109, 255, 0.72),
    0 0 0 20px rgba(50, 246, 255, 0.28),
    0 0 0 32px rgba(10, 109, 255, 0.13),
    0 0 62px rgba(10, 109, 255, 1),
    0 0 118px rgba(50, 246, 255, 0.52),
    inset 0 0 56px rgba(50, 246, 255, 0.17),
    inset 0 0 0 120px rgba(1, 5, 18, 0.18);
}

.radiolike-player__hud {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  animation: radiolikeHudDrift 8s ease-in-out infinite;
}

.radiolike-player__hud-ring {
  fill: none;
  stroke-linecap: round;
  filter: url(#radioHudGlow);
}

.radiolike-player__hud-ring--outer {
  stroke: rgba(205, 250, 255, 0.92);
  stroke-width: 2;
}

.radiolike-player__hud-ring--mid {
  stroke: rgba(50, 246, 255, 0.7);
  stroke-width: 5;
  opacity: .7;
}

.radiolike-player__hud-ring--inner {
  stroke: rgba(10, 109, 255, 0.82);
  stroke-width: 2;
  opacity: .78;
}

.radiolike-player__hud-ticks path {
  stroke: rgba(231, 248, 255, 0.62);
  stroke-width: 3;
  stroke-linecap: round;
}

.radiolike-player__hud-rainbow {
  opacity: .46;
  animation: radiolikeSpectrumTicks 3.4s ease-in-out infinite;
}

.radiolike-player__hud-rainbow path {
  stroke-width: 4;
  stroke-linecap: round;
}

.radiolike-player__hud-rainbow path:nth-child(1) { stroke: #32f6ff; }
.radiolike-player__hud-rainbow path:nth-child(2) { stroke: #0a6dff; }
.radiolike-player__hud-rainbow path:nth-child(3) { stroke: #9b5cff; }
.radiolike-player__hud-rainbow path:nth-child(4) { stroke: #ff2d75; }
.radiolike-player__hud-rainbow path:nth-child(5) { stroke: #ffb000; }
.radiolike-player__hud-rainbow path:nth-child(6) { stroke: #31f56f; }

.radiolike-player.is-playing .radiolike-player__hud-rainbow {
  opacity: calc(.38 + (var(--audio-react) * .42));
}

.radiolike-player__hud-flares circle {
  fill: #e7f8ff;
  filter: url(#radioHudGlow);
  opacity: .9;
}

.radiolike-player__dial::before {
  content: "";
  position: absolute;
  inset: 58px;
  z-index: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 232deg, transparent 0 3deg, #415cff 3deg 6deg, transparent 6deg 11deg, #416dff 11deg 14deg, transparent 14deg 20deg, #3d83ff 20deg 23deg, transparent 23deg 29deg, #36a1ff 29deg 32deg, transparent 32deg 38deg, #38dfff 38deg 41deg, transparent 41deg 48deg, transparent 230deg, #42f2ff 230deg 233deg, transparent 233deg 239deg, #42f2ff 239deg 242deg, transparent 242deg 248deg, #42f2ff 248deg 251deg, transparent 251deg 257deg, #42f2ff 257deg 260deg, transparent 260deg 266deg, #42f2ff 266deg 269deg, transparent 269deg 275deg, #42f2ff 275deg 278deg, transparent 278deg 360deg);
  filter: drop-shadow(0 0 8px rgba(50, 246, 255, 0.9));
  opacity: 0.82;
  -webkit-mask: radial-gradient(circle, transparent 0 72%, #000 73% 79%, transparent 80%);
  mask: radial-gradient(circle, transparent 0 72%, #000 73% 79%, transparent 80%);
}

.radiolike-player__dial::after {
  content: "";
  position: absolute;
  inset: 132px;
  z-index: 2;
  border-radius: 50%;
  border: 2px solid rgba(155, 246, 255, 0.8);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(circle at 50% 12%, rgba(50, 246, 255, 0.24), transparent 25%),
    radial-gradient(circle at 50% 85%, rgba(10, 109, 255, 0.22), transparent 30%),
    linear-gradient(180deg, rgba(10, 35, 72, 0.78), rgba(2, 8, 22, 0.94));
  box-shadow:
    0 0 24px rgba(10, 109, 255, 0.86),
    inset 0 0 34px rgba(10, 109, 255, 0.3),
    inset 0 12px 22px rgba(255, 255, 255, 0.08),
    inset 0 -24px 38px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
}

.radiolike-player__ring--inner::before,
.radiolike-player__ring--inner::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  pointer-events: none;
}

.radiolike-player__glass-sweep {
  position: absolute;
  inset: 150px 128px 245px;
  z-index: 7;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  filter: blur(1px);
  pointer-events: none;
  animation: radiolikeGlassSweep 6.5s ease-in-out infinite;
}

.radiolike-player__flare {
  position: absolute;
  z-index: 11;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  background: #eaffff;
  box-shadow:
    0 0 8px rgba(234, 255, 255, .95),
    0 0 18px rgba(50, 246, 255, .72),
    0 0 34px rgba(10, 109, 255, .48);
  animation: radiolikeFlareTwinkle 4.8s ease-in-out infinite;
}

.radiolike-player__flare::before,
.radiolike-player__flare::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: linear-gradient(90deg, transparent, rgba(234, 255, 255, .78), transparent);
  transform: translate(-50%, -50%);
}

.radiolike-player__flare::before {
  width: 44px;
  height: 1px;
}

.radiolike-player__flare::after {
  width: 1px;
  height: 34px;
}

.radiolike-player__flare--left {
  left: 76px;
  bottom: 72px;
}

.radiolike-player__flare--right {
  right: 66px;
  top: 78px;
  animation-delay: -2.2s;
}

.radiolike-player__ring--inner::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 34%);
  filter: blur(.3px);
  opacity: .82;
}

.radiolike-player__ring--inner::after {
  inset: 28px 36px 58px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(-16deg);
  opacity: .72;
}

.radiolike-player__ring {
  position: absolute;
  inset: 10px;
  z-index: 3;
  border-radius: 50%;
  border: 2px solid rgba(191, 247, 255, 0.92);
  box-shadow: 0 0 22px rgba(50, 246, 255, 1), inset 0 0 22px rgba(10, 109, 255, 0.66);
}

.radiolike-player__ring--inner {
  inset: 132px;
  z-index: 3;
  border-color: rgba(10, 109, 255, 0.92);
}

.radiolike-player__needle {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 8;
  width: 215px;
  height: 14px;
  border-radius: 999px;
  transform: rotate(var(--needle-angle));
  transform-origin: 0 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 44%),
    linear-gradient(90deg, rgba(50, 246, 255, 0.1) 0 8%, rgba(50, 246, 255, 1) 11% 61%, rgba(245, 255, 255, 1) 62% 72%, rgba(5, 68, 255, 1) 100%);
  clip-path: polygon(0 50%, 14% 10%, 100% 0, 92% 50%, 100% 100%, 14% 90%);
  box-shadow:
    0 0 20px rgba(50, 246, 255, 1),
    0 0 42px rgba(10, 109, 255, 0.78),
    0 7px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.34s cubic-bezier(.25, 1.45, .45, 1);
  will-change: transform;
}

.radiolike-player__needle i,
.radiolike-player__needle b {
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.radiolike-player__needle i {
  inset: 2px 12px 7px 28px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  opacity: .72;
  filter: blur(.2px);
}

.radiolike-player__needle b {
  right: 0;
  top: 50%;
  width: 28px;
  height: 5px;
  transform: translateY(-50%);
  background: #eaffff;
  box-shadow: 0 0 12px rgba(234, 255, 255, 1), 0 0 22px rgba(50, 246, 255, .9);
}

.radiolike-player.is-playing .radiolike-player__needle {
  transition: none;
  box-shadow:
    0 0 16px rgba(77, 248, 255, 1),
    0 0 40px rgba(8, 123, 255, 0.7),
    0 6px 14px rgba(0, 0, 0, 0.42);
}

.radiolike-player.is-playing .radiolike-player__hud-ring--mid,
.radiolike-player.is-playing .radiolike-player__hud-ring--inner {
  opacity: calc(.64 + (var(--audio-react) * .32));
}

.radiolike-player__hub {
  position: absolute;
  left: calc(50% - 19px);
  top: calc(54% - 18px);
  z-index: 9;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #b9f7ff 0 13%, #3ea4ff 15% 33%, #123fc4 35% 56%, #06112f 58% 100%);
  border: 1px solid rgba(191, 247, 255, 0.8);
  box-shadow: 0 0 14px rgba(50, 246, 255, 0.95), inset 0 0 10px rgba(0, 0, 0, 0.72);
}

.radiolike-player__hub::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.72), transparent 18%);
}

.radiolike-player__core {
  position: absolute;
  inset: 156px 118px 108px;
  z-index: 5;
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  border-radius: 50%;
  color: #eaf7ff;
  text-shadow: 0 0 14px rgba(50, 246, 255, 0.7);
}

.radiolike-player__core strong {
  font-size: 37px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--radio-ice);
  text-shadow: 0 0 10px rgba(231, 248, 255, 0.58), 0 0 22px rgba(50, 246, 255, 0.5);
}

.radiolike-player__core em {
  margin-top: 6px;
  font-style: normal;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--radio-cyan);
}

.radiolike-player__rainbow {
  position: relative;
  display: block;
  width: 58px;
  height: 34px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 8px rgba(50, 246, 255, 0.78));
}

.radiolike-player__rainbow::before,
.radiolike-player__rainbow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.radiolike-player__rainbow::before {
  width: 54px;
  height: 30px;
  border: 3px solid transparent;
  border-bottom: 0;
  background:
    linear-gradient(#06152f, #06152f) padding-box,
    linear-gradient(90deg, #ff3b7f, #ffb000, #32f6ff, #0a6dff) border-box;
}

.radiolike-player__rainbow::after {
  width: 34px;
  height: 20px;
  border: 3px solid transparent;
  border-bottom: 0;
  background:
    linear-gradient(#06152f, #06152f) padding-box,
    linear-gradient(90deg, #ffb000, #32f6ff, #7c5cff) border-box;
  opacity: 0.92;
}

.radiolike-player__wave {
  width: 170px;
  height: 18px;
  margin: 9px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 4px, rgba(255, 255, 255, 0.95) 4px 6px, transparent 6px 10px),
    linear-gradient(90deg, #ff2d75, #ffb000, #ffe95c, #31f56f, #32f6ff, #0a6dff, #9b5cff);
  background-blend-mode: screen;
  clip-path: polygon(0 50%, 8% 44%, 16% 58%, 24% 30%, 32% 70%, 40% 38%, 48% 62%, 56% 20%, 64% 78%, 72% 36%, 80% 64%, 88% 42%, 100% 50%, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 6px rgba(50, 246, 255, 0.82)) drop-shadow(0 0 10px rgba(255, 45, 117, 0.28));
  transform-origin: center;
  will-change: transform, filter;
}

.radiolike-player.is-playing .radiolike-player__wave {
  animation: radiolikeWavePulse .72s ease-in-out infinite;
  filter:
    drop-shadow(0 0 calc(7px + (var(--audio-react) * 7px)) rgba(50, 246, 255, 0.92))
    drop-shadow(0 0 calc(5px + (var(--audio-react) * 5px)) rgba(255, 176, 0, 0.38));
}

.radiolike-player__live {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid rgba(50, 246, 255, 0.78);
  border-radius: 999px;
  color: var(--radio-cyan);
  font-size: 12px;
  font-weight: 800;
}

.radiolike-player__live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff1525;
  box-shadow: 0 0 10px #ff1525;
}

.radiolike-player__dot,
.radiolike-player__capsule {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(92, 181, 255, 0.42);
  background: linear-gradient(180deg, rgba(8, 18, 42, 0.96), rgba(1, 5, 18, 0.98));
  box-shadow: 0 0 18px rgba(10, 109, 255, 0.56), inset 0 0 20px rgba(0, 0, 0, 0.74);
}

.radiolike-player__dot {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.radiolike-player__dot::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: linear-gradient(135deg, #0a6dff, #32f6ff);
  opacity: 0.68;
  box-shadow: 0 0 9px rgba(77, 248, 255, 0.82);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.radiolike-player__dot--left {
  left: 42px;
  top: 47%;
}

.radiolike-player__dot--right {
  display: none;
}

.radiolike-player__capsule {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 46px;
  border-radius: 999px;
}

.radiolike-player__capsule i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a6dff, #32f6ff);
  opacity: 0.68;
  box-shadow: 0 0 9px rgba(77, 248, 255, 0.82);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.radiolike-player[data-needle-step="one"] .radiolike-player__dot--left::after,
.radiolike-player[data-needle-step="two"] .radiolike-player__capsule--top i,
.radiolike-player[data-needle-step="three"] .radiolike-player__capsule--side i {
  opacity: 1;
  transform: scale(1.18);
  box-shadow: 0 0 18px var(--radio-cyan), 0 0 30px rgba(8, 123, 255, 0.9);
}

.radiolike-player__capsule--top {
  left: 50%;
  top: 58px;
  transform: translateX(-50%);
}

.radiolike-player__capsule--side {
  right: 42px;
  top: 39%;
  flex-direction: column;
  width: 50px;
  min-width: 50px;
  height: 124px;
  gap: 12px;
  padding: 11px 0;
}

.radiolike-player__controls {
  position: absolute;
  bottom: 42px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: 46px 64px;
  gap: 18px;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.radiolike-player button {
  border: 1px solid rgba(224, 253, 255, 0.58);
  color: #fff;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 38%),
    radial-gradient(circle at 45% 35%, rgba(62, 174, 255, 0.98), rgba(8, 25, 67, 0.98) 56%, rgba(2, 8, 24, 0.99) 100%);
  box-shadow:
    0 0 18px rgba(50, 246, 255, 0.62),
    inset 0 2px 6px rgba(255, 255, 255, 0.14),
    inset 0 -8px 18px rgba(0, 0, 0, 0.46),
    inset 0 0 20px rgba(10, 109, 255, 0.36);
  transform-style: preserve-3d;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}

.radiolike-player button:hover {
  transform: translateY(-1px);
  filter: saturate(1.12);
  box-shadow:
    0 0 24px rgba(50, 246, 255, 0.84),
    inset 0 2px 8px rgba(255, 255, 255, 0.18),
    inset 0 -8px 18px rgba(0, 0, 0, 0.46),
    inset 0 0 22px rgba(10, 109, 255, 0.44);
}

.radiolike-player button:active {
  transform: translateY(1px) scale(.97);
  box-shadow:
    0 0 14px rgba(50, 246, 255, 0.64),
    inset 0 2px 10px rgba(0, 0, 0, 0.42),
    inset 0 0 18px rgba(10, 109, 255, 0.42);
}

.radiolike-player button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.radiolike-player__play {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(50, 246, 255, 0.88), inset 0 0 18px rgba(10, 109, 255, 0.4);
}

.radiolike-player.is-playing .radiolike-player__play {
  box-shadow:
    0 0 calc(18px + (var(--audio-react) * 10px)) rgba(50, 246, 255, 0.92),
    inset 0 0 18px rgba(10, 109, 255, 0.46),
    inset 0 2px 8px rgba(255, 255, 255, 0.18);
}

.radiolike-player__play-icon {
  display: inline-block;
  width: 19px;
  height: 24px;
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 0 6px #fff);
}

.radiolike-player.is-playing .radiolike-player__play-icon {
  width: 20px;
  height: 24px;
  border-width: 0 6px;
  border-color: #fff;
}

.radiolike-player__sound {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.radiolike-player__sound span {
  position: absolute;
  left: 12px;
  top: 15px;
  width: 10px;
  height: 14px;
  background: var(--radio-cyan);
  clip-path: polygon(0 28%, 42% 28%, 100% 0, 100% 100%, 42% 72%, 0 72%);
}

.radiolike-player__sound::before,
.radiolike-player__sound::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 24px;
  width: 12px;
  height: 20px;
  border-right: 2px solid var(--radio-cyan);
  border-radius: 50%;
}

.radiolike-player__sound::after {
  top: 8px;
  width: 18px;
  height: 28px;
}

.radiolike-player__sound.is-muted::after {
  left: 17px;
  top: 20px;
  width: 24px;
  height: 2px;
  border: 0;
  border-radius: 999px;
  background: #ff4250;
  transform: rotate(-35deg);
  box-shadow: 0 0 8px #ff4250;
}

.radiolike-player__meta {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 9;
  color: #effaff;
  text-shadow: 0 0 10px rgba(77, 248, 255, 0.84);
}

.radiolike-player__meta strong,
.radiolike-player__meta span {
  display: block;
}

.radiolike-player__meta strong {
  font-size: 14px;
  line-height: 1.2;
}

.radiolike-player__meta span {
  margin-top: 2px;
  color: #83eaff;
  font-size: 12px;
}

.radiolike-player__helper {
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(191, 247, 255, 0.5);
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, rgba(41, 154, 255, 0.9), rgba(2, 8, 24, 0.96));
  color: #fff;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 0 14px rgba(50, 246, 255, 0.56), inset 0 0 18px rgba(10, 109, 255, 0.32);
}

.radiolike-player__helper:hover,
.radiolike-player__helper:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(77, 248, 255, 0.9), inset 0 0 20px rgba(8, 123, 255, 0.42);
}

.radiolike-player__helper:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.result {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-grad-start), var(--card-grad-end));
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.result:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

.result__top {
  margin-bottom: 6px;
}

.paa-card {
  background: transparent;
  border-radius: 0;
  padding: 2px 0 0;
}

.ai-radar-card {
  border: 1px solid rgba(19, 94, 77, 0.16);
  background:
    linear-gradient(180deg, rgba(250, 250, 245, 0.98), rgba(242, 246, 238, 0.96)),
    radial-gradient(circle at top left, rgba(198, 234, 176, 0.28), transparent 32%);
  border-radius: 22px;
  padding: 24px 24px 22px;
  box-shadow: var(--card-shadow);
}

.ai-radar-card__eyebrow {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #52725f;
}

.ai-radar-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ai-radar-card__head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 560;
  color: #0f4e3d;
}

.ai-radar-card__formula {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 10px;
  background: #d7efaf;
  border: 1px solid #9fbe72;
  font-size: 12px;
  color: #315a34;
  box-shadow: 0 3px 10px rgba(88, 118, 54, 0.18);
}

.ai-radar-card__summary,
.ai-radar-card__detail {
  margin: 0;
  max-width: 78ch;
  font-size: 14px;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text) 84%, transparent);
}

.ai-radar-card__answer {
  margin: 0 0 10px;
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.5;
  color: #163f36;
}

.ai-radar-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0;
  font-size: 13px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.ai-radar-card__stats strong {
  color: color-mix(in srgb, var(--text) 96%, transparent);
}

.sgm-stage {
  margin: 18px 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sgm-column {
  display: grid;
  gap: 10px;
}

.sgm-column__label {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 66px;
  line-height: .92;
  font-weight: 700;
  color: #0f4e3d;
  letter-spacing: -.04em;
}

.sgm-column__subtitle {
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.08;
  color: #24493f;
}

.sgm-vs {
  align-self: start;
  margin-top: 22px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #d7efaf;
  border: 1px solid #9fbe72;
  font-weight: 800;
  color: #365f37;
  box-shadow: 0 3px 8px rgba(88, 118, 54, 0.18);
}

.sgm-phone {
  min-height: 360px;
  border: 2px solid rgba(33, 84, 72, 0.8);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246, 250, 247, 0.95));
  padding: 14px;
  box-shadow: 0 10px 22px rgba(18, 50, 41, 0.08);
}

.sgm-phone__bar {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.sgm-phone__bar span {
  width: 10px;
  height: 3px;
  border-radius: 999px;
  background: #8ba199;
}

.sgm-phone__title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #19473b;
}

.sgm-phone__metric {
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.35;
  color: #476258;
  font-weight: 700;
}

.sgm-phone__answer {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #2c4038;
}

.sgm-mini-list {
  display: grid;
  gap: 10px;
}

.sgm-mini-item {
  padding: 10px 10px 9px;
  border-radius: 10px;
  background: rgba(244, 246, 242, 0.96);
  border: 1px solid rgba(69, 99, 86, 0.16);
}

.sgm-mini-item strong,
.sgm-mini-item span {
  display: block;
}

.sgm-mini-item strong {
  font-size: 12px;
  line-height: 1.35;
  color: #173d34;
}

.sgm-mini-item span {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #5e706a;
}

.sgm-chip-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgm-chip {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5d8;
  border: 1px solid #c9daa2;
  font-size: 11px;
  color: #34553a;
  font-weight: 700;
}

.sgm-caption {
  min-height: 86px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(33, 84, 72, 0.24);
  box-shadow: 0 8px 18px rgba(18, 50, 41, 0.06);
}

.sgm-caption strong,
.sgm-caption span {
  display: block;
}

.sgm-caption strong {
  font-size: 16px;
  color: #fff8ea;
}

.sgm-caption span {
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.35;
  color: #27453d;
}

.sgm-caption--seo {
  background: linear-gradient(180deg, #f7f1d9, #f4edd1);
}

.sgm-caption--seo strong {
  color: #7f5b11;
}

.sgm-caption--aeo {
  background: linear-gradient(180deg, #e3f2d6, #dbeecf);
}

.sgm-caption--aeo strong {
  color: #0d5a3b;
}

.sgm-caption--geo {
  background: linear-gradient(180deg, #d7f0f4, #d0ebf1);
}

.sgm-caption--geo strong {
  color: #126579;
}

.ai-radar-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ai-radar-card__panel {
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent);
  border-radius: 14px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 82%, transparent);
}

.ai-radar-card__panel h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 66%, transparent);
}

.ai-radar-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ai-radar-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--chip) 72%, transparent);
  color: color-mix(in srgb, var(--text) 92%, transparent);
}

.ai-radar-card__list li strong {
  flex: 0 0 auto;
  font-size: 12px;
  color: color-mix(in srgb, var(--link) 82%, var(--text) 18%);
}

.ai-radar-card__foot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 64%, transparent);
}

.ai-radar-card__sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.ai-radar-source {
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--panel) 78%, transparent);
  text-decoration: none;
  display: block;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

a.ai-radar-source:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--link) 30%, transparent);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

.ai-radar-source__host {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--link) 74%, var(--text) 26%);
}

.ai-radar-source__meta {
  margin-bottom: 6px;
  font-size: 11px;
  color: color-mix(in srgb, var(--text) 66%, transparent);
}

.ai-radar-source__title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: color-mix(in srgb, var(--text) 96%, transparent);
}

.ai-radar-source__snippet {
  font-size: 12px;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text) 74%, transparent);
}

.paa-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.paa-card__head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 460;
  color: #202124;
}

.paa-mode-toggle {
  display: inline-flex;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel) 98%, transparent);
}

.paa-mode-btn {
  border: 0;
  background: transparent;
  padding: 6px 11px;
  font-size: 12px;
  letter-spacing: .02em;
  color: color-mix(in srgb, var(--text) 66%, transparent);
  cursor: pointer;
}

.paa-mode-btn.is-active {
  color: #202124;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  font-weight: 700;
}

.paa-item {
  border-bottom: 1px solid #dadce0;
}

.paa-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  color: #3c4043;
  font-size: 19px;
  line-height: 1.35;
}

.paa-item summary::-webkit-details-marker {
  display: none;
}

.paa-item__toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f3f4;
  position: relative;
}

.paa-item__toggle::before,
.paa-item__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 2px;
  background: #5f6368;
  transition: transform 0.2s ease;
}

.paa-item__toggle::before {
  left: 49%;
  transform: translate(-100%, -50%) rotate(35deg);
}

.paa-item__toggle::after {
  left: 51%;
  transform: translate(0, -50%) rotate(-35deg);
}

.paa-item[open] .paa-item__toggle::before {
  transform: translate(-100%, -50%) rotate(-35deg);
}

.paa-item[open] .paa-item__toggle::after {
  transform: translate(0, -50%) rotate(35deg);
}

.paa-item__answer {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  font-size: 21px;
  line-height: 1.45;
}

.paa-item__body {
  margin: 0 0 12px;
}

.paa-item__snippet {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
  line-height: 1.45;
}

.paa-item__source {
  margin-top: 5px;
  display: inline-block;
  font-size: 13px;
  color: #1a0dab;
  text-decoration: none;
}

.paa-item__source:hover {
  text-decoration: underline;
}

.paa-card__kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 10px;
  font-size: 14px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

.paa-card__kpis strong {
  color: color-mix(in srgb, var(--text) 96%, transparent);
}

.paa-item__meta {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.paa-chip {
  font-size: 12px;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  color: color-mix(in srgb, var(--text) 88%, transparent);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.paa-chip--new {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.14);
  color: #16a34a;
  font-weight: 700;
}

.paa-chip.is-up {
  border-color: rgba(22, 163, 74, 0.35);
  color: #16a34a;
}

.paa-chip.is-down {
  border-color: rgba(220, 38, 38, 0.35);
  color: #dc2626;
}

.paa-chip.is-neutral {
  color: color-mix(in srgb, var(--text) 76%, transparent);
}

.paa-card[data-paa-mode="serp"] .paa-card__kpis,
.paa-card[data-paa-mode="serp"] .paa-item__meta {
  display: none;
}

:root[data-theme="dark"] .paa-card__head h2 {
  color: #e8eaed;
}

:root[data-theme="dark"] .paa-item {
  border-bottom-color: #3c4043;
}

:root[data-theme="dark"] .paa-item summary {
  color: #bdc1c6;
}

:root[data-theme="dark"] .paa-item__toggle {
  background: #2b2f36;
}

:root[data-theme="dark"] .paa-item__toggle::before,
:root[data-theme="dark"] .paa-item__toggle::after {
  background: #bdc1c6;
}

:root[data-theme="dark"] .paa-item__snippet,
:root[data-theme="dark"] .paa-card__foot a {
  color: #9aa0a6;
}

:root[data-theme="dark"] .paa-mode-toggle {
  border-color: #3c4043;
}

:root[data-theme="dark"] .paa-mode-btn {
  color: #9aa0a6;
}

:root[data-theme="dark"] .paa-mode-btn.is-active {
  color: #e8eaed;
  background: #2b2f36;
}

.paa-card__foot {
  text-align: right;
  padding: 8px 0 0;
}

.paa-card__foot a {
  color: #5f6368;
  font-size: 13px;
}

@media (max-width: 980px) {
  .sgm-stage {
    grid-template-columns: 1fr;
  }

  .sgm-vs {
    margin-top: 0;
    justify-self: center;
  }

  .ai-radar-card__head {
    flex-direction: column;
  }

  .ai-radar-card__head h2 {
    font-size: 26px;
  }

  .ai-radar-card__sources {
    grid-template-columns: 1fr;
  }

  .paa-card__head h2 {
    font-size: 26px;
  }

  .paa-item summary {
    font-size: 18px;
  }

  .paa-item__answer {
    font-size: 19px;
  }

  .paa-card__kpis {
    font-size: 13px;
  }

  .paa-card__foot a {
    font-size: 19px;
  }
}

@media (max-width: 720px) {
  .ai-radar-card {
    padding: 16px;
  }

  .sgm-column__label {
    font-size: 44px;
  }

  .sgm-phone {
    min-height: 0;
  }

  .ai-radar-card__head h2 {
    font-size: 21px;
  }

  .ai-radar-card__answer {
    font-size: 16px;
  }

  .ai-radar-card__grid {
    grid-template-columns: 1fr;
  }

  .paa-card {
    padding: 4px 0 0;
  }

  .paa-card__head h2 {
    font-size: 21px;
  }

  .paa-item summary {
    font-size: 16px;
    padding: 12px 0;
  }

  .paa-item__toggle {
    width: 30px;
    height: 30px;
  }

  .paa-item__answer {
    font-size: 16px;
  }

  .paa-card__kpis {
    font-size: 12px;
    gap: 8px;
  }

  .paa-item__meta {
    gap: 6px;
  }

  .paa-card__foot a {
    font-size: 16px;
  }
}

.site {
  display: flex;
  align-items: center;
  gap: 10px;
  color: color-mix(in srgb, var(--text) 75%, transparent);
  font-size: 13px;
  min-width: 0;
}

.site__ico {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex: 0 0 auto;
}

.site__name {
  font-weight: 650;
  color: var(--text);
  white-space: nowrap;
}

.site__crumb {
  opacity: 0.72;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result__title {
  display: inline-block;
  margin: 1px 0 0;
  color: var(--link);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 620;
  text-decoration: none;
}

.result__title:hover {
  text-decoration: underline;
  color: #8ab4f8;
}

.result__pdf-line {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.result__snippet {
  margin: 9px 0 0;
  color: color-mix(in srgb, var(--text) 86%, transparent);
  font-size: 14.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result__snippet em {
  font-style: normal;
  font-weight: 750;
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(122, 162, 255, 0.55);
}

:root:not([data-theme="dark"]) .result__snippet em {
  color: var(--text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: color-mix(in srgb, var(--text) 82%, transparent);
  text-decoration: none;
}

.chip--muted {
  opacity: 0.8;
}

.chip--active {
  border-color: rgba(122, 162, 255, 0.4);
  color: var(--link);
}

.doc-profile {
  margin-top: 12px;
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  border-radius: 12px;
  padding: 10px 12px;
}

.doc-profile__head {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.doc-profile__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
}

.doc-profile__grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-profile__grid span {
  font-size: 11px;
  color: var(--muted);
}

.doc-profile__grid strong {
  font-size: 12px;
  color: var(--text);
  line-height: 1.25;
}

.doc-profile__snippet {
  margin: 10px 0 0;
  font-size: 12px;
  color: color-mix(in srgb, var(--text) 86%, transparent);
  line-height: 1.35;
}

.doc-profile__warn {
  margin: 10px 0 0;
  font-size: 12px;
  color: #e4b64d;
}

.status-new { color: #66a3ff; }
.status-unchanged { color: #4bc47f; }
.status-minor { color: #e4b64d; }
.status-major { color: #e56a6a; }

.sitelinks {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 18px;
}

.sitelinks a {
  color: rgba(138, 180, 248, 0.95);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sitelinks a:hover {
  text-decoration: underline;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.action {
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  background: color-mix(in srgb, var(--text) 4%, transparent);
  color: color-mix(in srgb, var(--text) 86%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.action:hover {
  border-color: rgba(122, 162, 255, 0.3);
}

button.action {
  font-family: inherit;
}

.rail__box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--card-grad-start), var(--card-grad-end));
  box-shadow: var(--card-shadow);
  padding: 14px;
}

.overview-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.overview-grid div {
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 10px;
  padding: 8px;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

.overview-grid strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.overview-grid span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.spark-wrap {
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 10px;
  padding: 6px 8px;
  color: var(--link);
}

.sparkline {
  width: 100%;
  height: 42px;
  display: block;
}

.history-status {
  margin-top: 10px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 10px;
  padding: 8px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.history-status__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}

.history-status__head strong {
  color: var(--text);
  font-weight: 600;
}

.history-status__bar {
  margin-top: 7px;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  overflow: hidden;
}

.history-status__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #6ea8ff, #8ab4f8);
  border-radius: inherit;
}

.history-status__meta {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}

.status-badge {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid transparent;
}

.status-badge.is-init {
  color: #f4c66a;
  background: rgba(244, 198, 106, 0.16);
  border-color: rgba(244, 198, 106, 0.35);
}

.status-badge.is-active {
  color: #72d89c;
  background: rgba(114, 216, 156, 0.16);
  border-color: rgba(114, 216, 156, 0.35);
}

.rail__head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.rail__title {
  font-weight: 650;
}

.rail__host,
.rail__meta {
  color: var(--muted);
  font-size: 13px;
  margin: 6px 0 0;
}

.rail__links {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.rail__links a {
  color: var(--link);
  text-decoration: none;
  font-size: 13px;
}

.rail__links a:hover {
  text-decoration: underline;
}

.rail__metrics {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.rail__metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.rail__metrics div strong {
  color: var(--text);
  font-size: 12px;
  text-align: right;
}

.rail__stats {
  margin-top: 10px;
}

.rail__bars {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.bar {
  display: grid;
  grid-template-columns: minmax(74px, auto) 1fr auto;
  gap: 8px;
  align-items: center;
}

button.bar {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.domain-actions {
  margin-top: 10px;
}

.domain-filter.is-active {
  border-color: rgba(122, 162, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(122, 162, 255, 0.15) inset;
}

.health-score {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.bar__label {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar__track {
  height: 7px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 999px;
  overflow: hidden;
}

.bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #6ea8ff, #8ab4f8);
  border-radius: inherit;
  transition: width 500ms ease-out;
}

.bar__value {
  font-size: 11px;
  color: var(--muted);
}

.serp__empty {
  margin: 18px 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.serp__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.serp__page-link {
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}

.serp__page-link:hover {
  border-color: #3b82f6;
}

.serp__page-label {
  color: var(--muted);
}

.serp__page-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.serp__page-num {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  padding: 0 8px;
}

.serp__page-num.is-current {
  background: var(--chip);
  border-color: #3b82f6;
  color: var(--link);
  font-weight: 700;
}

.serp__page-ellipsis {
  color: var(--muted);
  font-size: 13px;
  padding: 0 2px;
}

@media (max-width: 1380px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 300px 280px 250px;
  }
}

@media (max-width: 1260px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 320px 280px;
  }

  .catalog-col {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .context-col,
  .enterprise-col,
  .catalog-col {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .serp {
    padding: 0 12px 40px;
  }

  .topbar {
    padding-top: 10px;
  }

  .serp__search {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .serp__input {
    width: calc(100% - 86px);
    max-width: calc(100% - 86px);
  }

  .serp__btn {
    width: auto;
  }

  .serp__select {
    min-width: 78px;
  }

  .serp__toolbar {
    gap: 8px;
  }

  .fluidstream-deck {
    margin-top: 12px;
  }

  .fluidstream__frame {
    aspect-ratio: 16 / 9;
  }

  .radiolike-player {
    min-height: 410px;
    padding: 14px;
  }

  .radiolike-player__dial {
    width: min(86vw, 330px);
  }

  .radiolike-player__dial::before {
    inset: 38px;
  }

  .radiolike-player__dial::after {
    inset: 84px;
  }

  .radiolike-player__ring--inner {
    inset: 84px;
  }

  .radiolike-player__core {
    inset: 102px 60px 74px;
  }

  .radiolike-player__core strong {
    font-size: 22px;
  }

  .radiolike-player__core em {
    font-size: 12px;
  }

  .radiolike-player__needle {
    left: 50%;
    top: 54%;
    width: 142px;
    height: 11px;
  }

  .radiolike-player__hub {
    left: calc(50% - 14px);
    top: calc(54% - 14px);
    width: 28px;
    height: 28px;
  }

  .radiolike-player__dot {
    width: 46px;
    height: 46px;
  }

  .radiolike-player__dot::after {
    inset: 14px;
  }

  .radiolike-player__dot--left {
    left: 18px;
  }

  .radiolike-player__capsule {
    min-width: 60px;
    height: 36px;
    gap: 6px;
  }

  .radiolike-player__capsule i {
    width: 14px;
    height: 14px;
  }

  .radiolike-player__capsule--top {
    top: 30px;
  }

  .radiolike-player__capsule--side {
    right: 18px;
    width: 38px;
    min-width: 38px;
    height: 92px;
    gap: 8px;
    padding: 8px 0;
  }

  .radiolike-player__controls {
    bottom: 24px;
    grid-template-columns: 46px 58px;
    gap: 14px;
  }

  .radiolike-player__play {
    width: 58px;
    height: 58px;
  }

  .radiolike-player__sound {
    width: 46px;
    height: 46px;
  }

  .radiolike-player__meta {
    left: 16px;
    top: 14px;
  }

  .radiolike-player__helper {
    right: 16px;
    top: 14px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .sitelinks {
    grid-template-columns: 1fr;
  }

  .doc-profile__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .radiolike-player::after,
  .radiolike-player__hud,
  .radiolike-player__hud-rainbow,
  .radiolike-player.is-playing .radiolike-player__wave,
  .radiolike-player__glass-sweep,
  .radiolike-player__flare {
    animation: none;
  }
}

/* ===========================
   RADAR responsive patch
   Scope: .radar-wrapper only
   =========================== */
.radar-wrapper,
.radar-wrapper * {
  box-sizing: border-box;
  max-width: 100%;
}

.radar-wrapper {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding: 16px;
}

.radar-wrapper .radar-container {
  width: 100%;
  max-width: none;
  margin: 0;
}

.radar-wrapper h1,
.radar-wrapper .title {
  margin: 0 0 6px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.radar-wrapper .subtitle,
.radar-wrapper p {
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}

.radar-wrapper .radar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 16px;
}

.radar-wrapper input[type="search"],
.radar-wrapper input[type="text"] {
  flex: 1 1 420px;
  min-width: 220px;
  max-width: 100%;
  height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
}

.radar-wrapper select {
  flex: 0 1 90px;
  min-width: 80px;
  height: 42px;
  border-radius: 10px;
  padding: 8px 10px;
}

.radar-wrapper button,
.radar-wrapper .btn,
.radar-wrapper input[type="button"],
.radar-wrapper input[type="submit"] {
  flex: 0 1 auto;
  height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.radar-wrapper .radar-message,
.radar-wrapper .notice,
.radar-wrapper .alert,
.radar-wrapper .info-box {
  width: 100%;
  max-width: none;
  margin: 10px auto 0;
  padding: 14px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.radar-wrapper table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse;
}

.radar-wrapper th,
.radar-wrapper td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.radar-wrapper img,
.radar-wrapper svg,
.radar-wrapper canvas,
.radar-wrapper iframe:not(.fluidstream__embed),
.radar-wrapper object,
.radar-wrapper embed,
.radar-wrapper video {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 640px) {
  .radar-wrapper {
    padding: 12px;
  }

  .radar-wrapper .radar-controls {
    justify-content: stretch;
  }

  .radar-wrapper input[type="search"],
  .radar-wrapper input[type="text"],
  .radar-wrapper select,
  .radar-wrapper button,
  .radar-wrapper .btn,
  .radar-wrapper input[type="button"],
  .radar-wrapper input[type="submit"] {
    flex: 1 1 100%;
    width: 100%;
  }
}

@media (max-width: 380px) {
  .radar-wrapper input[type="search"],
  .radar-wrapper input[type="text"],
  .radar-wrapper select,
  .radar-wrapper button,
  .radar-wrapper .btn {
    height: 44px;
  }
}

/* ===========================
   RADAR: da COLONNE a WIDGET
   Scope: .radar-layout
   =========================== */

.radar-layout,
.radar-layout * {
  box-sizing: border-box;
}

.radar-layout {
  display: grid;
  gap: 16px;
  align-items: start;
  grid-template-columns: minmax(520px, 2fr) minmax(320px, 1fr);
}

.radar-main {
  min-width: 0;
}

#radarWidgets,
.radar-widgets {
  min-width: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-content: start;
}

.radar-widget {
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.radar-widget * {
  max-width: 100%;
}

.radar-widget .scroll,
.radar-widget [data-scroll],
.radar-widget .panel-body {
  max-height: 60vh;
  overflow: auto;
}

.radar-widget table {
  width: 100% !important;
  table-layout: fixed;
  word-wrap: break-word;
}

.keyword-overview-vertical {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.keyword-overview-run {
  --ov-primary: #2563eb;
  --ov-positive: #16a34a;
  --ov-negative: #dc2626;
  --ov-neutral: #94a3b8;
  border: 1px solid color-mix(in srgb, var(--ov-primary) 28%, #dbe7ff 72%);
  border-radius: 16px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f7faff 92%);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.08);
}

.keyword-overview-run__head {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}

.keyword-overview-run__head span {
  background: #f5f8ff;
  border: 1px solid #e8eefc;
  border-radius: 999px;
  padding: 6px 10px;
}

@media (max-width: 760px) {
  .keyword-overview-run__head {
    grid-template-columns: 1fr;
  }
}

.ov-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.ov-section__title {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.ov-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ov-kpi {
  border: 1px solid #e9eef9;
  border-radius: 14px;
  background: #fff;
  padding: 16px 16px 14px;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ov-kpi:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.09);
}

.ov-kpi--primary {
  border-color: color-mix(in srgb, var(--ov-primary) 30%, #e9eef9 70%);
}

.ov-kpi__label {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.ov-kpi__value {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  display: block;
}

.ov-kpi__meta {
  margin-top: 4px;
  display: block;
  font-size: 11px;
  color: #8190a9;
}

.ov-spark {
  width: 100%;
  height: 42px;
  margin-top: 12px;
}

.ov-spark__line {
  fill: none;
  stroke: var(--ov-primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: ovLineIn 900ms ease forwards;
}

.ov-distribution {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.ov-donut {
  width: 168px;
  height: 168px;
  border-radius: 999px;
  background:
    conic-gradient(
      var(--ov-positive) 0 calc(var(--p-up) * 1%),
      var(--ov-negative) calc(var(--p-up) * 1%) calc((var(--p-up) + var(--p-down)) * 1%),
      var(--ov-neutral) calc((var(--p-up) + var(--p-down)) * 1%) 100%
    );
  position: relative;
  margin: 0 auto;
}

.ov-donut::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: inherit;
  background: #fff;
}

.ov-donut__center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ov-donut__center span {
  font-size: 11px;
  color: var(--muted);
}

.ov-donut__center strong {
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
}

.ov-distribution-bars {
  display: grid;
  gap: 12px;
}

.ov-dist-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 10px;
  align-items: center;
}

.ov-dist-row span {
  font-size: 12px;
  color: #5e6b82;
}

.ov-dist-row strong {
  font-size: 15px;
  font-weight: 700;
}

.ov-dist-row__bar {
  height: 9px;
  background: #edf2fb;
  border-radius: 999px;
  overflow: hidden;
}

.ov-dist-row__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  width: 0;
  transition: width 750ms ease;
}

.ov-dist-row__bar i.is-pos { background: var(--ov-positive); }
.ov-dist-row__bar i.is-neg { background: var(--ov-negative); }
.ov-dist-row__bar i.is-neu { background: var(--ov-neutral); }

.ov-topical-box {
  border: 1px solid #e9eef9;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ov-topical-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ov-topical-head span {
  font-size: 12px;
  color: var(--muted);
}

.ov-topical-head strong {
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 9px;
}

.ov-zone--reference {
  color: #14532d;
  background: #dcfce7;
}

.ov-zone--leader {
  color: #166534;
  background: #ecfdf3;
}

.ov-zone--competitive {
  color: #1e3a8a;
  background: #dbeafe;
}

.ov-zone--emerging {
  color: #7c2d12;
  background: #ffedd5;
}

.ov-topical-grid {
  display: grid;
  gap: 10px;
}

.ov-topical-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
  align-items: center;
}

.ov-topical-row span {
  font-size: 12px;
  color: #5e6b82;
}

.ov-topical-row strong {
  font-size: 13px;
  font-weight: 700;
}

.ov-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ov-trend {
  border: 1px solid #e9eef9;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.ov-trend span {
  font-size: 12px;
  color: var(--muted);
}

.ov-trend strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

.keyword-overview-actions {
  display: inline-flex;
  gap: 6px;
}

.keyword-overview-actions-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.action--icon {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
}

.action--icon-muted {
  opacity: 0.7;
}

@keyframes ovLineIn {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .ov-distribution {
    grid-template-columns: 1fr;
  }
  .ov-trend-grid {
    grid-template-columns: 1fr;
  }
  .ov-dist-row {
    grid-template-columns: 120px 1fr auto;
  }
  .ov-topical-row {
    grid-template-columns: 120px 1fr auto;
  }
}

@media (max-width: 600px) {
  .ov-kpi-grid {
    grid-template-columns: 1fr;
  }
  .ov-kpi__value {
    font-size: 30px;
  }
}

.radar-widget-handle {
  margin: 0;
  padding: 10px 12px;
  font-weight: 600;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.radar-widget-handle:active {
  cursor: grabbing;
}

.radar-widget-handle::before {
  content: "⋮⋮";
  opacity: 0.6;
  font-weight: 800;
  letter-spacing: 1px;
}

.radar-widget.is-ghost {
  opacity: 0.4;
}

.radar-widget.is-chosen {
  outline: 2px dashed rgba(255, 255, 255, 0.25);
  outline-offset: -6px;
}

@media (max-width: 1100px) {
  .radar-layout {
    grid-template-columns: 1fr;
  }
}

.balance-controls {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.balance-controls label {
  font-size: 12px;
  color: var(--muted);
}

.balance-controls select {
  width: 100%;
  min-width: 0;
}

.delta-pos {
  color: #16a34a;
  font-weight: 700;
}

.delta-neg {
  color: #dc2626;
  font-weight: 700;
}

.delta-flat {
  color: #38bdf8;
  font-weight: 700;
}

.risk-low {
  color: #16a34a;
  font-weight: 700;
}

.risk-mid {
  color: #d97706;
  font-weight: 700;
}

.risk-high {
  color: #dc2626;
  font-weight: 700;
}

.radar-widget--hero {
  grid-column: 1 / -1;
  border-color: color-mix(in srgb, #3b82f6 45%, var(--line) 55%);
  box-shadow: 0 0 0 1px color-mix(in srgb, #3b82f6 22%, transparent) inset;
}

.radar-widget--hero .rail__title {
  font-size: 15px;
}

.radar-widget--large {
  grid-column: span 1;
}

.widget-mockup-frame {
  width: 100%;
  height: 540px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-top: 10px;
}

.mini-chart {
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 130;
  display: block;
  margin-top: 10px;
}

.widget-mock-hero .rail__title {
  font-size: 16px;
  font-weight: 700;
}

.widget-mock-hero .rail__meta {
  font-size: 12px;
  color: var(--muted);
}

.mini-kpi {
  margin-top: 10px;
  position: relative;
  padding-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 13px;
}

.mini-kpi i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 10px;
  border-radius: 999px;
  display: block;
}

.mini-kw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.mini-kw-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
  align-items: center;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.mini-kw-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.09);
}

.mini-kw-row strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  display: block;
  line-height: 1.2;
}

.mini-kw-row small {
  font-size: 10px;
  color: var(--muted);
}

.mini-kw-row svg {
  width: 72px;
  height: 24px;
}

.kw-dist-chart {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 10px;
  padding: 10px 8px 8px;
  background: color-mix(in srgb, var(--text) 2%, transparent);
}

.kw-dist-col {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.kw-dist-col__meta {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.kw-dist-col__bar-wrap {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  display: flex;
  align-items: end;
  justify-content: center;
  background:
    linear-gradient(to top, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px) 0 0 / 100% 25%;
}

.kw-dist-col__bar {
  width: min(22px, 74%);
  border-radius: 8px 8px 6px 6px;
  display: block;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
}

.kw-dist-col__label {
  font-size: 10px;
  color: var(--muted);
}

.kw-dist-col__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.kw-movers {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kw-movers__col {
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 10px;
  padding: 8px;
  background: color-mix(in srgb, var(--text) 2%, transparent);
}

.kw-movers__head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.kw-movers__empty {
  font-size: 12px;
  color: var(--muted);
}

.kw-mover-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 9px;
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  background: color-mix(in srgb, var(--text) 3%, transparent);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.kw-mover-row + .kw-mover-row {
  margin-top: 7px;
}

.kw-mover-row strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  color: var(--text);
}

.kw-mover-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.kw-mover-row svg {
  width: 100%;
  height: 24px;
  display: block;
}

@media (max-width: 900px) {
  .mini-chart {
    aspect-ratio: 320 / 145;
  }
  .mini-kw-grid {
    grid-template-columns: 1fr;
  }
  .kw-dist-chart {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    overflow-x: auto;
  }
  .kw-movers {
    grid-template-columns: 1fr;
  }
}

.balance-core-widget .rail__metrics div strong {
  font-size: 14px;
}

.balance-controls-widget .rail__meta strong {
  color: var(--text);
}
