:root {
  --bg: #08080f;
  --bg-2: #0f0f1c;
  --bg-3: #1a1a2e;
  --card: #14142a;
  --line: #232342;
  --primary: #7c5cfc;
  --primary-2: #a090e0;
  --accent: #facc15;
  --green: #22c55e;
  --red: #ef4444;
  --text: #e8e8f0;
  --muted: #6060a0;
  --muted-2: #8a8ab8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: transparent;
  color: var(--text);
  font-family: 'Hind Siliguri', 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  position: relative;
}
/* Animated aurora background — slow drifting colour blobs (GPU-only, no JS). */
body::before {
  content: '';
  position: fixed; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(680px 520px at 18% 12%, rgba(124, 92, 252, .40), transparent 62%),
    radial-gradient(600px 460px at 82% 6%, rgba(250, 204, 21, .20), transparent 60%),
    radial-gradient(680px 560px at 72% 90%, rgba(34, 197, 94, .26), transparent 62%),
    radial-gradient(560px 460px at 22% 84%, rgba(6, 182, 212, .26), transparent 60%);
  filter: saturate(1.25);
  animation: zt-aurora 24s ease-in-out infinite alternate;
}
@keyframes zt-aurora {
  0%   { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50%  { transform: translate3d(3%, -2.5%, 0) scale(1.12) rotate(2deg); }
  100% { transform: translate3d(-3%, 3%, 0) scale(1.06) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Top bar */
.zt-top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px; background: rgba(8, 8, 15, .85);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.zt-logo { display: flex; align-items: center; gap: 8px; font-family: Inter; font-weight: 800; font-size: 22px; }
.zt-logo-img { width: 30px; height: 30px; object-fit: contain; }
.zt-logo-mark { color: var(--primary); }
.zt-logo-tv { color: var(--text); }
.zt-logo-badge {
  margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--accent);
  border: 1px solid rgba(250, 204, 21, .4); border-radius: 20px; padding: 3px 9px;
}
.zt-search { flex: 1; max-width: 560px; }
.zt-search input {
  width: 100%; padding: 11px 16px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 14px; outline: none;
}
.zt-search input:focus { border-color: var(--primary); }
.zt-fav-toggle {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--accent);
  padding: 10px 14px; border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.zt-fav-toggle.active { border-color: var(--accent); }

.zt-main { max-width: 1320px; margin: 0 auto; padding: 22px 20px 70px; }

/* World Cup strip */
.zt-wc {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 92, 252, .18), rgba(26, 26, 46, .6));
  border: 1px solid var(--line); border-radius: 20px; padding: 22px; margin-bottom: 24px;
}
/* Animated moving sheen across the hero */
.zt-wc::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 48%, rgba(124,92,252,.12) 52%, transparent 70%);
  background-size: 250% 100%;
  animation: zt-sheen 7s linear infinite;
}
@keyframes zt-sheen { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
/* Floating footballs drifting up through the hero */
.zt-wc-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.zt-wc-fx .zt-ball {
  position: absolute; bottom: -40px; font-size: 26px; opacity: .16;
  animation: zt-float 14s linear infinite;
}
.zt-wc-fx .zt-ball:nth-child(1) { left: 6%;  animation-duration: 15s; animation-delay: 0s;   font-size: 22px; }
.zt-wc-fx .zt-ball:nth-child(2) { left: 24%; animation-duration: 19s; animation-delay: 4s;   font-size: 30px; }
.zt-wc-fx .zt-ball:nth-child(3) { left: 45%; animation-duration: 13s; animation-delay: 2s;   font-size: 18px; }
.zt-wc-fx .zt-ball:nth-child(4) { left: 63%; animation-duration: 21s; animation-delay: 6s;   font-size: 28px; }
.zt-wc-fx .zt-ball:nth-child(5) { left: 80%; animation-duration: 16s; animation-delay: 1.5s; font-size: 24px; }
.zt-wc-fx .zt-ball:nth-child(6) { left: 91%; animation-duration: 18s; animation-delay: 3s;   font-size: 20px; }
@keyframes zt-float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .18; }
  90%  { opacity: .18; }
  100% { transform: translateY(-340px) rotate(220deg); opacity: 0; }
}
.zt-wc-head, .zt-wc .zt-sched-switch, .zt-wc .zt-sched { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .zt-wc::after, .zt-wc-fx .zt-ball { animation: none; } }
.zt-wc-head h1 { font-family: Inter; font-size: clamp(20px, 3vw, 30px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zt-wc-trophy { height: 40px; width: auto; vertical-align: middle; }
.live-pill { font-size: 12px; background: var(--red); color: #fff; padding: 3px 10px; border-radius: 20px; font-weight: 800; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.zt-wc-head p { color: var(--primary-2); margin-top: 6px; font-size: 15px; }

/* Latest / Upcoming switch */
.zt-sched-switch { display: inline-flex; gap: 6px; margin-top: 16px; background: rgba(8,8,15,.5); border: 1px solid var(--line); border-radius: 30px; padding: 4px; }
.zt-sched-tab {
  border: none; background: transparent; color: var(--muted-2); cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 700; padding: 8px 18px; border-radius: 30px; transition: all .15s;
}
.zt-sched-tab:hover { color: var(--text); }
.zt-sched-tab.active { background: var(--primary); color: #fff; }
.zt-sched-tab.has-live { color: #fff; }
.zt-sched-tab.has-live::before { content: '●'; color: var(--red); margin-right: 5px; animation: blink 1.4s infinite; }
.zt-sched-tab.has-live.active::before { color: #fff; }

/* World Cup schedule (dynamic) — grouped by day, matches scroll horizontally */
.zt-sched { margin-top: 14px; display: flex; flex-direction: column; gap: 16px; }
.zt-sched-loading { color: var(--muted-2); padding: 14px 0; }
.zt-sched-day.live .zt-sched-h { color: var(--red); }
.zt-sched-h { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.zt-day-live { font-size: 10px; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 20px; animation: blink 1.4s infinite; }
.zt-sched-row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.zt-mc {
  flex: 0 0 auto; width: 180px; background: rgba(8, 8, 15, .55); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px;
}
.zt-mc.live { border-color: var(--red); box-shadow: 0 0 0 1px rgba(239,68,68,.25); }
.zt-mc.finished { opacity: .82; }
.zt-mc-team { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-width: 0; }
.zt-mc-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-team-badge { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.zt-team-badge.ph { background: rgba(255,255,255,.06); border-radius: 50%; }
.zt-mc-mid { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 2px 0; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.zt-mc-time { color: var(--green); font-size: 15px; font-weight: 700; }
.zt-mc-bst { font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: .5px; }
.zt-mc-score { font-family: Inter; font-weight: 800; font-size: 18px; }
.zt-mc-ft { font-size: 10px; color: var(--muted-2); font-weight: 700; }
.zt-mc-live { font-size: 10px; font-weight: 800; color: var(--red); animation: blink 1.4s infinite; }

/* Disclaimer */
.zt-disclaimer { background: rgba(250, 204, 21, .07); border: 1px solid rgba(250, 204, 21, .25); border-radius: 14px; padding: 14px 18px; margin-bottom: 22px; font-size: 13px; line-height: 1.6; color: var(--muted-2); }
.zt-disclaimer strong { color: var(--accent); }

/* Tabs */
.zt-tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 14px; margin-bottom: 16px; scrollbar-width: thin; }
.zt-tab {
  flex: 0 0 auto; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted-2);
  padding: 9px 18px; border-radius: 30px; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600;
  white-space: nowrap; transition: all .15s;
}
.zt-tab:hover { color: var(--text); border-color: var(--primary); }
.zt-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.zt-tab-count { opacity: .7; font-size: 12px; }

.zt-section-title { font-family: Inter; font-size: 18px; margin-bottom: 14px; }

/* Grid */
.zt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.zt-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: transform .14s, border-color .14s, box-shadow .14s;
}
.zt-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(124, 92, 252, .25); }
.zt-card-logo {
  height: 96px; display: flex; align-items: center; justify-content: center; padding: 14px;
  background: radial-gradient(circle at 50% 30%, rgba(255,255,255,.06), transparent 70%);
}
.zt-card-logo img { max-height: 64px; object-fit: contain; }
.zt-card-logo .fallback { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-family: Inter; font-weight: 800; font-size: 22px; color: #fff; }
.zt-card-body { padding: 10px 12px 14px; }
.zt-card-body h3 { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-card-tags { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.zt-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.zt-card-cat { font-size: 11px; color: var(--muted); }
.zt-card-fav {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(8, 8, 15, .7); border: 1px solid var(--line); color: var(--muted-2); cursor: pointer; font-size: 15px;
}
.zt-card-fav.on, .zt-card-fav:hover { color: var(--accent); border-color: var(--accent); }
.zt-card.wc { border-color: rgba(250, 204, 21, .4); }
.zt-card.wc:hover { border-color: var(--accent); box-shadow: 0 10px 30px rgba(250, 204, 21, .2); }
.zt-card-wc { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 3px 7px; border-radius: 6px; background: linear-gradient(135deg, #facc15, #f59e0b); color: #1a1a00; }

.zt-empty { color: var(--muted-2); padding: 40px 0; text-align: center; }

/* Modal player */
.zt-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; }
.zt-modal[hidden] { display: none; }   /* the hidden attribute must win over display:flex */
.zt-modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); backdrop-filter: blur(6px); }
.zt-modal-box { position: relative; z-index: 1; width: 100%; max-width: 900px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.zt-modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; background: rgba(8,8,15,.8); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 16px; }
.zt-modal-box:fullscreen, .zt-modal-box:-webkit-full-screen { width: 100vw; max-width: 100vw; height: 100vh; border: none; border-radius: 0; background: #000; display: flex; flex-direction: column; justify-content: center; }
.zt-modal-box:fullscreen .zt-player-wrap, .zt-modal-box:-webkit-full-screen .zt-player-wrap { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }
.zt-modal-box:fullscreen .zt-modal-info, .zt-modal-box:-webkit-full-screen .zt-modal-info { display: none; }
.zt-player-wrap { position: relative; background: #000; aspect-ratio: 16/9; }
.zt-player-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.zt-player-msg { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--muted-2); background: rgba(0,0,0,.5); font-size: 15px; }
.zt-player-msg.error { color: var(--red); }

/* ---------- Football goal loading animation (pure CSS) ---------- */
.zt-loader {
  position: absolute; inset: 0; z-index: 5; display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 40%, #123018, #06140b 70%, #020805);
}
.zt-loader.on { display: flex; }
.zt-loader-label { color: #cfeede; font-size: 14px; font-weight: 600; letter-spacing: .3px; }
.zt-scene { position: relative; width: 300px; height: 140px; transform: scale(1.05); }
.zt-ground { position: absolute; left: 0; right: 0; bottom: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(120,230,160,.5), transparent); }

/* Goal on the right */
.zt-goal { position: absolute; right: 8px; bottom: 26px; width: 60px; height: 78px;
  border: 3px solid rgba(255,255,255,.75); border-right: none; border-radius: 3px 0 0 3px;
  animation: zt-goalshake 2.6s ease-in-out infinite; }
.zt-net { position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 9px 9px; }
.zt-goalflash { position: absolute; left: 50%; top: -26px; transform: translateX(-50%) scale(0);
  font-family: Inter, sans-serif; font-weight: 800; font-size: 16px; color: var(--accent);
  text-shadow: 0 0 10px rgba(250,204,21,.7); white-space: nowrap; opacity: 0;
  animation: zt-goaltext 2.6s ease-in-out infinite; }

/* Player figure (left), winds up then kicks */
.zt-player { position: absolute; left: 40px; bottom: 26px; width: 34px; height: 66px;
  transform-origin: bottom center; animation: zt-windup 2.6s ease-in-out infinite; }
.zt-player i { position: absolute; display: block; }
.zt-head { top: -2px; left: 11px; width: 14px; height: 14px; border-radius: 50%; background: #ffd9a0; }
.zt-torso { top: 12px; left: 12px; width: 9px; height: 28px; border-radius: 5px; background: var(--primary); }
.zt-arm { top: 15px; left: 6px; width: 16px; height: 5px; border-radius: 3px; background: var(--primary-2);
  transform-origin: right center; animation: zt-arm 2.6s ease-in-out infinite; }
.zt-leg { bottom: 0; width: 7px; height: 26px; border-radius: 4px; background: #5a7; transform-origin: top center; }
.zt-leg-stand { left: 11px; transform: rotate(8deg); }
.zt-leg-kick { left: 15px; background: #6c9; animation: zt-kick 2.6s ease-in-out infinite; }

/* The ball: sits at the player's foot, gets struck, arcs into the goal */
.zt-ball2 { position: absolute; left: 64px; bottom: 24px; font-size: 22px; line-height: 1;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); animation: zt-shoot 2.6s ease-in-out infinite; }

@keyframes zt-windup {
  0%, 46% { transform: translateX(0) rotate(0deg); }
  54%     { transform: translateX(5px) rotate(-5deg); }   /* lean back to strike */
  64%, 100% { transform: translateX(0) rotate(0deg); }
}
@keyframes zt-arm {
  0%, 46% { transform: rotate(10deg); }
  58%     { transform: rotate(-40deg); }
  72%, 100% { transform: rotate(10deg); }
}
@keyframes zt-kick {
  0%, 48% { transform: rotate(24deg); }
  56%     { transform: rotate(-78deg); }                   /* the kick */
  74%, 100% { transform: rotate(24deg); }
}
@keyframes zt-shoot {
  0%, 52%  { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  60%      { transform: translate(18px, -14px) rotate(120deg); }   /* launch */
  72%      { transform: translate(95px, -52px) rotate(420deg); }   /* peak of arc */
  84%      { transform: translate(165px, -34px) rotate(680deg); }  /* into the net */
  86%, 100% { transform: translate(165px, -34px) rotate(680deg); opacity: 0; }
}
@keyframes zt-goalshake {
  0%, 82% { transform: none; }
  86%     { transform: scale(1.06) translateX(-2px); }
  90%     { transform: scale(.98) translateX(1px); }
  100%    { transform: none; }
}
@keyframes zt-goaltext {
  0%, 84% { transform: translateX(-50%) scale(.4); opacity: 0; }
  88%     { transform: translateX(-50%) scale(1.15); opacity: 1; }
  96%     { transform: translateX(-50%) scale(1); opacity: 1; }
  100%    { transform: translateX(-50%) scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .zt-player, .zt-arm, .zt-leg-kick, .zt-ball2, .zt-goal, .zt-goalflash { animation: none; }
}
.zt-server-row { display: none; gap: 6px; flex-wrap: wrap; padding: 8px 14px; background: var(--bg-3); border-top: 1px solid var(--line); }
.zt-server-row.has-servers { display: flex; }
.zt-server-btn { padding: 5px 12px; font-size: 12px; font-weight: 600; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted-2); cursor: pointer; font-family: inherit; transition: all .15s; white-space: nowrap; }
.zt-server-btn:hover:not(.active) { border-color: var(--muted-2); color: var(--text); }
.zt-server-btn.active { border-color: var(--primary); background: rgba(124,92,252,.15); color: var(--primary); }
.zt-server-btn.bdix { border-color: rgba(34,197,94,.3); }
.zt-server-btn.bdix.active { border-color: var(--green); background: rgba(34,197,94,.12); color: var(--green); }
.zt-player-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--bg-3); border-top: 1px solid var(--line); flex-wrap: wrap; }
.zt-ctrl-quality { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2); }
.zt-ctrl-quality select { background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-family: inherit; font-size: 13px; outline: none; cursor: pointer; }
.zt-ctrl-btns { display: flex; gap: 8px; }
.zt-ctrl-btn { width: 40px; height: 36px; border-radius: 9px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text); cursor: pointer; font-size: 16px; transition: border-color .15s; }
.zt-ctrl-btn:hover { border-color: var(--primary); }
.zt-ctrl-btn.active { border-color: var(--accent); color: var(--accent); }
.zt-modal-info { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.zt-modal-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; background: var(--bg-3); }
.zt-modal-meta { flex: 1; min-width: 0; }
.zt-modal-meta h3 { font-family: Inter; font-size: 18px; }
.zt-modal-meta p { color: var(--primary-2); font-size: 13px; margin-top: 2px; }
.zt-modal-fav { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); color: var(--muted-2); cursor: pointer; font-size: 20px; }
.zt-modal-fav.on { color: var(--accent); border-color: var(--accent); }

.zt-footer { border-top: 1px solid var(--line); padding: 26px 22px; text-align: center; color: var(--muted); font-size: 12px; }
.zt-footer a { color: var(--primary-2); }
.zt-credit { font-size: 15px; color: var(--text); margin-bottom: 8px; font-family: Inter; }
.zt-credit strong { color: var(--primary); }

/* Live "playing now" dot + Watch button on match cards */
.zt-mc { position: relative; }
.zt-mc-dot { position: absolute; top: 10px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: pulseDot 1.3s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.7); } 70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.zt-mc-watch { margin-top: 4px; width: 100%; padding: 8px; border: none; border-radius: 9px; background: var(--primary); color: #fff; font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: filter .15s; }
.zt-mc.live .zt-mc-watch { background: var(--red); }
.zt-mc-watch:hover { filter: brightness(1.1); }
.zt-mc-hl { margin-top: 4px; width: 100%; padding: 8px; border: 1px solid var(--accent); border-radius: 9px; background: rgba(250,204,21,.12); color: var(--accent); font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s; }
.zt-mc-hl:hover { background: var(--accent); color: #1a1a00; }
.zt-mc-replay { margin-top: 4px; width: 100%; padding: 8px; border: 1px solid var(--primary); border-radius: 9px; background: rgba(124,92,252,.14); color: var(--primary-2); font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: all .15s; }
.zt-mc-replay:hover { background: var(--primary); color: #fff; }

/* Per-match live stream (iframe) modal */
.zt-match-head { padding: 14px 18px 8px; }
.zt-match-head h3 { font-family: Inter; font-size: 18px; }
.zt-frame-wrap { position: relative; background: #000; aspect-ratio: 16/9; }
.zt-frame-wrap iframe, .zt-frame-wrap video { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.zt-frame-wrap video[hidden], .zt-frame-wrap iframe[hidden] { display: none; }
.zt-frame-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted-2); font-size: 15px; }
.zt-match-sources { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px 16px; }
.zt-src-btn { padding: 7px 12px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 12px; cursor: pointer; }
.zt-src-btn.active, .zt-src-btn:hover { border-color: var(--primary); color: var(--primary-2); }
.zt-src-btn.custom { border-color: rgba(250,204,21,.4); color: var(--accent); }
.zt-src-btn.custom.active { border-color: var(--accent); background: rgba(250,204,21,.12); }
.zt-match-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zt-popout { display: inline-flex; align-items: center; gap: 5px; padding: 7px 13px; border-radius: 9px; border: 1px solid var(--accent); background: rgba(250,204,21,.12); color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all .15s; }
.zt-popout:hover { background: var(--accent); color: #1a1a00; }
.zt-popout-note { margin-top: 8px; padding: 9px 13px; border-radius: 9px; background: rgba(250,204,21,.08); border: 1px solid rgba(250,204,21,.2); color: var(--accent); font-size: 12.5px; line-height: 1.5; }
.zt-match-note { padding: 0 16px 16px; color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.zt-match-note b { color: var(--accent); }

/* ---------- Mobile responsive ---------- */
@media (max-width: 760px) {
  /* Two rows: [logo .... ⭐] then a full-width search below. */
  .zt-top { flex-wrap: wrap; gap: 10px 12px; padding: 10px 14px; }
  .zt-logo { font-size: 18px; }
  .zt-logo-badge { display: none; }
  .zt-fav-toggle { margin-left: auto; flex: 0 0 auto; }
  .zt-search { order: 3; flex: 1 0 100%; max-width: none; min-width: 0; }
  .zt-search input { padding: 12px 14px; font-size: 16px; }  /* 16px stops iOS zoom-on-focus */
  .zt-main { padding: 16px 14px 60px; }
  .zt-wc { padding: 16px; border-radius: 16px; }
  .zt-wc-trophy { height: 30px; }
  .zt-player-controls { padding: 10px 12px; }
  .zt-modal { padding: 0; align-items: flex-end; }
  .zt-modal-box { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 94vh; overflow-y: auto; }
}
@media (max-width: 560px) {
  .zt-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
  .zt-card-logo { height: 78px; padding: 10px; }
  .zt-card-logo img { max-height: 52px; }
  .zt-card-body { padding: 8px 10px 12px; }
  .zt-card-body h3 { font-size: 12.5px; }
  .zt-tab { padding: 8px 14px; font-size: 13px; }
  .zt-mc { width: 168px; }
  .zt-wc-head h1 { font-size: 20px; }
  .zt-disclaimer { font-size: 12px; padding: 12px 14px; }
}
