/* --- Gezgin: EvOS içindeki yayın uygulaması (src/view/browser.js) --- */
.pc {
  --kick: #3f9b2c; --twitch: var(--sus); --youtube: var(--red);
  display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--paper);
}
.pc-view { flex: 1; }
.pc:is([data-mode="ev"], [data-mode="hesap"]) :is(.pc-tabs, .pc-bar, .pc-favs) { display: none; }
.pc[data-mode="web"] :is(.pc-tabs, .pc-favs, .pc-fav) { display: none; }
.pc-web { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; }
.pc-webbar { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding: 6px 8px; background: var(--paper); border-bottom: 2px solid var(--ink); color: var(--ink); }
.pc-webbar small { font-size: 12px; opacity: .75; }
.pc-webbar .pc-go { padding: 4px 10px; font-size: 12.5px; text-decoration: none; }
.pc-view .pc-web iframe { position: static; flex: 1; width: 100%; height: auto; min-height: 0; border: 0; background: #fff; }
.pc-modes { display: flex; gap: 0; padding: 8px 10px; background: var(--ink); }
.pc-brand { display: flex; align-items: center; gap: 7px; margin-right: 12px; color: var(--paper); font: 400 16px/1 var(--head); letter-spacing: .01em; }
.pc-logo { width: 26px; height: 26px; flex: none; }
.pc-tv { width: 96px; height: auto; margin-bottom: 2px; rotate: -3deg; }
.pc-mode { flex: 0 1 auto; padding: 6px 14px; border: 2px solid var(--paper); color: var(--paper); font-weight: 900; font-size: 13px; letter-spacing: .02em; }
.pc-mode + .pc-mode { border-left: 0; }
.pc-mode:first-child { border-radius: 6px 0 0 6px; } .pc-mode:last-child { border-radius: 0 6px 6px 0; }
.pc-mode[aria-selected="true"] { background: var(--paper); color: var(--ink); }
.pc:is([data-mode="ev"], [data-mode="hesap"]) .pc-view { margin-top: 10px; }
.pc input { user-select: text; }

.pc-tabs { display: flex; gap: 4px; padding: 8px 10px 0; border-bottom: 2px solid var(--ink); background: #e9d9bb; }
.pc-tab {
  display: flex; align-items: center; gap: 7px; padding: 6px 14px 7px; margin-bottom: -3px;
  border: 2px solid var(--ink); border-radius: 8px 8px 0 0; background: #dcc9a6; font-weight: 700; font-size: 14px;
  transition: background .15s, translate .15s;
}
.pc-tab:hover { translate: 0 -2px; }
.pc-tab i, .pc-chip i { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; }
.pc-tab[aria-selected="true"] { background: var(--paper); border-bottom-color: var(--paper); translate: none; }
.is-kick i { background: var(--kick); } .is-twitch i { background: var(--twitch); } .is-youtube i { background: var(--youtube); }

.pc-bar { display: flex; gap: 8px; padding: 10px 10px 6px; }
.pc-bar input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; font-size: 14px; color: var(--ink);
  background: var(--paper-2); border: 2px solid var(--ink); border-radius: 6px; outline: none;
}
.pc-bar input:focus-visible { box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
.pc-go, .pc-fav, .pc-watch, .pc-quick button {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 6px;
  font-weight: 900; font-size: 14px; text-decoration: none; transition: translate .15s, box-shadow .15s;
}
.pc-go { background: var(--ink); color: var(--paper); }
.pc-fav, .pc-quick button { background: var(--dop-2); color: var(--ink); }
.pc-go:hover, .pc-fav:hover:not(:disabled), .pc-watch:hover, .pc-quick button:hover { translate: -2px -2px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
.pc-fav:disabled { opacity: .45; cursor: default; border-style: dashed; }
.pc-quick button { height: 28px; padding: 0 10px; font-size: 12px; }

.pc-favs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 10px 8px; min-height: 32px; align-items: center; }
.pc-favs small { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.pc-chip { display: inline-flex; align-items: center; gap: 6px; padding-left: 8px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper-2); font-size: 13px; font-weight: 700; }
.pc-chip > button:not(.pc-del) { padding: 4px 2px; font-family: var(--mono); }
.pc-chip > button:not(.pc-del):hover { text-decoration: underline; }
.pc-del { width: 24px; height: 26px; display: grid; place-items: center; border-left: 2px solid var(--ink); font-weight: 900; }
.pc-del:hover { background: var(--red); color: var(--paper); }

.pc-view { position: relative; margin: 0 10px; min-height: 160px; border: 2px solid var(--ink); border-radius: 6px; background: #17110f; overflow: hidden; }
.pc-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pc-msg {
  position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center; color: var(--paper);
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 4px);
}
.pc-msg h3 { margin: 0; font-family: var(--head); font-weight: 400; font-size: clamp(18px, 2.6vw, 26px); }
.pc-msg p { margin: 0; max-width: 440px; font-size: 14px; line-height: 1.45; opacity: .78; }
.pc-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.pc-msg .pc-go { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pc-watch { background: transparent; color: var(--paper); border-color: var(--paper); }
.pc-watch[aria-pressed="true"] { background: var(--ok); border-color: var(--paper); }
.pc-watch[aria-pressed="true"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff5a36; box-shadow: 0 0 0 3px rgba(255, 90, 54, .35); }

.pc-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 8px 12px 10px; font-size: 13px; font-weight: 700; }
.pc-dop { color: var(--dop); }

.pc-watch.is-over { position: absolute; right: 10px; bottom: 10px; z-index: 1; background: rgba(23, 17, 15, .78); }

/* --- Hesaplarım: kendi Twitch/YouTube hesabın (src/view/accounts.js) --- */
.acc h3 { margin: 16px 0 10px; }
.acc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.acc-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border: 3px solid var(--paper); border-radius: 8px; background: #241a17; }
.acc-panel > b { display: flex; align-items: center; gap: 7px; flex: 1; font-size: 15px; }
.acc-panel > b i { width: 10px; height: 10px; border: 2px solid var(--paper); border-radius: 50%; }
.acc-panel > small { flex-basis: 100%; font-size: 12.5px; line-height: 1.4; opacity: .8; }
.acc-panel > .pc-go { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.acc-panel .pc-fav { height: 30px; padding: 0 10px; font-size: 12px; }
.acc-code { flex-basis: 100%; font-size: 26px; letter-spacing: .01em; color: var(--dop-2); }
.acc-err { color: #ffb3a1; opacity: 1 !important; font-weight: 700; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; } /* başlık hesap kartlarına yapışmasın */
.acc-head .pc-fav { height: 28px; padding: 0 10px; font-size: 12px; }
.acc-empty { opacity: .7; font-size: 13px; }
.acc-card .st-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acc-meta { display: grid; gap: 2px; min-width: 0; padding: 4px 10px 0; }
.acc-meta b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* --- Oyun içi kanallar (src/view/streams.js) --- */
.st-home { position: absolute; inset: 0; overflow-y: auto; padding: 14px; color: var(--paper); }
.st-home h3 { margin: 0 0 10px; font-family: var(--head); font-weight: 400; font-size: 20px; }
.st-home p { margin: 12px 0 0; font-size: 13px; opacity: .7; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.st-card { display: grid; gap: 3px; text-align: left; padding: 0 0 10px; border: 3px solid var(--paper); border-radius: 8px; background: #241a17; color: var(--paper); overflow: hidden; transition: translate .15s, box-shadow .15s; }
.st-card:hover, .st-card:focus-visible { translate: -2px -2px; box-shadow: 0 2px 12px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
.st-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; padding: 2px 10px 0; }
.st-meta > span:last-child { display: grid; gap: 2px; min-width: 0; }
.st-card b { font-size: 14px; } .st-card small { font-size: 12px; opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-ava { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: var(--ch); overflow: hidden; }
.st-ava svg { width: 100%; height: 100%; } .st-ava b { font-family: var(--head); font-weight: 400; font-size: 15px; color: var(--ink); }
.st-cap.is-long { right: 14px; font-size: clamp(10px, 1.5vw, 14px); }
.st-thumb .st-decor { position: absolute; inset: 0; pointer-events: none; }
.st-count { position: absolute; right: 8px; top: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .62); color: #fff; font: 700 11px/1.4 "Fira Sans", sans-serif; font-style: normal; }
.st-cap {
  position: absolute; left: 8px; right: 8px; bottom: 6px; font: 400 clamp(13px, 2.1vw, 19px)/1.02 var(--head); font-style: normal; color: #fff; rotate: -2deg;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 2px 2px var(--ink), -2px 2px var(--ink), 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16);
}
.st-thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: #17110f; border-bottom: 3px solid var(--paper); }
.st-thumb svg, .st-video svg { display: block; width: 100%; height: 100%; }
.st-live { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 4px; background: #d6342a; color: #fff; font: 900 11px/1.4 "Fira Sans", sans-serif; font-style: normal; letter-spacing: .06em; }
.st { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 34%); }
.st-main { display: flex; flex-direction: column; min-height: 0; }
.st-video { position: relative; flex: 1; min-height: 0; background: #17110f; overflow: hidden; }
.st-about { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #241a17; color: var(--paper); border-top: 3px solid var(--paper); }
.st-about > span:last-child { display: grid; min-width: 0; } .st-about b { font-size: 14px; }
.st-about small { font-size: 12px; opacity: .72; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-video svg { object-fit: contain; }
.st-viewers { position: absolute; left: 66px; top: 8px; padding: 2px 7px; border-radius: 4px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 700; }
.st-chat { margin: 0; padding: 8px 10px; list-style: none; overflow-y: auto; background: #241a17; color: var(--paper); font-size: 12.5px; line-height: 1.4; border-left: 3px solid var(--paper); }
.st-chat li { padding: 2px 0; animation: st-line .22s ease-out both; }
.st-chat b { font-weight: 900; }
.st-pop { position: absolute; left: 50%; bottom: 64px; translate: -50% 0; display: grid; gap: 2px; max-width: 86%; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 8px; background: var(--dop-2); color: var(--ink); text-align: center; box-shadow: 0 2px 12px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
.st-pop[hidden] { display: none; }
.st-pop b { font-size: 14px; } .st-pop span { font-size: 13px; }
.st-pop.is-in { animation: st-pop .38s cubic-bezier(.2, 1.4, .4, 1) both; }
.st-head { transform-box: fill-box; transform-origin: 50% 90%; animation: st-bob 2.6s ease-in-out infinite; }
.st-mouth { transform-box: fill-box; transform-origin: center; animation: st-talk .34s steps(2) infinite; }
.st-card .st-head, .st-card .st-mouth { animation: none; }
@keyframes st-bob { 50% { transform: rotate(-3deg) translateY(2px); } }
@keyframes st-talk { 50% { transform: scaleY(.35); } }
@keyframes st-line { from { opacity: 0; transform: translateY(6px); } }
@keyframes st-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
/* Yayının akışı: üstte ne oluyor (kart), altta ne diyor (altyazı). TV'de aynı katman SVG içinde (tv-flow-in). */
.st-act { position: absolute; right: 8px; top: 8px; max-width: 62%; padding: 4px 9px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 800; line-height: 1.3; }
.st-sub { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; width: max-content; max-width: 92%; margin: 0; padding: 5px 10px; border-radius: 6px; background: rgba(20, 12, 8, .76); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: center; }
.st-sub b { color: #ffd34d; font-weight: 900; }
.st-act[hidden], .st-sub[hidden] { display: none; }
.st-act.is-in, .st-sub.is-in, .tv-flow-in { animation: st-line .3s ease-out both; }
@media (max-width: 560px) {
  /* Telefonda yayın üstte 16:10, sohbet kalan yerin tamamı; yazı okunur büyüklükte. */
  .st { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .st-video { flex: none; aspect-ratio: 16 / 10; }
  .st-about { padding: 6px 10px; } .pc-brand { margin-right: 8px; font-size: 14px; }
  .st-chat { border-left: 0; border-top: 3px solid var(--paper); font-size: 14px; line-height: 1.45; }
  .st-pop { bottom: 52px; padding: 6px 10px; } .st-sub { font-size: 12px; bottom: 6px; } .st-act { top: 36px; max-width: 80%; font-size: 11px; } /* dar ekranda izleyici sayısının altına iner */ .st-pop b { font-size: 13px; } .st-pop span { font-size: 12px; }
  .pc-view { margin: 0 6px; }
  .pc-mode { padding: 6px 8px; } /* üç mod düğmesi 375 px'e sığsın */
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* Hareketi azalt: oyuncu ayarı ya da işletim sistemi; ikisi de html.az-hareket olur (a11y/apply.js). */
.az-hareket .pc-tab, .az-hareket .pc-go, .az-hareket .pc-fav, .az-hareket .st-card { transition: none; }
.az-hareket .st-head, .az-hareket .st-mouth, .az-hareket .st-chat li, .az-hareket .st-pop.is-in, .az-hareket .st-act.is-in, .az-hareket .st-sub.is-in, .az-hareket .tv-flow-in { animation: none; }
