/* Sit piblik Z TV — tèt paj, ewo, ranje kat, jwè, paj kont. */

.wrap { max-width: var(--shell); margin: 0 auto; padding: 0 28px; }

/* ---------- Tèt paj ---------- */

.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 15, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.head-in { display: flex; align-items: center; gap: 14px; height: 68px; }

.menu { display: flex; align-items: center; gap: 2px; margin-left: 10px; }

.menu a {
  padding: 8px 13px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--txt-2);
  transition: background .13s, color .13s;
}
.menu a:hover { color: var(--txt); background: var(--panel-2); }
.menu a.on { background: var(--raise); color: var(--txt); font-weight: 600; }

.head .grow { flex: 1; min-width: 0; }

.head-search { position: relative; width: 230px; flex: 0 1 230px; min-width: 0; }
.head-search input {
  width: 100%; height: 40px; padding: 0 12px 0 36px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; outline: none;
}
.head-search svg { position: absolute; left: 11px; top: 11px; width: 17px; height: 17px; color: var(--txt-3); }

.head-link { font-size: 14px; font-weight: 600; color: var(--txt); padding: 0 6px; }
.head-link:hover { color: var(--acc); }

.avatar-btn {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--raise); color: var(--txt-2);
  font-weight: 700; font-size: 12.5px; overflow: hidden;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.drop { position: relative; }
.drop-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px; padding: 6px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px;
  display: none; z-index: 60;
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.drop.open .drop-menu { display: block; }
.drop-menu a, .drop-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 11px; border-radius: 8px;
  background: none; border: 0; text-align: left;
  font-size: 13.5px; color: var(--txt-2); cursor: pointer;
}
.drop-menu a:hover, .drop-menu button:hover { background: var(--raise); color: var(--txt); }
.drop-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* ---------- Ewo ---------- */

.hero {
  position: relative;
  border-radius: 16px; overflow: hidden;
  margin: 18px 0 30px;
  min-height: 430px;
  display: flex; align-items: flex-end;
  background: var(--panel-2);
}

.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #2b3038; font-size: 15px; font-weight: 700; letter-spacing: .25em;
  background: linear-gradient(135deg, #15181e, #0f1216);
}

.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,9,12,.95) 0%, rgba(8,9,12,.78) 42%, rgba(8,9,12,.25) 100%),
              linear-gradient(0deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,0) 60%);
}

.hero-in { position: relative; padding: 48px; max-width: 640px; }

.hero-chips { display: flex; gap: 8px; margin-bottom: 18px; }

.hero h1 {
  font-size: 54px; line-height: 1.02; font-weight: 800;
  letter-spacing: -0.035em; text-transform: uppercase;
  margin-bottom: 16px;
}

.hero p { color: var(--txt-2); font-size: 15px; max-width: 480px; margin: 0 0 24px; }

.hero-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Ranje ---------- */

.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.row-head h2 { font-size: 22px; font-weight: 800; }

.sect { margin-bottom: 34px; }

.grid-chan { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.grid-post { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.grid-wide { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* ---------- Kat chèn ---------- */

.chan {
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 12px; padding: 14px;
  display: block; transition: border-color .13s, transform .13s;
}
.chan:hover { border-color: #313642; transform: translateY(-2px); }

.chan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }

.chan .code {
  width: 44px; height: 30px; border-radius: 7px;
  background: var(--raise); display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: var(--txt-2);
  overflow: hidden;
}
.chan .code img { width: 100%; height: 100%; object-fit: cover; }

.chan .live { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #ff6b6b; }
.chan .off { font-size: 11px; font-weight: 700; color: var(--txt-3); }

.chan .nm { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.chan .mt { font-size: 12px; color: var(--txt-3); margin-bottom: 10px; }

.meter { display: block; height: 3px; border-radius: 99px; background: var(--raise); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--acc); border-radius: 99px; }

/* ---------- Kat afich ---------- */

.post { display: block; }

.post-img {
  position: relative; aspect-ratio: 2/3;
  border-radius: 11px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  transition: transform .14s, border-color .14s;
}
.post:hover .post-img { transform: translateY(-3px); border-color: #313642; }

.post-img img { width: 100%; height: 100%; object-fit: cover; }

.post-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #2b3038; font-size: 11px; font-weight: 700; letter-spacing: .2em; }

.post .tag {
  position: absolute; top: 9px; left: 9px;
  padding: 3px 8px; border-radius: 6px;
  background: rgba(10,11,14,.82); backdrop-filter: blur(4px);
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
}

.post .lock { position: absolute; top: 9px; right: 9px; width: 24px; height: 24px; border-radius: 6px; background: rgba(10,11,14,.82); display: grid; place-items: center; color: var(--acc); }

.post .nm { font-size: 13.5px; font-weight: 600; margin-top: 9px; }
.post .mt { font-size: 12px; color: var(--txt-3); }

/* ---------- Kat 16:9 ---------- */

.wide { display: block; }

.wide-img {
  position: relative; aspect-ratio: 16/9;
  border-radius: 11px; overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line-soft);
  transition: transform .14s, border-color .14s;
}
.wide:hover .wide-img { transform: translateY(-3px); border-color: #313642; }
.wide-img img { width: 100%; height: 100%; object-fit: cover; }
.wide-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #2b3038; font-size: 11px; font-weight: 700; letter-spacing: .2em; }

.wide .bar-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(0,0,0,.55); }
.wide .bar-fill { height: 100%; background: var(--acc); }

.wide .nm { font-size: 13.5px; font-weight: 600; margin-top: 9px; }
.wide .mt { font-size: 12px; color: var(--txt-3); }

/* ---------- Panèl CTA ---------- */

.cta {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 32px;
  margin-bottom: 34px;
}
.cta h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.cta p { color: var(--txt-2); margin: 8px 0 0; }
.cta .grow { flex: 1; min-width: 240px; }
.cta .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Pye paj ---------- */

.foot { border-top: 1px solid var(--line-soft); padding: 22px 0 40px; }
.foot-in { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .cp { font-size: 12.5px; color: var(--txt-3); }
.foot .links { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.foot .links a { font-size: 12.5px; color: var(--txt-3); }
.foot .links a:hover { color: var(--txt); }

/* ---------- Jwè ---------- */

.player-wrap { position: relative; background: #000; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; }
.player-wrap video { width: 100%; height: 100%; display: block; background: #000; }
.player-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.player-none { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--txt-3); padding: 20px; }

.ad-layer { position: absolute; inset: 0; background: #000; display: flex; align-items: center; justify-content: center; z-index: 5; }
.ad-layer img, .ad-layer video { width: 100%; height: 100%; object-fit: contain; }
.ad-badge { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,.7); padding: 4px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; }
.ad-skip { position: absolute; bottom: 14px; right: 14px; }

.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; margin: 18px 0 40px; }

.watch-title { font-size: 26px; font-weight: 800; margin: 18px 0 8px; }
.watch-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--txt-3); font-size: 13px; margin-bottom: 14px; }
.watch-desc { color: var(--txt-2); line-height: 1.65; }

.side-list { display: flex; flex-direction: column; gap: 10px; }
.side-item { display: flex; gap: 11px; padding: 8px; border-radius: 10px; transition: background .13s; }
.side-item:hover { background: var(--panel-2); }
.side-item .th { width: 104px; aspect-ratio: 16/9; border-radius: 7px; background: var(--raise); object-fit: cover; flex: none; }
.side-item .nm { display: block; font-size: 13px; font-weight: 600; line-height: 1.35; }
.side-item .mt { display: block; font-size: 11.5px; color: var(--txt-3); margin-top: 3px; }

/* ---------- Plan ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

.plan { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; }
.plan.pop { border-color: var(--acc); }
.plan .pn { font-size: 16px; font-weight: 700; }
.plan .pp { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; margin: 12px 0 2px; }
.plan .pd { font-size: 12.5px; color: var(--txt-3); }
.plan ul { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 13.5px; color: var(--txt-2); }
.plan li svg { width: 16px; height: 16px; color: var(--acc); flex: none; margin-top: 2px; }

/* ---------- Fòm otantifikasyon ---------- */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 32px; }
.auth-box h1 { font-size: 24px; margin-bottom: 6px; }
.auth-box .lead { color: var(--txt-3); font-size: 13.5px; margin-bottom: 24px; }

/* ---------- Repons ekran ---------- */

@media (max-width: 1200px) {
  .grid-post { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-chan { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .watch-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .menu { display: none; }
  .head-in { height: 60px; gap: 8px; }
  .head-search { width: 100%; min-width: 0; }
  .head-link { padding: 0 2px; font-size: 13.5px; }
  .btn { padding: 0 13px; }
  .hero { min-height: 340px; }
  .hero-in { padding: 24px; }
  .hero h1 { font-size: 34px; }
  .grid-post { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-chan, .grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { padding: 22px; }
  .cta h2 { font-size: 23px; }
}

@media (max-width: 480px) {
  .head-search { display: none; }
  .hero h1 { font-size: 29px; }
  .hero-acts .btn { flex: 1; }
}

/* ---------- Locker: abònman oswa reklam ---------- */

.lock-wrap { position: relative; padding: 46px 0 56px; }

/* Fon an se afich videyo a, byen fonse pou tèks la li byen. */
.lock-bg {
  position: absolute; inset: -40px -40px auto; height: 340px;
  background-size: cover; background-position: center;
  opacity: .22; filter: blur(26px); pointer-events: none; z-index: 0;
}

.lock-head { position: relative; z-index: 1; text-align: center; max-width: 560px; margin: 0 auto 32px; }

.lock-ring {
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin-bottom: 16px;
  border-radius: 50%; color: var(--acc);
  background: color-mix(in srgb, var(--acc) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 38%, transparent);
}

.lock-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.lock-head p { color: var(--txt-2); margin-top: 10px; }

.lock-ways {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px; max-width: 880px; margin: 0 auto;
}

.lock-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
}
.lock-card h2 { font-size: 20px; font-weight: 700; }
.lock-card > p { color: var(--txt-2); font-size: 14px; line-height: 1.6; margin: 0; }
.lock-card .btn { margin-top: auto; }

.lock-free { border-color: color-mix(in srgb, var(--acc) 30%, var(--line)); }
.lock-free.is-ready { border-color: var(--acc); }

.lock-tag {
  align-self: flex-start; padding: 3px 9px; border-radius: 6px;
  background: var(--panel-2); color: var(--txt-3);
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

.lock-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 2px 0 0; padding: 0; }
.lock-list li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--txt-2); }
.lock-list svg { color: var(--acc); flex: none; }

.lock-ad {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--txt); transition: border-color .15s, background .15s;
}
.lock-ad:hover { border-color: var(--acc); background: var(--raise); }
.lock-ad img { width: 68px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.lock-ad-body { min-width: 0; flex: 1; }
.lock-ad .nm { display: block; font-size: 13.5px; font-weight: 600; }
.lock-ad .mt { display: block; font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }

.lock-count { margin: 0; font-size: 13px; font-weight: 600; color: var(--acc); text-align: center; }

.lock-go { background: var(--acc); color: #10140a; }
.lock-go:disabled { background: var(--raise); color: var(--txt-3); cursor: not-allowed; }

.lock-fine { margin: 0; font-size: 11.5px; color: var(--txt-3); text-align: center; }

@media (max-width: 560px) {
  .lock-head h1 { font-size: 26px; }
  .lock-card { padding: 20px; }
}
