/* Nodvera TV — 1920x1080 esas. Koyu lacivert cam tema, mavi accent, sarı odak. */
:root {
  --bg0: #05070e;
  --bg1: #070c18;
  --bg2: #0b1220;
  --card-a: rgba(22, 38, 66, 0.55);
  --card-b: rgba(10, 18, 34, 0.65);
  --card-border: rgba(96, 140, 210, 0.16);
  --card-border-2: rgba(96, 140, 210, 0.28);
  --accent: #2b7fff;
  --accent-2: #57a5ff;
  --accent-glow: rgba(43, 127, 255, 0.45);
  --focus: #ffcf3f;
  --focus-glow: rgba(255, 200, 63, 0.40);
  --text: #eef2fb;
  --muted: #8b97b0;
  --muted-2: #64708a;
  --good: #35d07f;
  --bad: #ff7a7a;
  --live: #ff3b47;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(43, 90, 170, 0.16), transparent 55%),
    radial-gradient(120% 90% at 100% 100%, rgba(43, 127, 255, 0.12), transparent 50%),
    linear-gradient(160deg, #060a14 0%, #05070e 60%, #04060c 100%);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
#app { width: 100vw; height: 100vh; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ---------- ÜST BAR ---------- */
.topbar {
  flex-shrink: 0;
  height: 9.2vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  gap: 2vw;
}
.brand { display: flex; align-items: center; gap: 0.9vw; }
.logo { width: 3.4vh; height: 3.4vh; }
.brandName { font-size: 2.5vh; font-weight: 700; letter-spacing: 2px; }
.brandName b { color: var(--accent); font-weight: 800; }
.pills { display: flex; gap: 0.8vw; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5vw;
  height: 4.4vh;
  padding: 0 1.2vw;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  color: #cdd6e6;
  font-size: 1.7vh;
}
.pill .picon { width: 2vh; height: 2vh; fill: none; stroke: #9fb0cf; stroke-width: 2; }
.dot { width: 1.1vh; height: 1.1vh; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 transparent; }
.dot.on { background: var(--good); box-shadow: 0 0 10px rgba(53, 208, 127, 0.8); }
.dot.off { background: var(--bad); }
.clock { display: flex; align-items: center; gap: 1vw; }
.dateText { color: var(--muted); font-size: 1.8vh; }
.vsep { width: 1px; height: 3vh; background: var(--card-border-2); }
.clockText { font-size: 3vh; font-weight: 700; letter-spacing: 1px; }

/* ---------- EKRAN ALANI ---------- */
#screens { flex: 1; position: relative; overflow: hidden; }
.screen {
  position: absolute;
  inset: 0;
  padding: 1.5vh 3vw 1vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.sectionTitle { font-size: 3vh; font-weight: 700; margin: 0.5vh 0 1.6vh; }
.sectionTitle.sm { font-size: 2.2vh; margin: 0 0 1.4vh; }

/* ---------- KART TEMEL ---------- */
.card {
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  border: 1px solid var(--card-border);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- ODAK (sarı glow) ---------- */
[data-focusable] { outline: none; }
[data-focusable]:focus {
  border-color: var(--focus) !important;
  box-shadow: 0 0 0 2px var(--focus), 0 0 26px var(--focus-glow) !important;
}
.bigCard:focus { transform: translateY(-0.4vh); }

/* ---------- HOME ---------- */
.home { gap: 1.6vh; }
.homeMessage { min-height: 2vh; color: #ffd27a; font-size: 1.7vh; text-align: center; }
.bigCards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4vw; }
.bigCard {
  border: 2px solid var(--card-border);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  transition: transform 0.12s ease;
  display: flex;
  flex-direction: column;
}
.cardArt {
  position: relative;
  height: 24vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-live { background: radial-gradient(120% 120% at 50% 20%, #2f7d3a, #123a52 60%, #0a1f38); }
.art-vod { background: radial-gradient(120% 120% at 50% 30%, #7a2740, #3a1730 55%, #160c22); color: #ff9db0; }
.art-series { background: radial-gradient(120% 120% at 50% 30%, #3a2f7a, #1f2050 55%, #0c1030); color: #b3a8ff; }
.art-fav { background: radial-gradient(120% 120% at 50% 40%, #12386a, #0e2448 55%, #08122a); color: #6fb0ff; }
.artIcon { width: 8vh; height: 8vh; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.92; }
.liveBadge {
  position: absolute; top: 1.2vh; left: 1.2vw;
  background: var(--live); color: #fff;
  font-size: 1.4vh; font-weight: 800; letter-spacing: 1px;
  padding: 0.4vh 0.9vw; border-radius: 6px;
}
.cardText { padding: 1.4vh 1.3vw 1.6vh; background: linear-gradient(180deg, rgba(6, 10, 20, 0.35), rgba(6, 10, 20, 0.82)); }
.cardText h3 { margin: 0; font-size: 2.3vh; font-weight: 700; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); }
.cardText p { margin: 0.4vh 0 0; color: #b6c2d8; font-size: 1.6vh; }

.continueSection { margin-bottom: 0.4vh; }
.contentRow { margin-bottom: 0.4vh; }
.rowTitle { font-size: 2vh; font-weight: 600; margin: 0 0 1vh; }
.posterRow { display: flex; gap: 1vw; overflow-x: auto; overflow-y: hidden; padding-bottom: 0.6vh; }
.posterRow .poster { flex: 0 0 11vw; width: 11vw; }
.rowPoster {
  position: relative; flex: 0 0 auto; width: 13vw; border-radius: 12px;
  border: 2px solid transparent; background: rgba(255, 255, 255, 0.025);
  cursor: pointer; overflow: hidden; padding: 0; text-align: left;
}
.rowPoster .rpThumb {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  background: linear-gradient(160deg, #16223c, #0a1120);
  display: flex; align-items: center; justify-content: center; color: #46567a; font-size: 3vh; font-weight: 700;
}
.rowPoster .rpMeta { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6vh 0.7vw 0.6vh; background: linear-gradient(0deg, rgba(4, 6, 12, 0.96), transparent); }
.rowPoster .rpName { font-size: 1.4vh; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); }
.rowPoster .rpProg { margin-top: 0.5vh; height: 0.5vh; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.rowPoster .rpProg i { display: block; height: 100%; background: var(--accent); }
.smallCards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4vw; }
.smallCard {
  position: relative;
  border: 2px solid var(--card-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(18, 30, 54, 0.5), rgba(9, 16, 30, 0.6));
  padding: 1.8vh 1.2vw;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1vw;
  text-align: left;
  color: var(--text);
}
.smallCard.soon { opacity: 0.55; }
.soonBadge {
  position: absolute; top: 0.8vh; right: 0.8vw;
  font-size: 1.1vh; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.3vh 0.6vw; border-radius: 999px;
  background: rgba(139, 151, 176, 0.22); color: var(--muted);
}
.smIcon { width: 3.4vh; height: 3.4vh; fill: none; stroke: var(--accent); stroke-width: 2; flex-shrink: 0; }
.smText h4 { margin: 0; font-size: 1.9vh; font-weight: 600; }
.smText p { margin: 0.2vh 0 0; color: var(--muted); font-size: 1.4vh; }
.posterTag {
  position: absolute; top: 0.7vh; left: 0.7vh; z-index: 2;
  font-size: 1.1vh; font-weight: 700; letter-spacing: 0.03em;
  padding: 0.3vh 0.6vh; border-radius: 6px;
  background: rgba(9, 16, 30, 0.8); color: var(--text);
}
.posterTag.live { background: var(--live); color: #fff; }

/* ---------- ALT TUŞ BARI ---------- */
.colorbar {
  flex-shrink: 0;
  height: 6.6vh;
  display: flex;
  align-items: center;
  gap: 2vw;
  padding: 0 3vw;
  border-top: 1px solid var(--card-border);
  background: linear-gradient(0deg, rgba(6, 10, 20, 0.8), transparent);
}
.cbItem { display: inline-flex; align-items: center; gap: 0.6vw; color: #c3cbdc; font-size: 1.6vh; }
.cbKey {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.6vw; height: 3.6vh; padding: 0 0.7vw;
  border-radius: 7px; font-size: 1.4vh; font-weight: 700;
  border: 1.5px solid var(--card-border-2); color: #dfe6f2; background: rgba(255, 255, 255, 0.03);
}
.cbKey.ok { border-color: var(--focus); color: var(--focus); }
.cbKey.dot-red { border-color: var(--live); color: var(--live); }

/* ---------- SETTINGS ---------- */
.settingsWrap { display: grid; grid-template-columns: 24vw 1fr; gap: 1.4vw; flex: 1; min-height: 0; }
.settingsTabs { padding: 1.2vh 0.8vw; display: flex; flex-direction: column; gap: 0.6vh; }
.navTab {
  display: flex; align-items: center; gap: 0.8vw;
  height: 6vh; padding: 0 1vw;
  border-radius: 12px; border: 2px solid transparent; background: transparent;
  color: #cdd6e6; font-size: 1.9vh; cursor: pointer; text-align: left;
}
.navTab.active { background: rgba(43, 127, 255, 0.12); border-color: rgba(43, 127, 255, 0.4); color: #fff; box-shadow: 0 0 18px rgba(43, 127, 255, 0.25); }
.tabIcon { width: 2.6vh; height: 2.6vh; fill: none; stroke: var(--accent); stroke-width: 2; }
.settingsPanel { padding: 2.4vh 2vw; display: flex; flex-direction: column; gap: 1.4vh; overflow: auto; }
.panelHead h2 { margin: 0; font-size: 2.8vh; }
.panelHead p { margin: 0.5vh 0 0; color: var(--muted); font-size: 1.7vh; }
.panelHead { position: relative; margin-bottom: 0.6vh; }
.status { position: absolute; top: 0; right: 0; padding: 0.7vh 1.2vw; border-radius: 999px; background: #16233a; color: #b9c7dd; font-size: 1.6vh; }
.status.ok { background: #123522; color: #a8f0c3; }
.status.err { background: #451a1a; color: #ffb8b8; }
.formRow {
  display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 1.5vw;
  padding: 1.4vh 1.4vw; border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--card-border);
}
.formLabel span { display: block; font-size: 2vh; }
.formLabel small { color: var(--muted); font-size: 1.4vh; }
input {
  height: 5.6vh; border-radius: 10px;
  border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.6);
  color: #fff; font-size: 1.9vh; padding: 0 1vw; width: 100%;
}
.modeToggle { display: flex; gap: 0.8vw; }
.modeBtn {
  flex: 1; height: 5.6vh; border-radius: 10px;
  border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5);
  color: var(--muted); font-size: 1.7vh; cursor: pointer;
}
.modeBtn.active { border-color: var(--accent); color: #fff; background: rgba(43, 127, 255, 0.14); }
.formActions { display: flex; justify-content: center; margin-top: 0.6vh; }
.primary {
  border-radius: 12px; border: 2px solid var(--accent);
  background: linear-gradient(180deg, #2f86ff, #1d63e0); color: #fff;
  font-size: 2vh; cursor: pointer; box-shadow: 0 0 24px rgba(43, 127, 255, 0.3);
}
.primary.big { height: 6.4vh; min-width: 24vw; }
.tabPanel { display: flex; flex-direction: column; gap: 1.4vh; }
.profileStrip { display: flex; flex-wrap: wrap; gap: 0.7vw; }
.profileChip { height: 5vh; padding: 0 1.6vw; border-radius: 999px; border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); color: #cdd6e6; font-size: 1.7vh; cursor: pointer; }
.profileChip.active { border-color: var(--accent); color: #fff; background: rgba(43, 127, 255, 0.16); }
.profileChip.add { border-style: dashed; color: var(--accent-2); }
.tabPanel.hidden { display: none !important; }
.formValue { font-size: 1.9vh; color: #dfe6f2; }
.testResult { min-height: 2.4vh; font-size: 1.7vh; color: var(--muted); }
.testResult.ok { color: #a8f0c3; }
.testResult.err { color: #ffb8b8; }
.switch {
  width: 6vw; height: 3.4vh; border-radius: 999px; padding: 0;
  border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.6);
  position: relative; cursor: pointer; justify-self: start;
}
.switch i { position: absolute; top: 50%; left: 0.4vh; transform: translateY(-50%); width: 2.4vh; height: 2.4vh; border-radius: 50%; background: #7d8aa3; transition: all 0.15s ease; }
.switch.on { background: rgba(43, 127, 255, 0.35); border-color: var(--accent); }
.switch.on i { left: calc(100% - 2.8vh); background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.dangerBtn { height: 6.4vh; min-width: 24vw; border-radius: 12px; border: 2px solid #6a3030; background: rgba(80, 30, 30, 0.35); color: #ffb8b8; font-size: 2vh; cursor: pointer; }
.scanResults { display: flex; flex-wrap: wrap; gap: 0.6vw; }
.scanBadge { font-size: 1.4vh; padding: 0.6vh 0.9vw; border: 1px solid var(--card-border-2); border-radius: 999px; color: #aebbd0; background: rgba(255, 255, 255, 0.03); }
.scanBadge.ok { border-color: #1f6945; color: #a8f0c3; }
.scanBadge.bad { border-color: #6a3030; color: #ffb8b8; }

/* ---------- LIVE TV ---------- */
.live { padding-bottom: 0; }
.liveGrid { display: grid; grid-template-columns: 20vw 1fr 30vw; gap: 1.2vw; flex: 1; min-height: 0; }
.categoryPane { padding: 1.4vh 1vw; display: flex; flex-direction: column; overflow: hidden; }
.channelPane { padding: 1.4vh 1vw; display: flex; flex-direction: column; overflow: hidden; }
.paneTitle { color: var(--muted); font-size: 1.5vh; margin-bottom: 1vh; text-transform: uppercase; letter-spacing: 1.5px; }
.pageInfo { float: right; color: var(--muted-2); text-transform: none; letter-spacing: 0; }
.paneFoot { margin-top: auto; padding-top: 1vh; color: var(--muted); font-size: 1.6vh; border-top: 1px solid var(--card-border); display: flex; justify-content: space-between; }
.paneFoot span { color: #fff; font-weight: 700; }
.list { display: flex; flex-direction: column; gap: 0.6vh; overflow: auto; }
.categoryItem {
  display: flex; align-items: center; gap: 0.8vw;
  min-height: 5.6vh; border-radius: 12px;
  border: 2px solid transparent; background: rgba(255, 255, 255, 0.02);
  color: #dfe6f2; text-align: left; padding: 0 1vw; font-size: 1.9vh; cursor: pointer;
}
.categoryItem.selected { background: rgba(43, 127, 255, 0.14); border-color: rgba(43, 127, 255, 0.4); }
.grid { display: flex; flex-direction: column; gap: 0.7vh; overflow: auto; }
.channel {
  min-height: 7vh; border-radius: 12px;
  border: 2px solid transparent; background: rgba(255, 255, 255, 0.025);
  color: #fff; text-align: left; padding: 0 1vw;
  display: flex; gap: 1vw; align-items: center; cursor: pointer;
}
.channelHead { display: flex; align-items: center; justify-content: space-between; gap: 1vw; margin-bottom: 1vh; }
.chSearch { display: flex; align-items: center; gap: 0.5vw; height: 4.4vh; padding: 0 1vw; border-radius: 999px; border: 1px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); width: 18vw; }
.chSearch svg { width: 2.2vh; height: 2.2vh; color: var(--muted); flex-shrink: 0; }
.chSearch input { border: none; background: transparent; height: 100%; font-size: 1.7vh; padding: 0; }
.chSearch input:focus { border: none !important; box-shadow: none !important; }
.chSearch:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus), 0 0 20px var(--focus-glow); }
.channel .chstar { margin-left: auto; color: var(--focus); font-size: 2vh; padding-left: 0.6vw; }
.channel .num { color: var(--muted); min-width: 3.4vw; font-size: 1.9vh; font-weight: 700; }
.channel .chlogo { width: 4vh; height: 4vh; border-radius: 8px; object-fit: contain; background: rgba(255,255,255,0.05); flex-shrink: 0; }
.channel .chmeta { overflow: hidden; }
.channel .name { font-size: 2vh; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel .sub { font-size: 1.5vh; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.previewCol { display: flex; flex-direction: column; gap: 1.2vh; min-height: 0; }
.previewVideoWrap { position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden; padding: 0; }
#previewVideo { width: 100%; height: 100%; object-fit: cover; background: #05070d; }
.previewStatus { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6b7793; font-size: 1.7vh; }
.previewStatus.hidden { display: none !important; }
.previewLive { position: absolute; top: 1.2vh; left: 1vw; background: var(--live); color: #fff; font-size: 1.3vh; font-weight: 800; padding: 0.4vh 0.8vw; border-radius: 6px; letter-spacing: 1px; }
.previewBadge { position: absolute; left: 0; right: 0; bottom: 0; padding: 2vh 1.2vw 1vh; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent); display: flex; align-items: baseline; gap: 0.7vw; }
.previewBadge .num { color: var(--accent-2); font-size: 2vh; font-weight: 800; }
.previewBadge .name { font-size: 2.1vh; font-weight: 700; }
.epgBox { padding: 1.4vh 1.2vw; }
.epgNow { display: grid; grid-template-columns: 1fr 1fr; gap: 1vw; }
.epgTag { font-size: 1.4vh; font-weight: 700; margin-bottom: 0.6vh; }
.epgTag.now { color: var(--focus); }
.epgTag.next { color: var(--accent-2); }
.epgTitle { font-size: 1.9vh; font-weight: 600; }
.epgTime { color: var(--muted); font-size: 1.5vh; margin-top: 0.3vh; }
.epgProg { margin-top: 0.8vh; height: 0.6vh; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.epgProg i { display: block; height: 100%; width: 40%; background: var(--focus); }
.epgFlowTitle { color: var(--muted); font-size: 1.3vh; text-transform: uppercase; letter-spacing: 1.5px; margin: 1.6vh 0 0.8vh; }
.epgFlow { display: flex; flex-direction: column; gap: 0.5vh; max-height: 24vh; overflow: auto; }
.epgFlowItem { display: flex; gap: 0.8vw; align-items: center; padding: 0.7vh 0.8vw; border-radius: 8px; background: rgba(255, 255, 255, 0.02); }
.epgFlowItem.now { background: rgba(255, 207, 63, 0.12); border: 1px solid rgba(255, 207, 63, 0.32); }
.epgFlowItem .ft { color: var(--accent-2); font-size: 1.5vh; font-weight: 700; min-width: 3.2vw; }
.epgFlowItem.now .ft { color: var(--focus); }
.epgFlowItem .fn { font-size: 1.5vh; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- BROWSE (Film/Dizi) ---------- */
.browse { padding-bottom: 0; }
.browseGrid { display: grid; grid-template-columns: 22vw 1fr; gap: 1.2vw; flex: 1; min-height: 0; }
.browsePane { padding: 1.4vh 1.2vw; display: flex; flex-direction: column; overflow: hidden; }
.posterGrid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(11vw, 1fr));
  gap: 1.4vh 1vw; overflow: auto; flex: 1; align-content: start; padding-right: 0.4vw;
}
.poster {
  position: relative; display: block; border-radius: 14px;
  border: 2px solid transparent; background: rgba(255, 255, 255, 0.025);
  color: #fff; cursor: pointer; overflow: hidden; text-align: left; padding: 0;
}
.posterThumb {
  width: 100%; aspect-ratio: 2/3;
  background: linear-gradient(160deg, #16223c, #0a1120);
  object-fit: cover; display: flex; align-items: center; justify-content: center;
  color: #46567a; font-size: 4vh; font-weight: 700;
}
.posterMeta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2vh 0.7vw 0.7vh;
  background: linear-gradient(0deg, rgba(4, 6, 12, 0.96) 25%, rgba(4, 6, 12, 0.55) 60%, transparent);
}
.posterName { font-size: 1.5vh; line-height: 1.2; max-height: 3.6vh; overflow: hidden; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9); }
.posterSub { color: #c3cbdc; font-size: 1.3vh; margin-top: 0.2vh; }
.pager { display: flex; gap: 1vw; justify-content: center; margin-top: 1.2vh; }
.pagerBtn { height: 5vh; min-width: 12vw; border-radius: 10px; border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); color: #fff; font-size: 1.7vh; cursor: pointer; }
.pagerBtn[disabled] { opacity: 0.35; }

/* ---------- ARA ---------- */
.search { }
.searchBar { display: flex; align-items: center; gap: 1vw; padding: 0 1.6vw; height: 8vh; margin-bottom: 1.6vh; }
.searchBar svg { width: 3vh; height: 3vh; color: var(--muted); flex-shrink: 0; }
.searchBar input { border: none; background: transparent; height: 100%; font-size: 2.4vh; padding: 0; }
.searchBar input:focus { border: none !important; box-shadow: none !important; }
.searchBar:focus-within { border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus), 0 0 26px var(--focus-glow); }
.searchTabs { display: flex; gap: 1vw; margin-bottom: 1.2vh; }
.searchTab { height: 5vh; padding: 0 2vw; border-radius: 999px; border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); color: var(--muted); font-size: 1.8vh; cursor: pointer; }
.searchTab.active { border-color: var(--accent); color: #fff; background: rgba(43, 127, 255, 0.16); }
.searchInfo { color: var(--muted); font-size: 1.7vh; margin-bottom: 1vh; min-height: 2vh; }

/* ---------- DETAY ---------- */
.detail { align-items: center; justify-content: center; }
.detailCard { display: flex; gap: 2vw; padding: 3vh 3vw; max-width: 84vw; width: 100%; max-height: 82vh; }
.detailPoster img { width: 22vw; aspect-ratio: 2/3; object-fit: cover; border-radius: 14px; background: #0a1120; }
.detailInfo { flex: 1; display: flex; flex-direction: column; gap: 1.2vh; overflow: auto; }
.detailInfo h2 { margin: 0; font-size: 3.4vh; }
.detailMeta { color: #9fb0cf; font-size: 1.7vh; display: flex; gap: 1.2vw; flex-wrap: wrap; }
.detailMeta span { padding: 0.3vh 0.8vw; border: 1px solid var(--card-border); border-radius: 8px; }
.detailDesc { color: #c3cbdc; font-size: 1.8vh; line-height: 1.5; margin: 0; max-height: 22vh; overflow: auto; }
.detailActions { display: flex; gap: 1vw; align-items: center; }
.favBtn { height: 6.4vh; padding: 0 2vw; border-radius: 12px; border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); color: #fff; font-size: 1.9vh; cursor: pointer; }
.favBtn.active { border-color: #ff5a7a; color: #ff9db0; background: rgba(120, 30, 50, 0.22); }
.seasonRow { display: flex; align-items: center; gap: 1vw; }
.seasonRow .lbl { color: var(--muted); font-size: 1.6vh; }
.seasonList { display: flex; gap: 0.6vw; flex-wrap: wrap; }
.seasonBtn { height: 4.6vh; padding: 0 1.2vw; border-radius: 999px; border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); color: #fff; font-size: 1.6vh; cursor: pointer; }
.seasonBtn.selected { border-color: var(--accent); background: rgba(43, 127, 255, 0.16); }
.episodeList { display: grid; grid-template-columns: repeat(auto-fill, minmax(9vw, 1fr)); gap: 0.8vh 0.7vw; overflow: auto; max-height: 28vh; }
.episodeBtn { height: 5.4vh; border-radius: 10px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.03); color: #fff; font-size: 1.6vh; cursor: pointer; }

/* ---------- PLAYER ---------- */
.player { padding: 0; background: #000; }
#video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.playerStatus { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.55); font-size: 2.4vh; text-align: center; }
.playerStatus .retryBtn { margin-top: 1.6vh; height: 5.4vh; padding: 0 2vw; border-radius: 10px; background: var(--accent); border: 2px solid var(--accent); color: #fff; font-size: 1.8vh; cursor: pointer; }
.playerOverlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4vh 3vw; background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent); display: flex; flex-direction: column; gap: 0.6vh; }
.overlayChannel { display: flex; align-items: center; gap: 1vw; }
.overlayChannel .num { color: var(--accent-2); font-size: 2.6vh; font-weight: 800; }
.overlayChannel .name { font-size: 3vh; font-weight: 700; }
.overlayHint { color: var(--muted); font-size: 1.5vh; }
.seekBar { display: flex; align-items: center; gap: 1vw; margin: 1.2vh 0 0.4vh; }
.seekBar.hidden { display: none !important; }
.seekTime { font-size: 1.9vh; font-weight: 700; color: #fff; min-width: 6vw; }
.seekTime:last-child { text-align: right; color: var(--muted); }
.seekTrack { flex: 1; height: 0.8vh; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.seekTrack i { display: block; height: 100%; width: 0%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

/* ---------- LİSANS / AKTİVASYON ---------- */
.license { align-items: center; justify-content: center; }
.licenseCard { padding: 3.5vh 3vw; max-width: 70vw; width: 100%; display: flex; flex-direction: column; gap: 2.4vh; }
.licHead { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.6vh; }
.licHead .logo { width: 7vh; height: 7vh; margin-bottom: 0.6vh; }
.licHead h2 { margin: 0; font-size: 3.2vh; }
.licHead p { margin: 0; color: var(--muted); font-size: 2vh; }
.licBody { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3vw; align-items: center; }
.licQrCol { display: flex; flex-direction: column; align-items: center; gap: 1.4vh; }
.licQr { width: 24vh; height: 24vh; background: #fff; border-radius: 14px; padding: 1.4vh; display: flex; align-items: center; justify-content: center; }
.licQr svg { width: 100%; height: 100%; }
.licQrText { color: var(--muted); font-size: 1.7vh; text-align: center; line-height: 1.4; }
.licDevice { text-align: center; color: var(--muted); font-size: 1.6vh; line-height: 1.8; }
.licDevice b { color: var(--accent-2); font-size: 1.9vh; letter-spacing: 1px; }
.licFormCol { display: flex; flex-direction: column; gap: 1.2vh; }
.licLabel { color: var(--muted); font-size: 1.8vh; }
.licFormCol input { height: 6.4vh; font-size: 2.2vh; text-align: center; letter-spacing: 2px; }
.licFormCol .primary.big, .licFormCol .secondaryBtn.big { width: 100%; }
.licStep { color: var(--muted); font-size: 1.7vh; margin: 0; }
.licDivider { text-align: center; color: var(--muted-2); font-size: 1.5vh; margin: 0.6vh 0; }
.secondaryBtn { height: 6vh; border-radius: 12px; border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); color: #fff; font-size: 1.9vh; cursor: pointer; }
.licError { min-height: 2.4vh; color: var(--bad); font-size: 1.7vh; }

/* ---------- PIN MODAL ---------- */
.modal { position: fixed; inset: 0; background: rgba(3, 6, 14, 0.85); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modalCard { padding: 3vh 3vw; width: 40vw; display: flex; flex-direction: column; gap: 1.4vh; text-align: center; }
.modalCard h3 { margin: 0; font-size: 2.6vh; }
.modalHint { color: var(--muted); font-size: 1.7vh; margin: 0; }
.pinInput { text-align: center; letter-spacing: 0.8vw; font-size: 3vh; height: 7vh; }
.pinError { min-height: 2.2vh; color: var(--bad); font-size: 1.6vh; }
.modalActions { display: flex; gap: 1vw; justify-content: center; }
.modalActions button { height: 5.6vh; min-width: 12vw; border-radius: 10px; border: 2px solid var(--card-border-2); background: rgba(6, 12, 24, 0.5); color: #fff; font-size: 1.8vh; cursor: pointer; }

/* ---------- SPLASH / AÇILIŞ ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 8% 62%, rgba(210, 130, 40, 0.12), transparent 32%),
    radial-gradient(circle at 92% 55%, rgba(43, 127, 255, 0.16), transparent 36%),
    linear-gradient(180deg, #04060c 0%, #070c18 55%, #04060c 100%);
  transition: opacity 0.5s ease;
}
.splash.out { opacity: 0; pointer-events: none; }
.splash::after {
  content: ""; position: absolute; bottom: 24vh; left: 22%; right: 22%; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(43, 127, 255, 0.65), transparent);
  box-shadow: 0 0 34px rgba(43, 127, 255, 0.5);
}
.splashContent { display: flex; flex-direction: column; align-items: center; text-align: center; z-index: 1; }
.splashLogo { width: 10vh; height: 10vh; filter: drop-shadow(0 0 20px rgba(43, 127, 255, 0.5)); animation: pulse 2.2s ease-in-out infinite; }
.splash h1 { font-size: 5.2vh; letter-spacing: 5px; margin: 1.6vh 0 0.4vh; font-weight: 800; background: linear-gradient(180deg, #ffffff, #9fb0cf); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.splash h1 b { -webkit-text-fill-color: var(--accent); color: var(--accent); }
.splash p { color: var(--muted); font-size: 2.1vh; margin: 0; letter-spacing: 1px; }
.spinner {
  width: 6vh; height: 6vh; border-radius: 50%; margin: 3vh 0 1.4vh;
  border: 0.5vh solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--focus); border-right-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.splashStatus { color: var(--muted); font-size: 1.9vh; letter-spacing: 1px; }
.splashFeatures { position: absolute; bottom: 7vh; display: flex; gap: 4vw; z-index: 1; }
.sf { display: flex; align-items: center; gap: 0.9vw; }
.sf svg { width: 3.2vh; height: 3.2vh; fill: none; stroke: var(--accent); stroke-width: 2; }
.sf b { display: block; font-size: 1.9vh; }
.sf span { color: var(--muted); font-size: 1.4vh; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.85; } }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; bottom: 9vh; left: 50%; transform: translateX(-50%);
  padding: 1.4vh 2.4vw; border-radius: 12px;
  background: rgba(12, 20, 36, 0.95); border: 1px solid var(--card-border-2);
  color: #eef2fb; font-size: 1.8vh; z-index: 60;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1400px) {
  .liveGrid { grid-template-columns: 20vw 1fr 26vw; }
  .browseGrid { grid-template-columns: 24vw 1fr; }
}

/* 1366x768 gibi kısa panellerde okunabilirlik: en küçük metinleri büyüt. */
@media (max-height: 800px) {
  .colorbar .cbLabel, .colorbar span { font-size: 1.8vh; }
  .smText p { font-size: 1.7vh; }
  .formLabel small { font-size: 1.6vh; }
  .epgFlowItem, .epgTime, .epgProg { font-size: 1.7vh; }
  .posterName { font-size: 1.8vh; }
  .posterSub { font-size: 1.6vh; }
  .overlayHint, .licHint, .modalHint { font-size: 1.8vh; }
  .soonBadge, .posterTag { font-size: 1.5vh; }
}
