:root{
  --video-bg:#050816;
  --video-surface:#0d1326;
  --video-card:#111936;
  --video-card-2:#0b1227;
  --video-text:#f5f7ff;
  --video-muted:#b7c0e0;
  --video-line:rgba(255,255,255,.10);
  --video-line-strong:rgba(255,255,255,.14);
  --video-chip:rgba(255,255,255,.10);
  --video-shadow:0 12px 40px rgba(0,0,0,.28);
  --video-radius:22px;
  --video-radius-sm:16px;
  --video-btn-bg:rgba(255,255,255,.08);
  --video-btn-bg-hover:rgba(255,255,255,.14);
  --video-white:#ffffff;
  --video-link:#8ab4ff;
}

body.video-page{
  color:var(--video-text);
}

/* page wrap inside existing center panel */
.video-page-wrap{
  width:100%;
}

/* full width content, no right up-next column */
.video-layout{
  display:block;
}

.video-main{
  min-width:0;
  width:100%;
}

.video-side{
  display:none !important;
}

/* framed sections */
.video-cards-wrap{
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)),
    var(--video-surface);
  border:1px solid var(--video-line);
  border-radius:24px;
  box-shadow:var(--video-shadow);
  padding:16px;
  margin-bottom:18px;
}

.video-cards-wrap--framed{
  overflow:hidden;
}

.video-sec-head{
  margin-bottom:14px;
}

.video-sec-head--tight{
  margin-bottom:12px;
}

.video-sec-head h2{
  margin:0;
  font-size:28px;
  line-height:1.15;
  font-weight:800;
  color:var(--video-white);
}

.video-sec-sub{
  margin-top:6px;
  color:var(--video-muted);
  font-size:14px;
  line-height:1.45;
}

/* lead */
.video-lead-wrap{
  width:100%;
}

.video-feed-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* card */
.video-card{
  border:1px solid var(--video-line);
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01)), var(--video-card);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}

.video-card--lead{
  border-color:var(--video-line-strong);
}

.video-card__media{
  position:relative;
  background:#000;
  border-bottom:1px solid var(--video-line);
}

.video-card__player{
  display:block;
  width:100%;
  max-height:760px;
  aspect-ratio:16 / 9;
  object-fit:contain;
  background:#000;
  margin:0 auto;
}

.video-card__poster-wrap{
  background:#000;
}

.video-card__poster{
  display:block;
  width:100%;
  max-height:760px;
  aspect-ratio:16 / 9;
  object-fit:contain;
  background:#000;
}

.video-card__empty{
  min-height:360px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#050505;
  color:var(--video-muted);
  padding:24px;
  text-align:center;
}

.video-card__empty-title{
  font-size:18px;
  font-weight:700;
}

.video-card__body{
  padding:18px 18px 16px;
}

.video-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}

.video-card__chip{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  background:var(--video-chip);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-size:12px;
  line-height:1;
}

.video-card__title{
  margin:0 0 10px;
  color:var(--video-white);
  font-size:clamp(22px, 2.1vw, 34px);
  line-height:1.16;
  font-weight:800;
  letter-spacing:-0.01em;
}

.video-card:not(.video-card--lead) .video-card__title{
  font-size:clamp(19px, 1.7vw, 28px);
}

.video-card__summary{
  margin:0;
  color:#dbe2ff;
  font-size:15px;
  line-height:1.6;
}

.video-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.video-btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:var(--video-btn-bg);
  color:#fff;
  text-decoration:none;
  border-radius:12px;
  min-height:42px;
  padding:10px 16px;
  font-size:14px;
  font-weight:700;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.video-btn:hover{
  background:var(--video-btn-bg-hover);
  border-color:rgba(255,255,255,.18);
  transform:translateY(-1px);
}

.video-btn--solid{
  background:#fff;
  color:#0b1020;
  border-color:#fff;
}

.video-btn--solid:hover{
  background:#eef3ff;
  border-color:#eef3ff;
}

.video-btn--soft{
  background:rgba(255,255,255,.06);
  color:#fff;
}

.video-card__links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:14px;
}

.video-card__link{
  color:var(--video-link);
  text-decoration:none;
  font-size:14px;
  font-weight:700;
}

.video-card__link:hover{
  text-decoration:underline;
}

.video-card__link--alt{
  color:#d2dcff;
}

.video-empty-inline{
  color:var(--video-muted);
  font-size:14px;
  line-height:1.5;
}

.video-empty{
  min-height:320px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:28px;
  gap:10px;
}

.video-empty__title{
  color:#fff;
  font-size:24px;
  font-weight:800;
}

.video-empty__text{
  color:var(--video-muted);
  font-size:15px;
  line-height:1.55;
  max-width:520px;
}

/* desktop and tablet */
@media (max-width: 1200px){
  .video-card__player,
  .video-card__poster{
    max-height:680px;
  }
}

/* mobile full-scroll feed */
@media (max-width: 768px){
  html,
  body{
    scroll-behavior:smooth;
  }

  body.video-page{
    scroll-snap-type:y mandatory;
  }

  .video-cards-wrap{
    padding:0;
    border-radius:18px;
    margin-bottom:14px;
    overflow:hidden;
  }

  .video-sec-head{
    padding:12px 12px 0;
    margin-bottom:10px;
  }

  .video-sec-head h2{
    font-size:22px;
  }

  .video-sec-sub{
    font-size:13px;
  }

  .video-feed-stack{
    gap:0;
  }

  .video-card{
    min-height:100svh;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    scroll-snap-align:start;
    border-radius:0;
    border-left:none;
    border-right:none;
    border-top:1px solid var(--video-line);
    border-bottom:1px solid var(--video-line);
    box-shadow:none;
  }

  .video-card__media{
    min-height:72svh;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
  }

  .video-card__player,
  .video-card__poster{
    width:100%;
    height:72svh;
    max-height:none;
    aspect-ratio:auto;
    object-fit:contain;
    background:#000;
  }

  .video-card__body{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    padding:14px 14px 18px;
  }

  .video-card__title{
    font-size:22px;
  }

  .video-card:not(.video-card--lead) .video-card__title{
    font-size:19px;
  }

  .video-card__summary{
    font-size:14px;
  }

  .video-actions{
    gap:8px;
    margin-top:14px;
  }

  .video-btn{
    width:100%;
  }

  .video-card__links{
    gap:10px;
    margin-top:12px;
  }
}

@media (max-width: 520px){
  .video-card__meta{
    gap:6px;
  }

  .video-card__chip{
    font-size:11px;
    padding:6px 9px;
  }

  .video-card__title{
    font-size:20px;
  }

  .video-card:not(.video-card--lead) .video-card__title{
    font-size:18px;
  }

  .video-card__summary{
    font-size:13px;
    line-height:1.55;
  }

  .video-card__media{
    min-height:70svh;
  }

  .video-card__player,
  .video-card__poster{
    height:70svh;
  }

  .video-empty{
    min-height:260px;
    padding:22px 16px;
  }

  .video-empty__title{
    font-size:20px;
  }
}