.cltv {
  --cltv-paper: #f6efe3;
  --cltv-ink: #241b17;
  --cltv-wood: #6f4935;
  --cltv-screen: #111a16;
  --cltv-brass: #c8a35f;
  --cltv-line: rgba(43, 30, 23, .18);

  box-sizing: border-box;
  width: 100%;
  max-width: var(--wp--style--global--content-size, 645px);
  margin: 22px auto;
  padding: 12px;
  border: 1px solid var(--cltv-line);
  border-radius: 16px;
  background: var(--cltv-paper);
  color: var(--cltv-ink);
  font-family: inherit;
}

.cltv *, .cltv *::before, .cltv *::after { box-sizing: border-box; }

.cltv__header { margin: 0 3px 10px; }
.cltv__heading-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cltv__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  opacity: .62;
}
.cltv__title {
  margin: 0;
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.15;
}
.cltv__intro {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: .76;
}

.cltv__set {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 9px;
  padding: 10px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), transparent 38%),
    var(--cltv-wood);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.07),
    inset 0 -14px 28px rgba(0,0,0,.13);
}

.cltv__screen-shell {
  min-width: 0;
  border-radius: 12px;
  padding: 8px;
  background: #2e211a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.cltv__screen {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px / 12px;
  background: var(--cltv-screen);
  box-shadow:
    inset 0 0 38px rgba(0,0,0,.7),
    0 0 0 2px rgba(0,0,0,.48);
}
.cltv__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.02) 0,
    rgba(255,255,255,.02) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: .4;
}

.cltv__idle,
.cltv__fallback {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  text-align: center;
  color: #eee8d8;
}
.cltv__idle-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 35px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 40% / 30%;
  font-size: 10px;
  letter-spacing: .14em;
  opacity: .7;
}
.cltv__idle strong { font-size: 15px; }
.cltv__idle span:last-child { opacity: .52; font-size: 10px; }

.cltv__player-wrap,
.cltv__player,
.cltv__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cltv__player iframe { border: 0; }

.cltv__static {
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.09) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.1) 0 1px, rgba(0,0,0,.08) 1px 3px),
    #26302b;
  animation: cltv-static .12s steps(2, end) infinite;
}
@keyframes cltv-static {
  0% { transform: translate(0,0) scale(1.015); filter: contrast(1.8); }
  25% { transform: translate(-1.5%,1%); }
  50% { transform: translate(1%, -1.2%); filter: contrast(2.2); }
  75% { transform: translate(.5%,1.4%); }
  100% { transform: translate(0,0) scale(1.015); }
}

.cltv__fallback a {
  display: inline-flex;
  margin-top: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eee5d2;
  color: #2a211c;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}
.cltv__fallback span {
  font-size: 11px;
  line-height: 1.45;
  opacity: .74;
}

.cltv__play-overlay {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(18,18,16,.84);
  color: white;
  font-size: 11px;
  cursor: pointer;
}

.cltv__caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-end;
  padding: 8px 3px 0;
  color: #eee3d4;
}
.cltv__caption > div { min-width: 0; }
.cltv__coord {
  display: block;
  margin-bottom: 1px;
  font-size: 9px;
  letter-spacing: .07em;
  color: var(--cltv-brass);
  font-weight: 700;
}
.cltv__program {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}
.cltv__status {
  flex: 0 0 auto;
  font-size: 9px;
  opacity: .58;
}

.cltv__controls {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7px 3px;
  color: #f4eadb;
  border-radius: 10px;
}
.cltv__controls:hover,
.cltv__controls:focus-visible {
  background: rgba(255,255,255,.055);
  outline: none;
}
.cltv__controls:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(245,207,121,.55);
}
.cltv__dial-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
}
.cltv__control-label {
  font-size: 8px;
  letter-spacing: .15em;
  opacity: .55;
}
.cltv__dial {
  position: relative;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #f0dfc0 0, #b99564 24%, #6f533d 62%, #34251d 100%);
  box-shadow:
    inset 0 0 0 4px rgba(0,0,0,.17),
    0 3px 8px rgba(0,0,0,.25);
  cursor: pointer;
}
.cltv__dial-line {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 13px;
  transform-origin: 50% 20px;
  background: #33261f;
  transition: transform .28s ease;
}
.cltv__dial-wrap strong {
  font-size: 10px;
  line-height: 1.25;
}

.cltv__positions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  width: 100%;
  margin-top: 16px;
}
.cltv__position {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.19);
}
.cltv__position.is-active {
  background: var(--cltv-brass);
  box-shadow: 0 0 6px rgba(245,207,121,.58);
}

.cltv__recall {
  margin-top: 8px;
  padding: 10px 10px 2px;
}
.cltv__recall-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.cltv__recall-head strong { font-size: 12px; }
.cltv__recall-head span {
  font-size: 10px;
  opacity: .57;
}
.cltv__reactions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.cltv__reaction {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--cltv-line);
  border-radius: 12px;
  background: rgba(255,255,255,.68);
  color: var(--cltv-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.cltv__reaction:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(79,55,41,.35);
  background: #fffaf1;
}
.cltv__reaction:disabled {
  cursor: default;
  opacity: .57;
}
.cltv__reaction.is-selected {
  opacity: 1;
  border-color: rgba(111,73,53,.52);
  background: #fff8eb;
  box-shadow: inset 0 0 0 1px rgba(111,73,53,.08);
}
.cltv__reaction-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(111,73,53,.08);
}
.cltv__reaction-icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cltv__reaction-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 650;
}
.cltv__reaction-count {
  min-width: 1.5em;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  opacity: .67;
}
.cltv__recall-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.cltv__again {
  border: 1px solid var(--cltv-line);
  border-radius: 999px;
  padding: 7px 10px;
  background: white;
  color: var(--cltv-ink);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}
.cltv__privacy-note {
  font-size: 9px;
  opacity: .48;
}

.cltv [hidden] { display: none !important; }

@media (max-width: 680px) {
  .cltv {
    margin: 18px 0;
    padding: 9px;
    border-radius: 14px;
  }
  .cltv__set {
    grid-template-columns: 1fr;
    padding: 8px;
  }
  .cltv__controls {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 5px 2px;
  }
  .cltv__dial-wrap {
    flex-direction: row;
    text-align: left;
  }
  .cltv__control-label { display: none; }
  .cltv__dial {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }
  .cltv__dial-line {
    top: 6px;
    height: 11px;
    transform-origin: 50% 16px;
  }
  .cltv__positions {
    width: min(170px, 45vw);
    margin: 0;
  }
  .cltv__caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .cltv__status { align-self: flex-end; margin-top: -16px; }
  .cltv__reactions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cltv__recall-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
  .cltv__recall-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}


/* v0.2.1: 전체 CHANNEL 영역이 하나의 클릭 타깃 */
.cltv__controls > * {
  pointer-events: none;
}
.cltv[data-cltv-js="pending"] .cltv__status {
  opacity: .85;
}
.cltv[data-cltv-js="error"] .cltv__status {
  opacity: 1;
}
