/* ═══════════════════════════════════════════════════════
   Royal Academy — Design System v2
   ═══════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────── */
:root {
  --ra-navy:        #050634;
  --ra-navy-light:  #0b1580;
  --ra-navy-dim:    rgba(5, 6, 52, 0.06);
  --ra-green:       #2ecc40;
  --ra-green-dim:   rgba(46, 204, 64, 0.12);
  --ra-gold:        #c9a227;
  --ra-gold-dim:    rgba(201, 162, 39, 0.10);
  --ra-bg:          #f4f6fb;
  --ra-surface:     #ffffff;
  --ra-text:        #1a1a3e;
  --ra-muted:       #6b7280;
  --ra-border:      rgba(5, 6, 52, 0.09);
  --ra-radius:      14px;
  --ra-radius-sm:   8px;
  --ra-radius-lg:   22px;
  --ra-shadow-sm:   0 2px 12px rgba(5, 6, 52, 0.06);
  --ra-shadow:      0 6px 28px rgba(5, 6, 52, 0.11);
  --ra-shadow-lg:   0 12px 52px rgba(5, 6, 52, 0.18);
  --ra-trans:       all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base ────────────────────────────────────────── */
body,
.rz-body,
.rz-panel,
.rz-card {
  font-family: 'Tajawal', 'Open Sans', sans-serif !important;
}

/* ── Breadcrumb override ─────────────────────────── */
.breadcrumbs {
  background: linear-gradient(130deg, #030424 0%, #0b1580 60%, #030424 100%) !important;
  position: relative;
  overflow: hidden;
}
.breadcrumbs::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 5% 50%, rgba(46,204,64,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 95% 50%, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.breadcrumbs::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ra-green), transparent);
}
.breadcrumbs .container { position: relative; }
.breadcrumbs h2 { color: #fff !important; font-weight: 800 !important; font-size: 1.75rem; }
.breadcrumbs p  { color: rgba(255,255,255,0.72) !important; font-size: 0.95rem; max-width: 640px; }

/* ── Section wrappers ────────────────────────────── */
.ra-section     { padding: 5rem 0; }
.ra-section-alt { padding: 5rem 0; background: var(--ra-bg); }

/* ── Section title ───────────────────────────────── */
.ra-section-title { text-align: center; margin-bottom: 3rem; }
.ra-section-title h2 {
  display: inline-block;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ra-navy);
  padding-bottom: 0.75rem;
  position: relative;
}
.ra-section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%; transform: translateX(50%);
  width: 44px; height: 3px;
  background: var(--ra-green);
  border-radius: 2px;
}
.ra-section-title p { color: var(--ra-muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* ── Goals list ──────────────────────────────────── */
.ra-goals-list { list-style: none; padding: 0; margin: 0; }
.ra-goals-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--ra-border);
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ra-text);
  animation: fadeSlideIn 0.4s ease both;
}
.ra-goals-list li:last-child { border-bottom: none; }
.ra-goals-list li i {
  color: var(--ra-green);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Stats bar ───────────────────────────────────── */
.ra-stats-section {
  background: var(--ra-navy);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.ra-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 40% 80% at 10% 50%, rgba(46,204,64,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 80% at 90% 50%, rgba(201,162,39,0.07) 0%, transparent 70%);
}
.ra-stat-box { text-align: center; position: relative; padding: 1.5rem 1rem; }
.ra-stat-box::after {
  content: '';
  position: absolute;
  top: 50%; right: 0;
  transform: translateY(-50%);
  width: 1px; height: 60%;
  background: rgba(255,255,255,0.12);
}
.ra-stat-box:last-child::after { display: none; }
.ra-stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}
.ra-stat-number .purecounter { color: #fff; }
.ra-stat-label {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.60);
  margin-top: 0.4rem;
  display: block;
}
.ra-stat-icon {
  font-size: 1.5rem;
  color: var(--ra-green);
  margin-bottom: 0.5rem;
  display: block;
}

/* ── Why Us cards ────────────────────────────────── */
.ra-why-card {
  background: var(--ra-surface);
  border-radius: var(--ra-radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--ra-border);
  box-shadow: var(--ra-shadow-sm);
  transition: var(--ra-trans);
  height: 100%;
  text-align: right;
  direction: rtl;
}
.ra-why-card:hover {
  border-color: var(--ra-green);
  box-shadow: 0 6px 24px var(--ra-green-dim);
  transform: translateY(-4px);
}
.ra-why-card .ra-why-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--ra-green-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  margin-right: 0;
}
.ra-why-card .ra-why-icon i { font-size: 1.6rem; color: var(--ra-green); }
.ra-why-card h4 {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ra-navy);
  margin-bottom: 0.6rem;
}
.ra-why-card p {
  font-size: 0.87rem;
  color: var(--ra-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── Subject tiles ───────────────────────────────── */
.ra-subject-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: var(--ra-radius);
  border: 1px solid var(--ra-border);
  background: var(--ra-surface);
  cursor: pointer;
  text-decoration: none !important;
  transition: var(--ra-trans);
  text-align: center;
  min-height: 110px;
  gap: 0.5rem;
}
.ra-subject-tile:hover {
  background: var(--ra-navy);
  transform: translateY(-4px);
  box-shadow: var(--ra-shadow);
  border-color: transparent;
}
.ra-subject-tile:hover .ra-tile-icon,
.ra-subject-tile:hover .ra-tile-name { color: #fff !important; }
.ra-tile-icon { font-size: 1.8rem; transition: var(--ra-trans); }
.ra-tile-name { font-weight: 700; font-size: 0.9rem; color: var(--ra-text); transition: var(--ra-trans); }

/* ── Teacher cards ───────────────────────────────── */
.ra-teacher-card {
  background: var(--ra-surface);
  border-radius: var(--ra-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ra-border);
  box-shadow: var(--ra-shadow-sm);
  transition: var(--ra-trans);
  text-decoration: none !important;
  color: inherit !important;
  display: block;
}
.ra-teacher-card:hover {
  box-shadow: var(--ra-shadow-lg);
  transform: translateY(-6px);
  text-decoration: none !important;
}
.ra-teacher-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 240px;
}
.ra-teacher-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.ra-teacher-card:hover .ra-teacher-card-img-wrap img { transform: scale(1.05); }
.ra-teacher-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(5,6,52,0.7) 0%, transparent 100%);
}
.ra-teacher-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  direction: rtl;
  text-align: right;
}
.ra-teacher-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ra-navy);
  margin-bottom: 0.2rem;
}
.ra-teacher-subject {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ra-green);
  background: var(--ra-green-dim);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}
.ra-teacher-desc {
  font-size: 0.83rem;
  color: var(--ra-muted);
  line-height: 1.6;
  margin: 0;
}
.ra-teacher-socials {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
  justify-content: flex-start;
  flex-direction: row-reverse;
}
.ra-teacher-socials a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ra-navy-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--ra-navy);
  font-size: 0.75rem;
  transition: var(--ra-trans);
  text-decoration: none !important;
}
.ra-teacher-socials a:hover { background: var(--ra-navy); color: #fff; }

/* ── Course cards ────────────────────────────────── */
.ra-course-card {
  background: var(--ra-surface);
  border-radius: var(--ra-radius);
  overflow: hidden;
  border: 1px solid var(--ra-border);
  box-shadow: var(--ra-shadow-sm);
  transition: var(--ra-trans);
  cursor: pointer;
  display: block;
  text-decoration: none !important;
  height: 100%;
}
.ra-course-card:hover {
  box-shadow: var(--ra-shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(5,6,52,0.18);
}
.ra-course-card-img {
  width: 100%; height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ra-course-card:hover .ra-course-card-img { transform: scale(1.04); }
.ra-course-card-body {
  padding: 1rem 1.2rem 1.2rem;
  direction: rtl;
  text-align: right;
}
.ra-course-card-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ra-navy);
  margin: 0;
}
.ra-course-card-arrow {
  color: var(--ra-green);
  font-size: 0.8rem;
  margin-top: 0.4rem;
  display: block;
}

/* ── Contact section ─────────────────────────────── */
.ra-contact-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--ra-surface);
  border: 1px solid var(--ra-border);
  border-radius: var(--ra-radius);
  box-shadow: var(--ra-shadow-sm);
  margin-bottom: 1rem;
  direction: rtl;
  transition: var(--ra-trans);
}
.ra-contact-info:hover { box-shadow: var(--ra-shadow); transform: translateY(-2px); }
.ra-contact-info-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--ra-navy-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ra-contact-info-icon i { font-size: 1.3rem; color: var(--ra-navy); }
.ra-contact-info-label { font-size: 0.78rem; color: var(--ra-muted); margin: 0 0 0.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.ra-contact-info-value { font-size: 0.95rem; color: var(--ra-text); font-weight: 700; margin: 0; text-decoration: none; }
.ra-contact-info-value:hover { color: var(--ra-green); }

.ra-contact-form-wrap {
  background: var(--ra-surface);
  border-radius: var(--ra-radius-lg);
  padding: 2rem;
  border: 1px solid var(--ra-border);
  box-shadow: var(--ra-shadow-sm);
  direction: rtl;
}

.ra-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--ra-border);
  border-radius: var(--ra-radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.9rem;
  color: var(--ra-text);
  background: #fafbfe;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  direction: rtl;
}
.ra-input:focus {
  border-color: var(--ra-navy);
  box-shadow: 0 0 0 3px rgba(5,6,52,0.05);
  background: #fff;
}
.ra-input::placeholder { color: #b0b8cc; }

.ra-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ra-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.2px;
}

.ra-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--ra-navy);
  color: #fff;
  border: none;
  border-radius: var(--ra-radius-sm);
  font-family: 'Tajawal', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ra-trans);
}
.ra-submit-btn:hover {
  background: var(--ra-navy-light);
  box-shadow: 0 4px 20px rgba(5,6,52,0.3);
  transform: translateY(-1px);
}

/* ── Skeleton loaders ────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -700px 0; }
  100% { background-position: 700px 0; }
}
.ra-skeleton {
  background: linear-gradient(90deg, #edf0f7 25%, #e3e7f0 50%, #edf0f7 75%);
  background-size: 700px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: var(--ra-radius-sm);
}
.ra-skeleton-card {
  height: 190px;
  border-radius: var(--ra-radius);
  margin-bottom: 1.5rem;
}
.ra-skeleton-text { height: 13px; margin-bottom: 0.5rem; }
.ra-skeleton-text.wide  { width: 80%; }
.ra-skeleton-text.mid   { width: 55%; }
.ra-skeleton-text.short { width: 35%; }

/* ── Animations ──────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ra-animate { animation: fadeUp 0.5s ease both; }
.ra-animate-d1 { animation-delay: 0.1s; }
.ra-animate-d2 { animation-delay: 0.2s; }
.ra-animate-d3 { animation-delay: 0.3s; }
.ra-animate-d4 { animation-delay: 0.4s; }

/* ── About image ────────────────────────────────── */
.ra-about-img-wrap {
  border-radius: var(--ra-radius-lg);
  overflow: hidden;
  box-shadow: var(--ra-shadow-lg);
  position: relative;
}
.ra-about-img-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.ra-about-img-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--ra-navy);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ── Why-us sidebar panel ────────────────────────── */
.ra-why-panel {
  background: linear-gradient(135deg, var(--ra-navy) 0%, var(--ra-navy-light) 100%);
  border-radius: var(--ra-radius-lg);
  padding: 2.5rem 2rem;
  color: #fff;
  height: 100%;
  direction: rtl;
  text-align: right;
  position: relative;
  overflow: hidden;
}
.ra-why-panel::before {
  content: '';
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(46,204,64,0.08);
}
.ra-why-panel h3 { font-weight: 800; font-size: 1.4rem; margin-bottom: 1rem; }
.ra-why-panel p  { font-size: 0.88rem; color: rgba(255,255,255,0.72); line-height: 1.75; margin-bottom: 1rem; }
.ra-why-panel .ra-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--ra-trans);
  margin-top: 0.5rem;
}
.ra-why-panel .ra-more-link:hover { background: rgba(255,255,255,0.22); }

/* ── Counts section override ─────────────────────── */
section#counts.counts.section-bg {
  background: var(--ra-navy) !important;
}
section#counts .purecounter { color: #fff !important; }
section#counts p { color: rgba(255,255,255,0.60) !important; }

/* ── Feature section override ────────────────────── */
section#features .icon-box {
  background: var(--ra-surface);
  border-radius: var(--ra-radius);
  border: 1px solid var(--ra-border);
  box-shadow: var(--ra-shadow-sm);
  transition: var(--ra-trans);
}
section#features .icon-box:hover {
  background: var(--ra-navy);
  box-shadow: var(--ra-shadow);
  transform: translateY(-4px);
}
section#features .icon-box:hover h3 a { color: #fff !important; }
section#features .icon-box i { transition: color 0.25s; }
section#features .icon-box:hover i { color: var(--ra-green) !important; }

/* ── Login improvements ──────────────────────────── */
.ra-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(130deg, #030424 0%, #0b1580 55%, #0a2a18 100%);
  padding: 2rem;
  font-family: 'Tajawal', sans-serif !important;
}
.ra-login-card {
  width: 100%;
  max-width: 1000px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  position: relative;
}
.ra-login-panel {
  background: linear-gradient(145deg, #030424, #0b1580 60%, #0a2a18);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  min-height: 480px;
}
.ra-login-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(46,204,64,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(201,162,39,0.08) 0%, transparent 50%);
}
.ra-login-panel-content { position: relative; text-align: center; direction: rtl; }
.ra-login-panel img { height: 70px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.ra-login-panel h2 { color: #fff; font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; }
.ra-login-panel p  { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.7; }
.ra-login-panel-dots {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  justify-content: center;
}
.ra-login-panel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.ra-login-panel-dots span.active { background: var(--ra-green); width: 24px; border-radius: 4px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
  .ra-section, .ra-section-alt { padding: 3.5rem 0; }
  .ra-why-panel { margin-bottom: 1.5rem; }
  .ra-stats-section { padding: 3rem 0; }
  .ra-stat-number { font-size: 2.2rem; }
  .ra-stat-box::after { display: none; }
}

/* ── Posts page enhancements ─────────────────────── */
.ra-posts-hero {
  background: linear-gradient(130deg, #030424 0%, #0b1580 60%, #030424 100%);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
  direction: rtl;
}
.ra-posts-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--ra-green), transparent);
}
.ra-posts-hero h2 { color: #fff; font-size: 1.75rem; font-weight: 800; margin-bottom: 0.5rem; }
.ra-posts-hero p  { color: rgba(255,255,255,0.70); font-size: 0.95rem; max-width: 580px; }

/* ── Course "no image" placeholder ───────────────────── */
.ra-course-no-image {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--ra-bg);
  color: var(--ra-muted);
}
.ra-course-no-image i  { font-size: 2.4rem; opacity: 0.45; }
.ra-course-no-image span { font-size: 0.78rem; font-weight: 600; opacity: 0.6; }

/* ═══════════════════════════════════════════════════════
   Video Player — custom control bar, resolution picker,
   and container-level fullscreen
   ═══════════════════════════════════════════════════════ */

/* ── Control bar (overlaid at the bottom of the player) ── */
.vid-ctrl-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  gap: 6px;
  /* gradient fades from black at the bottom to transparent toward the video */
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, transparent 100%);
  z-index: 15;
  pointer-events: none;   /* let clicks fall through the empty bar area */
  direction: ltr;         /* keep buttons LTR even in RTL page layouts */
  box-sizing: border-box;
  transition: opacity 0.2s;
}

/* Shared style for every button inside the bar */
.vid-ctrl-btn {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  padding: 5px 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.18s;
  user-select: none;
  -webkit-user-select: none;
}
.vid-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.20);
}

/* ── Resolution selector (injected by JS) ── */
.hls-res-wrap {
  position: relative;
  pointer-events: all;
}
/* Dropdown opens upward from the bar */
.hls-res-menu {
  position: absolute;
  bottom: calc(100% + 4px);
  right: 0;
  background: rgba(14, 14, 14, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  overflow: hidden;
  min-width: 145px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
  z-index: 35;
  direction: rtl;
}
.hls-res-item {
  padding: 8px 14px;
  color: #e0e0e0;
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background 0.15s;
}
.hls-res-item:hover {
  background: rgba(255, 255, 255, 0.12);
}
.hls-res-item.hls-res-active {
  color: #4fc3f7;
  font-weight: 700;
}

/* ── Container fullscreen states ── */
/* When the .video-container itself is the fullscreen element the video
   must fill the whole viewport and the ctrl bar stays at the bottom. */
.video-container:fullscreen,
.video-container:-webkit-full-screen,
.video-container:-moz-full-screen {
  background: #000 !important;
  border-radius: 0 !important;
  width: 100vw  !important;
  height: 100vh !important;
  display: flex;
  flex-direction: column;
}
.video-container:fullscreen video,
.video-container:-webkit-full-screen video,
.video-container:-moz-full-screen video {
  flex: 1 1 auto;
  width: 100%     !important;
  height: 0       !important;   /* flex controls height */
  min-height: 0   !important;
  max-height: none !important;
  object-fit: contain;
}
.video-container:fullscreen .vid-ctrl-bar,
.video-container:-webkit-full-screen .vid-ctrl-bar,
.video-container:-moz-full-screen .vid-ctrl-bar {
  flex: 0 0 46px;
  position: static;             /* in flex flow, not absolutely placed */
  background: rgba(0, 0, 0, 0.75);
}
