.tv-page{margin:0;background:#07111d;overflow:hidden}
.tv-page .app-shell{display:block}
.tv-shell{position:fixed;inset:0;overflow:hidden;padding:1.6vmin 2vmin 0;display:flex;flex-direction:column;gap:1.4vmin;color:#eef3f8;background:radial-gradient(1200px 500px at 85% -10%,rgba(201,162,74,.16),transparent 60%),radial-gradient(900px 420px at 8% 110%,rgba(32,120,189,.14),transparent 55%),linear-gradient(160deg,#0a1626 0%,#07111d 55%,#0b1020 100%);font-family:inherit}
.tv-shell.tv-idle{cursor:none}

.tv-topbar{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:2vmin;padding:1.1vmin 1.8vmin;border:1px solid rgba(255,255,255,.08);border-radius:1.4vmin;background:rgba(255,255,255,.04)}
.tv-brand{display:flex;align-items:center;gap:1.2vmin}
.tv-brand-mark{width:4.6vmin;height:4.6vmin;display:grid;place-items:center;border-radius:1.1vmin;color:#081018;background:linear-gradient(160deg,#f3cd6f,#c9962b);font-size:2.6vmin;font-weight:900}
.tv-brand strong{display:block;font-size:2.2vmin;letter-spacing:.14em}
.tv-brand span{display:block;color:#9fb2c5;font-size:1.25vmin}
.tv-clockbox{text-align:center}
.tv-clock{display:block;font-size:3.4vmin;font-weight:900;letter-spacing:.06em;color:#f6d98a}
.tv-date{display:block;color:#9fb2c5;font-size:1.4vmin}
.tv-status{display:flex;align-items:center;gap:1.4vmin}
.tv-live{display:inline-flex;align-items:center;gap:.7vmin;color:#5ad48e;font-size:1.4vmin;font-weight:900}
.tv-live i{width:1vmin;height:1vmin;border-radius:50%;background:#2fd47c;box-shadow:0 0 0 .6vmin rgba(47,212,124,.18);animation:tvPulse 1.6s infinite}
@keyframes tvPulse{50%{box-shadow:0 0 0 1vmin rgba(47,212,124,.05)}}
.tv-updated{color:#9fb2c5;font-size:1.3vmin}
.tv-updated b{color:#dce6ef}
.tv-topbar-button{display:inline-flex;align-items:center;gap:.7vmin;padding:.9vmin 1.4vmin;border:1px solid rgba(255,255,255,.16);border-radius:1vmin;color:#dce6ef;background:rgba(255,255,255,.06);font:inherit;font-size:1.35vmin;font-weight:800;cursor:pointer}
.tv-topbar-button:hover{background:rgba(255,255,255,.12)}

.tv-hero{flex:1 1 0;min-height:0;display:grid;grid-template-columns:1.35fr 1fr;gap:1.4vmin}
.tv-hero-card{min-height:0;overflow:hidden;padding:1.4vmin 2.4vmin;display:grid;align-content:center;gap:.6vmin;border:1px solid rgba(243,205,111,.28);border-radius:1.6vmin;background:linear-gradient(150deg,rgba(243,205,111,.12),rgba(243,205,111,.03) 55%)}
.tv-hero-card.primary{border-color:rgba(243,205,111,.5);background:linear-gradient(150deg,rgba(243,205,111,.2),rgba(243,205,111,.05) 60%)}
.tv-hero-card .tv-card-title{font-size:clamp(12px,2vmin,38px)}
.tv-hero-card .tv-card-value{font-size:clamp(26px,6.2vmin,130px)}
.tv-hero-card.primary .tv-card-value{font-size:clamp(30px,7.4vmin,150px);color:#f6d98a}

.tv-grid{flex:2 1 0;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:1.4vmin}
.tv-card{min-height:0;overflow:hidden;padding:1.1vmin 1.6vmin;display:grid;align-content:center;gap:.5vmin;border:1px solid rgba(255,255,255,.09);border-radius:1.4vmin;background:rgba(255,255,255,.045)}
.tv-card-title{color:#b9c8d8;font-size:clamp(10px,1.6vmin,30px);font-weight:800}
.tv-card-value{font-size:clamp(16px,3.3vmin,66px);font-weight:900;text-align:left;color:#f2f6fa;font-variant-numeric:tabular-nums}
.tv-card-foot{display:flex;align-items:center;justify-content:space-between;gap:1vmin}
.tv-card-unit{color:#8ba0b5;font-size:clamp(9px,1.25vmin,22px)}
.tv-card-change{padding:.3vmin 1vmin;border-radius:2vmin;font-size:clamp(10px,1.4vmin,26px);font-weight:900;color:#9fb2c5;background:rgba(255,255,255,.07)}
.tv-card-change.up{color:#4ede8c;background:rgba(47,212,124,.14)}
.tv-card-change.down{color:#ff7d7d;background:rgba(255,99,99,.14)}
.tv-flash{animation:tvFlash .9s ease-out}
@keyframes tvFlash{0%{box-shadow:inset 0 0 0 2px rgba(243,205,111,.75)}100%{box-shadow:inset 0 0 0 2px transparent}}

.tv-ticker{flex:0 0 auto;margin-top:auto;margin-inline:-2vmin;padding:1vmin 0;overflow:hidden;border-top:1px solid rgba(243,205,111,.3);background:linear-gradient(90deg,rgba(243,205,111,.14),rgba(243,205,111,.05))}
.tv-ticker-track{display:inline-flex;align-items:center;gap:2.6vmin;white-space:nowrap;animation:tvTicker 36s linear infinite;will-change:transform}
.tv-ticker-track span{color:#f0dba6;font-size:clamp(12px,1.8vmin,34px);font-weight:800}
.tv-ticker-track i{color:#c9962b;font-style:normal;font-size:1.4vmin}
@keyframes tvTicker{0%{transform:translateX(0)}100%{transform:translateX(50%)}}

.tv-settings{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:3vmin;background:rgba(4,9,16,.72);backdrop-filter:blur(3px)}
.tv-settings-panel{width:min(640px,94vw);max-height:88vh;display:flex;flex-direction:column;gap:14px;padding:22px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:#0d1a2b;box-shadow:0 24px 70px rgba(0,0,0,.5)}
.tv-settings-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.tv-settings-head h2{margin:0 0 6px;color:#f6d98a;font-size:18px}
.tv-settings-head p{margin:0;color:#9fb2c5;font-size:11px;line-height:1.9}
.tv-settings-close{display:grid;place-items:center;width:36px;height:36px;border:1px solid rgba(255,255,255,.16);border-radius:9px;color:#dce6ef;background:transparent;cursor:pointer}
.tv-settings-list{margin:0;padding:4px;list-style:none;display:grid;gap:6px;overflow-y:auto}
.tv-settings-list li{padding:9px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(255,255,255,.08);border-radius:9px;color:#7f93a8;background:rgba(255,255,255,.03)}
.tv-settings-list li.is-enabled{color:#eef3f8;border-color:rgba(243,205,111,.35);background:rgba(243,205,111,.08)}
.tv-settings-title{font-size:13px;font-weight:800}
.tv-settings-controls{display:flex;gap:6px}
.tv-settings-controls button{width:34px;height:34px;border:1px solid rgba(255,255,255,.18);border-radius:8px;color:#dce6ef;background:rgba(255,255,255,.06);font-size:15px;font-weight:900;cursor:pointer}
.tv-settings-controls button:hover:not(:disabled){background:rgba(255,255,255,.14)}
.tv-settings-controls button:disabled{opacity:.3;cursor:default}
.tv-settings-actions{display:flex;gap:10px}
.tv-settings-button{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border:1px solid rgba(255,255,255,.18);border-radius:9px;color:#dce6ef;background:rgba(255,255,255,.06);font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.tv-settings-button.primary{color:#081018;border-color:#c9962b;background:linear-gradient(160deg,#f3cd6f,#c9962b)}

@media(max-width:640px){.tv-hero{grid-template-columns:1fr;height:auto;flex:0 0 auto}.tv-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tv-topbar{flex-wrap:wrap;justify-content:center;text-align:center}}
.tv-settings[hidden]{display:none}

.tv-settings-digits{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.1);border-radius:9px;background:rgba(255,255,255,.04)}
.tv-settings-digits>span{color:#9fb2c5;font-size:12px;font-weight:800}
.tv-settings-digits button{padding:8px 16px;border:1px solid rgba(255,255,255,.18);border-radius:8px;color:#dce6ef;background:rgba(255,255,255,.06);font:inherit;font-size:13px;font-weight:900;cursor:pointer}
.tv-settings-digits button.is-active{color:#081018;border-color:#c9962b;background:linear-gradient(160deg,#f3cd6f,#c9962b)}

.tv-fullscreen-fab{position:fixed;inset-inline-start:2.4vmin;bottom:7vmin;z-index:40;display:inline-flex;align-items:center;gap:1vmin;padding:1.4vmin 2.2vmin;border:1px solid #c9962b;border-radius:1.2vmin;color:#081018;background:linear-gradient(160deg,#f3cd6f,#c9962b);font:inherit;font-size:1.9vmin;font-weight:900;cursor:pointer;box-shadow:0 1.2vmin 3vmin rgba(0,0,0,.45)}
.tv-fullscreen-fab:hover{filter:brightness(1.06)}
.tv-shell.is-fullscreen .tv-fullscreen-fab{display:none}

[data-tv-item]{cursor:grab}
[data-tv-item].tv-dragging{opacity:.45;cursor:grabbing}
[data-tv-item].tv-drop-target{outline:.35vmin dashed #f3cd6f;outline-offset:-.35vmin}

.tv-shell.light{color:#1d2833;background:radial-gradient(1200px 500px at 85% -10%,rgba(201,150,43,.14),transparent 60%),linear-gradient(160deg,#f7f9fc 0%,#eef2f7 60%,#e9edf4 100%)}
.tv-shell.light .tv-topbar,.tv-shell.light .tv-card{border-color:#dbe3ec;background:#fff}
.tv-shell.light .tv-brand span,.tv-shell.light .tv-date,.tv-shell.light .tv-updated,.tv-shell.light .tv-card-unit{color:#67788a}
.tv-shell.light .tv-updated b{color:#2b3a49}
.tv-shell.light .tv-clock{color:#a4700a}
.tv-shell.light .tv-topbar-button{border-color:#ccd7e2;color:#2b3a49;background:#f3f6fa}
.tv-shell.light .tv-hero-card{border-color:#e4cf96;background:linear-gradient(150deg,#fdf6e0,#fffdf6 60%)}
.tv-shell.light .tv-hero-card.primary{border-color:#d9b65e;background:linear-gradient(150deg,#faecc2,#fff8e4 60%)}
.tv-shell.light .tv-hero-card.primary .tv-card-value{color:#8a5f00}
.tv-shell.light .tv-card-title{color:#55677a}
.tv-shell.light .tv-card-value{color:#16212c}
.tv-shell.light .tv-card-change{color:#55677a;background:#eef2f7}
.tv-shell.light .tv-card-change.up{color:#146c3c;background:#e2f5ea}
.tv-shell.light .tv-card-change.down{color:#a92a2a;background:#fdeaea}
.tv-shell.light .tv-ticker{border-color:#e0c583;background:linear-gradient(90deg,#f8ecce,#fdf7e8)}
.tv-shell.light .tv-ticker-track span{color:#7a5c12}

.tv-brand-logo{width:5.2vmin;height:5.2vmin;border-radius:1.1vmin;background:#fff;padding:.35vmin;box-shadow:0 0 0 1px rgba(243,205,111,.4)}
.tv-shell.light .tv-brand-logo{box-shadow:0 0 0 1px #d9b65e}

.tv-shell.is-offline .tv-topbar{border-color:rgba(255,99,99,.6);background:linear-gradient(90deg,rgba(170,40,40,.3),rgba(120,25,25,.18));box-shadow:inset 0 0 0 1px rgba(255,99,99,.25)}
.tv-shell.is-offline .tv-live{color:#ff8a8a}
.tv-shell.is-offline .tv-live i{background:#ff5f5f;box-shadow:0 0 0 .6vmin rgba(255,95,95,.2);animation:tvPulse 1s infinite}
.tv-shell.is-offline .tv-updated,.tv-shell.is-offline .tv-updated b{color:#ffb9b9}
.tv-shell.light.is-offline .tv-topbar{border-color:#e9a0a0;background:linear-gradient(90deg,#fde4e4,#fbf0f0);box-shadow:inset 0 0 0 1px #f3baba}
.tv-shell.light.is-offline .tv-live{color:#b22b2b}
.tv-shell.light.is-offline .tv-updated,.tv-shell.light.is-offline .tv-updated b{color:#a94a4a}

.tv-spark{width:100%;height:clamp(8px,2.2vmin,40px);display:block;min-height:0}
.tv-hero-card .tv-spark{height:clamp(12px,3.6vmin,64px)}
@keyframes tvFlashUp{0%,30%{box-shadow:inset 0 0 0 .3vmin rgba(78,222,140,.85);background-color:rgba(47,212,124,.12)}15%,45%{box-shadow:inset 0 0 0 .3vmin transparent;background-color:transparent}100%{box-shadow:inset 0 0 0 .3vmin transparent}}
@keyframes tvFlashDown{0%,30%{box-shadow:inset 0 0 0 .3vmin rgba(255,125,125,.85);background-color:rgba(255,99,99,.12)}15%,45%{box-shadow:inset 0 0 0 .3vmin transparent;background-color:transparent}100%{box-shadow:inset 0 0 0 .3vmin transparent}}
.tv-flash-up{animation:tvFlashUp 1.3s ease-out}
.tv-flash-down{animation:tvFlashDown 1.3s ease-out}

.tv-shell.fa-digits .tv-card-value,.tv-shell.fa-digits .tv-card-change,.tv-shell.fa-digits .tv-clock,.tv-shell.fa-digits .tv-updated b{font-family:"Vazir",Tahoma,sans-serif}
