/* ONRYO Media Player - synchronized Windows 95 video room */
.lt-wrap {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(250px, 310px);
  gap: 4px;
  padding: 5px;
  background: var(--face);
}

.lt-host { container-type: inline-size; }

.lt-main, .lt-side {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lt-video-shell {
  min-height: 200px;
  flex: 1 1 auto;
  background: #000;
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
  box-shadow: inset 1px 1px 0 #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lt-video {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  background: #000;
}
.lt-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.lt-video.lt-hidden { display: none; }

.lt-visualizer {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}
.lt-visualizer-mode .lt-visualizer { display: block; }
.lt-visualizer-mode .lt-video {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 200px;
  height: 200px;
  min-height: 200px;
  max-height: none;
  aspect-ratio: auto;
  z-index: 3;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: #000;
}

.lt-gate {
  width: min(420px, calc(100% - 24px));
  color: #fff;
  text-align: center;
  line-height: 1.45;
  padding: 18px;
  position: relative;
  z-index: 5;
}
.lt-gate .ico { display: block; margin: 0 auto 10px; }
.lt-gate p { margin: 5px 0 12px; }
.lt-gate button { margin-top: 6px; }

.lt-now {
  min-height: 37px;
  padding: 4px 6px;
  background: #000;
  color: #00ff4c;
  border: 2px solid;
  border-color: #404040 #fff #fff #404040;
  overflow: hidden;
}
.lt-now-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: bold; }
.lt-now-meta { color: #80c892; font-size: 11px; margin-top: 2px; }

.lt-seek-row, .lt-volume-row, .lt-buttons, .lt-side-head, .lt-add, .lt-join-fields {
  display: flex;
  align-items: center;
  gap: 5px;
}
.lt-volume-row { flex-wrap: wrap; }
.lt-seek-row input[type="range"], .lt-volume-row input[type="range"] { flex: 1 1 auto; min-width: 50px; }
.lt-viz-select { min-width: 92px; max-width: 118px; height: 24px; }
.lt-time { width: 86px; text-align: right; font-family: "Lucida Console", monospace; font-size: 11px; }
.lt-buttons { flex-wrap: wrap; }
.lt-buttons button.w95 { min-width: 44px; padding-left: 8px; padding-right: 8px; }
.lt-buttons button.lt-on, .lt-volume-row button.lt-on { background: #000080; color: #fff; }
.lt-spacer { flex: 1 1 auto; }

.lt-status-line {
  min-height: 21px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 5px;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  overflow: hidden;
}
.lt-dot { width: 8px; height: 8px; border-radius: 50%; background: #808080; flex: 0 0 auto; }
.lt-dot.online { background: #008000; }
.lt-dot.syncing { background: #ffc000; }
.lt-status-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.lt-side {
  border: 1px solid #808080;
  padding: 4px;
}
.lt-side-head { flex-wrap: wrap; }
.lt-side-head strong { flex: 1 1 auto; }
.lt-side-head button.w95 { min-width: 52px; padding-left: 6px; padding-right: 6px; }
.lt-participants { font-size: 11px; color: #404040; min-height: 14px; }
.lt-add input { flex: 1 1 auto; min-width: 0; }
.lt-add button { min-width: 48px; }

.lt-queue {
  flex: 1 1 auto;
  min-height: 100px;
  overflow: auto;
  background: #fff;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
}
.lt-empty { padding: 18px 10px; text-align: center; color: #606060; line-height: 1.4; }
.lt-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 5px;
  align-items: center;
  padding: 4px;
  border-bottom: 1px dotted #aaa;
  cursor: default;
}
.lt-item.current { background: #000080; color: #fff; }
.lt-item.dead { color: #800000; }
.lt-item img { width: 54px; height: 31px; object-fit: cover; image-rendering: auto; background: #000; }
.lt-item-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold; }
.lt-item-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; color: #606060; }
.lt-item.current .lt-item-meta { color: #c8d8ff; }
.lt-item-actions { display: grid; grid-template-columns: 22px 22px; gap: 2px; }
.lt-item-actions button {
  width: 22px; height: 20px; min-width: 0; padding: 0;
  font-family: var(--font); font-size: 11px;
}

.lt-join {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.lt-join-card { width: min(520px, 100%); line-height: 1.45; }
.lt-join-card h2 { font-size: 14px; margin: 0 0 8px; }
.lt-join-card label { display: block; margin: 8px 0 3px; }
.lt-join-card input { width: 100%; }
.lt-join-card .lt-join-actions { text-align: right; margin-top: 10px; }
.lt-error { color: #b00000; min-height: 16px; margin-top: 5px; }

.lt-lyrics-wrap {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  background: #02040d;
  color: #fff;
  container-type: inline-size;
}
.lt-lyrics-head {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 66px;
  padding: 7px;
  background: linear-gradient(90deg, #001e5e, #061334 55%, #18042c);
  border-bottom: 1px solid #5389d8;
}
.lt-lyrics-head img {
  width: 76px;
  height: 44px;
  object-fit: cover;
  background: #000;
  border: 1px solid #9fc5ff;
}
.lt-lyrics-meta { min-width: 0; }
.lt-lyrics-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: bold;
}
.lt-lyrics-artist { margin-top: 4px; color: #9fc5ff; }
.lt-lyrics-status {
  min-height: 23px;
  padding: 4px 8px;
  color: #b9d4ff;
  background: #071127;
  border-bottom: 1px solid #26395f;
}
.lt-lyrics-scroller {
  min-height: 0;
  overflow-y: auto;
  scroll-behavior: smooth;
  padding: 38% 18px 45%;
  background:
    radial-gradient(circle at 50% 45%, rgba(22,78,160,.22), transparent 48%),
    linear-gradient(#02040d, #070318);
}
.lt-lyric-line {
  display: block;
  width: 100%;
  margin: 0 auto 24px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  max-width: 760px;
  color: #75829b;
  text-align: center;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: clamp(20px, 4.5cqw, 34px);
  font-weight: 700;
  line-height: 1.25;
  transition: color .15s ease, transform .15s ease, text-shadow .15s ease;
}
.lt-lyric-line:hover { color: #c2d4f5; }
.lt-lyric-line:focus-visible { outline: 1px dotted #fff; outline-offset: 4px; }
.lt-lyric-line.active {
  color: #fff;
  transform: scale(1.035);
  text-shadow: 0 0 8px #1b8cff, 0 0 18px #7a2cff;
}
.lt-lyric-line.plain { color: #d9e4ff; cursor: default; }
.lt-lyrics-message {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
}
.lt-lyrics-message small { max-width: 380px; color: #9aa8c0; font-size: 13px; font-weight: normal; line-height: 1.4; }
.lt-lyrics-source {
  padding: 4px 8px;
  color: #8ea3c4;
  background: #02040d;
  border-top: 1px solid #26395f;
  font-size: 10px;
  text-align: right;
}
.lt-lyrics-source a { color: #9fc5ff; }

@container (max-width: 650px) {
  .lt-wrap { grid-template-columns: 1fr; grid-template-rows: minmax(365px, 1.15fr) minmax(190px, .85fr); overflow: auto; }
  .lt-video-shell { min-height: 200px; }
  .lt-side { min-height: 190px; }
}

@media (max-width: 620px) {
  .lt-wrap { padding: 3px; }
  .lt-buttons button.w95 { min-width: 38px; }
  .lt-native-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lt-lyrics-scroller { scroll-behavior: auto; }
  .lt-lyric-line { transition: none; }
}
