/* Interactive illustrations (assets/js/widgets.js) */
.tv-widget { --tvw-line: #34343B; color: var(--wp--preset--color--contrast); font-size: 16px; }
.tvw-card { background: var(--wp--preset--color--surface); border: 1px solid var(--tvw-line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; }
.tvw-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tvw-between { justify-content: space-between; }
.tvw-muted { color: var(--wp--preset--color--text-muted); margin: 0; font-size: 14px; }
.tvw-note { color: var(--wp--preset--color--text-subtle); }
.tvw-g { color: var(--wp--preset--color--green); margin: 0; }
.tvw-label { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--green); }
.tvw-h3 { margin: 0; font-size: 20px; font-weight: 700; color: #fff; }
.tvw-pill, .tvw-step, .tvw-btn, .tvw-pin, .tvw-swatch { font: inherit; cursor: pointer; }
.tvw-pill { font-size: 14px; font-weight: 600; border-radius: 8px; padding: 8px 14px; min-height: 40px; background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid #45454F; }
.tvw-pill[aria-pressed="true"] { background: var(--wp--preset--color--green); color: var(--wp--preset--color--base); border-color: transparent; font-weight: 700; }
.tvw-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #3F3F48; padding: 0; }
.tvw-swatch[aria-pressed="true"] { border: 3px solid #fff; }
.tvw-btn { background: linear-gradient(90deg, #38EE7D, #11988D); color: var(--wp--preset--color--base); border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; min-height: 44px; }
.tvw-split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.tvw-split-tools { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
@media (max-width: 860px) { .tvw-split, .tvw-split-tools { grid-template-columns: minmax(0, 1fr); } }
.tvw-steps { display: flex; flex-direction: column; gap: 8px; }
.tvw-step { text-align: left; display: flex; gap: 12px; align-items: center; border-radius: 12px; padding: 12px 16px; min-height: 48px; background: transparent; color: #fff; border: 1.5px solid var(--tvw-line); font-weight: 700; }
.tvw-step small { display: block; font-weight: 400; color: var(--wp--preset--color--text-muted); font-size: 14px; }
.tvw-step[aria-pressed="true"] { border-color: var(--wp--preset--color--green); background: var(--wp--preset--color--base); }
.tvw-n { color: var(--wp--preset--color--green); font-size: 14px; }
.tvw-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, #2B3836 0%, #1D1D21 60%), #1D1D21; border: 1px solid var(--tvw-line); }
.tvw-play { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-35%, -50%); border-left: 34px solid var(--wp--preset--color--green); border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.tvw-matched { background: linear-gradient(135deg, #11988D 0%, #1D1D21 75%); }
.tvw-castle { background: linear-gradient(160deg, #3A3A41 0%, #26262B 45%, #11988D 140%); }
.tvw-badge { position: absolute; left: 12px; top: 12px; font-size: 14px; font-weight: 700; color: var(--wp--preset--color--base); background: var(--wp--preset--color--green); border-radius: 6px; padding: 2px 8px; }
.tvw-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); }
.tvw-bar span { display: block; width: 38%; height: 100%; border-radius: 3px; }
.tvw-page { background: #F6F6FB; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; min-height: 260px; }
.tvw-lines { display: flex; flex-direction: column; gap: 8px; }
.tvw-lines i { display: block; height: 10px; border-radius: 5px; background: #D9D9E6; width: 100%; }
.tvw-player { transition: all .3s; }
.tvw-mode-1 { position: absolute; right: 14px; bottom: 14px; width: 42%; box-shadow: 0 8px 24px rgba(0,0,0,.35); border: 2px solid var(--tvw-accent); border-radius: 14px; }
.tvw-mode-2 { width: 60%; margin-left: auto; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.tvw-mode-2 .tvw-frame, .tvw-mode-1 .tvw-frame { border-radius: 12px; }
.tvw-article { background: #F6F6FB; color: var(--wp--preset--color--base); border-radius: 16px; overflow: hidden; min-width: 0; }
.tvw-article p { margin: 0; color: #2A2A30; line-height: 1.6; }
.tvw-chrome { display: flex; gap: 6px; align-items: center; padding: 12px 16px; background: #E4E4EE; font-size: 13px; color: #45454F; overflow: hidden; white-space: nowrap; }
.tvw-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #FC416A; flex: none; }
.tvw-chrome i:nth-child(2) { background: #FAAF40; } .tvw-chrome i:nth-child(3) { background: #38EE7D; }
.tvw-chrome span { margin-left: 8px; text-overflow: ellipsis; overflow: hidden; }
.tvw-article-body { position: relative; padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.tvw-a-title { font-size: 20px; font-weight: 700; color: var(--wp--preset--color--base) !important; }
.tvw-a-meta { font-size: 14px; color: #5C5C68 !important; }
.tvw-article mark { background: rgba(56,238,125,.3); color: inherit; border-radius: 4px; padding: 0 3px; }
.tvw-slot { aspect-ratio: 16 / 9; border-radius: 12px; background: #1D1D21; color: #9A9AAA; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.tvw-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #38EE7D; box-shadow: 0 0 12px #38EE7D; animation: tvw-scan 2.6s linear infinite; }
@keyframes tvw-scan { to { top: 100%; } }
.tvw-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; background: linear-gradient(110deg, #11988D, #1D1D21); border-radius: 12px; padding: 16px; }
.tvw-figs b { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.tvw-figs span { font-size: 14px; color: #E6F7F2; }
.tvw-tags { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tvw-tags em, .tvw-chip { font-style: normal; font-size: 14px; font-weight: 600; border: 1px solid #3F3F48; border-radius: 999px; padding: 4px 12px; background: rgba(29,29,33,.85); color: #F1F1FA; }
.tvw-chip { background: transparent; color: #7A7A88; }
.tvw-chip-on { background: var(--wp--preset--color--green); color: var(--wp--preset--color--base); border-color: transparent; }
.tvw-cc { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; border-radius: 6px; padding: 4px 12px; font-size: 15px; width: max-content; max-width: 90%; text-align: center; }
.tvw-chap { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 4px; }
.tvw-chap i { height: 6px; border-radius: 3px; background: #fff; }
.tvw-chap i.tvw-on { background: var(--wp--preset--color--green); }
.tvw-out { margin-top: 12px; }
.tvw-rule select { font: inherit; font-size: 14px; color: #F1F1FA; background: #1D1D21; border: 1px solid #45454F; border-radius: 8px; padding: 8px 10px; min-height: 40px; }
.tvw-bid { display: grid; grid-template-columns: 70px 1fr auto; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.tvw-bidbar { height: 14px; border-radius: 4px; background: #45454F; transition: width .4s; }
.tvw-bidbar.tvw-win { background: var(--wp--preset--color--green); }
.tvw-svg { width: 100%; height: auto; display: block; }
.tvw-map { padding: 16px; }
.tvw-pin { position: absolute; transform: translate(-50%, -100%); font-size: 14px; font-weight: 700; border-radius: 999px 999px 999px 0; padding: 8px 14px; min-height: 40px; background: #26262B; color: #F1F1FA; border: 1.5px solid #38EE7D; }
.tvw-pin[aria-pressed="true"] { background: #38EE7D; color: #1D1D21; box-shadow: 0 0 0 6px rgba(56,238,125,.2); }
@keyframes tvw-dash { to { stroke-dashoffset: -26; } }
.tvw-flow { animation: tvw-dash 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tvw-scan, .tvw-flow { animation: none; } .tvw-player, .tvw-bidbar { transition: none; } }
@media (max-width: 480px) { .tvw-figs b { font-size: 22px; } .tvw-figs span { font-size: 12px; } }
