/* ══ HERO ══ */
.gal-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.gal-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.gal-hero::after {
  content: "⬡";
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: rgba(255,255,255,.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.gal-hero-inner { position: relative; z-index: 1; }
.gal-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.gal-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4d4d; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.gal-hero h1 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900;
  color: #fff; margin-bottom: 10px; line-height: 1.2;
}
.gal-hero p.hero-sub {
  font-size: 15px; color: rgba(255,255,255,.78);
  max-width: 560px; line-height: 1.65; margin-bottom: 20px;
}
.gal-hero-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.gal-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 8px 16px;
  color: #fff; font-size: 14px; font-weight: 700;
}
.gal-chip i { color: rgba(255,255,255,.7); font-size: 14px; }

/* ══ MAIN ══ */
.gal-main { background: #f5f6f8; padding: 48px 0 72px; }

/* ══ MASONRY-STYLE GRID ══ */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .gal-grid { grid-template-columns: 1fr; } }

/* ══ ALBUM CARD — landscape polaroid style ══ */
.gal-card {
  position: relative;
  border-radius: 4px 4px 12px 12px;
  background: #fff;
  box-shadow:
    0 2px 6px rgba(0,0,0,.08),
    0 8px 24px rgba(0,0,0,.06),
    0 0 0 1px rgba(11,18,32,.05);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s;
  animation: galFadeUp .55s ease both;

  /* subtle rotation — alternating for organic feel */
  transform: rotate(0deg);
}
.gal-card:nth-child(odd)  { transform: rotate(-0.6deg); }
.gal-card:nth-child(even) { transform: rotate(0.6deg); }

.gal-card:hover {
  transform: rotate(0deg) translateY(-8px) scale(1.02) !important;
  box-shadow:
    0 16px 48px rgba(21,120,190,.2),
    0 4px 12px rgba(0,0,0,.12),
    0 0 0 2px rgba(21,120,190,.22);
  z-index: 2;
}

/* stagger */
.gal-card:nth-child(1)  { animation-delay: .04s; }
.gal-card:nth-child(2)  { animation-delay: .10s; }
.gal-card:nth-child(3)  { animation-delay: .16s; }
.gal-card:nth-child(4)  { animation-delay: .22s; }
.gal-card:nth-child(5)  { animation-delay: .28s; }
.gal-card:nth-child(6)  { animation-delay: .34s; }
.gal-card:nth-child(7)  { animation-delay: .40s; }
.gal-card:nth-child(8)  { animation-delay: .46s; }
.gal-card:nth-child(9)  { animation-delay: .52s; }
.gal-card:nth-child(10) { animation-delay: .58s; }
.gal-card:nth-child(11) { animation-delay: .64s; }
.gal-card:nth-child(12) { animation-delay: .70s; }

@keyframes galFadeUp {
  from { opacity: 0; transform: translateY(24px) rotate(-0.6deg); }
  to   { opacity: 1; }
}

/* ── photo strip (top coloured tape effect) ── */
.gal-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #1578be 0%, #d40000 50%, #1578be 100%);
  background-size: 200% 100%;
  transition: background-position .6s ease;
  z-index: 3;
}
.gal-card:hover::before {
  background-position: 100% 0;
}

/* ── image frame ── */
.gal-card-img {
  width: 100%;
  /* variable heights for visual interest */
  aspect-ratio: 4/3;
  overflow: hidden; position: relative;
  background: #e8ecf0;
  margin: 6px 6px 0;
  width: calc(100% - 12px);
  border-radius: 3px;
}
.gal-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .65s ease, filter .35s ease;
  filter: saturate(.9);
}
.gal-card:hover .gal-card-img img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

/* coloured wash overlay on hover */
.gal-card-img::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(21,120,190,.35) 0%,
    rgba(212,0,0,.25) 100%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 1;
}
.gal-card:hover .gal-card-img::before { opacity: 1; }

/* centred hover CTA */
.gal-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; z-index: 2;
  opacity: 0;
  transition: opacity .3s ease;
}
.gal-card:hover .gal-card-overlay { opacity: 1; }

.gal-overlay-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  color: #1578be; font-size: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transform: scale(.7);
  transition: transform .3s ease;
}
.gal-card:hover .gal-overlay-icon { transform: scale(1); }

.gal-overlay-label {
  background: rgba(255,255,255,.92);
  border-radius: 20px; padding: 5px 14px;
  color: #0b3d6e; font-size: 12px; font-weight: 800;
  letter-spacing: .4px; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
  transform: translateY(6px);
  transition: transform .3s ease .05s;
}
.gal-card:hover .gal-overlay-label { transform: translateY(0); }

/* ── polaroid caption area ── */
.gal-card-caption {
  padding: 14px 16px 16px;
  background: #fff;
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 10px;
}
.gal-caption-text { flex: 1; min-width: 0; }
.gal-caption-title {
  font-size: .92rem; font-weight: 800;
  color: rgba(11,18,32,.82); line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* handwritten-feel date line */
.gal-caption-date {
  font-size: 11px; font-weight: 600;
  color: rgba(11,18,32,.38); font-style: italic;
  display: flex; align-items: center; gap: 4px;
}
.gal-caption-date i { color: #1578be; font-size: 10px; }

/* circular view button */
.gal-view-circle {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 50%;
  background: rgba(21,120,190,.09);
  border: 1.5px solid rgba(21,120,190,.2);
  display: flex; align-items: center; justify-content: center;
  color: #1578be; font-size: 14px;
  text-decoration: none; flex-shrink: 0;
  transition: background .22s, color .22s, border-color .22s,
              transform .22s, box-shadow .22s;
}
.gal-view-circle:hover {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent; color: #fff;
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 4px 14px rgba(21,120,190,.35);
  text-decoration: none;
}

/* ══ EMPTY ══ */
.gal-empty {
  text-align: center; padding: 64px 0;
  color: rgba(11,18,32,.32);
  grid-column: 1 / -1;
}
.gal-empty i { font-size: 44px; display: block; margin-bottom: 14px; }
.gal-empty p { font-size: 15px; margin: 0; }

/* ══ HERO ══ */
.alb-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.alb-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.alb-hero::after {
  content: "⬡";
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: rgba(255,255,255,.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.alb-hero-inner { position: relative; z-index: 1; }
.alb-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.alb-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4d4d; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.alb-hero h1 {
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 900;
  color: #fff; margin-bottom: 8px; line-height: 1.25;
}
.alb-hero p.hero-sub {
  font-size: 15px; color: rgba(255,255,255,.75);
  max-width: 560px; line-height: 1.65; margin-bottom: 20px;
}
.alb-hero-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.alb-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 8px 16px;
  color: #fff; font-size: 14px; font-weight: 700;
}
.alb-chip i { color: rgba(255,255,255,.7); font-size: 14px; }

/* ══ MAIN ══ */
.alb-main { background: #f5f6f8; padding: 48px 0 72px; }

/* ══ BACK BUTTON ══ */
.alb-back-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border-radius: 30px;
  background: rgba(21,120,190,.08);
  border: 1.5px solid rgba(21,120,190,.2);
  color: #1578be; font-size: 13px; font-weight: 800;
  text-decoration: none; margin-bottom: 28px;
  transition: background .2s, color .2s, border-color .2s, gap .2s;
}
.alb-back-btn:hover {
  background: linear-gradient(135deg, #1578be, #d40000);
  border-color: transparent; color: #fff; gap: 10px;
  text-decoration: none;
}
.alb-back-btn i { transition: transform .2s; }
.alb-back-btn:hover i { transform: translateX(-3px); }

/* ══ DESCRIPTION CARD ══ */
.alb-desc-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex; align-items: flex-start; gap: 14px;
}
.alb-desc-icon {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1578be, #d40000);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.alb-desc-text h4 {
  font-size: 1.1rem; font-weight: 900;
  color: rgba(11,18,32,.86); margin-bottom: 4px;
}
.alb-desc-text p {
  font-size: .95rem; color: rgba(11,18,32,.55);
  line-height: 1.65; margin: 0;
}

/* ══ PHOTO COUNT STRIP ══ */
.alb-count-strip {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.alb-count-strip .line { flex: 1; height: 1px; background: rgba(11,18,32,.08); }
.alb-count-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(21,120,190,.08);
  border: 1px solid rgba(21,120,190,.18);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 800;
  color: #1578be; white-space: nowrap;
}
.alb-count-badge i { font-size: 11px; }

/* ══ PHOTO GRID ══ */
.alb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 991px) { .alb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px)  { .alb-grid { grid-template-columns: 1fr; } }

/* ══ PHOTO TILE ══ */
.alb-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #e0e6ed;
  aspect-ratio: 4/3;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  transition: box-shadow .3s, transform .3s, border-color .3s;
  animation: tileFadeUp .5s ease both;
}

/* stagger */
.alb-tile:nth-child(1)  { animation-delay: .03s; }
.alb-tile:nth-child(2)  { animation-delay: .08s; }
.alb-tile:nth-child(3)  { animation-delay: .13s; }
.alb-tile:nth-child(4)  { animation-delay: .18s; }
.alb-tile:nth-child(5)  { animation-delay: .23s; }
.alb-tile:nth-child(6)  { animation-delay: .28s; }
.alb-tile:nth-child(7)  { animation-delay: .33s; }
.alb-tile:nth-child(8)  { animation-delay: .38s; }
.alb-tile:nth-child(9)  { animation-delay: .43s; }
.alb-tile:nth-child(10) { animation-delay: .48s; }
.alb-tile:nth-child(11) { animation-delay: .53s; }
.alb-tile:nth-child(12) { animation-delay: .58s; }

@keyframes tileFadeUp {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.alb-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 36px rgba(21,120,190,.2);
  border-color: rgba(21,120,190,.3);
  z-index: 2;
}

/* image */
.alb-tile img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s ease, filter .4s ease;
  filter: saturate(.88);
}
.alb-tile:hover img {
  transform: scale(1.08);
  filter: saturate(1.12);
}

/* gradient scrim */
.alb-tile-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(21,120,190,.45) 0%,
    rgba(212,0,0,.3) 100%);
  opacity: 0;
  transition: opacity .35s ease;
}
.alb-tile:hover .alb-tile-scrim { opacity: 1; }

/* zoom icon */
.alb-tile-zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.alb-tile:hover .alb-tile-zoom { opacity: 1; }
.alb-zoom-circle {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex; align-items: center; justify-content: center;
  color: #1578be; font-size: 22px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transform: scale(.6);
  transition: transform .3s ease;
}
.alb-tile:hover .alb-zoom-circle { transform: scale(1); }

/* index badge bottom-right */
.alb-tile-idx {
  position: absolute; bottom: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800;
  opacity: 0;
  transition: opacity .3s ease;
}
.alb-tile:hover .alb-tile-idx { opacity: 1; }

/* ══ LIGHTBOX MODAL ══ */
#alb-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(7,12,22,.92);
  backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center; justify-content: center;
}
#alb-lightbox.show { display: flex; }

.alb-lb-inner {
  position: relative;
  max-width: 88vw; max-height: 88vh;
  display: flex; flex-direction: column;
  align-items: center;
  animation: lbFadeIn .25s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

.alb-lb-img {
  max-width: 100%; max-height: 72vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  object-fit: contain; display: block;
}

/* nav buttons */
.alb-lb-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 2;
}
.alb-lb-nav:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-50%) scale(1.1);
}
.alb-lb-prev { left: -64px; }
.alb-lb-next { right: -64px; }
.alb-lb-nav.hidden { opacity: 0; pointer-events: none; }

/* close button */
.alb-lb-close {
  position: absolute; top: -48px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; cursor: pointer;
  transition: background .2s, transform .2s;
}
.alb-lb-close:hover {
  background: rgba(212,0,0,.6);
  transform: scale(1.1) rotate(90deg);
}

/* counter + keyboard hint */
.alb-lb-footer {
  margin-top: 16px;
  display: flex; align-items: center; gap: 14px;
}
.alb-lb-counter {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px; padding: 4px 14px;
  color: rgba(255,255,255,.8); font-size: 12px; font-weight: 700;
}
.alb-lb-hint {
  font-size: 11px; color: rgba(255,255,255,.38);
  display: flex; align-items: center; gap: 6px;
}
.alb-lb-hint kbd {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 4px; padding: 1px 6px;
  font-size: 11px; color: rgba(255,255,255,.6);
}

@media (max-width: 768px) {
  .alb-lb-prev { left: -48px; }
  .alb-lb-next { right: -48px; }
  .alb-lb-nav  { width: 36px; height: 36px; font-size: 13px; }
  .alb-lb-hint { display: none; }
}

/* ══ HERO ══ */
.vid-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 48px 0 56px;
  position: relative;
  overflow: hidden;
}
.vid-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.vid-hero::after {
  content: "▶";
  position: absolute; right: 6%; top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  color: rgba(255,255,255,.05);
  line-height: 1; pointer-events: none; user-select: none;
}
.vid-hero-inner { position: relative; z-index: 1; }
.vid-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 30px; margin-bottom: 14px;
}
.vid-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ff4d4d; animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.vid-hero h1 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 900;
  color: #fff; margin-bottom: 10px; line-height: 1.2;
}
.vid-hero p.hero-sub {
  font-size: 15px; color: rgba(255,255,255,.78);
  max-width: 560px; line-height: 1.65; margin-bottom: 20px;
}
.vid-hero-chips { display: flex; gap: 14px; flex-wrap: wrap; }
.vid-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 8px 16px;
  color: #fff; font-size: 14px; font-weight: 700;
}
.vid-chip i { color: rgba(255,255,255,.7); font-size: 14px; }

/* ══ MAIN ══ */
.vid-main { background: #f5f6f8; padding: 48px 0 72px; }

/* ══ GRID ══ */
.vid-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 991px) { .vid-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px)  { .vid-grid { grid-template-columns: 1fr; } }

/* ══ CARD ══ */
.vid-card {
  background: #fff;
  border-radius: 18px;
  border: 1.5px solid rgba(11,18,32,.07);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  transition:
    box-shadow .35s ease,
    border-color .35s ease,
    transform .35s ease;
  animation: vidFadeUp .55s ease both;
}

/* stagger */
.vid-card:nth-child(1) { animation-delay: .04s; }
.vid-card:nth-child(2) { animation-delay: .10s; }
.vid-card:nth-child(3) { animation-delay: .16s; }
.vid-card:nth-child(4) { animation-delay: .22s; }
.vid-card:nth-child(5) { animation-delay: .28s; }
.vid-card:nth-child(6) { animation-delay: .34s; }
.vid-card:nth-child(7) { animation-delay: .40s; }
.vid-card:nth-child(8) { animation-delay: .46s; }
.vid-card:nth-child(9) { animation-delay: .52s; }

@keyframes vidFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* card lift + glow on hover */
.vid-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 56px rgba(21,120,190,.18),
    0 4px 12px rgba(0,0,0,.08);
  border-color: rgba(21,120,190,.32);
}

/* ── animated gradient top bar ── */
.vid-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    #1578be 0%, #d40000 35%, #1578be 65%, #d40000 100%);
  background-size: 300% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
  animation: none;
  z-index: 3;
}
.vid-card:hover::before {
  transform: scaleX(1);
  animation: gradientShift 2s linear infinite;
}
@keyframes gradientShift {
  0%   { background-position: 0% 0; }
  100% { background-position: 300% 0; }
}

/* ── iframe wrapper ── */
.vid-frame-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #08111f;
  overflow: hidden;
  cursor: pointer;
}
.vid-frame-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none; display: block;
  transition: filter .4s ease;
}

/* slightly desaturate iframe at rest, vivid on hover */
.vid-frame-wrap iframe { filter: saturate(.85) brightness(.97); }
.vid-card:hover .vid-frame-wrap iframe {
  filter: saturate(1.08) brightness(1.02);
}

/* ── play button overlay ── */
.vid-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px;
  pointer-events: none;
  transition: opacity .3s ease;
}
.vid-frame-wrap.playing .vid-overlay { opacity: 0; }

/* outer pulse ring */
.vid-play-outer {
  position: relative;
  width: 64px; height: 64px;
}
.vid-play-outer::before,
.vid-play-outer::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(21,120,190,.25);
  animation: ripple 2s ease-out infinite;
}
.vid-play-outer::after { animation-delay: .8s; }
@keyframes ripple {
  0%   { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* inner play circle */
.vid-play-btn {
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  color: #1578be; font-size: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.35);
  padding-left: 3px; /* optical centre */
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.vid-card:hover .vid-play-btn {
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 6px 28px rgba(21,120,190,.45);
}

/* "Click to play" hint label */
.vid-play-hint {
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(6px);
  border-radius: 20px; padding: 4px 13px;
  color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700;
  letter-spacing: .4px;
  transform: translateY(6px); opacity: 0;
  transition: transform .3s ease .05s, opacity .3s ease .05s;
}
.vid-card:hover .vid-play-hint {
  transform: translateY(0); opacity: 1;
}

/* corner badge top-right */
.vid-corner-badge {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(192,0,0,.82);
  backdrop-filter: blur(4px);
  border-radius: 20px; padding: 4px 10px;
  color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .3px; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(192,0,0,.4);
  transform: translateY(-4px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.vid-card:hover .vid-corner-badge {
  transform: translateY(0); opacity: 1;
}
.vid-corner-badge i { font-size: 10px; }

/* ── footer ── */
.vid-card-footer {
  padding: 14px 18px 16px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  border-top: 1px solid rgba(11,18,32,.06);
  background: #fff;
  transition: background .3s;
}
.vid-card:hover .vid-card-footer {
  background: linear-gradient(135deg,
    rgba(21,120,190,.04), rgba(212,0,0,.02));
}

.vid-footer-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700;
  color: rgba(11,18,32,.55);
  transition: color .25s;
}
.vid-footer-label i {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(21,120,190,.09);
  border: 1px solid rgba(21,120,190,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #1578be;
  transition: background .25s, color .25s, border-color .25s;
}
.vid-card:hover .vid-footer-label { color: rgba(11,18,32,.75); }
.vid-card:hover .vid-footer-label i {
  background: #1578be; color: #fff; border-color: transparent;
}

/* YouTube badge */
.vid-yt-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px;
  background: rgba(192,0,0,.07);
  border: 1.5px solid rgba(192,0,0,.18);
  color: #c00; font-size: 12px; font-weight: 800;
  transition: background .25s, color .25s, border-color .25s,
              transform .25s, box-shadow .25s;
}
.vid-yt-badge i { font-size: 13px; transition: transform .3s; }
.vid-card:hover .vid-yt-badge {
  background: #c00; color: #fff;
  border-color: transparent;
  transform: scale(1.06);
  box-shadow: 0 3px 12px rgba(192,0,0,.35);
}
.vid-card:hover .vid-yt-badge i { transform: scale(1.2); }

/* ══ EMPTY ══ */
.vid-empty {
  text-align: center; padding: 64px 0;
  color: rgba(11,18,32,.32);
  grid-column: 1 / -1;
}
.vid-empty i { font-size: 44px; display: block; margin-bottom: 14px; }
.vid-empty p { font-size: 15px; margin: 0; }