.ctc-tv, .ctc-tv *, .ctc-tv *::before, .ctc-tv *::after { box-sizing: border-box; }
.ctc-tv { min-width: 0; width: 100%; color: #e5e7eb; font-family: system-ui, sans-serif; }
.ctc-tv[hidden], .ctc-tv [hidden] { display: none !important; }
.ctc-tv-carcasa {
    container-type: inline-size; width: 100%; min-width: 0; padding: 16px; border: 2px solid #2b150a; border-radius: 26px;
    background: repeating-linear-gradient(90deg, #ffffff08 0 2px, #0000000f 2px 6px),
        repeating-linear-gradient(180deg, #28120648 0, #7c472824 14px, #23100552 32px),
        linear-gradient(145deg, #744225, #522c17 45%, #371c0d);
    box-shadow: 0 28px 65px #000c, 0 8px 20px #0009, inset 0 2px 3px #ffd2af59, inset 0 -6px 14px #000a;
}
.ctc-tv-rama { display: grid; grid-template-columns: minmax(0, 1fr) minmax(158px, 31%); gap: 14px; height: 100%; padding: 14px; border: 2px solid #101215; border-radius: 18px; background: linear-gradient(160deg, #25282e, #15171b 60%, #0e1013); box-shadow: inset 0 2px 5px #ffffff1a, inset 0 -3px 8px #000d; }
.ctc-tv-imagine { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ctc-tv-zona-ecran { position: relative; isolation: isolate; flex: 0 0 auto; min-width: 0; width: 100%; }
.ctc-tv-ecran { position: relative; isolation: isolate; flex: 0 0 auto; min-width: 0; width: 100%; overflow: hidden; border: 10px solid #101215; border-radius: 26px / 22px; background: #050607; box-shadow: inset 0 0 24px #000, 0 0 0 2px #050607, 0 1px 0 #ffffff14; }
.ctc-tv-ecran.ctc-tv-ecran--youtube { overflow: visible; border-radius: 0; }
.ctc-tv--linii .ctc-tv-ecran:not(.ctc-tv-ecran--youtube)::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(to bottom, transparent 0 2px, #0004 3px 4px); opacity: .6; }
.ctc-tv-afisaj { width: 100%; aspect-ratio: 16 / 9; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle, #181c20, #030405 75%); color: #cbd5e1; overflow: hidden; }
.ctc-tv-afisaj p { margin: 4px; font: 700 11px/1.3 monospace; }
.ctc-tv-afisaj small { margin: 4px; font: 10px/1.3 system-ui, sans-serif; }
.ctc-tv-afisaj iframe, .ctc-tv-afisaj video, .ctc-tv-afisaj img { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.ctc-tv-afisaj audio { width: 95%; max-width: 400px; }
.ctc-tv-afisaj .ctc-tv-imagine-link { display: block; width: 100%; height: 100%; }
.ctc-tv-afisaj .ctc-tv-text { max-height: 100%; padding: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.4 system-ui, sans-serif; }
.ctc-tv-mira, .ctc-tv-mira svg { display: block; width: 100%; height: 100%; }
.ctc-tv-purici { width: 100%; height: 100%; background: repeating-radial-gradient(circle at 30% 45%, #aaa 0 1px, #181818 2px 3px, #eee 4px 5px, #333 6px 7px); animation: ctc-tv-zgomot .15s steps(2) infinite; }
@keyframes ctc-tv-zgomot { to { background-position: 13px 9px; } }
@media (prefers-reduced-motion: reduce) { .ctc-tv-purici { animation: none; } }
.ctc-tv-stare { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; margin-top: auto; padding: 8px 2px 0; color: #e5e7eb; font: 11px/1.25 monospace; }
.ctc-tv-stare span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctc-tv-stare time { padding: 3px 5px; border: 1px solid #f59e0b55; border-radius: 4px; background: #090b0e; color: #fbbf24; white-space: nowrap; }
.ctc-tv-info { min-height: 0; margin: 0; color: #fcd34d; font: 10px/1.25 system-ui, sans-serif; overflow-wrap: anywhere; }
.ctc-tv-subtitrare-stare { margin: 0; color: #e5e7eb; font: 12px/1.25 system-ui, sans-serif; overflow-wrap: anywhere; }
.ctc-tv-subtitrari { grid-column: 1 / -1; min-width: 0; padding: 8px; border: 1px solid #6b7280; border-radius: 8px; background: #171a20; }
.ctc-tv-subtitrari-antet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.ctc-tv-optiuni-subtitrari { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); gap: 6px; padding: 5px; overflow-x: auto; }
.ctc-tv-comanda { min-height: 28px; padding: 3px 6px; border: 1px solid #6b7280; border-radius: 5px; background: #22262b; color: #f8fafc; font: 700 11px/1.2 system-ui, sans-serif; cursor: pointer; }
.ctc-tv-comanda[aria-pressed=true], .ctc-tv-comanda[aria-expanded=true] { border-color: #fbbf24; color: #fbbf24; }
.ctc-tv-comanda:disabled { opacity: .48; cursor: default; }
.ctc-tv-subtitrari .ctc-tv-comanda { min-height: 44px; padding-inline: 8px; font-size: 14px; white-space: nowrap; }
.ctc-tv-subtitrari-antet .ctc-tv-comanda { margin-inline-start: auto; border-color: #b89556; color: #ffe294; }
.ctc-tv-grila { width: min(34rem, 92vw); max-height: 78dvh; padding: 1rem; border: 1px solid #6b7280; border-radius: 8px; background: #171a20; color: #f8fafc; overflow: auto; }
.ctc-tv-grila::backdrop { background: #0007; }
.ctc-tv-grila form { display: flex; justify-content: flex-end; }
.ctc-tv-grila li { padding-block: .2rem; overflow-wrap: anywhere; }
.ctc-tv-subtitrare-audio { max-height: 90px; overflow: auto; padding: 5px; background: #000; color: #fff; text-align: center; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.3 system-ui, sans-serif; }
.ctc-tv-ecran:not(.ctc-tv-ecran--youtube) + .ctc-tv-subtitrare-audio { position: absolute; z-index: 2; inset-inline: 8%; bottom: max(8%, 6px); border-radius: 4px; background: #000d; font-size: 14px; }
@container (max-width: 380px) {
    .ctc-tv-ecran:not(.ctc-tv-ecran--youtube) + .ctc-tv-subtitrare-audio { inset-inline: max(4%, 5px); padding: 3px; font-size: clamp(11px, 3.6cqi, 13px); }
}
.ctc-tv-loc:fullscreen .ctc-tv-ecran:not(.ctc-tv-ecran--youtube) + .ctc-tv-subtitrare-audio,
.ctc-tv-dialog .ctc-tv-ecran:not(.ctc-tv-ecran--youtube) + .ctc-tv-subtitrare-audio { inset-inline: 5%; max-height: min(120px, 42%); font-size: clamp(17px, 3.2vmin, 30px); }
.ctc-tv-legatura, .ctc-tv-admin { color: #fcd34d; font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.ctc-tv-admin { display: inline-block; margin: 5px 0; color: #075e51; }
.ctc-tv-confidentialitate { display: block; margin-top: 4px; color: #475569; font: 10px/1.3 system-ui, sans-serif; }
.ctc-tv-comenzi { display: flex; min-width: 0; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid #ffffff17; border-radius: 14px; background: repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 3px), linear-gradient(#2b2f36, #1c1f24 55%, #16181c); box-shadow: inset 0 1px #ffffff1f, inset 0 -2px 8px #000b; }
.ctc-tv-antet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; border-bottom: 1px solid #ffffff1a; padding-bottom: 8px; }
.ctc-tv-marca strong { display: block; color: #fbbf24; font: 900 15px/1.1 'Arial Narrow', Arial, sans-serif; letter-spacing: .12em; }
.ctc-tv-marca small { display: block; margin-top: 3px; color: #cbd5e1; font: 10px/1.1 monospace; letter-spacing: .06em; }
.ctc-tv-alimentare { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid #ffffff1a; border-radius: 20px; background: #0007; color: #e5e7eb; font: 700 10px/1 monospace; }
.ctc-tv-led { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fecaca, #ef4444 55%, #991b1b); box-shadow: 0 0 8px #ef4444; }
.ctc-tv.is-pornit .ctc-tv-led { background: radial-gradient(circle at 35% 35%, #bbf7d0, #22c55e 55%, #15803d); box-shadow: 0 0 10px #22c55e; }
.ctc-tv-pornire-cadru { padding: 4px; border-radius: 12px; background: #0f1114; box-shadow: inset 0 3px 6px #000e, 0 1px #ffffff1a; }
.ctc-tv-pornire, .ctc-tv-tasta { width: 100%; padding: 9px 5px; border: 1px solid #ffffff29; border-radius: 9px; background: linear-gradient(#3c424d, #262a31 55%, #1c1f25); box-shadow: 0 4px #0b0d10, inset 0 1px 1px #ffffff47; color: #f9fafb; font: 700 12px/1.1 'Arial Narrow', Arial, sans-serif; letter-spacing: .05em; cursor: pointer; }
.ctc-tv-pornire span { color: #fbbf24; }
.ctc-tv-taste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 5px 5px 9px; border-radius: 12px; background: #0f1114; box-shadow: inset 0 3px 6px #000e, 0 1px #ffffff1a; }
.ctc-tv-tasta { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 5px 3px; text-align: center; letter-spacing: 0; }
.ctc-tv-tasta--principala { grid-column: 1 / -1; padding-inline: 5px; border-color: #b89556; color: #fff3cd; font-size: clamp(13px, 2.4cqi, 16px); }
.ctc-tv-tasta-simbol { flex: 0 0 auto; color: #fbbf24; font-size: 19px; line-height: 1; }
.ctc-tv-tasta-simbol--cc { padding: 2px 3px; border: 1px solid currentColor; border-radius: 4px; font: 700 10px/1 monospace; }
.ctc-tv-tasta:hover { background: linear-gradient(#505867, #30363f 55%, #23262c); }
.ctc-tv-tasta:is([aria-pressed=true], [aria-expanded=true], [data-tv-marit]) { border-color: #fbbf24; color: #ffe294; }
.ctc-tv-tasta:active { transform: translateY(2px); box-shadow: 0 2px #0b0d10, inset 0 1px 1px #ffffff47; }
.ctc-tv-canale { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; border: 1px solid #ffffff1a; border-radius: 12px; background: #0a0c10ad; box-shadow: inset 0 2px 6px #000a; }
.ctc-tv-canale-informatii { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.ctc-tv-canale-informatii > span { color: #fbbf24; font: 700 11px/1 Arial, sans-serif; letter-spacing: .05em; }
.ctc-tv-canal-afisaj { padding: 3px 7px; border: 1px solid #4ade8059; border-radius: 6px; background: #07090b; color: #4ade80; font: 700 12px/1 monospace; text-shadow: 0 0 8px #4ade80bf; white-space: nowrap; }
.ctc-tv-canale-butoane { display: flex; gap: 5px; }
.ctc-tv-canale-butoane button { width: 24px; height: 24px; padding: 0; border: 1px solid #ffffff24; border-radius: 6px; background: #272b33; color: #e5e7eb; font: 700 14px/1 Arial, sans-serif; cursor: pointer; }
.ctc-tv-selector { position: relative; flex: none; width: 66px; height: 66px; padding: 0; border: 2px solid #2f343e; border-radius: 50%; background: radial-gradient(circle, #17191e 58%, #0a0b0d); box-shadow: 0 4px 10px #000b, inset 0 2px 5px #000e; cursor: ns-resize; touch-action: none; }
.ctc-tv-selector::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: repeating-conic-gradient(from -3deg, #f59e0ba6 0deg 4deg, transparent 4deg 30deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); }
.ctc-tv-selector > span { position: absolute; inset: 10px; border: 2px solid #090b0e; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #646c7a, #2b3038 55%, #121418); box-shadow: 0 3px 6px #000d, inset 0 1px 2px #ffffff59; transform: rotate(var(--unghi, -135deg)); }
.ctc-tv-selector > span::before { content: ''; position: absolute; top: 10%; bottom: 10%; left: calc(50% - 4px); width: 8px; border-radius: 4px; background: linear-gradient(90deg, #272b33, #525966 45%, #1f2228); box-shadow: 0 1px 4px #000c; }
.ctc-tv-selector > span::after { content: ''; position: absolute; top: 14%; left: calc(50% - 2px); width: 4px; height: 9px; border-radius: 2px; background: #f59e0b; box-shadow: 0 0 6px #f59e0b; }
.ctc-tv-potentiometre { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ctc-tv-reglaj { min-width: 0; padding: 7px 6px; border: 1px solid #ffffff14; border-radius: 12px; background: #0c0e128c; box-shadow: inset 0 2px 5px #0009; color: #f3f4f6; }
.ctc-tv-reglaj--sonor { grid-column: 1 / -1; }
.ctc-tv-reglaj-antet { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px; }
.ctc-tv-reglaj-antet span { min-width: 0; color: #f8fafc; font: 700 11px/1.15 'Arial Narrow', Arial, sans-serif; letter-spacing: .03em; overflow-wrap: anywhere; }
.ctc-tv-reglaj output { padding: 2px 4px; border: 1px solid #fbbf2447; border-radius: 4px; background: #090b0e; color: #fbbf24; font: 700 11px/1 monospace; text-shadow: 0 0 6px #fbbf2480; white-space: nowrap; }
.ctc-tv-reglaj-butoane { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 5px; }
.ctc-tv-reglaj-butoane > button:not(.ctc-tv-rotita) { flex: none; width: 24px; height: 24px; padding: 0; border: 1px solid #ffffff24; border-radius: 6px; background: #272b33; color: #f8fafc; font: 700 14px/1 Arial, sans-serif; cursor: pointer; }
.ctc-tv-rotita { position: relative; width: 38px; height: 38px; padding: 0; flex: none; border: 2px solid #0c0e11; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #5b6270, #2a2e36 52%, #14161a); box-shadow: 0 4px 8px #000c, inset 0 1px 2px #ffffff59, inset 0 -2px 4px #000c; cursor: ns-resize; touch-action: none; }
.ctc-tv-rotita::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: conic-gradient(from 225deg, #f59e0bbf 0deg 135deg, #ffffff35 135deg 270deg, transparent 270deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.ctc-tv-rotita span { position: absolute; inset: 2px; transform: rotate(var(--unghi, 0deg)); }
.ctc-tv-rotita span::before { content: ''; position: absolute; top: 1px; left: 50%; width: 3px; height: 10px; border-radius: 2px; background: linear-gradient(#fef08a, #f59e0b); box-shadow: 0 0 5px #f59e0be6; transform: translateX(-50%); }
.ctc-tv-sunet-nota { color: #cbd5e1; font: 10px/1.3 system-ui, sans-serif; }
.ctc-tv-difuzor { min-height: 44px; margin-top: auto; border: 1px solid #090a0c; border-radius: 10px; background: radial-gradient(#040506 28%, transparent 32%) 0 0 / 8px 8px, radial-gradient(#ffffff0f 28%, transparent 32%) 4px 4px / 8px 8px, #101215; box-shadow: inset 0 3px 10px #000f, 0 1px #ffffff14; }
.ctc-tv button:focus-visible, .ctc-tv a:focus-visible { outline: 3px solid #fde047; outline-offset: 2px; }
.ctc-tv-dialog { width: min(calc(100vw - 16px), max(320px, calc(190vh - 225px)), calc(133.333vh + 120px)); max-width: none; max-height: calc(100vh - 16px); overflow: auto; padding: 10px; border: 1px solid #b88959; border-radius: 14px; background: #16191d; color: white; }
.ctc-tv-dialog::backdrop { background: #000c; }
.ctc-tv-dialog .ctc-tv-carcasa { margin-top: 4px; padding: 10px 16px; }
.ctc-tv-dialog .ctc-tv-rama { grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; padding: 10px 14px; }
.ctc-tv-dialog .ctc-tv-stare { padding-top: 4px; }
.ctc-tv-dialog .ctc-tv-comenzi { gap: 5px; padding: 6px; }
.ctc-tv-dialog .ctc-tv-antet { flex-wrap: nowrap; gap: 4px; padding-bottom: 5px; }
.ctc-tv-dialog .ctc-tv-marca strong { font-size: 14px; letter-spacing: .05em; white-space: nowrap; }
.ctc-tv-dialog .ctc-tv-pornire { padding: 11px 5px; font-size: 13px; }
.ctc-tv-dialog .ctc-tv-potentiometre { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.ctc-tv-dialog .ctc-tv-reglaj { display: flex; flex-direction: column; padding: 4px 1px; }
.ctc-tv-dialog .ctc-tv-reglaj-antet { justify-content: center; gap: 2px; }
.ctc-tv-dialog .ctc-tv-reglaj-antet span { text-align: center; }
.ctc-tv-dialog .ctc-tv-reglaj-butoane { gap: 2px; margin-top: auto; padding-top: 5px; }
.ctc-tv-dialog .ctc-tv-rotita { width: 44px; height: 44px; }
.ctc-tv-dialog .ctc-tv-rotita::before { inset: -3px; pointer-events: none; }
.ctc-tv-loc:fullscreen { width: 100%; height: 100%; overflow: auto; background: #101215; }
.ctc-tv-loc:fullscreen .ctc-tv-carcasa { display: grid; min-height: 100%; margin: 0; padding: 6px; border-radius: 0; }
.ctc-tv-loc:fullscreen .ctc-tv-rama { height: auto; gap: 8px; padding: 8px; }
.ctc-tv-loc:fullscreen .ctc-tv-zona-ecran { align-self: center; width: min(100%, max(160px, calc((100dvh - 108px) * 16 / 9))); }
.ctc-tv-loc:fullscreen .ctc-tv-ecran { border-width: 0; border-radius: 0; }
@media (min-width: 801px) {
    .ctc-tv-loc:fullscreen .ctc-tv-rama { grid-template-columns: minmax(0, 1fr) 220px; }
}
@container (max-width: 620px) {
    .ctc-tv-dialog .ctc-tv-rama { grid-template-columns: minmax(0, 1fr); }
}
@container (max-width: 520px) {
    .ctc-tv-rama, .ctc-tv-dialog .ctc-tv-rama { grid-template-columns: minmax(0, 1fr); }
    .ctc-tv-comenzi { gap: 8px; }
}
@container (min-width: 230px) and (max-width: 800px) {
    .ctc-tv-loc .ctc-tv-rama { grid-template-columns: minmax(0, 1fr) minmax(130px, 36%); gap: 4px; padding: 3px; }
    .ctc-tv-loc .ctc-tv-imagine { gap: 2px; }
    .ctc-tv-loc .ctc-tv-ecran { border-width: 4px; border-radius: 12px / 10px; }
    .ctc-tv-loc .ctc-tv-afisaj p { font-size: clamp(8px, 2.8cqw, 11px); }
    .ctc-tv-loc .ctc-tv-afisaj small { font-size: clamp(8px, 2.6cqw, 10px); }
    .ctc-tv-loc .ctc-tv-stare { gap: 2px; padding: 4px 1px 0; font-size: 8px; }
    .ctc-tv-loc .ctc-tv-stare time { padding: 2px 3px; font-size: 8px; }
    .ctc-tv-loc .ctc-tv-comenzi { gap: 1px; padding: 2px; border-radius: 8px; }
    .ctc-tv-loc .ctc-tv-antet { flex-wrap: nowrap; gap: 2px; padding-bottom: 0; }
    .ctc-tv-loc .ctc-tv-marca strong { font-size: clamp(9px, 2.6cqw, 13px); letter-spacing: .03em; white-space: nowrap; }
    .ctc-tv-loc .ctc-tv-marca small { margin-top: 1px; font-size: 6px; letter-spacing: 0; }
    .ctc-tv-loc .ctc-tv-alimentare { gap: 2px; padding: 2px; font-size: 7px; }
    .ctc-tv-loc .ctc-tv-led { width: 5px; height: 5px; }
    .ctc-tv-loc .ctc-tv-pornire-cadru { padding: 1px; border-radius: 6px; }
    .ctc-tv-loc .ctc-tv-pornire { display: block; padding: 1px; border-radius: 4px; font-size: clamp(9px, 2.4cqw, 11px); letter-spacing: 0; box-shadow: 0 2px #0b0d10, inset 0 1px 1px #ffffff47; }
    .ctc-tv-loc .ctc-tv-canale { gap: 2px; padding: 1px 2px; border-radius: 6px; }
    .ctc-tv-loc .ctc-tv-canale-informatii { display: grid; grid-template-columns: auto auto; grid-template-areas: 'eticheta canal' 'butoane butoane'; gap: 1px; }
    .ctc-tv-loc .ctc-tv-canale-informatii > span { grid-area: eticheta; font-size: clamp(8px, 2.2cqw, 10px); letter-spacing: 0; }
    .ctc-tv-loc .ctc-tv-canal-afisaj { grid-area: canal; padding: 2px 3px; border-radius: 3px; font-size: 8px; }
    .ctc-tv-loc .ctc-tv-canale-butoane { grid-area: butoane; gap: 2px; }
    .ctc-tv-loc .ctc-tv-canale-butoane button { width: 12px; height: 12px; border-radius: 3px; font-size: 10px; }
    .ctc-tv-loc .ctc-tv-selector { width: clamp(25px, 7cqw, 40px); height: clamp(25px, 7cqw, 40px); }
    .ctc-tv-loc .ctc-tv-selector > span { inset: 5px; border-width: 1px; }
    .ctc-tv-loc .ctc-tv-selector > span::before { left: calc(50% - 2px); width: 4px; }
    .ctc-tv-loc .ctc-tv-selector > span::after { left: calc(50% - 1px); width: 2px; height: 5px; }
    .ctc-tv-loc .ctc-tv-potentiometre { gap: 1px; }
    .ctc-tv-loc .ctc-tv-reglaj { padding: 1px; border-radius: 6px; }
    .ctc-tv-loc .ctc-tv-reglaj-antet { gap: 1px; }
    .ctc-tv-loc .ctc-tv-reglaj-antet span { font-size: clamp(10px, 2.4cqw, 11px); letter-spacing: -.03em; }
    .ctc-tv-loc .ctc-tv-reglaj output { padding: 0 1px; border-radius: 2px; font-size: clamp(8px, 1.8cqw, 9px); }
    .ctc-tv-loc .ctc-tv-reglaj-butoane { gap: 1px; margin-top: 0; }
    .ctc-tv-loc .ctc-tv-reglaj-butoane > button:not(.ctc-tv-rotita) { width: clamp(12px, 3.8cqw, 19px); height: clamp(12px, 3.8cqw, 19px); border-radius: 3px; font-size: 10px; }
    .ctc-tv-loc .ctc-tv-rotita { width: clamp(14px, 4.4cqw, 24px); height: clamp(14px, 4.4cqw, 24px); border-width: 1px; }
    .ctc-tv-loc .ctc-tv-rotita::before { inset: -2px; pointer-events: none; }
    .ctc-tv-loc .ctc-tv-rotita span::before { width: 2px; height: 5px; }
    .ctc-tv-loc .ctc-tv-sunet-nota { font-size: clamp(7px, 1.8cqw, 9px); line-height: 1; }
    .ctc-tv-loc .ctc-tv-difuzor { min-height: clamp(8px, 2.6cqw, 14px); border-radius: 5px; }
}
@media (max-width: 520px) {
    .ctc-tv-dialog { width: calc(100vw - 8px); max-height: calc(100vh - 8px); padding: 4px; }
    .ctc-tv-dialog .ctc-tv-carcasa { padding: 8px; }
    .ctc-tv-dialog .ctc-tv-rama { grid-template-columns: minmax(0, 1fr); }
    .ctc-tv-dialog .ctc-tv-rama { padding: 6px; }
    .ctc-tv-dialog .ctc-tv-ecran { border-width: 4px; }
    .ctc-tv-dialog .ctc-tv-potentiometre { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 360px) {
    .ctc-tv-dialog { width: calc(100vw - 4px); max-height: calc(100vh - 4px); padding: 2px; }
    .ctc-tv-dialog .ctc-tv-carcasa { padding: 3px; border-width: 1px; }
    .ctc-tv-dialog .ctc-tv-rama { padding: 2px; border-width: 1px; }
}
@container (max-width: 236px) {
    .ctc-tv-dialog .ctc-tv-antet { flex-wrap: wrap; }
    .ctc-tv-dialog .ctc-tv-potentiometre { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) {
    .stampila-wrap.ctc-are-televizor, .ctc-harta-afisata .stampila-wrap.ctc-harta-pozitii.ctc-are-televizor { grid-template-columns: minmax(0, 1fr) minmax(330px, 2fr) minmax(0, 1fr); align-items: start; }
    .stampila-wrap.ctc-are-televizor > .stampila-center { grid-column: 2; grid-row: 1; }
    .stampila-wrap.ctc-are-televizor > .ctc-harta-exemplu--stanga { grid-column: 1; grid-row: 2; }
    .stampila-wrap.ctc-are-televizor > .ctc-harta-exemplu--dreapta { grid-column: 3; grid-row: 2; }
    .stampila-wrap.ctc-are-televizor > .ctc-tv { grid-column: 2; grid-row: 2; align-self: stretch; }
    .stampila-wrap.ctc-are-televizor > .ctc-tv > .ctc-tv-loc > .ctc-tv-carcasa { padding: 8px; }
    .stampila-wrap.ctc-are-televizor > .ctc-tv > .ctc-tv-loc .ctc-tv-rama { padding: 3px; }
}
@media (max-width: 760px) {
    .stampila-wrap.ctc-are-televizor > .ctc-tv { grid-column: 1 / -1; grid-row: 2; }
    .stampila-wrap.ctc-are-televizor > .ctc-harta-exemplu--stanga { grid-column: 1; grid-row: 3; }
    .stampila-wrap.ctc-are-televizor > .ctc-harta-exemplu--dreapta { grid-column: 2; grid-row: 3; }
    .ctc-harta-afisata .stampila-wrap.ctc-harta-pozitii.ctc-are-televizor > .ctc-tv { grid-row: 3; }
    .ctc-harta-afisata .stampila-wrap.ctc-harta-pozitii.ctc-are-televizor > .ctc-harta-exemplu--stanga,
    .ctc-harta-afisata .stampila-wrap.ctc-harta-pozitii.ctc-are-televizor > .ctc-harta-exemplu--dreapta { grid-row: 4; }
}
@media (max-width: 420px) {
    .ctc-harta-afisata .stampila-wrap.ctc-harta-pozitii.ctc-are-televizor > .ctc-tv { grid-row: 4; }
    .ctc-harta-afisata .stampila-wrap.ctc-harta-pozitii.ctc-are-televizor > .ctc-harta-exemplu--stanga,
    .ctc-harta-afisata .stampila-wrap.ctc-harta-pozitii.ctc-are-televizor > .ctc-harta-exemplu--dreapta { grid-row: 5; }
}
@media print { .ctc-tv { display: none !important; } }
.ctc-tv-editor-page { margin: 0; padding: 20px; background: #e2e8f0; color: #0f172a; font-family: system-ui, sans-serif; }
.ctc-tv-editor { max-width: 1050px; margin: auto; }
.ctc-tv-editor *, .ctc-tv-editor *::before, .ctc-tv-editor *::after { box-sizing: border-box; }
.ctc-tv-editor [hidden] { display: none !important; }
.ctc-tv-editor a { color: #047857; font-weight: 700; }
.ctc-tv-editor h1 { margin-bottom: 4px; }
.ctc-tv-editor h2 { margin: 0 0 10px; font-size: 19px; }
.ctc-tv-editor p { line-height: 1.45; }
.ctc-tv-editor-card { margin: 14px 0; padding: 18px; border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px #0f172a12; }
.ctc-tv-editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.ctc-tv-editor label { display: flex; flex-direction: column; gap: 5px; margin: 7px 0; font-size: 14px; font-weight: 700; }
.ctc-tv-editor input:not([type="checkbox"]), .ctc-tv-editor select, .ctc-tv-editor textarea { width: 100%; padding: 9px; border: 1px solid #94a3b8; border-radius: 6px; background: #fff; color: #0f172a; font: inherit; }
.ctc-tv-editor button { padding: 9px 13px; border: 1px solid #0f766e; border-radius: 6px; background: #047857; color: white; font: 700 14px system-ui, sans-serif; cursor: pointer; }
.ctc-tv-editor button:disabled { opacity: .5; cursor: not-allowed; }
.ctc-tv-editor button:focus-visible, .ctc-tv-editor input:focus-visible, .ctc-tv-editor select:focus-visible, .ctc-tv-editor textarea:focus-visible, .ctc-tv-editor a:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ctc-tv-editor-tabs, .ctc-tv-editor-actiuni { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.ctc-tv-editor-tabs button[aria-pressed="false"] { background: #fff; color: #065f46; }
.ctc-tv-editor-check { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 8px !important; }
.ctc-tv-editor-drop { padding: 18px; border: 2px dashed #64748b; border-radius: 8px; background: #f8fafc; line-height: 1.5; }
.ctc-tv-editor-drop input { margin-top: 8px; }
.ctc-tv-editor-drop.is-drag { border-color: #047857; background: #ecfdf5; }
.ctc-tv-editor-feedback { padding: 10px 12px; border-radius: 7px; background: #ecfdf5; color: #065f46; }
.ctc-tv-editor-feedback.is-eroare, .ctc-tv-editor-eroare { background: #fef2f2; color: #991b1b; }
.ctc-tv-editor-lista { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ctc-tv-editor-lista li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 7px; }
.ctc-tv-editor-lista li > span { flex: 1 1 220px; overflow-wrap: anywhere; }
.ctc-tv-editor-lista button { padding: 6px 9px; }
.ctc-tv-editor-traduceri { min-width: 0; margin: 14px 0; padding: 14px; border: 1px solid #cbd5e1; border-radius: 8px; }
.ctc-tv-editor-traduceri legend { padding: 0 5px; font-weight: 700; }
.ctc-tv-editor-traduceri .ctc-tv-editor-lista { margin-top: 10px; }
