/* „ქართული YouTube" (2026-11-12, youtube_section.py, templates/youtube/*). მხოლოდ ამ გვერდებზე იტვირთება.
   ფერები/შრიფტები საიტისაა: მუქი ფონი, მწვანე აქცენტი (#008170 / #00a189), BPG Mrgvlovani (--t-head / --t-text). */
.yt-page { --yt-acc: #00a189; --yt-acc-2: #22c9ad; --yt-card: #1a1a1a; --yt-line: rgba(255, 255, 255, .08);
  --yt-muted: #9a9a9a; color: #fff; padding: 24px 0 64px; clear: both; }
.yt-page a { color: inherit; text-decoration: none; }

/* ── ჰაბის თავი ── */
.yt-hero { padding: 18px 0 24px; }
.yt-hero__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 9px; border-radius: 999px;
  background: rgba(0, 161, 137, .14); color: var(--yt-acc-2); font: 600 13px/1.4 var(--t-text, sans-serif); }
.yt-hero__title { margin: 14px 0 8px; font: 700 34px/1.25 var(--t-head, sans-serif) !important; color: #fff; }
.yt-hero__sub { margin: 0; max-width: 640px; color: #bdbdbd; font: 400 15px/1.6 var(--t-text, sans-serif); }

/* ── ავატარი: სურათი ან (ვერ ჩაიტვირთა) პირველი ასო მწვანე წრეზე ── */
.yt-ava { position: relative; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%;
  background: linear-gradient(135deg, #12a58f, #0a4d44); color: #fff; font-family: var(--t-head, sans-serif); font-weight: 700; line-height: 1; }
.yt-ava::before { content: attr(data-i); }
.yt-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-chan__ava { font-size: 34px; }
.yt-row__ava { font-size: 18px; }
.yt-card__ava { font-size: 14px; }
.yt-ch__ava { font-size: 52px; }
.yt-watch__ava { width: 44px; height: 44px; font-size: 18px; }

/* ── არხები (მრგვალი ავატარები) ── */
.yt-chans { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 12px; margin: 0 0 44px; }
.yt-chan { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px; text-align: center; border-radius: 14px;
  transition: background .2s ease; }
.yt-chan__ava { width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); transition: box-shadow .2s ease, transform .2s ease; }
.yt-chan__name { max-width: 100%; color: #f0f0f0; font: 600 13.5px/1.35 var(--t-text, sans-serif);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-chan__subs { margin-top: -4px; color: var(--yt-muted); font: 400 12px/1.3 var(--t-text, sans-serif); }
.yt-chan:hover .yt-chan__ava, .yt-chan:focus-visible .yt-chan__ava, .yt-chan.is-on .yt-chan__ava {
  box-shadow: 0 0 0 3px var(--yt-acc), 0 8px 22px rgba(0, 0, 0, .45); transform: translateY(-2px); }
.yt-chan:hover .yt-chan__name { color: var(--yt-acc-2); }
.yt-chan:focus-visible { outline: none; }
.yt-rows-more { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 0 40px; color: var(--yt-muted);
  font: 500 14px/1.4 var(--t-text, sans-serif); }
.yt-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: var(--yt-acc-2);
  animation: yt-spin .8s linear infinite; }
@keyframes yt-spin { to { transform: rotate(360deg); } }

/* სხვა არხები — ერთ რიგად სრიალით */
.yt-chans--strip { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; margin-bottom: 20px; }
.yt-chans--strip::-webkit-scrollbar { display: none; }
.yt-chans--strip .yt-chan { flex: 0 0 116px; }
.yt-chans--strip .yt-chan__ava { width: 76px; height: 76px; }

/* ── რიგი ── */
.yt-row { margin: 0 0 42px; }
.yt-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.yt-row__title { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 21px/1.35 var(--t-head, sans-serif) !important; color: #fff; }
.yt-row__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: rgba(0, 161, 137, .14); color: var(--yt-acc-2); }
.yt-row__chan { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yt-row__chan > span:not(.yt-ava) { display: flex; flex-direction: column; min-width: 0; }
.yt-row__chan .yt-row__title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.yt-row__chan:hover .yt-row__title { color: var(--yt-acc-2); }
.yt-row__ava { width: 46px; height: 46px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.yt-row__sub { color: var(--yt-muted); font: 400 13px/1.4 var(--t-text, sans-serif); }
.yt-row__more { flex: none; padding: 7px 13px; border-radius: 8px; color: #d6d6d6 !important; font: 500 14px/1.4 var(--t-text, sans-serif);
  box-shadow: inset 0 0 0 1px var(--yt-line); transition: color .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.yt-row__more:hover { color: #fff !important; background: rgba(0, 161, 137, .12); box-shadow: inset 0 0 0 1px var(--yt-acc); }

.yt-scroll { position: relative; }
.yt-scroll__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 16px) / 5); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.yt-scroll__track::-webkit-scrollbar { display: none; }
.yt-scroll__item { scroll-snap-align: start; min-width: 0; }
.yt-scroll__btn { position: absolute; top: 22%; z-index: 2;   /* youtube.js სურათის შუაზე ასწორებს */
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(20, 20, 20, .92); color: #fff; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background .2s; }
.yt-scroll__btn:hover { background: var(--yt-acc); }
.yt-scroll__btn--prev { left: -16px; }
.yt-scroll__btn--next { right: -16px; }

/* ── ვიდეოს ბარათი ── */
.yt-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.yt-card__thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--yt-card);
  box-shadow: inset 0 0 0 1px var(--yt-line); }
.yt-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.yt-card__play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 48px; height: 48px;
  margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(0, 161, 137, .92); color: #fff; opacity: 0;
  transform: scale(.85); transition: opacity .2s, transform .2s; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.yt-card__play svg { margin-left: 3px; }
.yt-card__body { display: flex; gap: 10px; min-width: 0; }
.yt-card__ava { width: 34px; height: 34px; margin-top: 1px; }
.yt-card__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.yt-card__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font: 600 14.5px/1.45 var(--t-text, sans-serif); color: #f2f2f2; transition: color .2s; }
.yt-card__meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 400 12.5px/1.4 var(--t-text, sans-serif); color: var(--yt-muted); }
.yt-card:hover .yt-card__thumb img, .yt-card:focus-visible .yt-card__thumb img { transform: scale(1.05); }
.yt-card:hover .yt-card__play, .yt-card:focus-visible .yt-card__play { opacity: 1; transform: scale(1); }
.yt-card:hover .yt-card__title { color: var(--yt-acc-2); }
.yt-card:focus-visible { outline: none; }
.yt-card:focus-visible .yt-card__thumb { box-shadow: 0 0 0 2px var(--yt-acc); }

/* ── ბადე ── */
.yt-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 16px; margin: 0 0 28px; }
.yt-sub { margin: 18px 0 16px; font: 700 20px/1.35 var(--t-head, sans-serif) !important; color: #fff; }
.yt-more { display: flex; justify-content: center; margin: 0 0 40px; }

/* ── არხის გვერდი ── */
.yt-page--channel { padding-top: 18px; }
.yt-ch { margin: 0 0 22px; }
.yt-ch__banner { position: relative; aspect-ratio: 6.2 / 1; min-height: 110px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(135deg, #0f3d36, #151515 70%); box-shadow: inset 0 0 0 1px var(--yt-line); }
.yt-ch__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-ch__banner-blur { position: absolute; inset: -30px; background-size: cover; background-position: center;
  filter: blur(40px) brightness(.45) saturate(1.3); }
.yt-ch__head { display: flex; align-items: flex-start; gap: 22px; padding: 0 8px; margin-top: -42px; position: relative; }
.yt-ch__ava { flex: none; width: 132px; height: 132px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 5px #111, 0 10px 30px rgba(0, 0, 0, .5); }
.yt-ch__info { flex: 1; min-width: 0; padding-top: 52px; }
.yt-ch__back { display: inline-flex; align-items: center; gap: 6px; color: var(--yt-acc-2) !important; font: 600 13px/1.4 var(--t-text, sans-serif); }
.yt-ch__title { margin: 6px 0 6px; font: 700 32px/1.2 var(--t-head, sans-serif) !important; color: #fff; }
.yt-ch__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; color: #c4c4c4; font: 400 14px/1.5 var(--t-text, sans-serif); }
.yt-ch__meta span + span::before { content: "·"; margin-right: 14px; color: #666; }
.yt-ch__desc, .yt-watch__text { margin: 0; max-width: 820px; color: #bdbdbd; white-space: pre-line; font: 400 14px/1.65 var(--t-text, sans-serif);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yt-ch__desc.is-open, .yt-watch__text.is-open { -webkit-line-clamp: unset; display: block; }
.yt-ch__more { margin-top: 6px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: 600 13.5px/1.4 var(--t-text, sans-serif); }
.yt-ch__more:hover { color: var(--yt-acc-2); }
.yt-ch__head > .yt-btn { margin-top: 58px; flex: none; }

.yt-tabs { display: flex; gap: 6px; margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--yt-line); }
.yt-tab { padding: 8px 16px; border-radius: 999px; color: #cfcfcf !important; font: 600 14px/1.4 var(--t-text, sans-serif);
  transition: background .2s, color .2s; }
.yt-tab:hover { background: rgba(255, 255, 255, .07); color: #fff !important; }
.yt-tab.is-on { background: #fff; color: #111 !important; }

/* ── ღილაკები, ცარიელი ── */
.yt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 10px; border: 0;
  background: #222; color: #fff !important; cursor: pointer; font: 600 14px/1.4 var(--t-text, sans-serif); white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background .2s, box-shadow .2s, opacity .2s; }
.yt-btn:hover { background: #2b2b2b; box-shadow: inset 0 0 0 1px var(--yt-acc); }
.yt-btn[disabled] { opacity: .6; cursor: progress; }
.yt-btn--primary { background: var(--yt-acc); box-shadow: none; }
.yt-btn--primary:hover { background: var(--yt-acc-2); box-shadow: none; }
.yt-btn--yt { background: #fff; color: #111 !important; box-shadow: none; }
.yt-btn--yt:hover { background: #e6e6e6; box-shadow: none; }
.yt-btn--ghost { background: transparent; }
.yt-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 16px; text-align: center;
  border-radius: 16px; background: #151515; box-shadow: inset 0 0 0 1px var(--yt-line); color: #bdbdbd; margin: 0 0 40px; }
.yt-empty p { margin: 0; font: 400 15px/1.6 var(--t-text, sans-serif); }
.yt-empty__ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(0, 161, 137, .12); color: var(--yt-acc-2); }

/* ── ყურების გვერდი ── */
.yt-watch__layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 24px; align-items: start; margin: 0 0 30px; }
.yt-watch__layout:not(:has(.yt-watch__side)) { grid-template-columns: minmax(0, 1fr); }
.yt-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.yt-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-watch__info { padding: 16px 2px 0; }
.yt-watch__title { margin: 0 0 14px; font: 700 23px/1.35 var(--t-head, sans-serif) !important; color: #fff; }
.yt-watch__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.yt-watch__chan { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yt-watch__chan > span:not(.yt-ava) { display: flex; flex-direction: column; }
.yt-watch__chan b { color: #fff; font: 700 15px/1.35 var(--t-text, sans-serif); }
.yt-watch__chan small { color: var(--yt-muted); font: 400 12.5px/1.4 var(--t-text, sans-serif); }
.yt-watch__chan:hover b { color: var(--yt-acc-2); }
.yt-watch__nav { display: flex; flex-wrap: wrap; gap: 8px; }
.yt-watch__desc { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #181818; }
.yt-watch__stats { margin: 0 0 6px; color: #fff; font: 600 13.5px/1.4 var(--t-text, sans-serif); }
.yt-watch__side { border-radius: 16px; background: #161616; box-shadow: inset 0 0 0 1px var(--yt-line); overflow: hidden; }
.yt-watch__side-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 14px 16px;
  font: 700 16px/1.4 var(--t-head, sans-serif) !important; color: #fff; border-bottom: 1px solid var(--yt-line); }
.yt-watch__side-title span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.yt-watch__side-title a { flex: none; color: var(--yt-acc-2) !important; font: 600 13px/1.4 var(--t-text, sans-serif); }
.yt-eps { list-style: none; margin: 0; padding: 8px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; }
.yt-ep { display: flex; gap: 10px; padding: 8px; border-radius: 10px; transition: background .2s; }
.yt-ep:hover { background: #222; }
.yt-ep__thumb { position: relative; flex: none; width: 140px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #222; }
.yt-ep__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-ep__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.yt-ep__t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #eee; font: 500 13.5px/1.4 var(--t-text, sans-serif); }
.yt-ep__n { color: var(--yt-muted); font: 400 12px/1.4 var(--t-text, sans-serif); }

/* ── ზომები ── */
@media (max-width: 1365px) {
  .yt-scroll__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); }
  .yt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .yt-watch__layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 1100px) {
  .yt-watch__layout { grid-template-columns: minmax(0, 1fr); }
  .yt-eps { max-height: 460px; }
}
@media (max-width: 1023px) {
  .yt-scroll__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); gap: 14px; }
  .yt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 14px; }
  .yt-scroll__btn { display: none !important; }
  .yt-ch__head { flex-wrap: wrap; }
  .yt-ch__head > .yt-btn { margin-top: 0; margin-left: 154px; }
}
@media (max-width: 767px) {
  .yt-page { padding: 14px 0 48px; }
  .yt-hero { padding: 6px 0 18px; }
  .yt-hero__title { font-size: 26px !important; }
  .yt-hero__sub { font-size: 14px; }
  /* 20 არხი ტელეფონზე ერთ ზოლად, სრიალით */
  .yt-chans { display: flex; overflow-x: auto; gap: 6px; margin: 0 -15px 30px; padding: 0 15px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .yt-chans::-webkit-scrollbar { display: none; }
  .yt-chan { flex: 0 0 92px; scroll-snap-align: start; }
  .yt-chan__ava, .yt-chans--strip .yt-chan__ava { width: 68px; height: 68px; }
  .yt-chan__name { font-size: 12px; }
  .yt-chan__subs { font-size: 11px; }
  .yt-row { margin-bottom: 32px; }
  .yt-row__title { font-size: 17px !important; }
  .yt-row__ava { width: 38px; height: 38px; }
  .yt-row__sub { font-size: 12px; }
  .yt-row__more { font-size: 0; padding: 6px 10px; }
  .yt-row__more span { font-size: 18px; }
  .yt-scroll__track { grid-auto-columns: 74%; gap: 12px; }
  .yt-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .yt-card__title { font-size: 14px; }
  .yt-ch__banner { aspect-ratio: 3.2 / 1; min-height: 0; border-radius: 12px; }
  .yt-ch__head { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: -36px; padding: 0 4px; }
  .yt-ch__ava { width: 84px; height: 84px; box-shadow: 0 0 0 4px #111; }
  .yt-ch__info { padding-top: 0; }
  .yt-ch__title { font-size: 24px !important; }
  .yt-ch__head > .yt-btn { margin: 4px 0 0; width: 100%; }
  .yt-watch .container { padding-left: 0; padding-right: 0; }
  .yt-watch .yt-watch__info, .yt-watch .yt-sub, .yt-watch .yt-watch__side, .yt-watch .yt-chans { margin-left: 15px; margin-right: 15px; }
  .yt-watch .yt-chans { padding: 0; }
  .yt-player { border-radius: 0; }
  .yt-watch__title { font-size: 18px !important; }
  .yt-ep__thumb { width: 128px; }
}
@media (prefers-reduced-motion: reduce) {
  .yt-chan__ava, .yt-card__thumb img, .yt-card__play, .yt-scroll__track { transition: none; scroll-behavior: auto; }
}

/* ── კატეგორიები (მფლობელი, 2026-11-12): ბარათი — სახელი, ქვემოთ 3 არხი ვერტიკალურად; კომპიუტერზე 5 ერთად ── */
.yt-scroll--cats .yt-scroll__track { grid-auto-columns: calc((100% - 4 * 16px) / 5); align-items: stretch; padding: 4px 0 10px; }
.yt-catc { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden;
  background: #151515; box-shadow: inset 0 0 0 1px var(--yt-line), 0 6px 18px rgba(0, 0, 0, .25);
  transition: box-shadow .25s ease, transform .25s ease; }
.yt-catc:hover { transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(34, 201, 173, .55), 0 14px 32px rgba(0, 0, 0, .45), 0 0 0 4px rgba(0, 161, 137, .08); }

/* თავი: უდიდესი არხის ავატარი გაბუნდოვნებული ფონად + მუქი გრადიენტი, ზემოთ სახელი და რაოდენობა */
.yt-catc__head { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 108px; padding: 18px 18px 14px; overflow: hidden; }
.yt-catc__bg { position: absolute; inset: -30px; z-index: -2; background-size: cover; background-position: center;
  filter: blur(26px) saturate(1.5) brightness(.55); transform: scale(1.1); transition: transform .5s ease, filter .3s ease; }
.yt-catc__head::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21, 21, 21, .15) 0%, rgba(21, 21, 21, .55) 55%, #151515 100%); }
.yt-catc:hover .yt-catc__bg { transform: scale(1.18); filter: blur(24px) saturate(1.7) brightness(.62); }
.yt-catc__name { color: #fff; font: 700 17px/1.3 var(--t-head, sans-serif); text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
  transition: color .2s; }
.yt-catc__head:hover .yt-catc__name { color: var(--yt-acc-2); }
.yt-catc__count { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #e6e6e6; font: 600 12px/1.4 var(--t-text, sans-serif);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* 3 არხი — რიგითი ნომრით */
.yt-catc__list { list-style: none; margin: 0; padding: 6px 10px 0; display: flex; flex-direction: column; flex: 1; }
.yt-catc__list li + li { border-top: 1px solid rgba(255, 255, 255, .05); }
.yt-catc__ch { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; transition: background .2s, padding .2s; }
.yt-catc__ch:hover { padding-right: 28px; }          /* „›" ადგილს მხოლოდ მაუსის მიტანისას იკავებს */
.yt-catc__ch:hover { background: rgba(255, 255, 255, .05); }
.yt-catc__rank { flex: none; width: 14px; text-align: center; color: #6f6f6f; font: 700 13px/1 var(--t-head, sans-serif); transition: color .2s; }
.yt-catc__ch:hover .yt-catc__rank { color: var(--yt-acc-2); }
.yt-catc__ava { width: 44px; height: 44px; font-size: 17px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .1); transition: box-shadow .2s; }
.yt-catc__ch:hover .yt-catc__ava { box-shadow: 0 0 0 2px var(--yt-acc-2); }
.yt-catc__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.yt-catc__txt b { color: #f2f2f2; font: 600 14px/1.35 var(--t-text, sans-serif); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; transition: color .2s; }
.yt-catc__txt small { color: var(--yt-muted); font: 400 12px/1.4 var(--t-text, sans-serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-catc__ch:hover .yt-catc__txt b { color: var(--yt-acc-2); }
.yt-catc__go { position: absolute; right: 8px; top: 50%; margin-top: -8px; color: var(--yt-acc-2); opacity: 0; transform: translateX(-4px);
  transition: opacity .2s, transform .2s; }
.yt-catc__ch:hover .yt-catc__go { opacity: 1; transform: none; }

/* ბოლოში „ყველა" — ისარი მაუსის მიტანისას იძვრება */
.yt-catc__all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 12px 14px; padding: 10px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--yt-line);
  color: #e0e0e0 !important; font: 600 13.5px/1.4 var(--t-text, sans-serif); transition: background .2s, color .2s, box-shadow .2s; }
.yt-catc__all svg { color: var(--yt-acc-2); transition: transform .2s ease; }
.yt-catc__all:hover { background: var(--yt-acc); color: #fff !important; box-shadow: none; }
.yt-catc__all:hover svg { color: #fff; transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .yt-catc, .yt-catc__bg, .yt-catc__go, .yt-catc__all svg { transition: none; }
}

/* კატეგორიის გვერდი: გადამრთველი + თავი + ყველა არხი ბადეში */
.yt-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 22px; padding: 2px; }
.yt-pills::-webkit-scrollbar { display: none; }
.yt-pill { flex: none; padding: 8px 14px; border-radius: 999px; background: #1a1a1a; box-shadow: inset 0 0 0 1px var(--yt-line);
  color: #d6d6d6 !important; white-space: nowrap; font: 500 14px/1.4 var(--t-text, sans-serif); transition: background .2s, color .2s, box-shadow .2s; }
.yt-pill:hover { color: #fff !important; box-shadow: inset 0 0 0 1px var(--yt-acc); }
.yt-pill.is-on { background: var(--yt-acc); color: #fff !important; box-shadow: none; }
.yt-head { margin: 4px 0 26px; }
.yt-head__title { margin: 6px 0 4px; font: 700 30px/1.25 var(--t-head, sans-serif) !important; color: #fff; }
.yt-head__sub { margin: 0; color: var(--yt-muted); font: 400 14px/1.5 var(--t-text, sans-serif); }

@media (max-width: 1199px) { .yt-scroll--cats .yt-scroll__track { grid-auto-columns: calc((100% - 3 * 16px) / 4); } }
@media (max-width: 1023px) { .yt-scroll--cats .yt-scroll__track { grid-auto-columns: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 767px) {
  .yt-scroll--cats .yt-scroll__track { grid-auto-columns: 78%; }
  .yt-head__title { font-size: 23px !important; }
  /* კატეგორიის გვერდზე ყველა არხი ბადეში (არა სრიალით) */
  .yt-chans--all { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0 0 30px; padding: 0; gap: 14px 6px; }
  .yt-chans--all .yt-chan { flex: none; }
}

/* ── ძებნა (2026-11-13; _cards.html search_box, youtube.js მინიშნებები, templates/youtube/search.html) ── */
.yt-search { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; max-width: 560px; margin: 18px 0 0;
  padding: 0 6px 0 15px; border-radius: 14px; background: #141619; border: 1px solid var(--yt-line);
  transition: border-color .2s, box-shadow .2s; }
.yt-search:hover { border-color: rgba(255, 255, 255, .16); }
.yt-search:focus-within { border-color: var(--yt-acc-2); box-shadow: 0 0 0 3px rgba(0, 161, 137, .16); }
.yt-search--big { height: 56px; max-width: 680px; margin-top: 22px; padding-left: 18px; border-radius: 16px; }
.yt-search__ico { flex: none; color: #8a9099; }
.yt-search:focus-within .yt-search__ico { color: var(--yt-acc-2); }
.yt-search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #fff;
  font: 400 15px/1 var(--t-text, sans-serif); }
.yt-search__input::placeholder { color: #6e747d; }
.yt-search__input::-webkit-search-cancel-button { filter: invert(.6); cursor: pointer; }
.yt-search__btn { flex: none; height: calc(100% - 12px); padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #00a58e, #007c6b); color: #fff; font: 600 14px/1 var(--t-head, sans-serif);
  transition: filter .18s; }
.yt-search__btn:hover { filter: brightness(1.1); }
/* მინიშნებები */
.yt-suggest { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; right: 0; padding: 6px; max-height: 70vh; overflow-y: auto;
  border-radius: 14px; background: #1b1e24; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 50px rgba(0, 0, 0, .6); }
.yt-suggest[hidden] { display: none; }
.yt-suggest__item { display: flex; align-items: center; gap: 12px; padding: 7px; border-radius: 10px; color: #e6e9ee; }
.yt-suggest__item:hover, .yt-suggest__item.is-on { background: #262a32; color: #fff; }
.yt-suggest__thumb { flex: none; width: 96px; height: 54px; border-radius: 7px; object-fit: cover; background: #2a2f37; }
.yt-suggest__ava { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 28px 0 28px;
  border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #12a58f, #0a4d44); color: #fff; font-weight: 700; }
.yt-suggest__ava::before { content: attr(data-i); }
.yt-suggest__ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.yt-suggest__txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.yt-suggest__txt b { font: 600 13.5px/1.35 var(--t-text, sans-serif); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yt-suggest__txt small { color: var(--yt-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yt-suggest__item--ch .yt-suggest__txt small { color: var(--yt-acc-2); }
.yt-suggest__all { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-top: 1px solid var(--yt-line);
  background: none; color: var(--yt-acc-2); font: 600 13px/1 var(--t-text, sans-serif); cursor: pointer; text-align: center; border-radius: 0 0 8px 8px; }
.yt-suggest__all:hover { background: rgba(0, 161, 137, .1); }
.yt-suggest__none { margin: 0; padding: 14px; color: var(--yt-muted); font-size: 13px; text-align: center; }
/* არხის გვერდზე — ჩანართების რიგში მარჯვნივ, პატარა */
.yt-tabs { align-items: center; }
.yt-tabs .yt-search { height: 42px; max-width: 320px; margin: 0 0 0 auto; flex: 0 1 320px; border-radius: 12px; }
.yt-tabs .yt-search__btn { display: none; }
/* ვიდეოს გვერდზე — თავში */
.yt-watch__search { margin: 0 0 16px; }
.yt-watch__search .yt-search { margin: 0; max-width: 520px; height: 44px; }
.yt-link { color: var(--yt-acc-2) !important; }
.yt-link:hover { text-decoration: underline !important; }
@media (max-width: 767px) {
  .yt-search { height: 46px; max-width: none; }
  .yt-search--big { height: 50px; }
  .yt-search__btn { padding: 0 14px; }
  .yt-tabs { flex-wrap: wrap; }
  .yt-tabs .yt-search { flex: 1 1 100%; max-width: none; margin: 8px 0 0; }
  .yt-suggest__thumb { width: 80px; height: 45px; }
  .yt-suggest__ava { margin: 0 20px; }
}
