/* Borderless TV — frame image only, controls below */

.tv-panel {
  position: absolute;
  z-index: 8;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  margin: 0;
}

.tv-panel.minimized { display: none !important; }
.tv-panel.focused { z-index: 20; }

.tv-unit {
  display: block;
}

.tv-set {
  position: relative;
  line-height: 0;
  user-select: none;
  cursor: default;
}

.tv-frame {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.tv-screen {
  position: absolute;
  z-index: 1;
  background: #000;
  overflow: hidden;
}

.tv-screen iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  background: #000;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.tv-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: normal;
  box-sizing: border-box;
}

.tv-controls input {
  flex: 1;
  min-width: 0;
  height: 20px;
  padding: 0 5px;
  border: 1px solid #808080;
  border-top-color: #404040;
  border-left-color: #404040;
  font: 10px Tahoma, sans-serif;
  background: #fff;
}

.tv-controls button#tvLoad {
  height: 20px;
  padding: 0 8px;
  border: 1px solid #fff;
  border-right-color: #404040;
  border-bottom-color: #404040;
  background: #c0c0c0;
  font: 10px Tahoma, sans-serif;
  cursor: default;
  flex-shrink: 0;
}
.tv-controls button#tvLoad:active {
  border-color: #404040 #fff #fff #404040;
}

.tv-file-note {
  width: 100%;
  margin: 0;
  font: 9px Tahoma, sans-serif;
  color: #333;
  text-align: center;
  line-height: 1.2;
}
.tv-file-note.hidden { display: none; }
