/* -----------------------------------------
   GENERAL PAGE STYLING
----------------------------------------- */

.cfr-vod-section {
  padding: 40px;
  color: #fff;
  margin-bottom: 60px;
}

.cfr-title {
  font-size: 2rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffb36b;
  text-shadow: 0 0 10px #ff6a00;
}

/* -----------------------------------------
   HERO BANNER
----------------------------------------- */

.vod-hero {
  /* background: url('img/cfrnodashopacity1.png') center/cover no-repeat; */
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
  margin-bottom: 2rem;
  border-bottom: 2px solid #ff6a00;
  box-shadow: 0 0 20px #ff6a00;
  position: relative;
  overflow: hidden;
}

.vod-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 0;
}

.vod-hero h1,
.vod-hero p {
  position: relative;
  z-index: 1;
}

.vod-hero h1 {
  font-size: 2.8rem;
  text-shadow: 0 0 12px #ff6a00;
}

.vod-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* -----------------------------------------
   VOD GRID — 3×3 DESKTOP LAYOUT
----------------------------------------- */

#cfr-vod-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;

  /* Mobile-first */
  grid-template-columns: 1fr;
}

/* Tablets */
@media (min-width: 600px) {
  #cfr-vod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (ISG style) */
@media (min-width: 900px) {
  #cfr-vod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* -----------------------------------------
   CARD STYLING + CINEMATIC HOVER
----------------------------------------- */

.cfr-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #333;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
  text-align: center;
}

/* Fire outline + lift */
.cfr-card:hover {
  transform: translateY(-6px) scale(1.05);
  border-color: #ff6a00;
  box-shadow: 0 0 25px rgba(255, 106, 0, 0.7),
              0 0 40px rgba(255, 140, 0, 0.4);
  animation: emberPulse 1.2s infinite ease-in-out;
}

/* Ember ring */
.cfr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid rgba(255, 106, 0, 0.0);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.cfr-card:hover::before {
  border-color: rgba(255, 106, 0, 0.8);
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.6);
}

/* Click badge */
.cfr-card::after {
  content: "Click to Watch";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 4px 10px;
  background: rgba(255, 106, 0, 0.85);
  color: #fff;
  font-size: 0.8rem;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.cfr-card:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Ember breathing animation */
@keyframes emberPulse {
  0% { box-shadow: 0 0 15px rgba(255, 106, 0, 0.4); }
  50% { box-shadow: 0 0 25px rgba(255, 140, 0, 0.7); }
  100% { box-shadow: 0 0 15px rgba(255, 106, 0, 0.4); }
}

/* Thumbnail */
.cfr-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Info */
.cfr-info {
  padding: 12px;
}

.cfr-title-text {
  font-size: 1rem;
  color: #ffb36b;
  margin-bottom: 6px;
}

.cfr-date {
  font-size: 0.85rem;
  color: #ccc;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -----------------------------------------
   PAGINATION BUTTONS
----------------------------------------- */

.cfr-pagination {
  text-align: center;
  margin: 30px 0;
}

.cfr-btn {
  background: #ff6a00;
  color: #fff;
  border: none;
  padding: 12px 25px;
  margin: 10px;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.cfr-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: 0.4s;
}

.cfr-btn:hover::before {
  left: 100%;
}

.cfr-btn:hover {
  background: #ff8c3a;
  box-shadow: 0 0 10px #ff6a00;
}

/* Back to top fade */
#cfrBackTop {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#cfrBackTop.show {
  opacity: 1;
}

/* -----------------------------------------
   MODAL
----------------------------------------- */

.cfr-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cfr-modal-content {
  width: 80%;
  max-width: 1000px;
  position: relative;
}

.cfr-close {
  position: absolute;
  top: -60px;     /* lifted higher above the iframe */
  right: -20px;   /* shifted outward so it’s clearly outside the frame */
  font-size: 2.4rem;
  cursor: pointer;
  color: #fff;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
  transition: opacity 0.2s ease;
}

.cfr-close:hover {
  opacity: 0.7;
}

#cfrPlayer {
  width: 100%;
  height: 75vh;
  border-radius: 10px;
  border: 2px solid #ff6a00;
  box-shadow: 0 0 25px #ff6a00;
}

.cfr-fallback {
  text-align: center;
  padding: 40px;
  background: rgba(30, 30, 30, 0.8);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 106, 0, 0.3);
  color: #ffb36b;
  font-size: 1rem;
  line-height: 1.6;
  margin-top: 2rem;
}