/* Custom Styles */
body {
  overflow-x: hidden;
}

/* ========================================
   HERO SECTION STYLES
   ======================================== */

.hero-section {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
}

/* Video Background */
.hero-video-bg video {
  opacity: 0.6;
}

.hero-fallback-bg {
  display: none;
}

/* Show fallback if video fails */
.hero-video-bg video:not([src])+.hero-fallback-bg,
.hero-video-bg video[src=""]+.hero-fallback-bg {
  display: block;
}

/* Animated Gradient Overlay */
.hero-gradient-overlay {
  background: linear-gradient(135deg,
      rgba(220, 53, 69, 0.3) 0%,
      rgba(0, 0, 0, 0.8) 50%,
      rgba(220, 53, 69, 0.2) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Morphing SVG Blob Shapes */
.morphing-shapes {
  pointer-events: none;
}

.morph-blob {
  position: absolute;
  opacity: 0.6;
  filter: blur(1px);
  transform-origin: center center;
}

/* Blob 1 - Top Left (Red/Pink) */
.morph-blob-1 {
  width: 500px;
  height: 500px;
  top: -15%;
  left: -10%;
  animation: floatBlob1 25s ease-in-out infinite;
}

/* Blob 2 - Top Right (Purple/Blue) */
.morph-blob-2 {
  width: 400px;
  height: 400px;
  top: 5%;
  right: -8%;
  animation: floatBlob2 30s ease-in-out infinite;
}

/* Blob 3 - Bottom Left (Green/Cyan) */
.morph-blob-3 {
  width: 350px;
  height: 350px;
  bottom: 10%;
  left: 5%;
  animation: floatBlob3 28s ease-in-out infinite;
}

/* Blob 4 - Bottom Right (Pink/Yellow) */
.morph-blob-4 {
  width: 450px;
  height: 450px;
  bottom: -10%;
  right: 10%;
  animation: floatBlob4 22s ease-in-out infinite;
}

/* Blob 5 - Center (White/Red) */
.morph-blob-5 {
  width: 600px;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: floatBlob5 35s ease-in-out infinite;
  opacity: 0.3;
}

/* Floating Animations for Blobs */
@keyframes floatBlob1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate(30px, 20px) rotate(5deg) scale(1.05);
  }

  50% {
    transform: translate(10px, 40px) rotate(-3deg) scale(0.95);
  }

  75% {
    transform: translate(-20px, 15px) rotate(2deg) scale(1.02);
  }
}

@keyframes floatBlob2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(-25px, 35px) rotate(-5deg) scale(1.08);
  }

  66% {
    transform: translate(15px, -20px) rotate(4deg) scale(0.92);
  }
}

@keyframes floatBlob3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  20% {
    transform: translate(40px, -15px) rotate(3deg) scale(1.03);
  }

  40% {
    transform: translate(20px, 30px) rotate(-2deg) scale(0.97);
  }

  60% {
    transform: translate(-15px, 25px) rotate(4deg) scale(1.05);
  }

  80% {
    transform: translate(-30px, -10px) rotate(-3deg) scale(0.98);
  }
}

@keyframes floatBlob4 {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  50% {
    transform: translate(-35px, -25px) rotate(6deg) scale(1.1);
  }
}

@keyframes floatBlob5 {

  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 0.3;
  }

  25% {
    transform: translate(-48%, -52%) rotate(2deg) scale(1.05);
    opacity: 0.4;
  }

  50% {
    transform: translate(-52%, -48%) rotate(-2deg) scale(0.95);
    opacity: 0.25;
  }

  75% {
    transform: translate(-50%, -50%) rotate(1deg) scale(1.02);
    opacity: 0.35;
  }
}

/* Hero Badge */
.hero-badge .badge {
  font-size: 0.9rem;
  letter-spacing: 1px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4);
  }

  50% {
    box-shadow: 0 0 20px 10px rgba(220, 53, 69, 0);
  }
}

/* Hero Title */
.hero-title {
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-title-line {
  display: inline-block;
  animation: slideInLeft 1s ease-out;
}

.hero-title-gradient {
  background: linear-gradient(90deg, #ffffff, #dc3545, #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Typed Text Wrapper */
.hero-typed-wrapper {
  display: inline-block;
  min-width: 200px;
}

/* Hero Subtitle */
.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.8;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons */
.hero-btn-primary {
  background: linear-gradient(135deg, #dc3545, #c82333);
  border: none;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.hero-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: left 0.5s ease;
}

.hero-btn-primary:hover::before {
  left: 100%;
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

.hero-btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
  padding: 0 30px;
}

.stat-number {
  font-size: 2.5rem;
  text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 10px;
}

/* Scroll Indicator */
.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-15px);
  }

  60% {
    transform: translateX(-50%) translateY(-7px);
  }
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  position: relative;
  margin: 0 auto;
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: #dc3545;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.3;
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-text {
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* Particles.js Container */
#particles-js {
  pointer-events: none;
}

/* Hero Section Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem !important;
  }

  .hero-typed-wrapper {
    min-width: 150px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-item {
    padding: 0 15px;
  }

  /* Hide morphing shapes on tablet/mobile for performance */
  .morphing-shapes {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: 100vh;
    padding: 80px 0;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-stats .row {
    gap: 1rem !important;
  }

  .stat-divider {
    display: none !important;
  }

  .stat-item {
    padding: 0 10px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .scroll-indicator {
    display: none;
  }

  #particles-js {
    opacity: 0.5;
  }
}

@media (max-width: 575px) {
  .hero-title {
    font-size: 1.75rem !important;
  }

  .hero-badge .badge {
    font-size: 0.75rem;
  }
}

/* ========================================
   END HERO SECTION STYLES
   ======================================== */

/* ========================================
   VIDEO CARD STYLES
   ======================================== */

/* Base Video Card */
.video-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(220, 53, 69, 0.1);
}

/* Video Thumbnail Container */
.video-thumbnail {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  /* 16:9 Aspect Ratio */
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

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

.video-card:hover .video-thumbnail img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

/* Play Icon */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 3rem;
  color: #fff;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.play-icon i {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.video-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Video Duration Badge */
.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 5;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.video-card:hover .video-duration {
  background: var(--bs-danger, #dc3545);
}

/* Video Quality Badge */
.video-quality {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

.video-quality.hd {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

.video-quality.fullhd {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
}

.video-quality.uhd {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #000;
}

/* Video Progress Bar (Watch History) */
.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  z-index: 5;
  transition: width 0.3s ease;
}

/* Thumbnail Overlay Gradient */
.video-thumbnail::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-thumbnail::before {
  opacity: 1;
}

/* Video Card Body */
.video-card .card-body {
  padding: 1rem;
  background: transparent;
}

.video-card .card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #1a1a2e;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card:hover .card-title {
  color: var(--bs-danger, #dc3545);
}

.video-card .card-text {
  color: #6c757d;
  font-size: 0.8rem;
}

.video-card .card-text i {
  margin-right: 3px;
}

/* Video Card Footer */
.video-card .card-footer {
  padding: 0.75rem 1rem;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.video-card .card-footer .btn {
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.video-card .card-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Video Stats Icons */
.video-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #6c757d;
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-stats i {
  font-size: 0.75rem;
}

/* Channel Info in Card */
.video-channel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.video-channel-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.video-channel-name {
  font-size: 0.75rem;
  color: #6c757d;
  transition: color 0.3s ease;
}

.video-channel-name:hover {
  color: var(--bs-danger, #dc3545);
}

/* Skeleton Loading Animation */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.skeleton-thumbnail {
  padding-top: 56.25%;
  background: linear-gradient(90deg, #e8e8e8 25%, #d8d8d8 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-title {
  height: 18px;
  margin: 16px;
  margin-bottom: 8px;
}

.skeleton-text {
  height: 12px;
  margin: 0 16px 16px;
  width: 60%;
}

/* Video Card Glassmorphism Variant */
.video-card.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-card.glass .card-title,
.video-card.glass .card-text {
  color: #fff;
}

/* Video Card Neumorphism Variant */
.video-card.neumorphic {
  background: #e0e5ec;
  box-shadow: 9px 9px 16px rgb(163, 177, 198, 0.6),
    -9px -9px 16px rgba(255, 255, 255, 0.5);
  border: none;
}

.video-card.neumorphic:hover {
  box-shadow: inset 9px 9px 16px rgb(163, 177, 198, 0.6),
    inset -9px -9px 16px rgba(255, 255, 255, 0.5);
}

/* ========================================
   VIDEO PREVIEW ON HOVER
   ======================================== */

/* Video Preview Container */
.video-preview-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  background: #000;
  overflow: hidden;
}

/* Show preview when active */
.video-thumbnail.preview-active .video-preview-container {
  opacity: 1;
  visibility: visible;
}

/* Hide thumbnail image when preview is active */
.video-thumbnail.preview-active>img.video-thumbnail-img {
  opacity: 0;
}

/* Preview Video Element */
.video-preview-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Loading Spinner */
.video-preview-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  z-index: 10;
}

.video-preview-loading::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #dc3545;
  border-radius: 50%;
  animation: preview-spin 0.8s linear infinite;
}

@keyframes preview-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Hide loading when video is playing */
.video-preview-container.playing .video-preview-loading {
  display: none;
}

/* Progress bar for preview */
.video-preview-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  width: 0%;
  z-index: 11;
  transition: width 0.1s linear;
}

/* Preview indicator badge */
.video-preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
}

.video-preview-badge i {
  font-size: 0.6rem;
}

/* Video thumbnail needs preview class for data attribute targeting */
.video-thumbnail[data-video-url] {
  cursor: pointer;
}

/* Thumbnail fade effect */
.video-thumbnail>img {
  transition: opacity 0.3s ease, transform 0.5s ease, filter 0.3s ease;
}

/* Disable preview on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
  .video-preview-container {
    display: none !important;
  }

  .video-thumbnail[data-video-url] {
    cursor: default;
  }
}

/* Performance: reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .video-preview-container {
    display: none !important;
  }

  .video-preview-loading::after {
    animation: none;
  }
}

/* Legacy hover preview (fallback) */
.hover-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.video-card:hover .hover-preview {
  opacity: 1;
}

.hover-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* New Badge for Recent Videos */
.video-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(0, 200, 83, 0);
  }
}

/* Live Badge */
.video-live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #dc3545;
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: live-pulse 1s infinite;
}

@keyframes live-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* Popular Videos Section - Dark Theme Cards */
.bg-dark .video-card,
.video-card-dark {
  background: rgba(30, 30, 46, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bg-dark .video-card .card-title,
.video-card-dark .card-title {
  color: #fff;
}

.bg-dark .video-card .card-text,
.video-card-dark .card-text {
  color: rgba(255, 255, 255, 0.7);
}

.bg-dark .video-card:hover,
.video-card-dark:hover {
  border-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(220, 53, 69, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .video-card {
    border-radius: 12px;
  }

  .video-card .card-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 767px) {
  .video-card:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .video-duration {
    padding: 2px 6px;
    font-size: 0.7rem;
  }

  .video-quality {
    padding: 2px 6px;
    font-size: 0.6rem;
  }
}

@media (max-width: 575px) {
  .video-card .card-body {
    padding: 0.75rem;
  }

  .video-card .card-title {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }
}

/* ========================================
   END VIDEO CARD STYLES
   ======================================== */

/* ========================================
   CATEGORY CARD STYLES
   ======================================== */

.category-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card .card-img-overlay {
  transition: all 0.3s ease;
}

.category-card:hover .card-img-overlay {
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.3) 100%) !important;
}

.category-card i {
  transition: all 0.3s ease;
}

.category-card:hover i {
  transform: scale(1.2);
}

/* ========================================
   FILTER BUTTON STYLES
   ======================================== */

.filter-button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.filter-button-group .btn {
  border-radius: 25px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-button-group .btn.active,
.filter-button-group .btn:hover {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
  transform: translateY(-2px);
}

/* ========================================
   SECTION HEADER STYLES
   ======================================== */

section .badge {
  font-size: 0.75rem;
  padding: 8px 16px;
  letter-spacing: 1px;
}

section h2 {
  position: relative;
  display: inline-block;
}

/* ========================================
   ADDITIONAL UTILITY STYLES
   ======================================== */

/* Hover Scale Effect */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Typed Cursor */
.typed-cursor {
  font-size: inherit;
  color: #dc3545;
}

/* Parallax Container */
.hero-section {
  position: relative;
  overflow: hidden;
}

/* Parallax Scene */
#parallax-scene {
  pointer-events: none;
}

/* ========================================
   OWL CAROUSEL STYLES
   ======================================== */

.owl-carousel .owl-stage {
  padding: 20px 0;
}

.owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
  width: 50px;
  height: 50px;
  border-radius: 50% !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease !important;
}

.owl-nav button:hover {
  background: #dc3545 !important;
  color: #fff !important;
  transform: translateY(-50%) scale(1.1);
}

.owl-prev {
  left: -25px;
}

.owl-next {
  right: -25px;
}

.owl-dots {
  margin-top: 20px;
}

.owl-dot span {
  width: 12px !important;
  height: 12px !important;
  background: #ddd !important;
  transition: all 0.3s ease;
}

.owl-dot.active span,
.owl-dot:hover span {
  background: #dc3545 !important;
  transform: scale(1.2);
}

/* ========================================
   SLICK SLIDER STYLES
   ======================================== */

.slick-slider {
  margin: 0 -10px;
}

.slick-slide {
  padding: 10px;
}

.slick-dots {
  bottom: -40px;
}

.slick-dots li {
  margin: 0 5px;
}

.slick-dots li button:before {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.slick-dots li.slick-active button:before {
  color: #dc3545;
}

.slick-prev,
.slick-next {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 10;
  transition: all 0.3s ease;
}

.slick-prev:hover,
.slick-next:hover {
  background: #dc3545;
}

.slick-prev {
  left: -10px;
}

.slick-next {
  right: -10px;
}

.slick-prev:before,
.slick-next:before {
  font-size: 24px;
  opacity: 1;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 991px) {
  .owl-nav button {
    width: 40px;
    height: 40px;
  }

  .owl-prev {
    left: -15px;
  }

  .owl-next {
    right: -15px;
  }

  .filter-button-group .btn {
    padding: 6px 15px;
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .owl-nav {
    display: none;
  }

  .filter-button-group {
    gap: 5px;
  }

  .filter-button-group .btn {
    padding: 5px 12px;
    font-size: 0.8rem;
  }
}

/* ========================================
   RELATED VIDEO CARDS (SIDEBAR)
   ======================================== */

.related-video-card {
  transition: all 0.3s ease;
}

.related-video-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.related-play-overlay {
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
}

.related-video-card:hover .related-play-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.5);
}

.related-title {
  transition: color 0.3s ease;
}

.related-video-card:hover .related-title {
  color: #dc3545 !important;
}

/* Line Clamp Fix */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   WATCH PAGE STYLES
   ======================================== */

#video-container {
  border-radius: 12px;
  overflow: hidden;
}

#video-container video,
#video-container iframe {
  border-radius: 12px;
}

.video-info {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Comments Section */
.comment-card {
  border-radius: 12px;
  transition: all 0.3s ease;
}

.comment-card:hover {
  background: #f8f9fa;
}

.comment-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* ========================================
   SEARCH PAGE STYLES
   ======================================== */

.search-result-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
}

.search-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

.profile-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px;
  padding: 2rem;
  color: #fff;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   CHANNEL PAGE STYLES
   ======================================== */

.channel-banner {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  position: relative;
}

.channel-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  border-radius: 0 0 16px 16px;
}

/* ========================================
   NAVBAR STYLES
   ======================================== */

.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */

#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(220, 53, 69, 0.5);
}

/* ========================================
   FILTER RIPPLE EFFECT
   ======================================== */

.filter-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(220, 53, 69, 0.2);
  border-top-color: #dc3545;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.custom-toast {
  background: rgba(26, 26, 46, 0.95);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  animation: toast-slide-up 0.3s ease;
}

@keyframes toast-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-toast.success {
  border-left: 4px solid #00c853;
}

.custom-toast.error {
  border-left: 4px solid #dc3545;
}

.custom-toast.info {
  border-left: 4px solid #2196f3;
}

/* ========================================
   SMOOTH SCROLL STYLES
   ======================================== */

/* ========================================
   SMOOTH SCROLL STYLES
   ======================================== */

html.smooth-scroll {
  scroll-behavior: smooth;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, #ff6b6b, #dc3545);
  background-size: 200% 100%;
  animation: progressGradient 2s linear infinite;
  z-index: 99999;
  transition: width 0.1s ease;
}

@keyframes progressGradient {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 200% 50%;
  }
}

/* ========================================
   GSAP ANIMATION CLASSES
   ======================================== */

/* Fade animations */
.gsap-fade-up {
  opacity: 0;
  transform: translateY(50px);
}

.gsap-fade-down {
  opacity: 0;
  transform: translateY(-50px);
}

.gsap-fade-left {
  opacity: 0;
  transform: translateX(-50px);
}

.gsap-fade-right {
  opacity: 0;
  transform: translateX(50px);
}

/* Scale animations */
.gsap-scale-up {
  opacity: 0;
  transform: scale(0.8);
}

.gsap-scale-down {
  opacity: 0;
  transform: scale(1.2);
}

/* Rotate animations */
.gsap-rotate-in {
  opacity: 0;
  transform: rotate(-15deg) scale(0.9);
}

/* Stagger children animation class */
.gsap-stagger-children>* {
  opacity: 0;
  transform: translateY(30px);
}

/* Text reveal animation */
.gsap-text-reveal {
  overflow: hidden;
}

.gsap-text-reveal span {
  display: inline-block;
  transform: translateY(100%);
}

/* Split text animation */
.gsap-split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotateX(-90deg);
}

/* Magnetic button effect */
.magnetic-btn {
  position: relative;
  transition: transform 0.3s ease;
}

/* Parallax sections */
.gsap-parallax {
  will-change: transform;
}

/* Pin sections */
.gsap-pin-section {
  position: relative;
}

/* Horizontal scroll section */
.gsap-horizontal-scroll {
  display: flex;
  flex-wrap: nowrap;
  width: fit-content;
}

.gsap-horizontal-scroll>* {
  flex-shrink: 0;
}

/* ========================================
   LOTTIE ANIMATION CONTAINERS
   ======================================== */

.lottie-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lottie-loading {
  width: 150px;
  height: 150px;
}

.lottie-success {
  width: 120px;
  height: 120px;
}

.lottie-error {
  width: 120px;
  height: 120px;
}

.lottie-empty {
  width: 200px;
  height: 200px;
}

/* Page loader removed */

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */

/* Clip path reveal */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-clip.revealed {
  clip-path: inset(0 0 0 0);
}

/* Mask reveal */
.reveal-mask {
  position: relative;
  overflow: hidden;
}

.reveal-mask::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #dc3545;
  transform: translateX(-101%);
}

.reveal-mask.revealing::after {
  animation: maskReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes maskReveal {
  0% {
    transform: translateX(-101%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(101%);
  }
}

/* Line draw animation */
.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}

.line-draw.animate {
  stroke-dashoffset: 0;
}

/* ========================================
   HOVER ANIMATIONS
   ======================================== */

/* Underline hover effect */
.hover-underline {
  position: relative;
  display: inline-block;
}

.hover-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  transition: width 0.3s ease;
}

.hover-underline:hover::after {
  width: 100%;
}

/* Glow effect */
.hover-glow {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(220, 53, 69, 0.5);
  transform: translateY(-5px);
}

/* Shake animation */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s ease-in-out;
}

/* Pulse animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Bounce animation */
@keyframes bounce {

  0%,
  20%,
  53%,
  80%,
  100% {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translateY(0);
  }

  40%,
  43% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translateY(-20px);
  }

  70% {
    animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
    transform: translateY(-10px);
  }

  90% {
    transform: translateY(-4px);
  }
}

.bounce {
  animation: bounce 1s ease infinite;
}

/* Wiggle animation */
@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-5deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

.wiggle:hover {
  animation: wiggle 0.3s ease infinite;
}

/* Float animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float {
  animation: float 3s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE CURSOR
   ======================================== */

@media (max-width: 991px) {

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  body.custom-cursor-active {
    cursor: auto !important;
  }

  body.custom-cursor-active a,
  body.custom-cursor-active button {
    cursor: pointer !important;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }

  html.smooth-scroll {
    scroll-behavior: auto;
  }
}

/* ========================================
   PLYR VIDEO PLAYER CUSTOMIZATION
   ======================================== */

.video-player-wrapper {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

/* Plyr Theme Override - Red Accent */
:root {
  --plyr-color-main: #dc3545;
  --plyr-video-background: #000;
  --plyr-menu-background: rgba(26, 26, 46, 0.95);
  --plyr-menu-color: #fff;
  --plyr-menu-border-color: rgba(255, 255, 255, 0.1);
  --plyr-menu-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --plyr-badge-background: #dc3545;
  --plyr-badge-text-color: #fff;
  --plyr-badge-border-radius: 4px;
  --plyr-captions-background: rgba(0, 0, 0, 0.85);
  --plyr-captions-text-color: #fff;
  --plyr-control-icon-size: 18px;
  --plyr-control-spacing: 10px;
  --plyr-control-padding: 7px;
  --plyr-control-radius: 5px;
  --plyr-tooltip-background: rgba(26, 26, 46, 0.95);
  --plyr-tooltip-color: #fff;
  --plyr-tooltip-padding: 5px 10px;
  --plyr-tooltip-radius: 5px;
  --plyr-tooltip-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  --plyr-font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  --plyr-font-size-base: 14px;
  --plyr-font-size-small: 12px;
  --plyr-font-size-large: 18px;
  --plyr-font-size-xlarge: 21px;
  --plyr-font-weight-regular: 400;
  --plyr-font-weight-bold: 600;
  --plyr-range-track-height: 5px;
  --plyr-range-thumb-height: 15px;
  --plyr-range-thumb-background: #fff;
  --plyr-range-thumb-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  --plyr-progress-loading-size: 25px;
  --plyr-progress-loading-background: rgba(220, 53, 69, 0.3);
}

/* Player container */
.plyr {
  border-radius: 12px;
  overflow: hidden;
}

.plyr--video {
  border-radius: 12px;
}

/* Control bar background */
.plyr--video .plyr__controls {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 50px 15px 15px;
}

/* Large play button */
.plyr--video .plyr__control--overlaid {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%) !important;
  border: none !important;
  padding: 25px !important;
  box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4) !important;
  transition: background 0.3s ease, box-shadow 0.3s ease !important;
  transform: translate(-50%, -50%) !important;
  /* Keep centered, no scale */
}

.plyr--video .plyr__control--overlaid:hover,
.plyr--video .plyr__control--overlaid:focus {
  background: linear-gradient(135deg, #ff6b6b 0%, #dc3545 100%) !important;
  box-shadow: 0 15px 40px rgba(220, 53, 69, 0.5) !important;
  transform: translate(-50%, -50%) !important;
  /* Stay centered, no movement */
}

.plyr--video .plyr__control--overlaid svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

/* Control buttons */
.plyr__control {
  border-radius: 5px;
  transition: all 0.2s ease;
}

.plyr__control:hover {
  background: rgba(220, 53, 69, 0.3);
}

.plyr__control[aria-pressed="true"] {
  background: rgba(220, 53, 69, 0.5);
}

/* Progress bar */
.plyr--video .plyr__progress__container {
  margin-bottom: 8px;
}

.plyr__progress input[type="range"] {
  color: #dc3545;
}

.plyr__progress__buffer {
  background: rgba(255, 255, 255, 0.2);
}

/* Volume slider */
.plyr__volume input[type="range"] {
  color: #dc3545;
}

/* Time display */
.plyr__time {
  font-size: 13px;
  font-weight: 500;
}

/* Settings menu */
.plyr__menu__container {
  background: rgba(26, 26, 46, 0.98);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.plyr__menu__container .plyr__control {
  padding: 12px 18px;
  font-size: 14px;
}

.plyr__menu__container .plyr__control:hover {
  background: rgba(220, 53, 69, 0.2);
}

.plyr__menu__container .plyr__control--back {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.plyr__menu__container .plyr__control[role="menuitemradio"][aria-checked="true"]::before {
  background: #dc3545;
}

/* Captions */
.plyr__captions {
  font-size: 18px;
  padding-bottom: 60px;
}

.plyr__caption {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 6px;
  padding: 8px 15px;
  line-height: 1.5;
}

/* Tooltip */
.plyr__tooltip {
  background: rgba(26, 26, 46, 0.98);
  border-radius: 6px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 500;
}

/* Preview thumbnails */
.plyr__preview-thumb {
  background: #1a1a2e;
  border: 2px solid #dc3545;
  border-radius: 6px;
}

.plyr__preview-thumb__time-container {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
  border-radius: 4px;
}

/* Quality badge */
.plyr__badge {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
  font-weight: 600;
}

/* Fullscreen */
.plyr--fullscreen-fallback {
  background: #000;
}

/* PiP button */
.plyr__control[data-plyr="pip"] svg {
  width: 20px;
  height: 20px;
}

/* Loading spinner */
.plyr--loading .plyr__poster {
  opacity: 0.5;
}

/* Seek tooltip */
.plyr__progress__container .plyr__tooltip {
  margin-bottom: -5px;
}

/* YouTube/Vimeo embed */
.plyr__video-embed {
  border-radius: 12px;
  overflow: hidden;
}

.plyr__video-embed iframe {
  border-radius: 12px;
}

/* Video poster */
.plyr__poster {
  background-size: cover;
}

/* Buffering state */
.plyr--video.plyr--loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 3px solid transparent;
  border-top-color: #dc3545;
  border-radius: 50%;
  animation: plyr-loading 0.8s linear infinite;
}

@keyframes plyr-loading {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .plyr--video .plyr__controls {
    padding: 30px 10px 10px;
  }

  .plyr--video .plyr__control--overlaid {
    padding: 18px;
  }

  .plyr--video .plyr__control--overlaid svg {
    width: 22px;
    height: 22px;
  }

  .plyr__captions {
    font-size: 14px;
    padding-bottom: 50px;
  }

  :root {
    --plyr-control-icon-size: 16px;
    --plyr-control-spacing: 8px;
  }
}

/* Watch progress bar below video */
.video-watch-progress {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.video-watch-progress .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #dc3545, #ff6b6b);
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* ========================================
   VIDEO CHAPTERS STYLES
   ======================================== */

.video-chapters {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.video-chapters:hover {
  border-color: rgba(220, 53, 69, 0.3);
}

.chapters-header {
  cursor: pointer;
  padding: 5px;
  margin: -5px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.chapters-header:hover {
  background: rgba(255, 255, 255, 0.05);
}

.chapters-header h6 {
  margin: 0;
  font-weight: 600;
}

.chapters-header .toggle-icon {
  transition: transform 0.3s ease;
}

.chapters-header[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.chapters-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 5px 0;
}

/* Custom scrollbar for chapters */
.chapters-list::-webkit-scrollbar {
  width: 6px;
}

.chapters-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.chapters-list::-webkit-scrollbar-thumb {
  background: rgba(220, 53, 69, 0.5);
  border-radius: 3px;
}

.chapters-list::-webkit-scrollbar-thumb:hover {
  background: rgba(220, 53, 69, 0.7);
}

.chapter-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  margin-bottom: 4px;
}

.chapter-item:last-child {
  margin-bottom: 0;
}

.chapter-item:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
}

.chapter-item.active {
  background: linear-gradient(135deg,
      rgba(220, 53, 69, 0.2),
      rgba(220, 53, 69, 0.1));
  border-color: rgba(220, 53, 69, 0.4);
}

.chapter-item.active .chapter-time {
  color: #dc3545;
}

.chapter-time {
  font-family: "Monaco", "Consolas", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  min-width: 60px;
  text-align: center;
  transition: all 0.3s ease;
}

.chapter-title {
  flex: 1;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.chapter-item:hover .chapter-title {
  color: #fff;
}

/* Chapter play indicator for active */
.chapter-item.active::before {
  content: "▶";
  position: absolute;
  left: -20px;
  font-size: 10px;
  color: #dc3545;
  animation: pulse 1s ease-in-out infinite;
}

.chapter-item {
  position: relative;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Responsive chapters */
@media (max-width: 768px) {
  .video-chapters {
    padding: 12px;
  }

  .chapter-item {
    padding: 8px 10px;
    gap: 8px;
  }
}

 /* ========================================
    FLIP CARD STYLES
    ======================================== */
 .flip-card {
     background-color: transparent;
     width: 100%;
     aspect-ratio: 16/9;
     perspective: 1000px;
     cursor: pointer;
 }

 .flip-card-inner {
     position: relative;
     width: 100%;
     height: 100%;
     text-align: center;
     transition: transform 0.8s;
     transform-style: preserve-3d;
     border-radius: 12px;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
 }

 /* Hover effect */
 .flip-card:hover .flip-card-inner {
     transform: rotateY(180deg);
 }

 .flip-card-front,
 .flip-card-back {
     position: absolute;
     width: 100%;
     height: 100%;
     -webkit-backface-visibility: hidden;
     backface-visibility: hidden;
     border-radius: 12px;
     overflow: hidden;
 }

 /* FRONT SIDE */
 .flip-card-front {
     background-color: #000;
     color: white;
 }

 .flip-card-front img {
     width: 100%;
     height: 100%;
     object-fit: cover;
 }

 .flip-card-front .duration-badge {
     position: absolute;
     bottom: 10px;
     right: 10px;
     background: rgba(0, 0, 0, 0.8);
     color: white;
     padding: 2px 6px;
     border-radius: 4px;
     font-size: 0.8rem;
     z-index: 2;
 }

 /* BACK SIDE */
 .flip-card-back {
     background-color: #212529;
     color: white;
     transform: rotateY(180deg);
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     padding: 20px;
     text-align: center;
 }

 .flip-card-back h5 {
     font-size: 1.1rem;
     margin-bottom: 10px;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
 }

 .flip-card-back p {
     font-size: 0.85rem;
     color: #ccc;
     margin-bottom: 15px;
     display: -webkit-box;
     -webkit-line-clamp: 3;
     line-clamp: 3;
     -webkit-box-orient: vertical;
     overflow: hidden;
     line-height: 1.4;
 }

 .flip-card-back .btn-action {
     width: 40px;
     height: 40px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: transform 0.2s;
 }

 .flip-card-back .btn-action:hover {
     transform: scale(1.1);
 }
/* Mobile Chapter Styles Override */
@media (max-width: 768px) {
    .chapter-time {
        font-size: 11px;
        padding: 3px 6px;
        min-width: 50px;
    }

    .chapter-title {
        font-size: 13px;
    }

    .chapters-list {
        max-height: 200px;
    }
}

/* ========================================
   PAGE TRANSITIONS (Barba.js)
   ======================================== */

/* Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #dc3545;
    /* Primary color */
    z-index: 9999;
    transform: translateX(-100%);
    pointer-events: none;
}

/* Slide Transition Animations */
.transition-slide-enter {
    transform: translateX(100%);
    opacity: 0;
}

.transition-slide-enter-active {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.transition-slide-leave {
    transform: translateX(0);
    opacity: 1;
}

.transition-slide-leave-active {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    transform: translateX(-100%);
    opacity: 0;
}
