/* ==========================================================================
   WORLD-CLASS STREAMING & PODCAST PLATFORM DESIGN (بودكاست النخبة & نخبة TV)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;500;600;700;800;900&display=swap');

.video-category-page {
  direction: rtl;
  text-align: right;
  font-family: 'Alexandria', 'Cairo', -apple-system, sans-serif;
  color: #0f172a;
  padding-bottom: 70px;
}

/* Category Header Banner with Cinematic Glow */
.video-category-header {
  background: radial-gradient(circle at 10% 20%, rgba(245, 158, 11, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 90% 80%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
              linear-gradient(135deg, #020617 0%, #031c49 50%, #0f172a 100%);
  color: #ffffff;
  padding: 48px 42px;
  border-radius: 28px;
  margin-bottom: 35px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(3, 28, 73, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-category-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #be8126 50%, #38bdf8 100%);
}

.video-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 800;
  margin-bottom: 14px;
  backdrop-filter: blur(10px);
}

.video-category-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 10px #ef4444;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.video-category-header h1.page-title {
  font-size: 38px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.video-category-header .taxonomy-description {
  font-size: 16px;
  color: #94a3b8;
  max-width: 820px;
  line-height: 1.75;
}

/* Playlist Showcase Hero (Main Player + Up Next Sidebar) */
.video-hero-showcase {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
  background: linear-gradient(145deg, #020617 0%, #0f172a 100%);
  border-radius: 28px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

@media (max-width: 992px) {
  .video-hero-showcase {
    grid-template-columns: 1fr;
    padding: 18px;
  }
}

.hero-main-player-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-player-inner {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: 20px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-player-inner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-player-inner:hover img {
  transform: scale(1.05);
}

.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 14px 40px rgba(239, 68, 68, 0.55);
  cursor: pointer;
  z-index: 3;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 14px 40px rgba(239, 68, 68, 0.55); }
  50% { box-shadow: 0 20px 55px rgba(239, 68, 68, 0.85); }
}

.hero-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
}

.hero-play-btn svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  margin-left: -2px;
}

.hero-live-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(239, 68, 68, 0.92);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.hero-player-details {
  padding: 20px 8px 8px 8px;
  color: #ffffff;
}

.hero-player-details h2 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero-player-details h2 a {
  color: #ffffff;
  transition: color 0.25s ease;
}

.hero-player-details h2 a:hover {
  color: #fbbf24;
}

.hero-player-meta {
  font-size: 13.5px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.hero-player-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-action-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-watch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #be8126 0%, #f59e0b 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 14.5px;
  padding: 11px 26px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.35);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-hero-watch:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.5);
  color: #000000;
}

/* Up Next Playlist Sidebar */
.hero-playlist-sidebar {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

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

.playlist-header h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-count {
  font-size: 12px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 800;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.playlist-items-scroll {
  max-height: 410px;
  overflow-y: auto;
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Scrollbar */
.playlist-items-scroll::-webkit-scrollbar {
  width: 5px;
}
.playlist-items-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.playlist-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  position: relative;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.playlist-item.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.playlist-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  background: #f59e0b;
  border-radius: 4px;
}

.playlist-item-thumb {
  position: relative;
  width: 96px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
}

.playlist-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.65);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.playlist-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-item-meta {
  font-size: 12px;
  color: #94a3b8;
}

/* Interactive Filter Bar */
.video-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.video-filter-bar::-webkit-scrollbar {
  height: 4px;
}

.filter-btn {
  background: #ffffff;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--brand-navy, #031c49);
  color: #ffffff;
  border-color: var(--brand-navy, #031c49);
  box-shadow: 0 6px 18px rgba(3, 28, 73, 0.2);
}

/* Shorts & Reels Section (Vertical 9:16) */
.shorts-reels-section {
  margin-bottom: 50px;
}

.section-title-wrap {
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 12px;
}

.section-title-wrap h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-navy, #031c49);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) { .shorts-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 850px) { .shorts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .shorts-grid { grid-template-columns: repeat(2, 1fr); } }

.short-card {
  background: #0f172a;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
}

.short-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  border-color: rgba(239, 68, 68, 0.6);
}

.short-thumb-wrap {
  position: relative;
  padding-top: 150%; /* 9:16 Aspect Ratio */
  background: #000000;
  overflow: hidden;
}

.short-thumb-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.short-card:hover .short-thumb-wrap img {
  transform: scale(1.08);
}

.short-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.5);
  transition: transform 0.3s ease;
  border: 2px solid #ffffff;
}

.short-card:hover .short-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
}

.short-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.short-info {
  padding: 14px 12px;
  color: #ffffff;
  background: #0f172a;
}

.short-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-info span {
  font-size: 11.5px;
  color: #94a3b8;
}

/* Main Videos Grid Section */
.main-video-grid-section {
  margin-top: 10px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

@media (max-width: 992px) { .videos-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 600px) { .videos-grid { grid-template-columns: 1fr; } }

.video-card {
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(3, 28, 73, 0.06);
  border: 1px solid #e2e8f0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(3, 28, 73, 0.15);
  border-color: rgba(190, 129, 38, 0.45);
}

.video-thumb-holder {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-holder img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb-holder img {
  transform: scale(1.08);
}

.video-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  background: rgba(3, 28, 73, 0.85);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.video-card:hover .video-play-overlay {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ffffff;
  transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 14px 40px rgba(239, 68, 68, 0.5);
}

.video-play-overlay svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  margin-left: -2px;
}

.video-card-type-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 50px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.video-card-duration-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 2;
}

.video-card-body {
  padding: 24px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.video-card-body h3 {
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--brand-navy, #031c49);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-body h3 a {
  color: inherit;
  transition: color 0.2s ease;
}

.video-card-body h3 a:hover {
  color: var(--brand-gold, #be8126);
}

.video-card-meta {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #e2e8f0;
  padding-top: 14px;
  margin-top: auto;
}

/* Lightbox Modal Video Player */
.video-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(18px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 20px;
}

.video-modal-container {
  width: 100%;
  max-width: 980px;
  background: #0f172a;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  animation: modalPopup 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopup {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.video-modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.video-modal-close-btn:hover {
  background: #ef4444;
  border-color: #ffffff;
  transform: rotate(90deg);
}

.video-modal-iframe-wrap {
  position: relative;
  padding-top: 56.25%;
  background: #000000;
}

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

.video-modal-title {
  padding: 22px 28px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
  background: #1e293b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
