/*
  * Author: www.droot.me
  * Made by Root (copyrighted)
*/

/* Import the same fonts as the main site */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Define variables to match main site exactly */
:root {
  --color-primary: #ef5b00;
  --color-secondary: #5e87f2;
  --color-green-button: #37c74f42;
  --color-background: #131313;
  --color-surface: #1d1d1d;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-header: #131313;
  
  --spacing-xs: 0.20rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 2rem;
  --spacing-lg: 1rem;
  --spacing-xl: 4rem;
  
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  
  --transition-speed: 0.3s;
  
  /* Video-specific variables */
  --video-category-bg: linear-gradient(135deg, rgba(29, 29, 29, 0.7), rgba(20, 20, 20, 0.7));
  --video-hover-translate: 0px; /* Changed from -3px to 0px to remove the upward movement */
}

/* Reset and base styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

/* Fix background image path */
.main-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../imgs/main@1280x720blur&dark.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: brightness(50%);
  z-index: 0;
}

/* Header Styles - Copied exactly from main site's style.css */
.header {
  background-color: var(--color-header);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
}

.header__left {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex: 0 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  transition: transform var(--transition-speed) ease;
}

.header__logo:hover {
  transform: scale(1.05);
}

.header__logo img {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-sm);
}

.header__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.gradient-icon {
  font-size: 2em;
  background: linear-gradient(to top, grey, white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--spacing-xs) var(--spacing-sm);
  transition: color var(--transition-speed) ease;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-speed) ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  transform: scaleX(1);
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all var(--transition-speed) ease;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-2px);
  background-color: rgb(68, 68, 68);
  border-color: transparent;
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
  transition: all var(--transition-speed) ease;
}

.social-link:hover svg {
  color: white;
  transform: scale(1.1);
}

/* Navigation */
.nav {
  margin-left: auto;
  margin-right: var(--spacing-lg);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__link--active {
  color: var(--color-primary);
}

.nav__item--dropdown {
  position: relative;
}

.nav__dropdown-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: none;
  border: none;
  color: var(--color-text);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
}

.nav__dropdown-content {
  position: absolute;
  top: 100%;
  left: -45px;
  background-color: var(--color-surface);
  min-width: 200px;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-speed) ease;
}

.nav__item--dropdown:hover .nav__dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-content a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
}

.nav__dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: rgba(39, 39, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.6rem;
  border-radius: 8px;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
}

/* Mobile Responsive Header Styles */
@media (max-width: 768px) {
  /* Header Mobile Styles */
  .header {
    padding: 0.7rem 0;
  }
  
  .header__container {
    padding: 0 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header__title {
    font-size: 1.3rem;
  }

  .header__logo img {
    width: 38px;
    height: 38px;
  }

  .mobile-menu-toggle {
    display: flex; /* Only show on mobile */
    margin-left: auto;
  }

  /* Mobile Navigation */
  .nav {
    width: 100%;
    margin: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
  }

  .nav.active {
    height: auto;
    display: block;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.8rem;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .nav__link {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    width: 100%;
    display: inline-block;
  }

  /* Make dropdown buttons show full contents on click */
  .nav__item--dropdown .nav__dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    min-width: auto;
    margin-top: 0.5rem;
    background: rgba(29, 29, 29, 0.5);
    border-radius: 8px;
    padding: 0.5rem;
    margin: 0.5rem 0 0.5rem 1rem;
    border-left: 2px solid var(--color-primary);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
  }

  .nav__dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 0.5rem 0;
  }

  .nav__item--dropdown.open .nav__dropdown-content {
    max-height: 200px;
    opacity: 1;
    padding: 0.5rem;
    margin: 0.5rem 0 0.5rem 1rem;
  }

  /* Fixed sticky mobile header shadow */
  .header.scrolled {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }
}

/* Footer styles */
.footer {
  background-color: var(--color-surface);
  padding: var(--spacing-xl) var(--spacing-lg);
  z-index: 1;
  position: relative;
}

.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--spacing-xl);
  position: relative;
  z-index: 1;
}

.footer__info h5 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
}

.footer__disclaimer {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: var(--spacing-md);
}

.footer__links {
  display: flex;
  gap: var(--spacing-xl);
}

.footer__column h6 {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.footer__column a {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.footer__column a:hover {
  color: var(--color-text);
}

/* Help Button Styles */
.help-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2;
}

.help-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: rgba(29, 29, 29, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.help-button__link i {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all var(--transition-speed) ease;
}

.help-button__link:hover {
  transform: translateY(-5px) scale(1.05);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(38, 38, 38, 0.95);
}

.help-button__link:hover i {
  transform: scale(1.1);
}

.help-button__tooltip {
  position: absolute;
  right: calc(100% + 15px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(29, 29, 29, 0.98);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-speed) cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.help-button__tooltip::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid rgba(29, 29, 29, 0.98);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.help-button__link:hover .help-button__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-5px);
}

/* Videos Section Styles */
.videos-section {
  padding: 4rem 1rem;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-xl);
  color: var(--color-text);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Search Box Styling */
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #ccc;
  pointer-events: none;
  z-index: 1;
}

#search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(29, 29, 29, 0.8);
  color: var(--color-text);
  font-size: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-speed) ease;
}

#search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(239, 91, 0, 0.2);
}

/* Video Categories */
.video-categories {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.video-category {
  background: var(--video-category-bg);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* For positioning scroll indicators */
}

.video-category:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-category h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.video-category h3 i {
  color: var(--color-primary);
}

/* Replace the video-items class with a more flexible layout */
.video-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
}

/* Add class for scrollable layouts */
.video-items.scrollable {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 0.5rem; /* Space for scrollbar */
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* For scrollable layouts, fix the video width */
.video-items.scrollable .video-item {
  min-width: calc(50% - 1rem); /* 50% of container minus half of the gap */
  max-width: calc(50% - 1rem);
  flex: 0 0 auto;
}

/* Horizontal scroll indicator style */
.scroll-indicator {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.scroll-indicator i {
  font-size: 1rem;
  color: var(--color-primary);
}

.video-items.scrollable:hover .scroll-indicator {
  opacity: 0.8;
}

/* Add scroll arrows on the sides */
.video-category {
  /* ...existing code... */
  position: relative;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(29, 29, 29, 0.8);
  color: white;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.scroll-arrow.left {
  left: 10px;
}

.scroll-arrow.right {
  right: 10px;
}

.video-category:hover .scroll-arrow {
  opacity: 0.7;
}

.video-category:hover .scroll-arrow:hover {
  opacity: 1;
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

/* Improve video-items scrolling */
.video-items.scrollable {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden; /* Ensure no vertical scrolling */
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 1rem; /* Space for scrollbar and scroll indicator */
  margin-bottom: 0.5rem; /* Space for scroll indicator */
  gap: 1.5rem; /* Consistent gap */
  -webkit-overflow-scrolling: touch; /* Better touch scrolling */
}

/* Enhance scrollbar styling for horizontal scroll */
.video-items.scrollable::-webkit-scrollbar {
  height: 5px;
}

.video-items.scrollable::-webkit-scrollbar-track {
  background: #4e4e4e;
  border-radius: 10px;
}

.video-items.scrollable::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

.video-items.scrollable::-webkit-scrollbar-thumb:hover {
  background: #868686;
}

/* Enhanced scrollbar styling for horizontal scroll */
.video-items.scrollable::-webkit-scrollbar {
  height: 5px;
}

.video-items.scrollable::-webkit-scrollbar-track {
  background: #4e4e4e;
  border-radius: 10px;
}

.video-items.scrollable::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

.video-items.scrollable::-webkit-scrollbar-thumb:hover {
  background: #868686;
}

/* Enhance scrollbar styling for horizontal scroll */
.video-items.scrollable::-webkit-scrollbar {
  height: 5px;
}

.video-items.scrollable::-webkit-scrollbar-track {
  background: #4e4e4e;
  border-radius: 10px;
}

.video-items.scrollable::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

.video-items.scrollable::-webkit-scrollbar-thumb:hover {
  background: #868686;
}

/* Improved styling for video items in scrollable container */
.video-items.scrollable .video-item {
  min-width: calc(50% - 0.75rem);
  max-width: calc(50% - 0.75rem);
  flex: 0 0 auto;
  margin-bottom: 0; /* No bottom margin needed since we're scrolling horizontally */
}

/* Add slight visual indication at the edges when there's more content */
.video-items.scrollable::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50px;
  /* Remove orange gradient, use a neutral dark gradient instead */
  background: linear-gradient(to right, rgba(19, 19, 19, 0), rgba(19, 19, 19, 0.3));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1; /* Ensure it's behind the video items */
}

.video-items.scrollable.has-more-right::after {
  opacity: 0.5; /* Reduced opacity */
}

/* Ensure video items are above the gradient */
.video-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  /* Use a consistent shadow that doesn't change on hover */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 2;
  /* Only watch for thumbnail transform changes */
  will-change: transform;
  cursor: pointer; /* Make entire card show pointer cursor */
}

.video-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Remove orange border, use a neutral white/gray border instead */
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  opacity: 0;
  border-radius: var(--border-radius-md);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-item:hover {
  /* Remove transform completely - no movement or scaling of the card */
  transform: none;
  /* Keep the same shadow on hover */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.video-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-thumbnail-container iframe,
.video-thumbnail-container video,
.youtube-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.youtube-thumbnail {
  object-position: center;
}

.video-item:hover .youtube-thumbnail,
.video-item:hover video:not([controls]) {
  transform: scale(1.05);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1; /* Keep this behind the video controls and links */
}

.video-play-overlay:hover {
  background: rgba(0, 0, 0, 0.4);
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
  padding: 2rem 1.2rem 1.2rem;
  transition: padding 0.3s ease; /* Change from transform to padding only */
  pointer-events: none; /* Allow clicks to pass through to play the video */
}

.video-item:hover .video-info {
  /* Remove transform to keep it in place */
  transform: none;
  /* Keep the padding change for subtle effect */
  padding-bottom: 1.5rem;
}

.video-item-title {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.video-author {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto; /* Override to make these elements clickable again */
  position: relative;
  z-index: 3; /* Ensure they're above other elements to capture clicks */
}

.video-author i {
  color: var(--color-primary);
  font-size: 0.8rem;
}

/* Enhanced Video Controls */
.video-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-item:hover .video-controls {
  opacity: 1;
}

.video-control-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: auto; /* Override to make these elements clickable again */
  position: relative;
  z-index: 3; /* Ensure they're above other elements to capture clicks */
}

.video-control-btn:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

/* Fix for video hover effect */
.video-thumbnail-container:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-item:hover .video-thumbnail-container:before {
  opacity: 1;
}

/* YouTube direct link */
.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
  pointer-events: auto; /* Override to make these elements clickable again */
  position: relative;
  z-index: 3; /* Ensure they're above other elements to capture clicks */
}

.youtube-link:hover {
  color: #ff0000;
}

.youtube-link i {
  color: #ff0000;
}

/* Mobile responsiveness for new controls */
@media (max-width: 768px) {
  .video-controls {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .video-control-btn {
    width: 32px;
    height: 32px;
  }

  .video-control-btn i {
    font-size: 0.9rem;
  }
  

}

/* Fix for video hover effect */
.video-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  cursor: pointer;
}

.video-thumbnail-container:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-item:hover .video-thumbnail-container:before {
  opacity: 1;
}

.youtube-thumbnail,
.video-thumbnail-container video:not([controls]) {
  transition: transform 0.5s ease;
  will-change: transform;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-item:hover .youtube-thumbnail,
.video-item:hover video:not([controls]) {
  transform: scale(1.05);
}

/* Play overlay improvements */
.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 1; /* Keep this behind the video controls and links */
}

.video-play-overlay:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Video info hover effect improvement */
.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0) 100%);
  padding: 2rem 1.2rem 1.2rem;
  transition: all 0.3s ease;
  z-index: 2;
  pointer-events: none; /* Allow clicks to pass through to play the video */
}

.video-item:hover .video-info {
  padding-bottom: 1.5rem;
}

/* YouTube direct link */
.youtube-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  text-decoration: none;
  pointer-events: auto; /* Override to make these elements clickable again */
  position: relative;
  z-index: 3; /* Ensure they're above other elements to capture clicks */
}

.youtube-link:hover {
  color: #ff0000;
}

.youtube-link i {
  color: #ff0000;
}

/* Mobile responsiveness for new controls */
@media (max-width: 768px) {
  .video-controls {
    top: 0.5rem;
    right: 0.5rem;
  }
  
  .video-control-btn {
    width: 32px;
    height: 32px;
  }

  .video-control-btn i {
    font-size: 0.9rem;
  }
  
  .scroll-arrow {
    width: 35px;
    height: 35px;
  }
  
  .scroll-arrow.left {
    left: 5px;
  }
  
  .scroll-arrow.right {
    right: 5px;
  }
}

/* Custom fullscreen modal */
.custom-fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.fullscreen-video-container {
  width: 100%;
  height: calc(100% - 4rem); /* Account for the title and padding */
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-video-container video,
.fullscreen-video-container iframe {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  border: none;
}

.fullscreen-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(30, 30, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.2s ease;
}

.fullscreen-close-btn:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.fullscreen-title {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  padding: 0 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Mobile styles for fullscreen modal */
@media (max-width: 768px) {
  .custom-fullscreen-modal {
    padding: 1rem;
  }
  
  .fullscreen-video-container {
    height: calc(100% - 3rem);
  }
  
  .fullscreen-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
}

/* Animations for circles background */
.area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}

.circles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
}

.circles li {
  position: absolute;
  display: block;
  list-style: none;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.035);
  animation: animate 25s linear infinite;
  bottom: -150px;
}

@keyframes animate {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
    border-radius: 0;
  }
  100% {
    transform: translateY(-1000px) rotate(720deg);
    opacity: 0;
    border-radius: 50%;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .videos-section {
    padding: 2rem 1rem;
  }
  
  .video-items {
    grid-template-columns: 1fr;
  }
  
  .video-item {
    max-width: 100%;
  }
  
  .video-info {
    padding: 1.5rem 1rem 1rem;
  }
  
  .video-item-title {
    font-size: 1rem;
  }
  
  .video-play-overlay::before {
    width: 50px;
    height: 50px;
  }
  
  .video-play-overlay::after {
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 20px solid white;
  }
  
  /* Remove this rule
  .video-type-badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  */
  
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__links {
    justify-content: center;
  }
  
  .help-button {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .help-button__link {
    width: 55px;
    height: 55px;
  }
  
  .help-button__link i {
    font-size: 1.5rem;
  }
  
  .help-button__tooltip {
    display: none;
  }
  
  .video-items.scrollable .video-item {
    min-width: 85%;
    max-width: 85%;
  }
}

/* Scrollbar Styles - Matched exactly with main site */
::-webkit-scrollbar {
  width: 10px !important; /* Added !important to ensure this rule is applied */
}

::-webkit-scrollbar-track {
  background: #4e4e4e;
}

::-webkit-scrollbar-thumb {
  background: #aaa;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #868686;
}

/* Enhance scrollbar styling for horizontal scroll only */
.video-items.scrollable::-webkit-scrollbar {
  height: 5px;
  width: auto; /* Revert width setting for horizontal scrollbars */
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #aaa #4e4e4e;
}

/* Main content area */
.main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 250px);
}