/* ============================================================
   ARTICLE / COURSE LAYOUT
   ============================================================ */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 160px 24px 120px 24px;
}

.article-header {
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 48px;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.article-meta::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 0 8px var(--blue-primary);
}

.article-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
}
.article-title span {
  color: var(--blue-primary);
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.article-content p {
  margin-bottom: 24px;
}

.article-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 64px 0 32px 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 16px;
}
.article-h1::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
}

.article-h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 48px 0 24px 0;
  letter-spacing: -0.01em;
}

.image-placeholder {
  width: 100%;
  height: 400px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 48px 0;
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.image-wrapper {
  margin: 48px auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: #000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.image-wrapper-wide {
  width: min(1180px, calc(100vw - 32px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 52px 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.image-wrapper-wide:hover {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(139, 92, 246, 0.15);
}
.image-wrapper-wide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Quiz Block */
.quiz-block {
  margin-top: 80px;
  padding: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-light);
  border-radius: 24px;
}
.quiz-progress-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  margin-bottom: 28px;
  overflow: hidden;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--red-primary));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.quiz-header {
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quiz-score-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 12px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}
.quiz-question {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}
.quiz-options {
  display: grid;
  gap: 12px;
}
.quiz-option {
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.quiz-option:hover:not(.disabled) {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
.quiz-option.selected {
  border-color: var(--blue-primary);
  background: rgba(139, 92, 246, 0.08);
  color: #fff;
}
.quiz-option.correct {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.1);
  color: #fff;
}
.quiz-option.incorrect {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.1);
  color: rgba(255,255,255,0.5);
}
.quiz-option.correct .quiz-letter { color: #10B981; }
.quiz-option.incorrect .quiz-letter { color: #EF4444; }
.quiz-option.disabled { cursor: default; }
.quiz-letter {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  min-width: 18px;
  transition: color 0.2s;
}
.quiz-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.quiz-feedback.correct-fb {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6EE7B7;
}
.quiz-feedback.incorrect-fb {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}
.quiz-result {
  text-align: center;
  padding: 24px 0 8px;
}
.quiz-result-score {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--blue-primary), var(--red-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 8px;
}
.quiz-result-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}


/* ============================================================
   INTERACTIVE TPO ANATOMY
   ============================================================ */
.interactive-tpo-wrap {
  margin: 40px auto;
  width: min(780px, calc(100vw - 48px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 22px 26px;
  background: rgba(10, 10, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
#interactive-vwap.interactive-tpo-wrap {
  width: min(690px, calc(100vw - 48px));
  padding: 16px 20px;
  margin: 30px auto;
}
#interactive-vwap .interactive-tpo-header {
  margin-bottom: 10px;
}
#interactive-vwap .interactive-tpo-chart-card {
  padding: 10px 12px;
}
#interactive-vwap .tpo-svg-wrap {
  max-width: 250px;
}
#interactive-vwap .interactive-tpo-detail-card {
  padding: 12px 14px;
  min-height: 140px;
}
#interactive-vwap .tpo-btn {
  padding: 6px 12px;
  font-size: 0.68rem;
}
.interactive-tpo-wrap::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 20%;
  width: 450px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
}
.interactive-tpo-header {
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.interactive-tpo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #A78BFA;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.interactive-tpo-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 8px #8B5CF6;
}
.interactive-tpo-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.interactive-tpo-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 600px;
  margin-bottom: 0;
}
.interactive-tpo-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .interactive-tpo-wrap {
    padding: 20px 16px;
    width: 100%;
    left: 0;
    transform: none;
  }
  .interactive-tpo-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
.interactive-tpo-chart-card {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tpo-svg-wrap {
  width: 100%;
  max-width: 280px;
  display: flex;
  justify-content: center;
}
.interactive-tpo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}
.tpo-btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.tpo-btn:hover {
  color: #ffffff;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.12);
  transform: translateY(-1px);
}
.tpo-btn.active {
  color: #ffffff;
  border-color: #8B5CF6;
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}
.interactive-tpo-detail-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  transition: all 0.3s;
}
.tpo-detail-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.tpo-detail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tpo-detail-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tpo-detail-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.tpo-detail-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 0;
}
.interactive-tpo-placeholder {
  text-align: center;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.interactive-tpo-placeholder svg {
  opacity: 0.35;
  margin-bottom: 12px;
}
.interactive-tpo-placeholder p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

/* ============================================================
   AUCTION MARKET THEORY (AMT) CLEAN STYLES
   ============================================================ */
.amt-clean-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px 0;
  display: grid;
  gap: 18px;
}
.amt-clean-list li {
  position: relative;
  padding-left: 20px;
  line-height: 1.75;
  color: var(--text-muted);
  font-size: 1rem;
}
.amt-clean-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 0 6px var(--blue-primary);
}
.amt-clean-list li strong {
  color: #ffffff;
  font-weight: 700;
}

/* ============================================================
   VWAP INTERACTIVE SIMULATOR (EXPANDED CHART BOX)
   ============================================================ */
#interactive-vwap .interactive-tpo-body {
  grid-template-columns: 1fr;
  gap: 20px;
}
#interactive-vwap .interactive-tpo-chart-card {
  padding: 24px 20px;
  width: 100%;
}
#interactive-vwap .tpo-svg-wrap {
  max-width: 680px;
  width: 100%;
}
#interactive-vwap .interactive-tpo-buttons {
  gap: 8px;
  margin-top: 18px;
}
#interactive-vwap .tpo-btn {
  padding: 8px 18px;
  font-size: 0.76rem;
}
#interactive-vwap .interactive-tpo-detail-card {
  min-height: 120px;
}

/* ============================================================
   FOOTPRINT INTERACTIVE SIMULATOR
   ============================================================ */
#interactive-footprint .interactive-tpo-body {
  grid-template-columns: 1fr;
  gap: 20px;
}
#interactive-footprint .interactive-tpo-chart-card {
  padding: 24px 20px;
  width: 100%;
}
#interactive-footprint .tpo-svg-wrap {
  max-width: 640px;
  width: 100%;
}
#interactive-footprint .interactive-tpo-buttons {
  gap: 8px;
  margin-top: 18px;
}
#interactive-footprint .tpo-btn {
  padding: 8px 18px;
  font-size: 0.76rem;
}
#interactive-footprint .interactive-tpo-detail-card {
  min-height: 120px;
}

/* ============================================================
   SOFTWARE PAGES STYLES (Phase 01)
   ============================================================ */
.software-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.btn-software-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--blue-primary), #6366f1);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-software-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.55);
  color: #ffffff;
}

.btn-software-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-software-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.software-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s;
}

.software-card:hover {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.software-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--blue-primary);
}

.software-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.software-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  background: #000000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  margin: 32px 0 48px 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 36px 0;
}

.step-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.step-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.035);
}

.step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--blue-primary);
  color: var(--blue-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  flex: 1;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.specs-table-wrapper {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.35);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.specs-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border-light);
}

.specs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  line-height: 1.6;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table td strong {
  color: #ffffff;
}

.specs-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* ------------------------------------------------------------- */
/* VIDEO RECOMMENDATIONS HORIZONTAL CAROUSEL                     */
/* ------------------------------------------------------------- */
.video-carousel-wrap {
  margin: 56px 0 40px 0;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.video-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-carousel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

.video-carousel-title .title-dash {
  display: inline-block;
  width: 22px;
  height: 3px;
  background: #ef4444;
  border-radius: 2px;
}

.video-carousel-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-carousel-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: scale(1.05);
}

.video-carousel-track-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.video-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 68, 68, 0.4) transparent;
}

.video-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.video-carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 99px;
}

.video-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.4);
  border-radius: 99px;
}

.video-carousel-card {
  flex: 0 0 340px;
  max-width: 340px;
  aspect-ratio: 16 / 9;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  scroll-snap-align: start;
  text-decoration: none;
  display: block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.video-carousel-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
}

.video-carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.video-carousel-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.85);
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.video-carousel-card:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  filter: drop-shadow(0 6px 18px rgba(239, 68, 68, 0.7));
}

.video-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 14px 10px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
  pointer-events: none;
}

.video-card-overlay-author {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: #ef4444;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 2px;
}

.video-card-overlay-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-resource-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(15, 18, 26, 0.85));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}

.video-resource-banner-content h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.video-resource-banner-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Video Modal Player */
.nova-video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.nova-video-modal.active {
  display: flex;
}

.nova-video-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nova-video-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  background: #0e1118;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.nova-video-iframe-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
}

.nova-video-iframe-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.nova-video-box-footer {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #0a0c12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nova-video-box-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nova-video-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.nova-video-close-btn:hover {
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
  transform: rotate(90deg);
}

@media (max-width: 680px) {
  .video-carousel-card {
    flex: 0 0 280px;
    max-width: 280px;
  }
  .video-resource-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}



