/* TV Overlay UI (FIX83B) */
.chart-section { position: relative; }
#tvOverlayUI {
  pointer-events: none;
  --tvui-pad: 0px;
  --tvui-top: 0px;
  --tvui-header-h: 120px;
  /* Approx height of the chart time scale labels area (x-axis). Used to stop the toolbar above it. */
  --tvui-xaxis-h: 26px;
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 950;
  pointer-events: none;
  font-family: Inter, Roboto, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  /* Prevent shadows/translated elements from bleeding into the orderbook column */
  overflow: hidden;
}

#tvOverlayUI .tvui {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: auto; /* clickable UI */
  color: #cfd6df;
}
#tvOverlayUI .tvui-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 12px 18px;
  border-radius:8px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
  backdrop-filter: none;

}
.tvui-left{
  position: relative;
  display:flex; align-items:center; gap:10px;
  flex-shrink: 0;
  margin-top: 0;
}
.tvui-star{
  width:28px; height:28px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  cursor:pointer;
  position:relative; top:6px;  /* [p2079] */
}
.tvui-coin{
  width:26px; height:26px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  position: relative;
  top:6px;  /* [p2081] 4+2=6px */
  background: rgba(245,158,11,0.15);
  border:1px solid rgba(245,158,11,0.35);
  color:#f59e0b;
  font-weight:700;
  font-size:18px;
}

.tvui-coin-letter{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:12px;
  letter-spacing: 0.2px;
  opacity: 0.95;
}

.tvui-coin.has-img .tvui-coin-letter{ display:none; }
.tvui-symbol{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
  font-size: 20px;
  cursor:pointer;
  position:relative; top:9px;  /* [p2076] */
}
.tvui-symbol small{
  font-weight:600;
  color:#9aa6b2;
  background: rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  padding:2px 6px;
  border-radius:8px;
  font-size:11px;
  position: relative;
  top: -2px;
}
.tvui-chevron{ opacity:0.9; margin-left:2px; }
.tvui-leftprice{
  font-size: 22px;
  font-weight: 600;
  color:#26d07c;
  margin-left: 6px;
  white-space: nowrap;
  display:inline-block;
  width: 9ch;          /* [p2106] 9글자 고정 - BTC/PEPE 동일 너비 */
  font-variant-numeric: tabular-nums;
  position: relative;
  top: 0;
  overflow: visible;
}

/* [p2050] funding: tvuiPrice 아래 absolute 배치 */
/* tvui-left-row1/row2 클래스 제거 - HTML 구조 단순화 */
.tvui-left-row1{ display:contents; }
.tvui-left-row2{ display:none; }  /* row2는 사용 안 함 */

/* Funding: tvuiSymbolWrap 기준 absolute → 가격 아래 배치 */
#tvuiSymbolWrap{
  position: relative;
}
.tvui-funding{
  display: none !important;  /* [p2054] 심볼 아래 펀딩 제거 - tvui-metrics에서 표시 */
}

.tvui-funding-label{ font-weight: 700; color:#cfd6df; opacity: 0.95; }
.tvui-funding-rate{ font-weight: 700; color:#cfd6df; }
.tvui-mid{
  display:flex; align-items:baseline; gap:10px; flex:1;
  justify-content:center;
}
.tvui-mid{ display:none; }
.tvui-price{
  font-size:18px;
  font-weight:800;
  color:#26d07c; /* green */
}
.tvui-change{
  font-size:12px; font-weight:700;
  color:#26d07c;
  opacity:0.95;
}
/* [p2091] tvui-metrics: flex 아이템 */
.tvui-metrics{
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  gap:12px;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
  pointer-events: none;
  align-self: flex-start;
  position: relative;
  top: 6px;            /* [p2094] 2px 아래로 */
}
/* [p2089] 가격 래퍼 - 고정 너비로 metrics 위치 안정화 */
.tvui-price-wrap{
  display:flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 0;
  width: auto;
  align-self: flex-start;
  position: relative;
  top: 1px;
  overflow: visible;
  margin-right: 0;     /* [p2107] */
}

.tvui-metric{
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap:2px;
  font-size:12px;
}
.tvui-metric span{ color:#9aa6b2; white-space:nowrap; font-size:11px; }
.tvui-metric b{
  color:#eaecef; font-weight:700; white-space:nowrap; font-size:12px;
  font-variant-numeric: tabular-nums;  /* [p2062] 숫자 고정폭 - 값 변해도 너비 유지 */
  display:inline-block;
}
.tvui-metric-funding b{ display:flex; align-items:baseline; gap:3px; }
/* [p2062] 항목별 고정 min-width */
#tvuiMark,  #tvuiIndex  { min-width: 80px; }
#tvui24HiM, #tvui24LoM  { min-width: 72px; }
#tvuiVolU,  #tvuiOI     { min-width: 80px; }
/* [p2064] Mark/Index 컨테이너 오른쪽 간격 개별 조정 */
.tvui-metric:nth-child(1){ margin-right: -12px; }  /* Mark: 0px */
.tvui-metric:nth-child(2){ margin-right: -12px; }  /* Index: 0px */

#tvOverlayUI .tvui-row{
  margin-top:10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.tvui-timebar{
  display:flex;
  align-items:center;
  gap:8px;
  padding:2px 6px;
  border-radius:12px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: none;
  position:relative;
  top:-3px;
}
.tvui-timebar .lbl{
  font-size:12px;
  color:#9aa6b2;
  margin-right: 2px;
}
/* FIX84G: timeline buttons should be text-only (no individual boxes) */
.tvui-btn{
  font-size:12px;
  /* FIX84H: denser */
  /* FIX84I: more dense ("half-space" feel) */
  /* FIX84K: add a tiny horizontal spacing per item */
  padding:0px 5px;
  border-radius:0;
  background: transparent;
  border: none;
  color:#cfd6df;
  cursor:pointer;
  user-select:none;
  line-height: 18px;
}
.tvui-btn:hover{ color:#ffffff; }
.tvui-btn.active{
  color:#ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Slight separation before "Last Price" without adding bulky spacing */
.tvui-last{ display: none !important; }  /* [p2056] Last Price 버튼 숨김 */
.tvui-righttabs{
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
  transform: none;
  margin-right: 0px;
  padding:4px 6px;
  border-radius:12px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: none;
  position:relative;
  top:-3px;
}
.tvui-righttabs .tvui-btn{ padding:0 8px; border-radius:0; }

.tvui-toolbar{
  position:absolute;
  left: 0px;
  /* Start right under the timeframe row */
  /* FIX84N: compute exact toolbar top from JS so it never overlaps the Time row */
  top: var(--tvui-toolbar-top, calc(var(--tvui-top) + var(--tvui-header-h) + 0px));
  /* FIX84I: stop above the chart x-axis labels */
  /* FIX84J: stop exactly at the top of the bottom time axis area */
  bottom: 0;
  /* Cover the whole left edge down to the bottom (so it hides the TradingView watermark) */
  display:flex;
  flex-direction: column;
  /* FIX84H: fill full height + remove transparency */
  padding:0px 4px;
  padding-bottom: calc(var(--tvui-xaxis-h) + 8px);
  /* FIX84J: square ends for exact top/bottom line alignment */
  border-radius:0px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: none;
  pointer-events:auto;
}
.tvui-toolbar-img-wrap{
  position:relative;
  width:44px;
  height:560px;
  flex-shrink:0;
}
.tvui-toolbar-img{
  width:49px;
  height:649px;
  display:block;
  pointer-events:none;
  user-select:none;
  transform: translateX(-2px); 
}
.tvui-tool-hit{
  position:absolute;
  left:0;
  width:44px;
  height:46px;
  cursor:pointer;
  border-radius:8px;
  transition: background 0.15s;
}
.tvui-tool-hit:hover{ background: rgba(255,255,255,0.10); }
.tvui-tool-hit.active{ background: rgba(240,185,11,0.18); }
.tvui-tool{
  width:40px; height:40px;
  margin:4px auto;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  line-height: 40px;
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  background: #0a0a0a;
  border:1px solid rgba(255,255,255,0.08);
  color:#cfd6df;
  cursor:pointer;
  font-size:14px;
}
.tvui-tool:hover{ background: rgba(255,255,255,0.07); }

/* FIX89: Extra bottom Text tool without box */
.tvui-tool.tvui-tool-ghost{
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 16px;
  color: rgba(207,214,223,0.95);
}
.tvui-tool.tvui-tool-ghost:hover{ background: transparent; color:#fff; }

#tvOverlayUI .tvui-auto{
  position:absolute;
  /* FIX84H: smaller + right-tight */
  right: 0px;
  /* FIX84N: keep badge near the bottom axis but not stuck to the upper grid line */
  bottom: 3px;
  background: #0a0a0a;
  border:1px solid rgba(255,255,255,0.10);
  color:#cfd6df;
  font-size:11px;
  /* Keep text vertically centered */
  padding:3px 8px;
  border-radius:8px;
  pointer-events:auto;
  text-transform: uppercase;
  line-height: 14px;
}

/* FIX84C baseline: keep typography consistent */
#tvOverlayUI{font-family: Inter, Roboto, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;}
#tvOverlayUI .tvui-symbol span#tvuiSymbol{font-weight:400; letter-spacing:0.2px; position:relative; top:-3px; /* [p2079] */}
#tvOverlayUI .tvui-timebar .lbl{margin-right:6px; font-size:12px;}
#tvOverlayUI .tvui-mid .tvui-metric:last-child{min-width:150px; padding-right:10px;}


/* FIX84D alignment tweaks */
.tvui-right .tvui-metric:last-child{ min-width: 110px; justify-content:flex-end; }
.tvui-right{ gap:10px; }


/* FIX85A: reduce flicker / improve rendering smoothness */
#tvOverlayUI { 
  transform: translateZ(0);
  will-change: transform, left, top, width, height;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#tvOverlayUI .tvui { contain: layout paint; }

/* FIX85A: responsive scaling (no layout break on smaller screens) */
@media (max-width: 1440px){
  #tvOverlayUI .tvui-topbar{ padding: 6px 6px; }
  .tvui-timebar{ padding: 2px 6px; }
  .tvui-btn{ font-size: 11.5px; }
  .tvui-timebar .lbl{ font-size: 11.5px; }
  .tvui-tool{ width:36px; height:36px; margin:4px auto;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
  line-height: 40px; font-size:16px; border-radius:8px; }
}
@media (max-width: 1280px){
  .tvui-timebar{ gap:7px; }
  .tvui-btn{ padding: 0px 4px; }
  .tvui-righttabs .tvui-btn{ padding:0px 5px; }
  #tvOverlayUI .tvui-auto{ font-size: 10.5px; padding: 3px 7px; }
}

/* FIX85A: TP/SL input visibility + small-screen safe (UI only, no logic change) */
#tpslSection input, #tpslSection select{
  font-family: Inter, Roboto, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #0a0a0a;
  color: #cfd6df;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  min-height: 32px;
  padding: 6px 10px;
}
#tpslSection input:focus, #tpslSection select:focus{
  outline: none;
  border-color: rgba(255,255,255,0.22);
}
@media (max-width: 1366px){
  #tpslSection input, #tpslSection select{ min-height: 30px; padding: 5px 9px; font-size: 12px; }
}

/* FIX85A: coin icon image fit */
.tvui-coin img{
  width:18px;
  height:18px;
  display:block;
  border-radius:50%;
  position: relative;
  z-index: 1;
}

/* FIX85Q: AUTO toggle visual */
.tvui-auto.active{
  background: rgba(59,130,246,0.18) !important;
  border-color: rgba(59,130,246,0.45) !important;
  color: #93c5fd !important;
}

#tvuiAuto{cursor:pointer;}


/* ===== Binance-like Symbol Menu (tvui-symmenu) ===== */
#tvuiSymbolMenu.tvui-symmenu{
  width: 560px;
  height: 728px;
  max-height: none !important;
  overflow: hidden !important;
  background: #161a1e !important;
  border: 1px solid rgba(255,255,255,0.10) !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.65) !important;
  padding: 0 !important;
}
#tvuiSymbolMenu .tvui-symmenu-hd{
  padding: 12px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
#tvuiSymbolMenu .tvui-symmenu-search{
  display:flex; align-items:center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
#tvuiSymbolMenu .tvui-symmenu-search-ico{ opacity:0.75; font-size:14px; }
#tvuiSymbolMenu .tvui-symmenu-search-in{
  width:100%;
  background: transparent;
  border: none;
  outline: none;
  color:#cfd6df;
  font-size: 14px;
}
#tvuiSymbolMenu .tvui-symmenu-tabs{
  display:flex; gap:10px;
  margin-top: 12px;
}
#tvuiSymbolMenu .tvui-symmenu-tab{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color:#cfd6df;
  padding: 8px 12px;
  border-radius: 10px;
  cursor:pointer;
}
#tvuiSymbolMenu .tvui-symmenu-tab.active{
  background: rgba(0,201,255,0.16);
  border-color: rgba(0,201,255,0.35);
  color:#e9f9ff;
}
#tvuiSymbolMenu .tvui-symmenu-th{
  display:flex; justify-content:space-between; align-items:center;
  margin-top: 12px;
  padding: 6px 14px 0 20px;
  color: rgba(207,214,223,0.70);
  font-size: 12px;
}
#tvuiSymbolMenu .tvui-symmenu-th .l{ cursor:pointer; user-select:none; }
#tvuiSymbolMenu .tvui-symmenu-th .r{
  display:flex; gap: 18px; justify-content:flex-end; min-width:200px; font-size:12px;
}
#tvuiSymbolMenu .tvui-symmenu-th .r span{ cursor:pointer; user-select:none; white-space:nowrap; text-align:right; }
#tvuiSymbolMenu .tvui-symmenu-th .r span:nth-child(1){ min-width:90px; }
#tvuiSymbolMenu .tvui-symmenu-th .r span:nth-child(2){ min-width:70px; }
#tvuiSymbolMenu .tvui-symmenu-th .r span:nth-child(3){ min-width:80px; }
#tvuiSymbolMenu .tvui-symmenu-th .sort-arrow{ font-size:10px; opacity:0.8; margin-left:2px; pointer-events:none; }
#tvuiSymbolMenu .tvui-symmenu-list{
  height: calc(728px - 150px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 4px 10px 8px;
}
/* Custom scrollbar for list */
#tvuiSymbolMenu .tvui-symmenu-list::-webkit-scrollbar{ width: 8px; }
#tvuiSymbolMenu .tvui-symmenu-list::-webkit-scrollbar-track{ background: rgba(255,255,255,0.03); border-radius:4px; }
#tvuiSymbolMenu .tvui-symmenu-list::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.15); border-radius:4px; min-height:40px; }
#tvuiSymbolMenu .tvui-symmenu-list::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,0.30); }
#tvuiSymbolMenu .tvui-symmenu-list{ scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) rgba(255,255,255,0.03); }
#tvuiSymbolMenu .tvui-symrow{
  display:flex; justify-content:space-between; align-items:center;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select:none;
}
#tvuiSymbolMenu .tvui-symrow:hover{ background: rgba(255,255,255,0.06); }
#tvuiSymbolMenu .tvui-symrow.active{ background: rgba(0,201,255,0.12); }
#tvuiSymbolMenu .tvui-symrow-l{ display:flex; align-items:center; gap: 10px; min-width: 180px; }
#tvuiSymbolMenu .tvui-sym-ico{
  width: 24px; height: 24px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  color:#0a0a0a;
  font-weight: 800;
  font-size: 12px;
  overflow:hidden;
  background: rgba(255,255,255,0.12);
  flex-shrink:0;
}
#tvuiSymbolMenu .tvui-sym-ico img{ width:100%; height:100%; object-fit:contain; }
#tvuiSymbolMenu .tvui-sym-name{ display:flex; flex-direction:column; gap: 2px; }
#tvuiSymbolMenu .tvui-sym-name .sym-line{ display:flex; align-items:center; gap: 8px; }
#tvuiSymbolMenu .tvui-sym-name .sym{ color:#cfd6df; font-size: 14px; font-weight: 700; }
#tvuiSymbolMenu .tvui-sym-name .pill{
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(207,214,223,0.85);
}
#tvuiSymbolMenu .tvui-sym-name .vol-line{
  font-size: 11px;
  color: rgba(207,214,223,0.45);
  padding-left: 1px;
}
#tvuiSymbolMenu .tvui-symrow-r{
  display:flex; align-items:center; justify-content:flex-end;
  gap: 18px;
  min-width: 200px;
  font-size: 13px;
}
#tvuiSymbolMenu .tvui-symrow-r .lp{ color:#cfd6df; min-width: 90px; text-align:right; }
#tvuiSymbolMenu .tvui-symrow-r .chg{ min-width: 70px; text-align:right; color: rgba(207,214,223,0.75); }
#tvuiSymbolMenu .tvui-symrow-r .chg.pos{ color: #00d9a3; }
#tvuiSymbolMenu .tvui-symrow-r .chg.neg{ color: #ff5b6b; }
#tvuiSymbolMenu .tvui-symrow-r .fund{ min-width: 80px; text-align:right; color: rgba(207,214,223,0.55); font-size:12px; }

/* Price direction */
#tvuiPrice.up, #tvuiPriceDup.up { color: #00c087 !important; }
#tvuiPrice.down, #tvuiPriceDup.down { color: #f6465d !important; }
#tvuiPrice.flat, #tvuiPriceDup.flat { color: #00c087 !important; }


/* Favorites bar */
.tvui-favbar{
  display:flex;
  align-items:center;
  flex:1;
  min-width:0;
  overflow:hidden;
  padding:0;
  height:26px;
  max-height:26px;
}
.tvui-favbar-wrap{
  display:flex;
  align-items:center;
  gap:4px;
  flex:1;
  min-width:0;
  overflow:hidden;
}
.tvui-favbar-scroll{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  flex:1;
  min-width:0;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.tvui-favbar-scroll::-webkit-scrollbar{ display:none; }
.tvui-favbar-arrow{
  background:rgba(255,255,255,0.08);
  border:none;
  color:#848e9c;
  font-size:16px;
  cursor:pointer;
  padding:2px 8px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:4px;
  z-index:2;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.2s;
}
.tvui-favbar-arrow:hover{ background:rgba(255,255,255,0.15); color:#fff; }
.tvui-favbar-arrow.visible{ opacity:1; pointer-events:auto; }
.tvui-fav-item{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color:#ddd;
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 12px;
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
}
.tvui-fav-item:hover{ background: rgba(255,255,255,0.10); }
.tvui-fav-item .tvui-fav-pct{ margin-left:6px; font-variant-numeric: tabular-nums; }
.tvui-fav-pct.pos{ color:#5ded5d; }
.tvui-fav-pct.neg{ color:#ff6b6b; }
.tvui-fav-empty{ color:#777; font-size:12px; padding: 6px 0; }

.tvui-sym-fav{
  width:28px;
  height:28px;
  margin-right:8px;
  border-radius:10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  color:#bbb;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.tvui-sym-fav:hover{ background: rgba(255,255,255,0.10); }


.tvui-funding-title{ font-size:11px; font-weight:700; color:#9aa6b2; opacity:0.95; }
.tvui-funding-row{ display:flex; align-items:baseline; gap:6px; }
.tvui-funding-sep{ color:#9aa6b2; opacity:0.9; }
.tvui-funding-countdown{ font-weight:700; color:#cfd6df; }
.tvui-funding-rate.is-neg{ color:#f6465d; }  /* [p2086] 음수 빨간색 */
.tvui-funding-rate.is-pos{ color:#FF693D; }  /* [p2082] */

/* V28: Extend toolbar background+border upward to touch the timebar (fills the small gap above toolbar) */
.tvui-toolbar{ overflow: visible; }
.tvui-toolbar::before{
  content:"";
  position:absolute;
  left:-1px; right:-1px;
  top:-34px;
  height:34px;
  background:#0a0a0a;
  border-left: 1px solid rgba(255,255,255,0.10);
  border-right:1px solid rgba(255,255,255,0.10);
  border-top: 1px solid rgba(255,255,255,0.10);
}

/* V32: remove top gap under Time row */
.tvui-tool:first-child{ margin-top:0px; }


/* V33: shift tool stack upward to remove remaining gap under Time */
.tvui-toolbar .tvui-tool{ position: relative; top: -26px; }
.tvui-toolbar .tvui-toolbar-img-wrap{ position: relative; top: -32px; } /* [p466] 추가 2px 위로 */

.tvui-toolbar::after{ content:""; display:block; height:6px; }

/* Favorites star: stroke stays default, fill turns yellow when favorited */
.tvui-star{ width:18px; height:18px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.tvui-star svg{ width:18px; height:18px; fill:transparent; stroke:#9aa6b2; stroke-width:1.6; }
.tvui-star.fav svg{ fill:#f0b90b; }
/* Fav bar star */
.tvui-fav-star{ display:inline-flex; align-items:center; justify-content:center; margin-right:6px; }
.tvui-fav-star svg{ width:14px; height:14px; fill:#f0b90b; stroke:#9aa6b2; stroke-width:1.2; }

/* Symbol menu favorite star: outline stays default, fill turns yellow when favorited */
.tvui-sym-fav{ background: transparent; border:0; cursor:pointer; padding:2px; border-radius:8px; display:inline-flex; align-items:center; justify-content:center; margin-right:6px; }
.tvui-sym-fav svg{ width:16px; height:16px; fill:transparent; stroke:#9aa6b2; stroke-width:1.6; }
.tvui-sym-fav.fav svg{ fill:#f0b90b; }

/* Floating Info button (no layout impact) */
.tvui-info-floatbtn{
  position: fixed;
  z-index: 9999;
  background: rgba(16,18,22,0.85);
  border: 1px solid rgba(255,255,255,0.10);
  color: #cfd6df;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}
.tvui-info-floatbtn:hover{ background: rgba(255,255,255,0.06); }
/* Info panel */
.tvui-infopanel{
  position: fixed;
  width: 340px;
  min-height: 180px;
  max-height: 62vh;
  overflow: auto;
  background: rgba(16,18,22,0.96);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 10000;
  color: #cfd6df;
}
.tvui-infopanel.hidden{ display:none; }
.tvui-infopanel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.tvui-infopanel-title{ font-weight:700; font-size:13px; }
.tvui-infopanel-close{
  background: transparent;
  border: 0;
  color:#9aa6b2;
  cursor:pointer;
  font-size:14px;
  padding:4px 6px;
  border-radius:8px;
}
.tvui-infopanel-close:hover{ background: rgba(255,255,255,0.06); }
.tvui-infopanel-body{
  padding: 10px 12px 12px;
  font-size: 12px;
  line-height: 1.45;
}
.tvui-infrow{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px dashed rgba(255,255,255,0.08); }
.tvui-infrow:last-child{ border-bottom:0; }
.tvui-infrow .k{ color:#9aa6b2; }
.tvui-infrow .v{ color:#e6edf5; font-weight:600; text-align:right; }
