
.tvp { position: fixed; inset: 0; z-index: 9400; display: grid; place-items: center; padding: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom)); background: rgba(8, 10, 20, .5); }
.tvp.hidden { display: none; }
.tvp-box {
  width: min(760px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; border: 1px solid var(--hn-gold, #c9a24a); color: var(--hn-ink, #f3ead2);
  background: linear-gradient(180deg, rgba(26, 32, 56, .97), rgba(12, 16, 30, .98)); box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.tvp-head { flex: none; display: grid; grid-template-columns: minmax(88px, auto) 1fr minmax(88px, auto); align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid rgba(201, 162, 74, .45); }
.tvp-head .hn-btn { min-height: 48px; font-size: 17px; padding: 0 14px; }
.tvp-head .hn-btn[data-tv="x"] { justify-self: end; }
.tvp-head .tvp-back { justify-self: start; }
.tvp-title { text-align: center; font: 700 21px/1.2 var(--hn-serif, serif); letter-spacing: .06em; color: #f6e7b8; }
.tvp-rc { flex: none; padding: 10px 14px; border-bottom: 1px solid rgba(201, 162, 74, .3); display: grid; gap: 8px; }
.tvp-rc.hidden { display: none; }
.tvp-rc p { margin: 0; font: 600 16px/1.45 var(--hn-sans, sans-serif); word-break: keep-all; }
.tvp-now b { color: #fff6dc; }
.tvp-rcmsg b { color: #f3dc9c; }
.tvp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tvp-acts .hn-btn { min-height: 54px; font-size: 18px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; }
.tvp-acts .hn-btn small { font-size: 13.5px; font-weight: 600; opacity: .85; }
.tvp-tabs { flex: none; display: flex; gap: 6px; padding: 8px 12px 0; }
.tvp-tabs.hidden { display: none; }
.tvp-tab { flex: 1 1 0; min-height: 50px; border-radius: 14px 14px 0 0; border: 1px solid rgba(201, 162, 74, .5); border-bottom: 0; background: rgba(255, 255, 255, .04); color: var(--hn-ink, #f3ead2); font: 700 18px/1 var(--hn-sans, sans-serif); cursor: pointer; }
.tvp-tab.on { background: rgba(240, 216, 144, .18); color: #fff6dc; box-shadow: inset 0 -3px 0 #f0d890; }
.tvp-tab:disabled { opacity: .4; cursor: default; }
.tvp-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; }
.tvp-chans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tvp-ch { display: grid; gap: 6px; padding: 10px; border-radius: 16px; border: 1px solid rgba(201, 162, 74, .55); background: rgba(255, 255, 255, .05); color: inherit; text-align: center; cursor: pointer; word-break: keep-all; }
.tvp-ch img, .tvp-noimg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: #0b0d18; display: block; }
.tvp-ch b { font: 700 21px/1.25 var(--hn-sans, sans-serif); color: #fff6dc; }
.tvp-ch small { font: 500 14.5px/1.35 var(--hn-sans, sans-serif); color: #f0d890; }
.tvp-ch:hover, .tvp-ch:focus-visible, .tvp-v:hover, .tvp-v:focus-visible { border-color: #f0d890; outline: none; background: rgba(255, 230, 160, .1); }
.tvp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tvp-v { width: 100%; display: grid; grid-template-columns: 148px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; border: 1px solid rgba(201, 162, 74, .4); background: rgba(255, 255, 255, .04); color: inherit; text-align: left; cursor: pointer; word-break: keep-all; }
.tvp-v img { width: 148px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 9px; background: #0b0d18; display: block; }
.tvp-v span { display: grid; gap: 4px; min-width: 0; }
.tvp-v b { font: 600 17px/1.4 var(--hn-sans, sans-serif); color: #fff6dc; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tvp-v small { font: 500 14px/1.2 var(--hn-sans, sans-serif); color: #f0d890; }
.tvp-v.cur { border-color: #f0d890; box-shadow: 0 0 0 2px rgba(240, 216, 144, .45); }
.tvp-v[aria-disabled="true"] { opacity: .55; }
.tvp-ro { margin: 0 0 10px; font: 600 15.5px/1.45 var(--hn-sans, sans-serif); color: #f3dc9c; word-break: keep-all; }

.tv-steal { position: absolute; left: 50%; bottom: calc(196px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5; min-height: 62px; padding: 6px 22px; display: grid; gap: 2px; text-align: center; border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: auto; }
.tv-steal b { font: 800 20px/1.1 var(--hn-sans, sans-serif); }
.tv-steal small { font: 600 13.5px/1.2 var(--hn-sans, sans-serif); opacity: .9; }
.tv-steal.hidden { display: none; }
.r3.watching .tv-steal { bottom: calc(86px + env(safe-area-inset-bottom)); }

.tv-ico { display: inline-block; width: 9px; height: 17px; border-radius: 3px; background: #23252e; border: 1px solid #f0d890; position: relative; flex: none; vertical-align: -3px; margin-right: 4px; }
.tv-ico::before { content: ''; position: absolute; left: 50%; top: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #e8453c; }
.r3-me.tv-mine span::before { content: ''; display: inline-block; width: 8px; height: 15px; margin-right: 5px; border-radius: 3px; background: #23252e; border: 1px solid #f0d890; vertical-align: -3px; box-shadow: inset 0 3px 0 -1px #e8453c; }
.tv-chip { font-weight: 700; }

.tv-tip { position: fixed; z-index: 9600; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hn-gold, #c9a24a); background: rgba(14, 18, 34, .96); color: #f6ecd0; font: 500 14.5px/1.5 var(--hn-sans, sans-serif); word-break: keep-all; pointer-events: none; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.tv-tip.hidden { display: none; }

@media (max-width: 560px) {
  .tvp { padding-left: 8px; padding-right: 8px; }
  .tvp-chans { grid-template-columns: 1fr; gap: 10px; }
  .tvp-ch { grid-template-columns: 132px 1fr; grid-template-rows: auto auto; text-align: left; align-items: center; column-gap: 12px; }
  .tvp-ch img, .tvp-ch .tvp-noimg { grid-row: 1 / span 2; width: 132px; }
  .tvp-v { grid-template-columns: 116px 1fr; gap: 10px; }
  .tvp-v img { width: 116px; }
  .tvp-v b { font-size: 16px; }
  .tvp-title { font-size: 19px; }
  .tv-steal { bottom: calc(170px + env(safe-area-inset-bottom)); }
}

@media (max-height: 480px) {
  .tvp-chans { grid-template-columns: repeat(3, 1fr); }
  .tvp-ch b { font-size: 18px; }
  .tvp-ch small { display: none; }
  .tvp-head .hn-btn { min-height: 44px; }
  .tv-steal { bottom: calc(96px + env(safe-area-inset-bottom)); min-height: 54px; }
}
