:root {
  --sidebar-width: 0px;
  --sidebar-transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --primary-color: #FF6B35;
  --primary-gradient: linear-gradient(145deg, #f97316, #ea580c);
  --telegram-gradient: linear-gradient(145deg, #0088cc, #00aced);
  --dark-bg: #0f172a;
  --light-bg: #ffffff;
}

/* ========== BASE STYLES ========== */
body {
  transition: all 0.5s ease;
  padding-left: var(--sidebar-width);
  background-color: var(--light-bg) !important;
  color: #111827;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.dark-mode {
  background-color: #000000 !important;
  color: #e5e7eb;
}

/* ========== TELEGRAM BUTTONS ========== */
.telegram-sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--telegram-gradient);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 
    0 4px 6px rgba(0, 136, 204, 0.3),
    0 10px 15px rgba(0, 136, 204, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transform: perspective(500px) rotateX(0deg) translateZ(0);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 1;
}

.telegram-sidebar-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  z-index: -1;
  transition: all 0.4s ease;
  opacity: 0.5;
}

.telegram-sidebar-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
  transition: all 0.6s ease;
}

.telegram-sidebar-btn:hover {
  transform: perspective(500px) rotateX(10deg) translateY(-5px) translateZ(20px);
  box-shadow: 
    0 7px 10px rgba(0, 136, 204, 0.4),
    0 15px 25px rgba(0, 136, 204, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.telegram-sidebar-btn:hover::before {
  opacity: 0.8;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 50%);
}

.telegram-sidebar-btn:hover::after {
  opacity: 1;
  transform: scale(50, 50) translate(-50%, -50%);
}

.telegram-sidebar-btn:active {
  transform: perspective(500px) rotateX(10deg) translateY(0) translateZ(10px);
  box-shadow: 
    0 4px 6px rgba(0, 136, 204, 0.4),
    0 5px 15px rgba(0, 136, 204, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: all 0.1s ease;
}

.telegram-sidebar-btn i {
  margin-right: 0.75rem;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.telegram-sidebar-btn:hover i {
  transform: scale(1.1) rotate(-10deg);
}

.telegram-btn {
  background: var(--telegram-gradient);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: 
    0 4px 6px rgba(0, 136, 204, 0.3),
    0 8px 15px rgba(0, 136, 204, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 1rem;
  z-index: 1;
}

.telegram-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%);
  z-index: -1;
  transition: all 0.4s ease;
  opacity: 0.5;
}

.telegram-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 6px 12px rgba(0, 136, 204, 0.4),
    0 12px 20px rgba(0, 136, 204, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.telegram-btn:hover::after {
  opacity: 0.8;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 50%);
}

.telegram-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 4px 6px rgba(0, 136, 204, 0.4),
    0 5px 15px rgba(0, 136, 204, 0.3);
  transition: all 0.1s ease;
}

.telegram-btn i {
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.telegram-btn:hover i {
  transform: scale(1.1);
}

@keyframes pulse-telegram {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(0, 136, 204, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
  }
}

.telegram-btn.pulse {
  animation: pulse-telegram 2s infinite;
}

body.dark-mode .telegram-sidebar-btn,
body.dark-mode .telegram-btn {
  box-shadow: 
    0 4px 6px rgba(0, 136, 204, 0.4),
    0 10px 20px rgba(0, 136, 204, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

body.dark-mode .telegram-sidebar-btn:hover,
body.dark-mode .telegram-btn:hover {
  box-shadow: 
    0 8px 15px rgba(0, 136, 204, 0.5),
    0 15px 30px rgba(0, 136, 204, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* ========== SIDEBAR STYLES ========== */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all var(--sidebar-transition);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 50%;
  max-width: 300px;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 50;
  transition: left var(--sidebar-transition);
  overflow-y: auto;
  transform: translateX(-100%);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

body.dark-mode .sidebar {
  background: rgba(13, 13, 13, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar.active {
  left: 0;
  transform: translateX(0);
}

.sidebar-header {
  background: var(--primary-color);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-content {
  padding: 1.5rem;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 0.5rem;
  position: relative;
}

.sidebar-menu li:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2) 0%, rgba(255, 140, 0, 0.5) 50%, rgba(249, 115, 22, 0.2) 100%);
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #111827;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .sidebar-menu a {
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #111827;
  transform: translateX(5px);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .sidebar-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: #f97316;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}

.sidebar-menu a:hover::before {
  transform: scaleY(1);
}

.sidebar-menu i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 30;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.sidebar-toggle i {
  color: white;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.sidebar-toggle.active i {
  transform: rotate(180deg);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  padding: 0.75rem 1.25rem;
  color: #111827;
  cursor: pointer;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  margin-top: 1.5rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

body.dark-mode .theme-toggle-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e5e5;
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.3);
}

body.dark-mode .theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.theme-toggle-btn::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: 0.5s;
}

.theme-toggle-btn:hover::before {
  left: 100%;
}

.theme-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-icon i {
  font-size: 1.1rem;
  transition: all 0.5s ease;
}

.theme-text {
  transition: all 0.3s ease;
}

/* ========== VIDEO STYLES ========== */
.video-container {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: linear-gradient(145deg, #ffffff, #f3f4f6);
  border: none;
  aspect-ratio: 16/9;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateX(0deg) translateZ(0);
}

body.dark-mode .video-container {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.video-container:hover {
  transform: perspective(1000px) rotateX(5deg) translateY(-8px) translateZ(20px);
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

body.dark-mode .video-container:hover {
  box-shadow: 
    0 15px 30px rgba(0, 0, 0, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.25);
}

.video-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  transform: scale(1);
  filter: brightness(0.95);
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

.video-container:hover .video-thumbnail {
  transform: scale(1.05);
  filter: brightness(1);
}

.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 20;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.play-icon i {
  color: white;
  font-size: 1.5rem;
  margin-left: 3px;
  transition: all 0.3s ease;
}

.video-container:hover .play-icon {
  background: rgba(249, 115, 22, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.video-container:hover .play-icon i {
  transform: scale(1.2);
}

.duration-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  z-index: 30;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: all 0.3s ease;
}

.video-container:hover .duration-badge {
  background: rgba(249, 115, 22, 0.9);
  transform: translateY(-5px);
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  padding: 60px 15px 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0.0) 75%, transparent 100%);
  transform: translateY(0);
  transition: all 0.5s ease;
}

.video-container:hover .video-info {
  padding-bottom: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.0) 75%, transparent 100%);
}

.video-index {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(249, 115, 22, 0.9);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  z-index: 30;
  transition: all 0.3s ease;
}

.video-container:hover .video-index {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-container:hover .video-title {
  font-size: 17px;
}

.video-views {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-size: 14px;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.video-container:hover .video-views {
  transform: translateY(-5px);
}

.video-views i {
  color: #f97316;
  transition: all 0.3s ease;
}

.video-container:hover .video-views i {
  color: white;
  transform: scale(1.2);
}

@keyframes videoHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.highlight-video {
  animation: videoHighlight 1.5s ease-out;
}

.video-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

body.dark-mode .video-skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
}

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

/* ========== ARTISTS MODAL ========== */
.artists-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.artists-modal.active {
  opacity: 1;
  visibility: visible;
}

.artists-container {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(249, 115, 22, 0.3);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.artists-modal.active .artists-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.artists-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(249, 115, 22, 0.5);
  position: relative;
}

.artists-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, #f97316, transparent);
}

.artists-title {
  font-size: 2rem;
  font-weight: bold;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.close-artists {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-artists:hover {
  color: #f97316;
  transform: rotate(90deg);
}

.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.artist-btn {
  background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1rem;
  color: #e5e5e5;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.artist-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0) 50%);
  z-index: 1;
  transition: all 0.4s ease;
}

.artist-btn:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  color: white;
  border-color: rgba(249, 115, 22, 0.5);
}

.artist-btn:hover::before {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3) 0%, rgba(249, 115, 22, 0.1) 50%);
}

.artist-btn:active {
  transform: translateY(0) scale(0.98);
}

.artist-index {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(249, 115, 22, 0.2);
  color: #f97316;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.artist-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #f97316;
  transition: all 0.3s ease;
}

.artist-btn:hover .artist-icon {
  transform: scale(1.2);
  color: #ff8c00;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.artist-btn:nth-child(odd):hover {
  animation: float 3s ease-in-out infinite;
}

.artist-btn:nth-child(even):hover {
  animation: float 3.5s ease-in-out infinite;
}

/* ========== DARK MODE OVERRIDES ========== */
body.dark-mode .text-gray-900 {
  color: #e5e7eb !important;
}

body.dark-mode .bg-white {
  background-color: #1e293b !important;
}

body.dark-mode .text-gray-500 {
  color: #9ca3af !important;
}

body.dark-mode .border-gray-700 {
  border-color: #374151 !important;
}

/* ========== PAGINATION ========== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  width: 100%;
  position: relative;
  gap: 2px;
}

.pagination-scroll-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: calc(100% - 160px);
  margin: 0 2px;
}

.pagination-scroll {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex-grow: 1;
}

.pagination-scroll::-webkit-scrollbar {
  display: none;
}

.pagination-numbers {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  width: max-content;
  margin: 0 auto;
}

.page-number-3d {
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  margin: 0.5%;
  background: linear-gradient(145deg, #e5e7eb, #d1d5db);
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1),
              -1px -1px 4px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.page-number-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
}

.active-page-3d {
  background: var(--primary-gradient);
  color: white !important;
  box-shadow: 5px 5px 15px rgba(249, 115, 22, 0.3) !important;
  transform: scale(1.1);
  z-index: 1;
  animation: pulse 2s infinite;
}

body.dark-mode .page-number-3d {
  background: linear-gradient(145deg, #374151, #1f2937);
  color: #d1d5db;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3),
              -1px -1px 4px rgba(255, 255, 255, 0.05);
}

body.dark-mode .page-number-3d:hover {
  color: #f3f4f6;
}

body.dark-mode .active-page-3d {
  background: var(--primary-gradient) !important;
  color: white !important;
  box-shadow: 5px 5px 15px rgba(249, 115, 22, 0.3) !important;
}

.nav-btn {
  min-width: 70px;
  height: 44px;
  border-radius: 8px;
  background: var(--primary-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: static;
  font-size: 14px;
  gap: 6px;
  padding: 0 12px;
}

.nav-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

/* ========== SEARCH STYLES ========== */
.search-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.search-box {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 46px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 0 1rem;
}

.search-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(249, 115, 22, 0.5);
}

body.dark-mode .search-box {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(71, 85, 105, 0.8);
}

body.dark-mode .search-box:hover {
  border-color: rgba(249, 115, 22, 0.7);
}

body .search-box {
  background: #ffffff;
  border-color: rgba(71, 85, 105, 0.8);
}

#searchInput {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #000000;
  caret-color: #f97316;
}

body.dark-mode #searchInput {
  color: #f3f4f6;
}

#searchInput::placeholder {
  color: #6b7280;
  opacity: 0.8;
}

body.dark-mode #searchInput::placeholder {
  color: #94a3b8;
}

#searchBtn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#searchBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

#searchBtn i {
  font-size: 0.875rem;
}

/* Search Dropdown */
#searchDropdown {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(209, 213, 219, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.dark-mode #searchDropdown {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(71, 85, 105, 0.8);
}

/* Search Tabs */
#searchTypeTabs {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(209, 213, 219, 0.5);
}

body.dark-mode #searchTypeTabs {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(71, 85, 105, 0.5);
}

.search-type-tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.search-type-tab:not(.active) {
  background: rgba(229, 231, 235, 0.7);
  color: #4b5563;
}

body.dark-mode .search-type-tab:not(.active) {
  background: rgba(30, 41, 59, 0.7);
  color: #94a3b8;
}

.search-type-tab.active {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 2px 5px rgba(249, 115, 22, 0.3);
}

.search-type-tab:hover:not(.active) {
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Search Results */
.search-results {
  padding: 0.75rem;
}

/* Video Result Item */
.video-result-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 0.5rem;
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.video-result-item:hover {
  background: rgba(249, 115, 22, 0.1);
  transform: translateX(3px);
  border-color: rgba(249, 115, 22, 0.3);
}

body.dark-mode .video-result-item {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.video-result-thumbnail {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid rgba(249, 115, 22, 0.2);
  transition: all 0.2s ease;
}

.video-result-item:hover .video-result-thumbnail {
  transform: scale(1.02);
  border-color: rgba(249, 115, 22, 0.4);
}

.video-result-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-result-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: #1f2937;
  font-size: 0.8125rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.dark-mode .video-result-title {
  color: #f8fafc;
}

.video-result-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #6b7280;
}

body.dark-mode .video-result-meta {
  color: #94a3b8;
}

.video-result-meta i {
  color: #f97316;
  margin-right: 0.25rem;
  font-size: 0.75rem;
}

/* Artist Result Item */
.artist-result-item {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
  margin-bottom: 0.5rem;
  background: rgba(249, 115, 22, 0.05);
  border: 1px solid rgba(249, 115, 22, 0.1);
}

.artist-result-item:hover {
  background: rgba(249, 115, 22, 0.1);
  transform: translateX(3px);
  border-color: rgba(249, 115, 22, 0.3);
}

.artist-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 0.75rem;
  transition: all 0.2s ease;
  background: var(--primary-gradient);
  color: white;
}

.artist-result-item:hover .artist-avatar {
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.artist-name {
  flex: 1;
  font-weight: 500;
  color: #1f2937;
  font-size: 0.8125rem;
}

body.dark-mode .artist-name {
  color: #f8fafc;
}

.artist-result-item .icon {
  font-size: 1rem;
  color: #f97316;
  transition: all 0.2s ease;
}

.artist-result-item:hover .icon {
  transform: scale(1.15);
  color: #ea580c;
}

/* Load More Button */
.load-more-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--primary-gradient);
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(249, 115, 22, 0.3);
}

.load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* Video Highlight Animation */
@keyframes video-highlight-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.8);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(249, 115, 22, 0.2);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
  }
}

.video-highlight-animation {
  position: relative;
  z-index: 20;
  animation: video-highlight-glow 2s ease-out;
  border-radius: 12px;
  overflow: hidden;
}

/* ========== SECURITY STYLES ========== */
.security-alert {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #ef4444;
  color: white;
  padding: 10px 15px;
  border-radius: 10px;
  z-index: 9999;
  animation: shake 0.5s;
  display: flex;
  align-items: center;
  font-family: inherit;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1024px) {
  .video-title {
    font-size: 15px;
  }
  
  .video-views {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 60%;
  }
  
  .artists-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .pagination-scroll-container {
    max-width: calc(100% - 140px);
  }
  
  .telegram-btn {
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
  }
  
  .telegram-sidebar-btn {
    padding: 0.9rem 1.3rem;
  }
  
  .artists-title {
    font-size: 1.8rem;
  }
  
  .artist-icon {
    font-size: 1.8rem;
  }
  
  .video-container:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px) translateZ(10px);
  }
  
  .play-icon {
    width: 50px;
    height: 50px;
  }
  
  .video-index {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
  
  .search-box {
    height: 44px;
  }
  
  #searchBtn {
    width: 34px;
    height: 34px;
  }
  
  .video-result-item {
    grid-template-columns: 70px 1fr;
    gap: 0.5rem;
  }
  
  .video-result-thumbnail {
    height: 52px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 70%;
  }
  
  .page-number-3d {
    min-width: 40px;
    height: 40px;
    font-size: 15px;
  }
  
  .nav-btn {
    min-width: 60px;
    height: 40px;
    font-size: 13px;
    padding: 0 8px;
  }
  
  .telegram-btn {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }
  
  .telegram-btn i {
    font-size: 1.2rem;
  }
  
  .telegram-sidebar-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .telegram-sidebar-btn i {
    font-size: 1.1rem;
  }
  
  .video-info {
    padding: 30px 10px 10px;
  }
  
  .video-title {
    font-size: 14px;
    bottom: 8px;
  }
  
  .video-views {
    bottom: 8px;
    font-size: 12px;
  }
  
  .pagination-scroll-container {
    max-width: calc(100% - 120px);
  }
  
  .artists-title {
    font-size: 1.5rem;
  }
  
  .artist-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 80%;
  }
  
  .sidebar-toggle {
    width: 40px;
    height: 40px;
    top: 15px;
    left: 15px;
  }
  
  .page-number-3d {
    min-width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .nav-btn {
    min-width: 50px;
    height: 36px;
    font-size: 12px;
    padding: 0 6px;
    gap: 4px;
  }
  
  .telegram-btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
  }
  
  .telegram-btn i {
    font-size: 1.1rem;
  }
  
  .telegram-sidebar-btn {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }
  
  .telegram-sidebar-btn i {
    font-size: 1rem;
  }
  
  .video-info {
    padding: 25px 5px 5px;
  }
  
  .video-title {
    font-size: 12px;
    bottom: 5px;
    left: 5px;
  }
  
  .video-views {
    bottom: 5px;
    right: 5px;
    font-size: 11px;
  }
  
  .duration-badge {
    top: 10px;
    right: 10px;
    font-size: 10px;
  }
  
  .video-index {
    top: 10px;
    left: 10px;
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  
  .artists-container {
    padding: 1rem;
  }
  
  .artist-btn {
    padding: 0.5rem;
    font-size: 14px;
  }
  
  .pagination-scroll-container {
    max-width: calc(100% - 100px);
  }
  
  .pagination-numbers {
    gap: 4px;
  }
  
  .artists-grid {
    grid-template-columns: 1fr;
  }
  
  .artists-title {
    font-size: 1.3rem;
  }
  
  .artist-icon {
    font-size: 1.3rem;
  }
  
  .search-box {
    height: 42px;
    padding: 0 0.75rem;
  }
  
  #searchInput {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
  
  #searchBtn {
    width: 32px;
    height: 32px;
  }
  
  .search-type-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-type-tab {
    width: 100%;
  }
}