/* ── FIFA Live Stream — Player (FIFA Theme + Motion) ── */

:root {
  --bg: #0a1628;
  --bg2: #050d1a;
  --sur: #122039;
  --sur2: #1a2c4e;
  --brd: #1f3460;
  --txt: #f5f7fb;
  --mut: #8ba0c4;
  --pri: #ffd230;
  --prih: #f0bc1c;
  --gold: #ffd230;
  --gold2: #d4a017;
  --red: #e63946;
  --redh: #c92434;
  --blue: #1e88e5;
  --green: #2ecc71;
  --shd: 0 4px 24px rgba(0, 0, 0, .6);
  --shdg: 0 0 24px rgba(255, 210, 48, .15);
  --r: .5rem;
  --rl: .75rem;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

/* ── BODY: pitch + drifting glow background ── */
body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--txt);
  font-family: "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1rem;
  gap: 1.25rem;
  position: relative;
  overflow-x: hidden;
}

/* Drifting radial glow layer */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 210, 48, .08), transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(30, 136, 229, .07), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(230, 57, 70, .04), transparent 50%);
  z-index: -2;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(2%, -2%) scale(1.05); }
  100% { transform: translate(-2%, 2%) scale(1); }
}

/* Subtle football pitch pattern (SVG inline) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 50%, var(--bg2) 100%),
    repeating-linear-gradient(180deg, transparent 0, transparent 60px, rgba(255,255,255,.012) 60px, rgba(255,255,255,.012) 120px);
  background-blend-mode: overlay;
  z-index: -3;
  pointer-events: none;
}

/* ── Floating football particles ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particles span {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 22%, transparent 23%),
    radial-gradient(circle at 65% 50%, #1a1a1a 0 8%, transparent 9%),
    radial-gradient(circle at 35% 70%, #1a1a1a 0 7%, transparent 8%),
    radial-gradient(circle at 70% 25%, #1a1a1a 0 6%, transparent 7%),
    #f5f5f5;
  opacity: .08;
  bottom: -40px;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 0 4px rgba(255,255,255,.2));
}

.particles span:nth-child(1)  { left: 8%;  width: 10px; height: 10px; animation-duration: 28s; animation-delay: 0s; }
.particles span:nth-child(2)  { left: 22%; width: 16px; height: 16px; animation-duration: 36s; animation-delay: -6s; }
.particles span:nth-child(3)  { left: 38%; width: 12px; height: 12px; animation-duration: 32s; animation-delay: -14s; }
.particles span:nth-child(4)  { left: 55%; width: 18px; height: 18px; animation-duration: 40s; animation-delay: -3s; }
.particles span:nth-child(5)  { left: 68%; width: 11px; height: 11px; animation-duration: 30s; animation-delay: -20s; }
.particles span:nth-child(6)  { left: 80%; width: 14px; height: 14px; animation-duration: 34s; animation-delay: -10s; }
.particles span:nth-child(7)  { left: 92%; width: 9px;  height: 9px;  animation-duration: 26s; animation-delay: -18s; }
.particles span:nth-child(8)  { left: 15%; width: 13px; height: 13px; animation-duration: 38s; animation-delay: -25s; }
.particles span:nth-child(9)  { left: 48%; width: 10px; height: 10px; animation-duration: 33s; animation-delay: -8s; }
.particles span:nth-child(10) { left: 75%; width: 15px; height: 15px; animation-duration: 42s; animation-delay: -16s; }

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0); opacity: 0; }
  10%  { opacity: .08; }
  90%  { opacity: .08; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* ── Header ── */
.hdr {
  width: 100%;
  max-width: 940px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--brd);
  position: relative;
  animation: slideDown .6s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes slideDown {
  0%   { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hdr::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  animation: lineGrow 1.2s ease-out .3s both;
}

@keyframes lineGrow {
  0%   { width: 0; opacity: 0; }
  100% { width: 80px; opacity: 1; }
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: .02em;
  animation: trophyGlow 3s ease-in-out infinite;
}

@keyframes trophyGlow {
  0%, 100% { text-shadow: 0 0 14px rgba(255, 210, 48, .25); }
  50%      { text-shadow: 0 0 22px rgba(255, 210, 48, .55), 0 0 4px rgba(255, 210, 48, .4); }
}

.logo svg {
  color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(255, 210, 48, .5));
  animation: trophyPulse 3s ease-in-out infinite;
}

@keyframes trophyPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(255, 210, 48, .4)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(255, 210, 48, .7)); }
}

.badge {
  background: linear-gradient(135deg, var(--red), var(--redh));
  color: #fff;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 2px 10px rgba(230, 57, 70, .4);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(230, 57, 70, .4); }
  50%      { box-shadow: 0 2px 20px rgba(230, 57, 70, .8); }
}

/* ── Player Card ── */
.pcard {
  width: 100%;
  max-width: 940px;
  background: #000;
  border: 1px solid var(--brd);
  border-radius: var(--rl);
  overflow: hidden;
  box-shadow: var(--shd), var(--shdg);
  position: relative;
  animation: cardIn .7s cubic-bezier(.2,.8,.2,1) .1s both;
}

@keyframes cardIn {
  0%   { opacity: 0; transform: translateY(24px) scale(.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Stadium LED stripe — animated sweep */
.pcard::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--gold2) 0%,
    var(--gold) 20%,
    #fff8d6 50%,
    var(--gold) 80%,
    var(--gold2) 100%
  );
  background-size: 200% 100%;
  animation: ledSweep 3.5s linear infinite;
  z-index: 3;
}

@keyframes ledSweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.vwrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ── Overlay Controls ── */
.ovl {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(5,13,26,.92) 0%, rgba(5,13,26,.4) 30%, transparent 60%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.vwrap:hover .ovl,
.vwrap:focus-within .ovl { opacity: 1; }

.ctrls {
  padding: .7rem .95rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.cb {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: .45rem;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  transition: all 180ms cubic-bezier(.2,.8,.2,1);
}

.cb:hover {
  background: rgba(255, 210, 48, .22);
  color: var(--gold);
  transform: scale(1.12);
  box-shadow: 0 0 12px rgba(255, 210, 48, .3);
}

.cb:active { transform: scale(.95); }

.pw { flex: 1; display: flex; align-items: center; min-width: 0; }

.tdsp {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  min-width: 76px;
  text-align: center;
  letter-spacing: .05em;
}

.vw { display: flex; align-items: center; gap: .4rem; }

/* ── Range Inputs ── */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
  outline: none;
  cursor: pointer;
  transition: background 200ms;
}

input[type=range]:hover { background: rgba(255, 255, 255, .4); }

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 210, 48, .7);
  transition: transform 160ms;
}

input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.25); }

input[type=range]::-moz-range-thumb {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 8px rgba(255, 210, 48, .7);
}

#pb { width: 100%; }
#vb { width: 66px; }

/* ── Status Bar ── */
.sbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .95rem;
  border-top: 1px solid var(--brd);
  background: linear-gradient(180deg, var(--sur) 0%, var(--bg) 100%);
  font-size: .78rem;
  position: relative;
  overflow: hidden;
}

/* Animated underline on status bar — LED ticker style */
.sbar::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  background-size: 30% 100%;
  background-repeat: no-repeat;
  animation: tickerSlide 4s linear infinite;
}

@keyframes tickerSlide {
  0%   { background-position: -30% 0; }
  100% { background-position: 130% 0; }
}

.lb {
  background: linear-gradient(135deg, var(--red), var(--redh));
  color: #fff;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(230, 57, 70, .4);
  position: relative;
}

/* Pulse ring around LIVE badge */
.lb::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 99px;
  border: 2px solid var(--red);
  opacity: 0;
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.4); opacity: 0; }
}

.ld {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(255, 255, 255, .9);
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.7); }
}

.st { color: var(--mut); flex: 1; font-weight: 500; }

.qb {
  background: rgba(255, 210, 48, .15);
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .68rem;
  font-weight: 700;
  border: 1px solid rgba(255, 210, 48, .3);
  letter-spacing: .04em;
  transition: all 200ms;
}

.qb:hover {
  background: rgba(255, 210, 48, .25);
  box-shadow: 0 0 10px rgba(255, 210, 48, .25);
}

/* ── Error ── */
.err {
  color: #ff8a93;
  background: rgba(230, 57, 70, .12);
  border: 1px solid rgba(230, 57, 70, .35);
  border-radius: var(--r);
  padding: .6rem .8rem;
  font-size: .78rem;
  display: none;
  width: 100%;
  max-width: 940px;
  animation: shake .4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* ── Loading: Spinning Football ── */
.lovo {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 26, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .85rem;
  color: #fff;
  font-size: .82rem;
  backdrop-filter: blur(6px);
  animation: fadeIn .3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sp {
  width: 48px; height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 18%, transparent 19%),
    radial-gradient(circle at 50% 12%, #1a1a1a 0 8%, transparent 9%),
    radial-gradient(circle at 88% 50%, #1a1a1a 0 8%, transparent 9%),
    radial-gradient(circle at 12% 50%, #1a1a1a 0 8%, transparent 9%),
    radial-gradient(circle at 30% 82%, #1a1a1a 0 7%, transparent 8%),
    radial-gradient(circle at 70% 82%, #1a1a1a 0 7%, transparent 8%),
    conic-gradient(from 0deg, #f5f5f5, #fff, #f5f5f5, #fff, #f5f5f5);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow:
    0 0 18px rgba(255, 210, 48, .35),
    inset 0 0 10px rgba(0, 0, 0, .2);
  animation: ballSpin 1.1s linear infinite, ballBob 1.6s ease-in-out infinite;
}

@keyframes ballSpin {
  to { transform: rotate(360deg); }
}

@keyframes ballBob {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -8px; }
}

#lt { font-weight: 600; letter-spacing: .03em; animation: textBreathe 2s ease-in-out infinite; }

@keyframes textBreathe {
  0%, 100% { opacity: .8; }
  50%      { opacity: 1; }
}

/* ── Info Bar ── */
.info {
  width: 100%;
  max-width: 940px;
  background: linear-gradient(135deg, rgba(31, 52, 96, .35), rgba(255, 210, 48, .04));
  border: 1px solid var(--brd);
  border-radius: var(--r);
  padding: .85rem 1.1rem;
  font-size: .76rem;
  color: var(--mut);
  line-height: 1.7;
  text-align: center;
  animation: cardIn .7s cubic-bezier(.2,.8,.2,1) .3s both;
  position: relative;
  overflow: hidden;
}

.info::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,210,48,.08), transparent);
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}

.info strong { color: var(--gold); font-weight: 700; }
.info a { font-weight: 600; }

/* ── Telegram Popup ── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 13, 26, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);
  animation: fadeIn .35s ease;
}

.popup-card {
  background: linear-gradient(145deg, var(--sur2), var(--sur));
  border: 1px solid var(--gold);
  border-radius: 1rem;
  padding: 2rem 1.8rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 50px rgba(255, 210, 48, .2), 0 4px 24px rgba(0, 0, 0, .6);
  position: relative;
  animation: popIn .5s cubic-bezier(.2,1.2,.4,1) both;
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(.85) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-card .close-btn {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  color: var(--mut);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  transition: color 160ms, transform 160ms;
}

.popup-card .close-btn:hover { color: var(--txt); transform: rotate(90deg); }

.popup-card .tg-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, #0088cc, #00aaee);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 18px rgba(0, 136, 204, .4);
  animation: tgFloat 2.5s ease-in-out infinite;
}

@keyframes tgFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.popup-card h3 {
  color: var(--gold);
  font-size: 1.15rem;
  margin-bottom: .55rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.popup-card p {
  color: var(--mut);
  font-size: .82rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.popup-card .tg-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0088cc, #00aaee);
  color: #fff;
  padding: .7rem 2.1rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 700;
  font-size: .88rem;
  transition: transform 200ms, box-shadow 200ms;
  box-shadow: 0 4px 14px rgba(0, 136, 204, .35);
}

.popup-card .tg-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 136, 204, .55);
}

.popup-card .skip {
  display: block;
  margin: .9rem auto 0;
  color: var(--mut);
  font-size: .72rem;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
}

.popup-card .skip:hover { color: var(--txt); }

/* ── No Stream Notice (with animated ball) ── */
.no-stream {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .65rem;
  color: var(--mut);
  font-size: .9rem;
  background: radial-gradient(ellipse at center, var(--sur) 0%, #000 100%);
}

.no-stream svg {
  color: var(--gold);
  opacity: .65;
  filter: drop-shadow(0 0 14px rgba(255, 210, 48, .35));
  animation: rollBall 4s ease-in-out infinite;
}

@keyframes rollBall {
  0%   { transform: translateX(-12px) rotate(0); }
  50%  { transform: translateX(12px) rotate(360deg); }
  100% { transform: translateX(-12px) rotate(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  body { padding: .85rem .65rem; }
  .popup-card { padding: 1.5rem 1.2rem; }
  .logo { font-size: 1rem; }
  .particles span { display: none; } /* keep mobile light */
}

/* ── Reduced motion: respect user preference ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .particles { display: none; }
}

/* ── Quality Picker ── */
.qpick {
  position: relative;
  display: flex;
  align-items: center;
}

.qpick-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: .4rem .55rem !important;
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .04em;
  color: #fff;
  min-width: 52px;
  justify-content: center;
}

.qpick-btn svg {
  transition: transform 200ms;
}

.qmenu.open ~ .qpick-btn svg,
.qpick:has(.qmenu.open) .qpick-btn svg {
  transform: rotate(180deg);
}

.qmenu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 130px;
  background: linear-gradient(180deg, var(--sur2), var(--sur));
  border: 1px solid var(--gold);
  border-radius: var(--r);
  padding: .35rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 8px 24px rgba(0,0,0,.55), 0 0 20px rgba(255,210,48,.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(.96);
  transform-origin: bottom right;
  transition: opacity 180ms, transform 180ms cubic-bezier(.2,.8,.2,1);
  z-index: 20;
}

.qmenu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.qopt {
  background: none;
  border: none;
  color: var(--txt);
  cursor: pointer;
  padding: .5rem .7rem;
  border-radius: calc(var(--r) - 2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8rem;
  font-weight: 600;
  text-align: left;
  font-family: inherit;
  transition: all 160ms;
}

.qopt:hover {
  background: rgba(255, 210, 48, .15);
  color: var(--gold);
}

.qopt.active {
  background: rgba(255, 210, 48, .2);
  color: var(--gold);
  position: relative;
}

.qopt.active::before {
  content: "✓";
  position: absolute;
  left: -4px;
  color: var(--gold);
  font-weight: 700;
}

.qopt-sub {
  font-size: .68rem;
  color: var(--mut);
  font-weight: 600;
  letter-spacing: .04em;
}

.qopt:hover .qopt-sub,
.qopt.active .qopt-sub {
  color: var(--gold);
  opacity: .8;
}

/* ── Retry Box (shown when stream fails repeatedly) ── */
.retry-box {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .8rem;
  color: var(--txt);
  font-size: .9rem;
  background: radial-gradient(ellipse at center, var(--sur) 0%, #000 100%);
  z-index: 5;
}

.retry-box svg {
  color: var(--red);
  filter: drop-shadow(0 0 12px rgba(230, 57, 70, .4));
  animation: retryPulse 2s ease-in-out infinite;
}

@keyframes retryPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

.retry-msg {
  color: var(--mut);
  font-size: .82rem;
  text-align: center;
  max-width: 70%;
}

.retry-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: #0a1628;
  border: none;
  padding: .55rem 1.6rem;
  border-radius: var(--r);
  font-weight: 800;
  font-size: .82rem;
  cursor: pointer;
  letter-spacing: .04em;
  box-shadow: 0 2px 12px rgba(255, 210, 48, .35);
  transition: all 200ms;
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 210, 48, .55);
}

.retry-btn:active {
  transform: translateY(0);
}

/* ── Fullscreen behavior (mobile rotation) ── */
.vwrap:fullscreen,
.vwrap:-webkit-full-screen,
.vwrap:-moz-full-screen,
.vwrap:-ms-fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
}

.vwrap:fullscreen video,
.vwrap:-webkit-full-screen video,
.vwrap:-moz-full-screen video,
.vwrap:-ms-fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Make overlay controls always visible on touch devices in fullscreen */
@media (hover: none) and (pointer: coarse) {
  .vwrap:fullscreen .ovl,
  .vwrap:-webkit-full-screen .ovl {
    opacity: 1;
  }
}
