/* NexusTV 1.0.0 — δημόσια σελίδα. Σκούρο «τηλεόραση», κινητό πρώτα (375 px χωρίς οριζόντια κύλιση), RTL με λογικές ιδιότητες. Κλάσεις tv-*. */
.tv {
    --tv-bg: #0e1015; --tv-bg2: #161922; --tv-card: #1b1f2a; --tv-line: #2a3040; --tv-text: #e9ecf3; --tv-mute: #9aa3b5;
    --tv-acc: #e5484d; --tv-acc2: #ff6b6f; --tv-ok: #2fbf71; --tv-warn: #f5a524; --tv-rad: 12px;
    margin: 0; background: var(--tv-bg); color: var(--tv-text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
    overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
.tv *, .tv *::before, .tv *::after { box-sizing: border-box; }
.tv a { color: inherit; }
.tv img { max-width: 100%; }
.tv-in { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.tv-skip { position: absolute; inset-inline-start: -999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 99; }
.tv-skip:focus { inset-inline-start: 8px; }
.tv-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tv-hp { position: absolute; inset-inline-start: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* πάνω γραμμή */
.tv-top { position: sticky; top: 0; z-index: 20; background: rgba(14, 16, 21, .94); border-bottom: 1px solid var(--tv-line); backdrop-filter: blur(8px); }
.tv-top-in { display: flex; align-items: center; gap: 10px; min-height: 58px; flex-wrap: wrap; padding-block: 8px; }
.tv-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.tv-logo { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--tv-acc), #8b5cf6); color: #fff; }
.tv-search { order: 3; flex: 1 1 100%; display: flex; background: var(--tv-bg2); border: 1px solid var(--tv-line); border-radius: 999px; overflow: hidden; }
.tv-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--tv-text); padding: 9px 14px; font: inherit; }
.tv-search button { background: transparent; border: 0; color: var(--tv-mute); padding-inline: 14px; cursor: pointer; }
.tv-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.tv-nav > a { text-decoration: none; color: var(--tv-mute); display: inline-flex; align-items: center; gap: 6px; }
.tv-nav > a.is-on, .tv-nav > a:hover { color: var(--tv-text); }
.tv-count { background: var(--tv-acc); color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; line-height: 18px; }
.tv-hide-sm { display: none; }
@media (min-width: 760px) {
    .tv-search { order: 0; flex: 1 1 auto; max-width: 520px; margin-inline: auto; }
    .tv-nav { margin-inline-start: 0; }
    .tv-hide-sm { display: inline; }
}

/* κουμπιά, μηνύματα, φόρμες */
.tv-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--tv-line); background: var(--tv-card); color: var(--tv-text);
          font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2; }
.tv-btn:hover { border-color: #3a4257; }
.tv-btn:disabled { opacity: .55; cursor: default; }
.tv-btn-sm { padding: 6px 11px; font-size: 13px; }
.tv-btn-pri { background: var(--tv-acc); border-color: var(--tv-acc); color: #fff; }
.tv-btn-pri:hover { background: var(--tv-acc2); border-color: var(--tv-acc2); }
.tv-btn-danger { color: #ffb4b6; }
.tv-btn.is-on { border-color: var(--tv-acc); }
.tv-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tv-inline { display: inline; margin: 0; }
.tv-main { flex: 1; padding-block: 18px 40px; }
.tv-msg { padding: 11px 14px; border-radius: var(--tv-rad); margin: 0 0 16px; border: 1px solid var(--tv-line); background: var(--tv-bg2); }
.tv-msg-ok { border-color: rgba(47, 191, 113, .5); }
.tv-msg-err { border-color: rgba(229, 72, 77, .6); }
.tv-msg-warn { border-color: rgba(245, 165, 36, .55); }
.tv-msg a { font-weight: 700; }
.tv-note { color: var(--tv-mute); font-size: 14px; }
.tv-note a { color: var(--tv-text); }
.tv-box { background: var(--tv-bg2); border: 1px solid var(--tv-line); border-radius: var(--tv-rad); padding: 18px; margin-bottom: 18px; }
.tv-box h1, .tv-box h2 { margin-top: 0; }
.tv-narrow { max-width: 640px; margin-inline: auto; }
.tv-center { text-align: center; }
.tv-big-ico { font-size: 42px; color: var(--tv-mute); margin: 6px 0; }
.tv-h1 { font-size: 22px; margin: 0 0 12px; }
.tv-form { display: grid; gap: 14px; }
.tv-form label { display: grid; gap: 6px; }
.tv-form label > span { font-weight: 600; font-size: 14px; }
.tv-form small { color: var(--tv-mute); }
.tv-form input[type="text"], .tv-form input[type="url"], .tv-form input[type="email"], .tv-form input[type="number"], .tv-form textarea, .tv-form select {
    width: 100%; background: var(--tv-bg); color: var(--tv-text); border: 1px solid var(--tv-line); border-radius: 10px; padding: 10px 12px; font: inherit; }
.tv-form input[type="file"] { color: var(--tv-mute); max-width: 100%; }
.tv-form fieldset { border: 1px solid var(--tv-line); border-radius: 10px; padding: 10px 12px; margin: 0; display: grid; gap: 6px; }
.tv-form legend { font-weight: 600; padding-inline: 4px; }
.tv-check { display: flex !important; align-items: center; gap: 8px; grid-template-columns: none; }
.tv-check > span { font-weight: 400 !important; }
.tv-grid2 { display: grid; gap: 14px; }
@media (min-width: 700px) { .tv-grid2 { grid-template-columns: 1fr 1fr; } }
.tv-help { margin-top: 14px; color: var(--tv-mute); }
.tv-help summary { cursor: pointer; color: var(--tv-text); }
.cap-box { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-box .cap-img { border-radius: 8px; background: #fff; }
.cap-box .cap-new { background: var(--tv-card); color: var(--tv-text); border: 1px solid var(--tv-line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.cap-box .cap-inp { flex: 1; min-width: 120px; background: var(--tv-bg); color: var(--tv-text); border: 1px solid var(--tv-line); border-radius: 10px; padding: 10px 12px; font: inherit; }

/* αρχική */
.tv-hero { padding: 18px; border-radius: 16px; margin-bottom: 14px; background: radial-gradient(120% 140% at 0% 0%, rgba(229, 72, 77, .28), transparent 60%), radial-gradient(120% 140% at 100% 100%, rgba(139, 92, 246, .25), transparent 60%), var(--tv-bg2); border: 1px solid var(--tv-line); }
.tv-hero h1 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.tv-hero p { margin: 0; color: var(--tv-mute); }
.tv-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: thin; }
.tv-chip-link { flex: 0 0 auto; padding: 6px 13px; border-radius: 999px; background: var(--tv-card); border: 1px solid var(--tv-line); text-decoration: none; font-size: 14px; white-space: nowrap; }
.tv-chip-link.is-on { background: var(--tv-text); color: var(--tv-bg); border-color: var(--tv-text); }
.tv-sec { margin: 18px 0 26px; }
.tv-sec h2 { font-size: 19px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.tv-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tv-sort { display: flex; gap: 6px; }
.tv-sort a { text-decoration: none; color: var(--tv-mute); padding: 4px 10px; border-radius: 999px; }
.tv-sort a.is-on { color: var(--tv-text); background: var(--tv-card); }
.tv-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tv-acc); display: inline-block; box-shadow: 0 0 0 0 rgba(229, 72, 77, .7); animation: tv-pulse 1.6s infinite; }
@keyframes tv-pulse { 70% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); } }
@media (prefers-reduced-motion: reduce) { .tv-dot { animation: none; } }
.tv-pager { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.tv-empty { color: var(--tv-mute); padding: 16px 0; }

/* κάρτες */
.tv-grid { display: grid; gap: 18px 14px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .tv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tv-card { min-width: 0; }
.tv-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--tv-rad); overflow: hidden; background: linear-gradient(135deg, #222838, #151924); }
.tv-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-thumb-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: rgba(255, 255, 255, .28); }
.tv-k-still .tv-thumb { background: linear-gradient(135deg, #2b1f3d, #151924); }
.tv-k-embed .tv-thumb, .tv-k-embed_live .tv-thumb { background: linear-gradient(135deg, #1d2c3d, #151924); }
.tv-badge { position: absolute; inset-inline-end: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.tv-badge-live { background: var(--tv-acc); text-transform: uppercase; letter-spacing: .5px; }
.tv-badge-inline { position: static; display: inline-block; vertical-align: middle; font-size: 11px; }
.tv-kind { position: absolute; inset-inline-start: 8px; top: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.tv-card-body { display: flex; gap: 10px; padding-top: 9px; }
.tv-card-body > div { min-width: 0; }
.tv-card-title { font-size: 15px; margin: 0 0 3px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tv-card-title a { text-decoration: none; }
.tv-card-meta { color: var(--tv-mute); font-size: 13px; margin: 0; overflow-wrap: anywhere; }
.tv-card-meta a { text-decoration: none; }
.tv-card-meta a:hover { color: var(--tv-text); }
.tv-flags { margin: 4px 0 0; display: flex; gap: 4px; flex-wrap: wrap; }
.tv-chip { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--tv-card); border: 1px solid var(--tv-line); color: var(--tv-mute); }
.tv-chip-review { border-color: var(--tv-warn); color: var(--tv-warn); }
.tv-chip-hidden, .tv-chip-claim { border-color: var(--tv-acc); color: #ffb4b6; }
.tv-chip-ready { border-color: rgba(47, 191, 113, .5); color: #9be7bd; }
.tv-chip-adult { border-color: var(--tv-acc); color: #ffb4b6; }
.tv-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.tv-av-sm { width: 34px; height: 34px; }
.tv-av-lg { width: 76px; height: 76px; border: 3px solid var(--tv-bg); }
.tv-av-letter { display: inline-grid; place-items: center; background: linear-gradient(135deg, #3b4a6b, #5b3b6b); color: #fff; font-weight: 800; }
.tv-av-lg.tv-av-letter { font-size: 30px; }

/* κανάλι */
.tv-chan-banner { width: 100%; height: clamp(90px, 16vw, 220px); border-radius: var(--tv-rad); overflow: hidden; background: linear-gradient(120deg, #2a1f3d, #1d2c3d 60%, #3d1f25); }
.tv-chan-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-chan-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: -26px; padding-inline: 10px; }
.tv-chan-id { flex: 1 1 200px; min-width: 0; padding-top: 26px; }
.tv-chan-id h1 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.tv-chan-act { padding-top: 26px; }
.tv-about { color: var(--tv-mute); white-space: normal; overflow-wrap: anywhere; max-width: 820px; }
.tv-live-strip { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: var(--tv-rad); background: rgba(229, 72, 77, .14); border: 1px solid rgba(229, 72, 77, .45); text-decoration: none; }
.tv-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--tv-line); margin-top: 14px; overflow-x: auto; }
.tv-tabs a { padding: 10px 14px; text-decoration: none; color: var(--tv-mute); border-bottom: 2px solid transparent; white-space: nowrap; }
.tv-tabs a.is-on { color: var(--tv-text); border-bottom-color: var(--tv-acc); }
.tv-shows { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; }
.tv-shows li { background: var(--tv-card); border: 1px solid var(--tv-line); border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tv-shows a { text-decoration: none; }
.tv-foot-links { color: var(--tv-mute); font-size: 13px; margin-top: 16px; }
.tv-link-muted { color: var(--tv-mute); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.tv-link-muted:hover { color: var(--tv-text); }

/* προβολή */
.tv-watch { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .tv-watch { grid-template-columns: minmax(0, 1fr) 360px; } }
.tv-player { position: relative; background: #000; border-radius: var(--tv-rad); overflow: hidden; aspect-ratio: 16 / 9; }
.tv-video { width: 100%; height: 100%; display: block; background: #000; }
.tv-still { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.tv-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.tv-still audio { position: relative; width: calc(100% - 24px); margin: 12px; }
.tv-embed { position: absolute; inset: 0; }
.tv-embed-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; background: linear-gradient(135deg, #1d2c3d, #0c0f16); }
.tv-embed-play img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.tv-play-ico { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--tv-acc); color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 8px 30px rgba(0, 0, 0, .5); }
.tv-embed-note { position: absolute; inset-inline: 0; bottom: 0; margin: 0; padding: 8px 12px; font-size: 12px; color: #cfd5e2; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); pointer-events: none; }
.tv-embed-note a { pointer-events: auto; color: #fff; }
.tv-embed-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-gate { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 16px; background: #120d10; }
.tv-watch-title { font-size: 20px; margin: 12px 0 8px; overflow-wrap: anywhere; line-height: 1.3; }
.tv-watch-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tv-watch-ch { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-inline-end: auto; min-width: 0; }
.tv-watch-ch span { display: grid; min-width: 0; }
.tv-watch-ch b { overflow-wrap: anywhere; }
.tv-watch-ch small { color: var(--tv-mute); }
.tv-desc { background: var(--tv-bg2); border: 1px solid var(--tv-line); border-radius: var(--tv-rad); padding: 12px 14px; margin-top: 14px; overflow-wrap: anywhere; }
.tv-desc p { margin: 0 0 8px; }
.tv-parts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tv-comments { margin-top: 22px; }
.tv-comments h2 { font-size: 18px; }
.tv-comment-form { grid-template-columns: 1fr; margin-bottom: 14px; }
.tv-comment { border-bottom: 1px solid var(--tv-line); padding: 10px 0; overflow-wrap: anywhere; }
.tv-comment p { margin: 0 0 4px; }
.tv-comment-act { display: flex; gap: 14px; font-size: 13px; }
.tv-watch-side h2 { font-size: 16px; margin: 0 0 12px; }
.tv-watch-side .tv-card { margin-bottom: 14px; }
.tv-preview-end { margin-top: 10px; }

/* live */
.tv-live-over { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; padding: 16px; background: radial-gradient(circle at 50% 40%, #241a26, #07080b); }
.tv-live-over[hidden] { display: none; }
.tv-unmute { position: absolute; inset-inline-start: 12px; bottom: 12px; }
.tv-live-status { color: var(--tv-mute); font-size: 14px; min-height: 1.5em; margin: 8px 0 0; }
.tv-rec-ico { color: var(--tv-acc); }
.tv-chat { display: flex; flex-direction: column; min-height: 280px; }
.tv-chat-list { list-style: none; padding: 10px; margin: 0 0 10px; flex: 1; max-height: 420px; overflow-y: auto; background: var(--tv-bg2); border: 1px solid var(--tv-line); border-radius: var(--tv-rad); font-size: 14px; }
.tv-chat-list li { padding: 3px 0; overflow-wrap: anywhere; }
.tv-chat-form { grid-template-columns: 1fr auto; }
.tv-chat-form input { width: 100%; background: var(--tv-bg); color: var(--tv-text); border: 1px solid var(--tv-line); border-radius: 999px; padding: 9px 14px; font: inherit; }
.tv-viewers { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.tv-viewers li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--tv-card); border-radius: 10px; padding: 6px 10px; }
.tv-viewers li .tv-btn { margin-inline-start: auto; }
.tv-viewers li .tv-btn + .tv-btn { margin-inline-start: 0; }

/* το κανάλι μου */
.tv-studio-head { display: grid; gap: 12px; margin-bottom: 12px; }
.tv-studio-id { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tv-studio-id h1 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.tv-studio-id .tv-card-meta a { overflow-wrap: anywhere; }
.tv-studio-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.tv-studio-nav a { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; background: var(--tv-card); border: 1px solid var(--tv-line); text-decoration: none; font-size: 14px; white-space: nowrap; }
.tv-studio-nav a.is-on { border-color: var(--tv-acc); }
.tv-quota { display: grid; gap: 4px; margin-bottom: 16px; color: var(--tv-mute); font-size: 13px; }
.tv-quota progress, .tv-up-progress progress { width: 100%; height: 10px; accent-color: var(--tv-acc); }
.tv-up-progress { display: grid; gap: 6px; }
.tv-up-progress p { margin: 0; color: var(--tv-mute); }
.tv-table-wrap { overflow-x: auto; }
.tv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tv-table th, .tv-table td { text-align: start; padding: 9px 8px; border-bottom: 1px solid var(--tv-line); vertical-align: middle; }
.tv-table th { color: var(--tv-mute); font-weight: 600; }
.tv-table td a { overflow-wrap: anywhere; }
.tv-actions { white-space: nowrap; display: flex; gap: 6px; }
@media (max-width: 700px) {
    .tv-table thead { display: none; }
    .tv-table, .tv-table tbody, .tv-table tr, .tv-table td { display: block; width: 100%; }
    .tv-table tr { border: 1px solid var(--tv-line); border-radius: 10px; margin-bottom: 10px; padding: 6px 10px; }
    .tv-table td { border: 0; padding: 4px 0; }
    .tv-table td[data-th]::before { content: attr(data-th) ": "; color: var(--tv-mute); font-size: 12px; }
}
.tv-poster-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tv-poster-prev { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }

/* υποσέλιδο */
.tv-foot { border-top: 1px solid var(--tv-line); color: var(--tv-mute); font-size: 13px; }
.tv-foot-in { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-block: 16px; }
.tv-foot a { color: var(--tv-mute); }
.tv .app-nxl { --nxl-fg: var(--tv-text); }
