/* ==========================================================================
   FinancePress — Video Feature Styles
   ========================================================================== */

:root {
  --fp-video-primary: #0A2540;
  --fp-video-accent: #0066FF;
  --fp-video-highlight: #D4AF37;
  --fp-video-bg: #f8f9fa;
  --fp-video-card: #fff;
  --fp-video-text: #1a1a2e;
  --fp-video-muted: #6b7280;
  --fp-video-live: #e53e3e;
  --fp-video-overlay: rgba(10, 37, 64, 0.72);
  --fp-video-overlay-light: rgba(10, 37, 64, 0.45);
  --fp-video-accent-hover: #0052cc;
  --fp-video-highlight-glow: rgba(212, 175, 55, 0.25);
  --fp-video-card-shadow: 0 2px 8px rgba(10, 37, 64, 0.08);
  --fp-video-card-shadow-hover: 0 8px 24px rgba(10, 37, 64, 0.14);
  --fp-video-chrome-height: 48px;
  --fp-video-progress-height: 4px;
}

/* 1. Video Hub Hero */
.fp-video-hero {
  position: relative;
  background: var(--fp-navy, #091628);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.fp-video-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transition: opacity var(--fp-duration-normal, 0.3s) ease;
}
.fp-video-hero:hover .fp-video-hero__bg { opacity: 0.7; }
.fp-video-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--fp-video-overlay) 0%, var(--fp-video-overlay-light) 50%, transparent 100%);
}
.fp-video-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--fp-space-32, 32px) var(--fp-space-24, 24px);
  max-width: 720px;
  color: #fff;
}
.fp-video-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--fp-space-4, 4px);
  font-family: var(--fp-font-ui, "DM Sans");
  font-size: var(--fp-text-xs, 0.75rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fp-video-highlight);
  margin-bottom: var(--fp-space-8, 8px);
}
.fp-video-hero__title {
  font-family: var(--fp-font-heading, "Playfair Display");
  font-size: var(--fp-text-xl, 1.5rem);
  line-height: 1.2;
  margin: 0 0 var(--fp-space-12, 12px);
}
.fp-video-hero__meta {
  font-family: var(--fp-font-ui, "DM Sans");
  font-size: var(--fp-text-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.7);
}
.fp-video-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fp-video-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(0, 102, 255, 0.25);
  transition: transform var(--fp-duration-fast, 0.15s) ease, box-shadow var(--fp-duration-normal, 0.3s) ease;
}
.fp-video-hero__play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 12px rgba(0, 102, 255, 0.35);
}
.fp-video-hero__play svg { width: 28px; height: 28px; fill: #fff; margin-left: 3px; }

/* 2. Video Grid */
.fp-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fp-space-24, 24px);
  padding: var(--fp-space-24, 24px) 0;
}

/* 3. Video Card */
.fp-video-card {
  background: var(--fp-video-card);
  border-radius: var(--fp-radius, 8px);
  box-shadow: var(--fp-video-card-shadow);
  overflow: hidden;
  transition: transform var(--fp-duration-normal, 0.3s) ease, box-shadow var(--fp-duration-normal, 0.3s) ease;
  cursor: pointer;
}
.fp-video-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--fp-video-card-shadow-hover);
}
.fp-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--fp-navy, #091628);
}
.fp-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--fp-duration-normal, 0.3s) ease;
}
.fp-video-card:hover .fp-video-card__thumb img { transform: scale(1.06); }
.fp-video-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 37, 64, 0.25);
  opacity: 0;
  transition: opacity var(--fp-duration-normal, 0.3s) ease;
}
.fp-video-card:hover .fp-video-card__play,
.fp-video-card:focus-within .fp-video-card__play { opacity: 1; }
.fp-video-card__play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fp-video-accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--fp-duration-fast, 0.15s) ease;
}
.fp-video-card__play-btn:hover { transform: scale(1.12); }
.fp-video-card__play-btn svg { width: 20px; height: 20px; fill: #fff; margin-left: 2px; }
.fp-video-card__duration {
  position: absolute;
  bottom: var(--fp-space-8, 8px);
  right: var(--fp-space-8, 8px);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: var(--fp-font-ui, "DM Sans");
  font-size: var(--fp-text-xs, 0.75rem);
  font-weight: 600;
  padding: 2px var(--fp-space-4, 4px);
  border-radius: 3px;
  line-height: 1.4;
}
.fp-video-card__body { padding: var(--fp-space-16, 16px); }
.fp-video-card__title {
  font-family: var(--fp-font-heading, "Playfair Display");
  font-size: var(--fp-text-base, 1rem);
  font-weight: 600;
  color: var(--fp-video-text);
  margin: 0 0 var(--fp-space-8, 8px);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-video-card__meta {
  display: flex;
  align-items: center;
  gap: var(--fp-space-8, 8px);
  font-family: var(--fp-font-ui, "DM Sans");
  font-size: var(--fp-text-xs, 0.75rem);
  color: var(--fp-video-muted);
}
.fp-video-card__meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--fp-video-muted); }
.fp-video-card__category { color: var(--fp-video-accent); font-weight: 600; }

/* 4. Video Player */
.fp-video-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--fp-radius, 8px);
  overflow: hidden;
}
.fp-video-player iframe,
.fp-video-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fp-video-player__chrome {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--fp-video-chrome-height);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  padding: 0 var(--fp-space-12, 12px);
  gap: var(--fp-space-12, 12px);
  opacity: 0;
  transition: opacity var(--fp-duration-normal, 0.3s) ease;
  z-index: 5;
}
.fp-video-player:hover .fp-video-player__chrome { opacity: 1; }
.fp-video-player__progress {
  position: absolute;
  top: calc(-1 * var(--fp-video-progress-height));
  left: 0;
  right: 0;
  height: var(--fp-video-progress-height);
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
}
.fp-video-player__progress-fill { height: 100%; background: var(--fp-video-accent); width: 0%; transition: width 0.25s linear; }
.fp-video-player__btn { background: none; border: none; color: #fff; cursor: pointer; padding: 0; display: flex; align-items: center; }
.fp-video-player__time { font-family: var(--fp-font-ui); font-size: var(--fp-text-xs); color: rgba(255,255,255,0.8); }

/* 5. Chapter List */
.fp-chapters {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid rgba(10, 37, 64, 0.1);
  border-radius: var(--fp-radius, 8px);
  background: var(--fp-video-card);
}
.fp-chapters__item {
  display: flex;
  align-items: center;
  gap: var(--fp-space-12, 12px);
  padding: var(--fp-space-12, 12px) var(--fp-space-16, 16px);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
  cursor: pointer;
  transition: background var(--fp-duration-fast, 0.15s) ease;
}
.fp-chapters__item:last-child { border-bottom: none; }
.fp-chapters__item:hover { background: rgba(0, 102, 255, 0.06); }
.fp-chapters__item--active { background: rgba(0, 102, 255, 0.1); border-left: 3px solid var(--fp-video-accent); }
.fp-chapters__timestamp { font-family: var(--fp-font-ui); font-size: var(--fp-text-sm); font-weight: 600; color: var(--fp-video-accent); white-space: nowrap; min-width: 52px; }
.fp-chapters__title { font-family: var(--fp-font-ui); font-size: var(--fp-text-sm); color: var(--fp-video-text); line-height: 1.4; }

/* 6. Transcript */
.fp-transcript { border: 1px solid rgba(10, 37, 64, 0.1); border-radius: var(--fp-radius, 8px); background: var(--fp-video-card); overflow: hidden; }
.fp-transcript__header { display: flex; align-items: center; justify-content: space-between; padding: var(--fp-space-16, 16px); cursor: pointer; user-select: none; }
.fp-transcript__title { font-family: var(--fp-font-ui); font-size: var(--fp-text-base); font-weight: 600; color: var(--fp-video-text); }
.fp-transcript__toggle { width: 24px; height: 24px; transition: transform var(--fp-duration-normal, 0.3s) ease; }
.fp-transcript--open .fp-transcript__toggle { transform: rotate(180deg); }
.fp-transcript__search { padding: 0 var(--fp-space-16, 16px) var(--fp-space-8, 8px); }
.fp-transcript__search-input {
  width: 100%;
  padding: var(--fp-space-8, 8px) var(--fp-space-12, 12px);
  border: 1px solid rgba(10, 37, 64, 0.15);
  border-radius: var(--fp-radius, 8px);
  font-family: var(--fp-font-ui);
  font-size: var(--fp-text-sm);
  color: var(--fp-video-text);
  background: var(--fp-video-bg);
  outline: none;
  transition: border-color var(--fp-duration-fast, 0.15s) ease;
}
.fp-transcript__search-input:focus { border-color: var(--fp-video-accent); }
.fp-transcript__body { max-height: 0; overflow: hidden; transition: max-height var(--fp-duration-normal, 0.3s) ease; }
.fp-transcript--open .fp-transcript__body { max-height: 400px; overflow-y: auto; }
.fp-transcript__content { padding: var(--fp-space-8, 8px) var(--fp-space-16, 16px) var(--fp-space-16, 16px); font-family: var(--fp-font-ui); font-size: var(--fp-text-sm); line-height: 1.7; color: var(--fp-video-text); }
.fp-transcript__content mark { background: var(--fp-video-highlight-glow); color: var(--fp-video-text); padding: 1px 2px; border-radius: 2px; }

/* 7. Live Stream */
.fp-livestream { display: grid; grid-template-columns: 1fr 320px; gap: var(--fp-space-16, 16px); }
.fp-livestream__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--fp-space-4, 4px);
  font-family: var(--fp-font-ui);
  font-size: var(--fp-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--fp-video-live);
  padding: var(--fp-space-4, 4px) var(--fp-space-8, 8px);
  border-radius: 4px;
}
.fp-livestream__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: fp-pulse 1.4s ease-in-out infinite; }
@keyframes fp-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }
.fp-livestream__countdown { font-family: var(--fp-font-ui); font-size: var(--fp-text-lg); font-weight: 600; color: var(--fp-video-primary); }
.fp-livestream__chat { border: 1px solid rgba(10, 37, 64, 0.1); border-radius: var(--fp-radius, 8px); background: var(--fp-video-card); display: flex; flex-direction: column; min-height: 400px; }
.fp-livestream__chat-header { padding: var(--fp-space-12, 12px) var(--fp-space-16, 16px); border-bottom: 1px solid rgba(10, 37, 64, 0.08); font-family: var(--fp-font-ui); font-size: var(--fp-text-sm); font-weight: 600; color: var(--fp-video-text); }
.fp-livestream__chat-body { flex: 1; padding: var(--fp-space-12, 12px) var(--fp-space-16, 16px); overflow-y: auto; font-family: var(--fp-font-ui); font-size: var(--fp-text-xs); color: var(--fp-video-muted); }
.fp-livestream__chat-input { display: flex; gap: var(--fp-space-8, 8px); padding: var(--fp-space-8, 8px) var(--fp-space-12, 12px); border-top: 1px solid rgba(10, 37, 64, 0.08); }
.fp-livestream__chat-input input { flex: 1; padding: var(--fp-space-8, 8px) var(--fp-space-12, 12px); border: 1px solid rgba(10, 37, 64, 0.15); border-radius: var(--fp-radius, 8px); font-family: var(--fp-font-ui); font-size: var(--fp-text-sm); outline: none; }

/* 8. Category Tabs */
.fp-video-tabs { display: flex; flex-wrap: wrap; gap: var(--fp-space-8, 8px); padding: var(--fp-space-16, 16px) 0; }
.fp-video-tabs__pill {
  font-family: var(--fp-font-ui);
  font-size: var(--fp-text-sm);
  font-weight: 500;
  padding: var(--fp-space-8, 8px) var(--fp-space-16, 16px);
  border: 1px solid rgba(10, 37, 64, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--fp-video-text);
  cursor: pointer;
  transition: background var(--fp-duration-fast, 0.15s) ease, color var(--fp-duration-fast, 0.15s) ease, border-color var(--fp-duration-fast, 0.15s) ease;
}
.fp-video-tabs__pill:hover { background: rgba(0, 102, 255, 0.06); border-color: var(--fp-video-accent); color: var(--fp-video-accent); }
.fp-video-tabs__pill--active { background: var(--fp-video-accent); border-color: var(--fp-video-accent); color: #fff; }
.fp-video-tabs__pill--active:hover { background: var(--fp-video-accent-hover); color: #fff; }

/* 9. Series Page */
.fp-series__season { margin-bottom: var(--fp-space-32, 32px); }
.fp-series__season-title { font-family: var(--fp-font-heading); font-size: var(--fp-text-lg); font-weight: 600; color: var(--fp-video-primary); margin: 0 0 var(--fp-space-16, 16px); padding-bottom: var(--fp-space-8, 8px); border-bottom: 2px solid var(--fp-video-highlight); display: inline-block; }
.fp-series__episode { display: flex; align-items: center; gap: var(--fp-space-16, 16px); padding: var(--fp-space-12, 12px) 0; border-bottom: 1px solid rgba(10, 37, 64, 0.06); cursor: pointer; transition: background var(--fp-duration-fast, 0.15s) ease; }
.fp-series__episode:hover { background: rgba(0, 102, 255, 0.04); }
.fp-series__episode-num { font-family: var(--fp-font-ui); font-size: var(--fp-text-lg); font-weight: 700; color: var(--fp-video-muted); min-width: 32px; text-align: center; }
.fp-series__episode-thumb { width: 120px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--fp-navy, #091628); }
.fp-series__episode-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-series__episode-info { flex: 1; min-width: 0; }
.fp-series__episode-title { font-family: var(--fp-font-ui); font-size: var(--fp-text-base); font-weight: 600; color: var(--fp-video-text); margin: 0 0 var(--fp-space-4, 4px); }
.fp-series__episode-meta { font-family: var(--fp-font-ui); font-size: var(--fp-text-xs); color: var(--fp-video-muted); }

/* 10. Video Single Page */
.fp-video-single { display: grid; grid-template-columns: 1fr 340px; gap: var(--fp-space-32, 32px); padding: var(--fp-space-32, 32px) 0; }
.fp-video-single__main { min-width: 0; }
.fp-video-single__sidebar { display: flex; flex-direction: column; gap: var(--fp-space-24, 24px); }
.fp-video-single__title { font-family: var(--fp-font-heading); font-size: var(--fp-text-xl); font-weight: 700; color: var(--fp-video-text); margin: var(--fp-space-16, 16px) 0 var(--fp-space-8, 8px); line-height: 1.3; }
.fp-video-single__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fp-space-12, 12px); font-family: var(--fp-font-ui); font-size: var(--fp-text-sm); color: var(--fp-video-muted); margin-bottom: var(--fp-space-16, 16px); }
.fp-video-related { display: flex; flex-direction: column; gap: var(--fp-space-16, 16px); }
.fp-video-related__title { font-family: var(--fp-font-ui); font-size: var(--fp-text-base); font-weight: 600; color: var(--fp-video-text); margin: 0 0 var(--fp-space-4, 4px); }

/* 11. Responsive */
@media (max-width: 1024px) {
  .fp-video-single { grid-template-columns: 1fr 280px; gap: var(--fp-space-24, 24px); }
  .fp-livestream { grid-template-columns: 1fr 260px; }
}
@media (max-width: 768px) {
  .fp-video-grid { grid-template-columns: repeat(2, 1fr); gap: var(--fp-space-16, 16px); }
  .fp-video-single { grid-template-columns: 1fr; }
  .fp-video-single__sidebar { order: -1; }
  .fp-livestream { grid-template-columns: 1fr; }
  .fp-livestream__chat { min-height: 280px; }
  .fp-video-hero { min-height: 360px; }
  .fp-video-hero__title { font-size: var(--fp-text-lg, 1.125rem); }
  .fp-series__episode-thumb { width: 100px; }
}
@media (max-width: 480px) {
  .fp-video-grid { grid-template-columns: 1fr; gap: var(--fp-space-12, 12px); }
  .fp-video-hero { min-height: 280px; }
  .fp-video-hero__content { padding: var(--fp-space-20, 20px) var(--fp-space-16, 16px); }
  .fp-video-hero__title { font-size: var(--fp-text-base, 1rem); }
  .fp-video-hero__play { width: 56px; height: 56px; }
  .fp-video-hero__play svg { width: 22px; height: 22px; }
  .fp-video-tabs { gap: var(--fp-space-4, 4px); }
  .fp-video-tabs__pill { font-size: var(--fp-text-xs); padding: var(--fp-space-4, 4px) var(--fp-space-12, 12px); }
  .fp-series__episode { gap: var(--fp-space-8, 8px); }
  .fp-series__episode-thumb { width: 80px; }
  .fp-video-card__body { padding: var(--fp-space-12, 12px); }
  .fp-chapters { max-height: 260px; }
}