/* =====================================================================
   /vote — იუთუბის სეზონის ხმის მიცემა.
   წითელი — საიტის ღილაკების ფერი (.red-button #BD1932 / hover #CF263D),
   $gold #FFC941, $text-muted #A4A4A4. ღილაკები — საიტის .red-button. mobile-first.
   ===================================================================== */

.vote-page {
  --yt-red: #BD1932;
  --yt-red-hover: #CF263D;
  --yt-red-2: #FF5A6E;
  --yt-gold: #FFC941;
  --yt-green: #4ADE80;
  --yt-surface: #1A1A1C;
  --yt-line: rgba(255, 255, 255, 0.08);
  --yt-muted: #A4A4A4;
  --yt-text: #F3F1EB;
  position: relative;
  /* საიტის ჰედერი (56px) აბსოლუტურია — მის ქვეშ 16px სუნთქვა */
  padding: 72px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  min-height: 60vh;
  color: var(--yt-text);
  -webkit-tap-highlight-color: transparent;
}

/* ადმინით/მენეჯერით შესულს ადმინის განლაგება აქვს — ჰედერი ნაკადშია, ზედა დაშორება აღარ სჭირდება */
.vote-page.vote-page--admin {
  padding-top: 12px;
}

/* ზედა წითელი ნათება */
.vote-page::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: radial-gradient(60% 70% at 50% 0%, rgba(189, 25, 50, 0.16) 0%, rgba(189, 25, 50, 0) 70%);
  pointer-events: none;
}

.vote-page .container {
  position: relative;
  padding-left: 16px;
  padding-right: 16px;
}

.yt-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--yt-surface);
  border: 1px solid var(--yt-line);
  color: var(--yt-muted);
}

.yt-empty .yt-status-ico {
  background: rgba(255, 201, 65, 0.14);
  color: var(--yt-gold);
}

/* ─── ეპიზოდი ─── */
.yt-hero {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(189, 25, 50, 0.38) 0%, rgba(189, 25, 50, 0) 55%),
    linear-gradient(160deg, #1F1113 0%, #141416 75%);
  border: 1px solid rgba(189, 25, 50, 0.3);
  box-shadow: 0 30px 60px -40px rgba(189, 25, 50, 0.55);
}

/* წერტილოვანი ფაქტურა მარცხნივ */
.yt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  mask-image: linear-gradient(100deg, #000 0%, transparent 55%);
  pointer-events: none;
}

.yt-hero > * {
  position: relative;
  z-index: 1;
}

.yt-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.yt-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.yt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 20px;
  font-size: 12px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.yt-badge--live {
  background: var(--yt-red);
  border-color: var(--yt-red);
}

.yt-badge--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: yt-pulse 1.4s infinite;
}

.yt-badge--soon {
  background: rgba(255, 201, 65, 0.12);
  border-color: rgba(255, 201, 65, 0.3);
  color: var(--yt-gold);
}

.yt-badge--done {
  background: rgba(255, 201, 65, 0.16);
  border-color: rgba(255, 201, 65, 0.3);
  color: var(--yt-gold);
}

@keyframes yt-pulse {
  50% { opacity: 0.3; }
}

.yt-hero-title {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #fff;
}

.yt-hero-desc {
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--yt-muted);
  margin: 0;
}

/* უკუთვლა: სეგმენტები (vote.js) */
.yt-countdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
}

.yt-countdown-label {
  font-size: 12px;
  color: var(--yt-muted);
}

.yt-countdown-value {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.yt-cd-seg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 10px 6px 7px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-cd-seg[hidden] {
  display: none;
}

.yt-cd-seg b {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.yt-cd-seg i {
  margin-top: 5px;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  color: var(--yt-muted);
}

.yt-cd-seg.is-sec b {
  color: var(--yt-red-2);
}

/* როგორ მივცე ხმა — 3 ნაბიჯი */
.yt-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--yt-muted);
}

.yt-steps[hidden] {
  display: none;
}

.yt-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.yt-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(189, 25, 50, 0.2);
  color: var(--yt-red-2);
  font-size: 11px;
}

.yt-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.9);
}

.yt-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── გამარჯვებულები: 2 · 1 · 3 ─── */
.yt-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.yt-podium-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  max-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 8px 14px;
  border-radius: 16px;
  background: var(--yt-surface);
  border: 1px solid var(--yt-line);
  text-align: center;
  color: #fff;
}

.yt-podium-item b {
  max-width: 100%;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.yt-podium-item > span:last-child {
  font-size: 12px;
  color: var(--yt-muted);
}

.yt-podium-item.yt-place-1 {
  order: 2;
  padding-top: 28px;
  padding-bottom: 20px;
  border-color: rgba(255, 201, 65, 0.6);
  background: linear-gradient(180deg, rgba(255, 201, 65, 0.14) 0%, var(--yt-surface) 75%);
  box-shadow: 0 0 34px rgba(255, 201, 65, 0.14);
}

.yt-podium-item.yt-place-2 { order: 1; }
.yt-podium-item.yt-place-3 { order: 3; }
.yt-podium-item.yt-place-4 { order: 4; }

.yt-podium-place {
  position: absolute;
  top: 8px;
  left: 10px;
  font-weight: 700;
  color: var(--yt-gold);
}

.yt-podium-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #161618, 0 0 0 5px rgba(255, 255, 255, 0.1);
}

.yt-place-1 .yt-podium-avatar {
  width: 72px;
  height: 72px;
  box-shadow: 0 0 0 3px #161618, 0 0 0 5px var(--yt-gold);
}

/* ─── სტატუსი ─── */
.yt-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: var(--yt-surface);
  border: 1px solid var(--yt-line);
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}

.yt-status:empty {
  display: none;
}

.yt-status-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.yt-status-ico svg {
  width: 19px;
  height: 19px;
}

.yt-status--wait { border-color: rgba(255, 201, 65, 0.2); }
.yt-status--wait .yt-status-ico { background: rgba(255, 201, 65, 0.14); color: var(--yt-gold); }

.yt-status--go { border-color: rgba(189, 25, 50, 0.35); background: linear-gradient(90deg, rgba(189, 25, 50, 0.12), var(--yt-surface) 60%); }
.yt-status--go .yt-status-ico { background: rgba(189, 25, 50, 0.22); color: var(--yt-red-2); }

.yt-status--done { border-color: rgba(74, 222, 128, 0.25); }
.yt-status--done .yt-status-ico { background: rgba(74, 222, 128, 0.14); color: var(--yt-green); }

.yt-status--info .yt-status-ico { background: rgba(189, 25, 50, 0.16); color: var(--yt-red-2); }

.yt-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--yt-red-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.yt-note,
.yt-total {
  color: var(--yt-muted);
  font-size: 13px;
  margin: -12px 0 20px;
}

.yt-total {
  margin: 16px 0 0;
  text-align: center;
}

.yt-total strong {
  color: #fff;
}

/* ─── სექციის სათაური ─── */
.yt-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}

.yt-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent);
}

.yt-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin: 0 0 14px;
  color: #fff;
}

.yt-section-head .yt-section-title {
  margin: 0;
}

.yt-count {
  padding: 2px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yt-muted);
  font-size: 12px;
  font-family: inherit;
  line-height: 1.6;
}

/* ─── მოთამაშეები: ბოლო რიგი ცენტრში ─── */
.yt-players {
  --cols: 2;
  --gap: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

.yt-players > .yt-card {
  width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols));
}

.yt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid var(--yt-line);
  color: #fff;
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .yt-card:hover {
    transform: translateY(-3px);
    border-color: rgba(189, 25, 50, 0.45);
    box-shadow: 0 16px 30px -20px rgba(189, 25, 50, 0.7);
  }
}

.yt-card.is-selected {
  border-color: var(--green, #2BB673);
  box-shadow: 0 0 0 1px var(--green, #2BB673), 0 16px 30px -18px rgba(43, 182, 115, 0.7);
}

.yt-card.is-selected .yt-avatar,
.yt-card.is-selected:hover .yt-avatar {
  box-shadow: 0 0 0 3px #19191B, 0 0 0 5px var(--green, #2BB673);
}

/* N-ზე მეტის მონიშვნის მცდელობა */
.yt-card.is-denied {
  animation: yt-shake 0.35s ease;
}

@keyframes yt-shake {
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.yt-card.is-my-vote {
  border-color: rgba(189, 25, 50, 0.7);
  background: linear-gradient(180deg, rgba(189, 25, 50, 0.16) 0%, rgba(189, 25, 50, 0.04) 100%);
}

.yt-card.is-winner {
  border-color: rgba(255, 201, 65, 0.5);
}

.yt-card-top {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 4px;
}

.yt-seat {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yt-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
}

.yt-medal {
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yt-gold);
  color: #1B1B1B;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.yt-medal.yt-place-2 { background: #C9CDD3; }
.yt-medal.yt-place-3 { background: #D08B52; }
.yt-medal.yt-place-4 { background: #8A8F98; }

.yt-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px #19191B, 0 0 0 5px rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.2s;
}

.yt-card:hover .yt-avatar,
.yt-card.is-my-vote .yt-avatar {
  box-shadow: 0 0 0 3px #19191B, 0 0 0 5px var(--yt-red);
}

.yt-card.is-winner .yt-avatar {
  box-shadow: 0 0 0 3px #19191B, 0 0 0 5px var(--yt-gold);
}

.yt-avatar--text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #2A2A2D;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

/* ასოიანი ავატარის ფონი — ადგილის მიხედვით */
.yt-tone-0 { background: linear-gradient(140deg, #8C1D1D, #3A0E0E); }
.yt-tone-1 { background: linear-gradient(140deg, #8A6516, #3B2A08); }
.yt-tone-2 { background: linear-gradient(140deg, #1D5B8C, #0C263B); }
.yt-tone-3 { background: linear-gradient(140deg, #5B3392, #24133D); }
.yt-tone-4 { background: linear-gradient(140deg, #187364, #0A332C); }
.yt-tone-5 { background: linear-gradient(140deg, #8C1D5E, #3B0C27); }

.yt-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.yt-nick {
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

/* YouTube არხი */
.yt-channel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #D6D6D6;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.yt-channel svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.yt-channel span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yt-channel:hover {
  background: rgba(255, 0, 51, 0.14);
  border-color: rgba(255, 0, 51, 0.35);
  color: #fff;
}

.yt-channel--ig:hover {
  background: rgba(214, 36, 159, 0.16);
  border-color: rgba(214, 36, 159, 0.4);
}

.yt-role {
  white-space: nowrap;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* გუნდის ფერი — roles.team_id: 1 მაფია, 2 იაკუძა, 4 მოქალაქე */
.yt-role[data-team="1"] {
  background: rgba(189, 25, 50, 0.25);
  color: #ff8a8a;
}

.yt-role[data-team="2"] {
  background: rgba(255, 159, 67, 0.18);
  color: #FFB676;
}

.yt-role[data-team="3"] {
  background: rgba(155, 109, 255, 0.2);
  color: #C7AEFF;
}

.yt-role[data-team="4"] {
  background: rgba(64, 196, 160, 0.16);
  color: #7FE0C4;
}

/* ადგილი მაგიდასთან + როლი */
.yt-tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.yt-seat-tag {
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #D6D6D6;
  white-space: nowrap;
}

.yt-podium-item .yt-tags {
  margin: 2px 0;
}

.yt-bio {
  width: 100%;
  font-size: 12px;
  color: var(--yt-muted);
}

.yt-bio summary {
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yt-bio summary::-webkit-details-marker {
  display: none;
}

.yt-bio p {
  margin: 6px 0 0;
  text-align: left;
  line-height: 1.45;
}

/* შედეგი — ჩანს მხოლოდ .show-results-ზე */
.yt-result {
  display: none;
  align-items: center;
  gap: 8px;
}

.yt-players.show-results .yt-result {
  display: flex;
}

.yt-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.yt-bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #8E0B0B, var(--yt-red-2));
  transition: width 0.6s ease;
}

.yt-card.is-winner .yt-bar span {
  background: linear-gradient(90deg, #B8860B, var(--yt-gold));
}

.yt-result-num {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 58px;
  line-height: 1.2;
}

.yt-percent {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.yt-votes {
  font-size: 11px;
  color: var(--yt-muted);
  white-space: nowrap;
}

.yt-rank {
  display: none;
}

.yt-vote-btn {
  width: 100%;
  border: 0;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}

.yt-vote-btn:hover {
  color: #fff;
}

.yt-my-vote {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 39px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid var(--yt-red);
  background: rgba(189, 25, 50, 0.12);
  color: #ff8a8a;
  font-size: 14px;
  text-align: center;
}

/* ─── შედეგები: რეიტინგი (ხმების მიხედვით, ლიდერი ზემოთ) ─── */
.yt-players {
  transition: opacity 0.25s ease;
}

.yt-players.is-switching {
  opacity: 0;
}

.yt-players.show-results {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
}

.yt-players.show-results > .yt-card {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 48px minmax(0, 1fr);
  grid-template-areas:
    "rank ava body"
    "rank ava res";
  align-items: center;
  column-gap: 12px;
  row-gap: 0;
  padding: 10px 14px;
  border-radius: 14px;
  animation: yt-row-in 0.45s ease backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.show-results .yt-card:hover {
  transform: none;
}

.show-results .yt-rank {
  grid-area: rank;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--yt-muted);
  font-size: 14px;
  font-weight: 700;
}

.show-results .yt-card-top {
  grid-area: ava;
  padding: 0;
}

.show-results .yt-seat,
.show-results .yt-medal,
.show-results .yt-bio {
  display: none;
}

.show-results .yt-avatar {
  width: 48px;
  height: 48px;
  font-size: 19px;
  box-shadow: 0 0 0 2px #19191B, 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.show-results .yt-card:hover .yt-avatar {
  box-shadow: 0 0 0 2px #19191B, 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.show-results .yt-card.is-my-vote .yt-avatar {
  box-shadow: 0 0 0 2px #19191B, 0 0 0 3px var(--yt-red);
}

.show-results .yt-card-body {
  grid-area: body;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  text-align: left;
}

.show-results .yt-result {
  grid-area: res;
  margin-top: 8px;
}

.show-results .yt-bar {
  height: 8px;
  border-radius: 4px;
}

.show-results .yt-bar span {
  transform-origin: left center;
  animation: yt-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(150ms + var(--i, 0) * 60ms);
}

/* „შენი არჩევანი“ — იარლიყი ბარათის ზედა კიდეზე */
.show-results .yt-my-vote {
  position: absolute;
  top: -10px;
  right: 14px;
  height: auto;
  padding: 2px 10px;
  border-radius: 20px;
  background: var(--yt-red);
  border-color: var(--yt-red);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}

/* ლიდერი — ოქროსფერი, გვირგვინით */
.show-results .yt-card.is-leader {
  border-color: rgba(255, 201, 65, 0.55);
  background: linear-gradient(90deg, rgba(255, 201, 65, 0.13) 0%, rgba(255, 255, 255, 0.02) 65%);
  box-shadow: 0 12px 30px -20px rgba(255, 201, 65, 0.6);
}

.show-results .is-leader .yt-rank {
  background: var(--yt-gold);
  color: #1B1B1B;
}

.show-results .is-leader .yt-rank::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  width: 18px;
  height: 13px;
  transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 17'%3E%3Cpath fill='%23FFC941' d='M2 15h20l2-12-6.5 5L12 0 6.5 8 0 3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.show-results .is-leader .yt-avatar {
  box-shadow: 0 0 0 2px #19191B, 0 0 0 3px var(--yt-gold);
}

.show-results .is-leader .yt-bar span {
  background: linear-gradient(90deg, #B8860B, var(--yt-gold));
}

.show-results .is-leader .yt-percent {
  color: var(--yt-gold);
}

/* გამარჯვებულების ზონა (2, 3, 4 ადგილი — ეპიზოდის პარამეტრით) */
.show-results .yt-card.is-top-2 { border-color: rgba(201, 205, 211, 0.4); }
.show-results .is-top-2 .yt-rank { background: #C9CDD3; color: #1B1B1B; }
.show-results .is-top-2 .yt-bar span { background: linear-gradient(90deg, #7D828A, #C9CDD3); }

.show-results .yt-card.is-top-3 { border-color: rgba(208, 139, 82, 0.45); }
.show-results .is-top-3 .yt-rank { background: #D08B52; color: #1B1B1B; }
.show-results .is-top-3 .yt-bar span { background: linear-gradient(90deg, #8A5A33, #D08B52); }

.show-results .yt-card.is-top-4 { border-color: rgba(138, 143, 152, 0.45); }
.show-results .is-top-4 .yt-rank { background: #8A8F98; color: #1B1B1B; }

/* ხმის მიცემის მომენტი — „+1“ */
.yt-card.is-just-voted {
  animation: yt-voted 0.9s ease;
}

.yt-card.is-just-voted .yt-card-top::after {
  content: "+1";
  position: absolute;
  top: 26%;
  left: 50%;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 12px rgba(189, 25, 50, 0.95);
  pointer-events: none;
  animation: yt-plus 0.9s ease forwards;
}

@keyframes yt-voted {
  0% { transform: scale(1); }
  30% { transform: scale(1.05); box-shadow: 0 0 0 3px rgba(189, 25, 50, 0.6), 0 20px 40px -12px rgba(189, 25, 50, 0.8); }
  100% { transform: scale(1); }
}

@keyframes yt-plus {
  0% { opacity: 0; transform: translate(-50%, 12px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -34px); }
}

@keyframes yt-row-in {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes yt-grow {
  from { transform: scaleX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .yt-players.show-results > .yt-card,
  .show-results .yt-bar span,
  .yt-card.is-just-voted,
  .yt-card.is-just-voted .yt-card-top::after {
    animation: none;
  }
}

/* ─── დადასტურება ─── */
.yt-confirm {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 14, 16, 0.97);
  border-top: 1px solid rgba(189, 25, 50, 0.4);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.yt-confirm[hidden] {
  display: none;
}

.yt-confirm-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fff;
}

.yt-confirm-inner p {
  margin: 0;
}

/* „არჩეულია 2 / 3“ */
.yt-confirm-count {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yt-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.yt-confirm-count.is-full {
  background: rgba(43, 182, 115, 0.16);
  color: #6EE7B0;
}

.yt-confirm-msg {
  color: #ff8a8a;
  font-size: 13px;
}

.yt-confirm-msg:empty {
  display: none;
}

.yt-confirm-actions {
  display: flex;
  gap: 10px;
}

.yt-confirm-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.yt-confirm-actions button {
  flex: 1;
  justify-content: center;
}

/* ─── არქივი ─── */
.yt-archive {
  margin-top: 36px;
}

.yt-archive-list {
  display: grid;
  gap: 10px;
}

.yt-archive-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--yt-surface);
  border: 1px solid var(--yt-line);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.yt-archive-item:hover {
  border-color: rgba(189, 25, 50, 0.5);
  color: #fff;
}

.yt-archive-head {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yt-archive-winners {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.yt-archive-winner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.yt-archive-winner .yt-medal {
  position: static;
  width: 20px;
  height: 20px;
  font-size: 11px;
  line-height: 20px;
}

.yt-avatar-sm {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}

.yt-avatar-sm.yt-avatar--text {
  font-size: 12px;
}

.yt-archive-note {
  font-size: 12px;
  color: var(--yt-muted);
}

/* ─── ტაბლეტი / დესკტოპი ─── */
@media (min-width: 576px) {
  .yt-players {
    --cols: 3;
  }
}

@media (min-width: 768px) {
  .yt-players {
    --cols: 4;
    --gap: 12px;
  }

  .yt-archive-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yt-players.show-results > .yt-card {
    grid-template-columns: 34px 56px minmax(0, 1fr) minmax(0, 1.5fr);
    grid-template-areas: "rank ava body res";
    column-gap: 16px;
    padding: 12px 18px;
  }

  .show-results .yt-rank {
    width: 34px;
    height: 34px;
  }

  .show-results .yt-avatar {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }

  .show-results .yt-result {
    margin-top: 0;
  }

  .yt-podium {
    gap: 14px;
  }

  .yt-podium-avatar {
    width: 72px;
    height: 72px;
  }

  .yt-place-1 .yt-podium-avatar {
    width: 92px;
    height: 92px;
  }

  .yt-podium-item b {
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .vote-page {
    padding-top: 88px;
  }

  .yt-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 32px;
    padding: 28px;
  }

  .yt-hero--solo {
    grid-template-columns: 1fr;
  }

  .yt-hero-title {
    font-size: 32px;
  }

  .yt-hero-desc {
    font-size: 15px;
  }

  .yt-players {
    --cols: 5;
    --gap: 14px;
  }

  .yt-confirm {
    left: 50%;
    right: auto;
    bottom: 24px;
    width: 520px;
    transform: translateX(-50%);
    border: 1px solid rgba(189, 25, 50, 0.4);
    border-radius: 16px;
  }
}

@media (min-width: 1200px) {
  .yt-players {
    --cols: 6;
  }
}
