.tatmap {
  width: 100%;
}

.tatmap-viewer {
  position: relative;
  width: 100%;
  height: var(--tatmap-height, 70vh);
  min-height: 360px;
  background: #071b22;
  border-radius: 16px;
  overflow: hidden;
}

.tatmap-osd {
  position: absolute;
  inset: 0;
}

.tatmap-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 8px;
  z-index: 5;
}

.tatmap-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10, 20, 26, 0.55);
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tatmap-btn:hover {
  background: rgba(10, 20, 26, 0.72);
}

.tatmap-btn:active {
  transform: translateY(1px);
}

.tatmap-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 6;
  max-width: min(520px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(10, 20, 26, 0.72);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
}

.tatmap-viewer.has-status .tatmap-status {
  display: block;
}

.tatmap-viewer.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    radial-gradient(120px 120px at 50% 50%, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%),
    rgba(7, 27, 34, 0.35);
  pointer-events: none;
}

.tatmap-viewer.is-fullscreen {
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.tatmap-viewer:fullscreen,
.tatmap-viewer:-webkit-full-screen {
  border-radius: 0;
}