/* YouTube-Style Profile Page CSS */

/* Light Theme (Default) */
:root {
  --yt-bg-primary: #ffffff;
  --yt-bg-secondary: #f9f9f9;
  --yt-bg-tertiary: #f1f1f1;
  --yt-text-primary: #0f0f0f;
  --yt-text-secondary: #606060;
  --yt-text-muted: #909090;
  --yt-text-inverse: #ffffff;
  --yt-border-light: #e0e0e0;
  --yt-border-medium: #d0d0d0;
  --yt-shadow: rgba(0, 0, 0, 0.1);
  --yt-shadow-hover: rgba(0, 0, 0, 0.15);
  --yt-overlay: rgba(0, 0, 0, 0.4);
  --yt-card-bg: #ffffff;
  --yt-card-hover: #f9f9f9;
}

/* Dark Theme */
[data-theme="dark"] {
  --yt-bg-primary: #0f0f0f;
  --yt-bg-secondary: #272727;
  --yt-bg-tertiary: #3f3f3f;
  --yt-text-primary: #ffffff;
  --yt-text-secondary: #aaaaaa;
  --yt-text-muted: #717171;
  --yt-text-inverse: #0f0f0f;
  --yt-border-light: #404040;
  --yt-border-medium: #606060;
  --yt-shadow: rgba(0, 0, 0, 0.3);
  --yt-shadow-hover: rgba(0, 0, 0, 0.5);
  --yt-overlay: rgba(0, 0, 0, 0.6);
  --yt-card-bg: #272727;
  --yt-card-hover: #3f3f3f;
}

/* Profile Container */
.yt-profile-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--yt-card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 6px var(--yt-shadow);
  margin-bottom: 24px;
  border: 1px solid var(--yt-border-light);
}

/* Cover Section */
.yt-profile-cover {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, #A0043C 0%, #003151 50%, #C19778 100%);
  overflow: hidden;
}

.yt-cover-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
    rgba(160, 4, 60, 0.8) 0%, 
    rgba(0, 49, 81, 0.6) 50%, 
    rgba(193, 151, 120, 0.4) 100%
  );
}

.yt-cover-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
  background-size: 30px 30px, 50px 50px;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateX(0) translateY(0); }
  25% { transform: translateX(-10px) translateY(-5px); }
  50% { transform: translateX(10px) translateY(-10px); }
  75% { transform: translateX(-5px) translateY(-15px); }
  100% { transform: translateX(0) translateY(0); }
}

/* Profile Info Section */
.yt-profile-info {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  position: relative;
}

.yt-profile-avatar-section {
  position: relative;
  margin-top: -60px;
}

.yt-profile-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--yt-bg-primary);
  box-shadow: 0 10px 25px var(--yt-shadow-hover);
  background: var(--yt-bg-secondary);
}

.yt-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yt-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--yt-text-inverse);
  background: linear-gradient(135deg, #A0043C, #003151);
}

.yt-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: linear-gradient(45deg, #A0043C, #003151, #C19778);
  z-index: -1;
  animation: pulse-ring 3s infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.yt-profile-avatar:hover .yt-avatar-img {
  transform: scale(1.05);
}

/* Profile Details */
.yt-profile-details {
  flex: 1;
  min-width: 0;
}

.yt-profile-header {
  margin-bottom: 8px;
}

.yt-profile-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--yt-text-primary);
  margin: 0;
  line-height: 1.2;
}

.yt-verified-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #A0043C;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.75rem;
}

.yt-profile-handle {
  font-size: 0.875rem;
  color: var(--yt-text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.yt-profile-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.yt-stat-item {
  font-size: 0.875rem;
  color: var(--yt-text-secondary);
}

.yt-stat-item strong {
  color: var(--yt-text-primary);
  font-weight: 600;
}

.yt-stat-separator {
  color: var(--yt-text-muted);
  font-size: 0.875rem;
}

.yt-profile-description {
  line-height: 1.5;
}

.yt-description-text {
  font-size: 0.875rem;
  color: var(--yt-text-primary);
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.yt-description-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.yt-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--yt-text-secondary);
}

.yt-meta-item i {
  color: #A0043C;
}

/* Profile Actions */
.yt-profile-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.yt-action-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.yt-btn-primary {
  background: var(--yt-text-primary);
  color: var(--yt-bg-primary);
}

.yt-btn-primary:hover {
  background: var(--yt-text-secondary);
  color: var(--yt-bg-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.yt-btn-secondary {
  background: var(--yt-bg-secondary);
  color: var(--yt-text-primary);
  border: 1px solid var(--yt-border-light);
  padding: 9px 15px;
}

.yt-btn-secondary:hover {
  background: var(--yt-bg-tertiary);
  border-color: var(--yt-border-medium);
  transform: translateY(-1px);
  color: var(--yt-text-primary);
  text-decoration: none;
}

/* Analytics Cards */
.yt-analytics-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}

.yt-analytics-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--yt-card-bg);
  border-radius: 12px;
  border: 1px solid var(--yt-border-light);
  transition: all 0.3s ease;
}

.yt-analytics-card:hover {
  background: var(--yt-card-hover);
  border-color: var(--yt-border-medium);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px var(--yt-shadow);
}

.yt-analytics-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #A0043C, #003151);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1.25rem;
}

.yt-analytics-content {
  flex: 1;
}

.yt-analytics-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yt-text-primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.yt-analytics-label {
  font-size: 0.75rem;
  color: var(--yt-text-secondary);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Tab Navigation */
.yt-tab-navigation {
  border-bottom: 1px solid var(--yt-border-light);
  background: var(--yt-bg-primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.yt-tab-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 24px;
}

.yt-tab-button {
  position: relative;
  padding: 16px 0;
  margin-right: 32px;
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--yt-text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.yt-tab-button:hover {
  color: var(--yt-text-primary);
}

.yt-tab-button.active {
  color: var(--yt-text-primary);
}

.yt-tab-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #A0043C;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.yt-tab-button.active .yt-tab-indicator {
  transform: scaleX(1);
}

/* Tab Content */
.yt-tab-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.yt-tab-pane {
  display: none;
}

.yt-tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Styling */
.yt-section {
  margin-bottom: 48px;
}

.yt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.yt-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--yt-text-primary);
  margin: 0;
}

.yt-section-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #A0043C;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.yt-section-link:hover {
  color: #8A0336;
}

/* Video Grid */
.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.yt-video-card {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.yt-video-card:hover {
  transform: translateY(-4px);
}

.yt-video-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--yt-bg-secondary);
  margin-bottom: 12px;
}

.yt-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.yt-video-card:hover .yt-thumbnail-img {
  transform: scale(1.05);
}

.yt-thumbnail-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--yt-bg-secondary), var(--yt-bg-tertiary));
  color: var(--yt-text-muted);
  font-size: 2rem;
}

.yt-play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yt-video-card:hover .yt-play-overlay {
  opacity: 1;
}

.yt-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.yt-media-type-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}

.yt-video-overlay {
  position: absolute;
  inset: 0;
  background: var(--yt-overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-video-card:hover .yt-video-overlay {
  opacity: 1;
}

.yt-video-actions {
  display: flex;
  gap: 8px;
}

.yt-action-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f0f0f;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.yt-action-btn:hover {
  background: var(--yt-text-inverse);
  transform: scale(1.1);
}

.yt-video-info {
  padding: 0 4px;
}

.yt-video-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--yt-text-primary);
  margin: 0 0 6px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-video-metadata {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--yt-text-secondary);
}

.yt-views, .yt-timestamp {
  white-space: nowrap;
}

.yt-separator {
  color: var(--yt-text-muted);
}

/* Empty States */
.yt-empty-state {
  text-align: center;
  padding: 64px 24px;
}

.yt-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #A0043C, #003151);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
}

.yt-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--yt-text-primary);
  margin: 0 0 12px 0;
}

.yt-empty-description {
  font-size: 1rem;
  color: var(--yt-text-secondary);
  margin: 0 0 24px 0;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .yt-profile-info {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  
  .yt-profile-avatar-section {
    align-self: center;
    margin-top: -40px;
  }
  
  .yt-profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .yt-profile-name {
    font-size: 1.5rem;
    text-align: center;
  }
  
  .yt-profile-stats {
    justify-content: center;
  }
  
  .yt-profile-actions {
    justify-content: center;
  }
  
  .yt-analytics-cards {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    padding: 0 16px 16px;
  }
  
  .yt-tab-container {
    padding: 0 16px;
  }
  
  .yt-tab-button {
    margin-right: 24px;
  }
  
  .yt-tab-content {
    padding: 16px;
  }
  
  .yt-video-grid {
    grid-template-columns: 1fr;
  }
}

/* Video List View */
.yt-video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.yt-video-list-item {
  display: flex;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--yt-card-bg);
  border: 1px solid var(--yt-border-light);
  transition: all 0.3s ease;
}

.yt-video-list-item:hover {
  background: var(--yt-card-hover);
  border-color: var(--yt-border-medium);
  transform: translateY(-2px);
  box-shadow: 0 1px 3px var(--yt-shadow);
}

.yt-list-thumbnail {
  position: relative;
  width: 168px;
  height: 94px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--yt-bg-secondary);
  flex-shrink: 0;
}

.yt-list-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-list-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--yt-bg-tertiary);
  color: var(--yt-text-muted);
  font-size: 1.5rem;
}

.yt-list-duration {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 500;
}

.yt-list-content {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.yt-list-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--yt-text-primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-list-metadata {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--yt-text-secondary);
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.yt-list-type {
  background: #A0043C;
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
}

.yt-list-description {
  font-size: 0.875rem;
  color: var(--yt-text-secondary);
  line-height: 1.4;
}

.yt-list-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
}

/* Section Controls */
.yt-section-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.yt-filter-btn {
  padding: 8px 16px;
  background: var(--yt-bg-secondary);
  border: 1px solid var(--yt-border-light);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--yt-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.yt-filter-btn:hover {
  background: var(--yt-bg-tertiary);
  border-color: var(--yt-border-medium);
}

.yt-filter-btn.active {
  background: var(--yt-text-primary);
  color: var(--yt-bg-primary);
  border-color: var(--yt-text-primary);
}

.yt-sort-dropdown {
  position: relative;
}

.yt-sort-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--yt-bg-secondary);
  border: 1px solid var(--yt-border-light);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--yt-text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.yt-sort-btn:hover {
  background: var(--yt-bg-tertiary);
  border-color: var(--yt-border-medium);
}

.yt-sort-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--yt-card-bg);
  border: 1px solid var(--yt-border-light);
  border-radius: 8px;
  box-shadow: 0 10px 25px var(--yt-shadow-hover);
  min-width: 180px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.yt-sort-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.yt-sort-option {
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--yt-text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.yt-sort-option:hover {
  background: var(--yt-bg-secondary);
}

.yt-sort-option.active {
  background: #A0043C;
  color: #ffffff;
}

/* Load More */
.yt-load-more {
  text-align: center;
  margin-top: 32px;
}

/* About Tab Specific */
.yt-about-content {
  max-width: 800px;
}

.yt-about-section {
  margin-bottom: 32px;
}

.yt-about-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--yt-text-primary);
  margin: 0 0 16px 0;
}

.yt-about-description {
  font-size: 1rem;
  color: var(--yt-text-primary);
  line-height: 1.6;
  white-space: pre-wrap;
}

.yt-no-description {
  color: var(--yt-text-secondary);
  font-style: italic;
}

.yt-about-details {
  display: grid;
  gap: 32px;
}

.yt-detail-section {
  background: var(--yt-card-bg);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--yt-border-light);
}

.yt-detail-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--yt-text-primary);
  margin: 0 0 16px 0;
}

.yt-detail-grid {
  display: grid;
  gap: 16px;
}

.yt-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--yt-border-light);
}

.yt-detail-item:last-child {
  border-bottom: none;
}

.yt-detail-label {
  font-size: 0.875rem;
  color: var(--yt-text-secondary);
  font-weight: 500;
}

.yt-detail-value {
  font-size: 0.875rem;
  color: var(--yt-text-primary);
  font-weight: 600;
}

.yt-stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yt-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--yt-bg-primary);
  border-radius: 8px;
  border: 1px solid var(--yt-border-light);
}

.yt-stat-label {
  font-size: 0.875rem;
  color: var(--yt-text-secondary);
  font-weight: 500;
}

.yt-stat-value {
  font-size: 0.875rem;
  color: var(--yt-text-primary);
  font-weight: 600;
}

/* YouTube-Style Edit Forms */
.yt-edit-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background: var(--yt-bg-primary);
    min-height: 100vh;
}

.yt-edit-header {
    margin-bottom: 32px;
    border-bottom: 1px solid var(--yt-border-color);
    padding-bottom: 24px;
}

.yt-edit-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.yt-edit-title-section {
    flex: 1;
}

.yt-edit-title {
    font-size: 28px;
    font-weight: 500;
    color: var(--yt-text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-edit-title i {
    font-size: 24px;
    color: var(--yt-accent-color);
}

.yt-edit-subtitle {
    font-size: 14px;
    color: var(--yt-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.yt-edit-actions {
    display: flex;
    gap: 12px;
}

/* Edit Form Sections */
.yt-edit-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.yt-edit-section {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
}

.yt-edit-section:hover {
    border-color: var(--yt-accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yt-section-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--yt-border-color);
    padding-bottom: 16px;
}

.yt-section-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--yt-text-primary);
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-section-title i {
    font-size: 18px;
    color: var(--yt-accent-color);
}

.yt-section-description {
    font-size: 14px;
    color: var(--yt-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Form Grid Layout */
.yt-form-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yt-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.yt-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yt-form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--yt-text-primary);
    margin: 0;
}

.yt-form-input,
.yt-form-select,
.yt-form-textarea {
    padding: 12px 16px;
    border: 1px solid var(--yt-border-color);
    border-radius: 8px;
    background: var(--yt-bg-primary);
    color: var(--yt-text-primary);
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.yt-form-input:focus,
.yt-form-select:focus,
.yt-form-textarea:focus {
    outline: none;
    border-color: var(--yt-accent-color);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.yt-form-input:read-only {
    background: var(--yt-bg-tertiary);
    color: var(--yt-text-secondary);
    cursor: not-allowed;
}

.yt-form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.yt-input-group {
    display: flex;
    align-items: center;
}

.yt-input-prefix {
    background: var(--yt-bg-tertiary);
    border: 1px solid var(--yt-border-color);
    border-right: none;
    border-radius: 8px 0 0 8px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--yt-text-secondary);
    font-weight: 500;
}

.yt-input-group .yt-form-input {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

.yt-form-help {
    font-size: 12px;
    color: var(--yt-text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* Avatar Editor */
.yt-avatar-editor {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yt-avatar-preview-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.yt-avatar-preview-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.yt-avatar-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yt-border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.yt-avatar-preview:hover {
    border-color: var(--yt-accent-color);
}

.yt-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--yt-accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.yt-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.yt-avatar-preview:hover .yt-avatar-overlay {
    opacity: 1;
}

.yt-avatar-overlay i {
    font-size: 20px;
    color: white;
}

.yt-avatar-overlay span {
    font-size: 12px;
    color: white;
    font-weight: 500;
}

.yt-avatar-info {
    flex: 1;
}

.yt-avatar-info-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--yt-text-primary);
    margin: 0 0 4px 0;
}

.yt-avatar-info-text {
    font-size: 14px;
    color: var(--yt-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.yt-avatar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Action Buttons */
.yt-action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.yt-btn-primary {
    background: var(--yt-accent-color);
    color: white;
}

.yt-btn-primary:hover {
    background: #5b96f7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.yt-btn-secondary {
    background: var(--yt-bg-tertiary);
    color: var(--yt-text-primary);
    border: 1px solid var(--yt-border-color);
}

.yt-btn-secondary:hover {
    background: var(--yt-bg-hover);
    border-color: var(--yt-accent-color);
    transform: translateY(-1px);
}

/* Form Actions */
.yt-edit-actions-bottom {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--yt-border-color);
}

.yt-actions-container {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Alert Styles */
.yt-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.yt-alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.yt-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-alert-danger .yt-alert-icon {
    color: #ef4444;
}

.yt-alert-content {
    flex: 1;
}

.yt-alert-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--yt-text-primary);
    margin: 0 0 8px 0;
}

.yt-alert-list {
    margin: 0;
    padding-left: 16px;
    color: var(--yt-text-secondary);
    font-size: 14px;
}

.yt-alert-list li {
    margin-bottom: 4px;
}

/* Edit Form Responsive Design */
@media (max-width: 768px) {
    .yt-edit-container {
        padding: 16px;
    }
    
    .yt-edit-header-content {
        flex-direction: column;
        gap: 16px;
    }
    
    .yt-edit-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .yt-action-button {
        flex: 1;
        justify-content: center;
    }
    
    .yt-form-row {
        grid-template-columns: 1fr;
    }
    
    .yt-avatar-preview-section {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
    }
    
    .yt-avatar-preview-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .yt-actions-container {
        flex-direction: column-reverse;
    }
    
    .yt-action-button {
        justify-content: center;
    }
}

/* Cropper Modal Styling */
#avatarCropModal .modal-content {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-color);
}

#avatarCropModal .modal-header {
    border-bottom: 1px solid var(--yt-border-color);
    background: var(--yt-bg-primary);
}

#avatarCropModal .modal-title {
    color: var(--yt-text-primary);
    font-weight: 500;
}

#avatarCropModal .btn-close {
    filter: invert(1);
}

#avatarCropModal .modal-body {
    padding: 24px;
}

.crop-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crop-image-container {
    border: 1px solid var(--yt-border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--yt-bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.crop-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crop-controls .btn {
    border-radius: 6px;
    font-size: 12px;
    padding: 6px 12px;
    transition: all 0.2s ease;
}

.crop-controls .btn-outline-secondary {
    border-color: var(--yt-border-color);
    color: var(--yt-text-primary);
    background: var(--yt-bg-primary);
}

.crop-controls .btn-outline-secondary:hover {
    background: var(--yt-bg-hover);
    border-color: var(--yt-accent-color);
    color: var(--yt-accent-color);
}

#avatarCropModal .modal-footer {
    border-top: 1px solid var(--yt-border-color);
    background: var(--yt-bg-primary);
}

#avatarCropModal .btn-secondary {
    background: var(--yt-bg-tertiary);
    border-color: var(--yt-border-color);
    color: var(--yt-text-primary);
}

#avatarCropModal .btn-secondary:hover {
    background: var(--yt-bg-hover);
    border-color: var(--yt-accent-color);
}

#avatarCropModal .btn-primary {
    background: var(--yt-accent-color);
    border-color: var(--yt-accent-color);
}

#avatarCropModal .btn-primary:hover {
    background: #5b96f7;
    border-color: #5b96f7;
}

/* Cropper.js theme customization */
.cropper-container {
    background: var(--yt-bg-primary) !important;
}

.cropper-view-box {
    outline: 2px solid var(--yt-accent-color) !important;
}

.cropper-face {
    background: rgba(96, 165, 240, 0.1) !important;
}

.cropper-line {
    background: var(--yt-accent-color) !important;
}

.cropper-point {
    background: var(--yt-accent-color) !important;
    width: 8px !important;
    height: 8px !important;
}

.cropper-dashed {
    border-color: rgba(96, 165, 240, 0.5) !important;
}

/* Watch Later Badge */
.yt-watch-later-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--yt-accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dashboard Specific Styles */
.yt-dashboard-header {
    margin-bottom: 32px;
}

.yt-dashboard-banner {
    background: linear-gradient(135deg, var(--yt-bg-secondary) 0%, var(--yt-bg-tertiary) 100%);
    border: 1px solid var(--yt-border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
}

.yt-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.yt-channel-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.yt-channel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--yt-primary-color);
    background: var(--yt-bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yt-channel-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--yt-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.yt-channel-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.yt-department-tag,
.yt-specialization-tag {
    background: var(--yt-bg-tertiary);
    color: var(--yt-text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--yt-border-color);
}

.yt-dashboard-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Analytics Section */
.yt-analytics-section {
    margin-bottom: 40px;
}

.yt-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.yt-analytics-card {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.yt-analytics-card:hover {
    border-color: var(--yt-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.yt-analytics-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.yt-icon-primary { background: var(--yt-primary-color); }
.yt-icon-info { background: #3498db; }
.yt-icon-success { background: #2ecc71; }
.yt-icon-warning { background: #f39c12; }

.yt-analytics-content {
    flex: 1;
}

.yt-analytics-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--yt-text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.yt-analytics-label {
    font-size: 14px;
    color: var(--yt-text-secondary);
    font-weight: 500;
    margin-bottom: 6px;
}

.yt-analytics-change {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.yt-positive {
    color: #2ecc71;
}

/* Quick Actions Section */
.yt-quick-actions-section {
    margin-bottom: 40px;
}

.yt-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.yt-quick-action-card {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--yt-text-primary);
    transition: all 0.2s ease;
}

.yt-quick-action-card:hover {
    border-color: var(--yt-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    color: var(--yt-text-primary);
    text-decoration: none;
}

.yt-quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
}

.yt-quick-action-content {
    flex: 1;
}

.yt-quick-action-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--yt-text-primary);
}

.yt-quick-action-desc {
    font-size: 14px;
    color: var(--yt-text-secondary);
    margin: 0;
}

.yt-quick-action-arrow {
    color: var(--yt-text-secondary);
    font-size: 14px;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.yt-quick-action-card:hover .yt-quick-action-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* Responsive Design for Dashboard */
@media (max-width: 768px) {
    .yt-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .yt-channel-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .yt-channel-name {
        font-size: 24px;
    }
    
    .yt-analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .yt-quick-actions-grid {
        grid-template-columns: 1fr;
    }
}

/* Trending Page Specific Styles */
.yt-trending-header {
    margin-bottom: 32px;
}

.yt-trending-banner {
    background: linear-gradient(135deg, #ff4757 0%, #ff3742 50%, #ff2d55 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.yt-trending-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="fire" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M10 0c5.5 0 10 4.5 10 10s-4.5 10-10 10S0 15.5 0 10 4.5 0 10 0z" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23fire)"/></svg>') repeat;
    opacity: 0.3;
}

.yt-trending-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    position: relative;
    z-index: 2;
}

.yt-trending-content {
    position: relative;
    z-index: 2;
}

.yt-trending-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0 0 8px 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.yt-trending-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Trending Badge */
.yt-trending-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff4757, #ff3742);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Filter Styles for Trending */
.yt-filters-section {
    margin-bottom: 32px;
}

.yt-filter-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-filter-scroll-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding: 8px 0;
}

.yt-filter-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.yt-filter-btn {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-color);
    color: var(--yt-text-secondary);
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: fit-content;
    user-select: none;
    outline: none;
}

.yt-filter-btn:hover {
    background: var(--yt-bg-tertiary);
    border-color: var(--yt-primary-color);
    transform: translateY(-1px);
    color: var(--yt-text-primary);
}

.yt-filter-btn:active {
    transform: translateY(0);
}

.yt-filter-btn.yt-active {
    background: var(--yt-primary-color);
    border-color: var(--yt-primary-color);
    color: white;
    font-weight: 600;
}

.yt-filter-btn.yt-active:hover {
    background: var(--yt-primary-color);
    border-color: var(--yt-primary-color);
    color: white;
    transform: translateY(-1px);
}

.yt-filter-icon {
    font-size: 12px;
}

.yt-filter-scroll-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-color);
    color: var(--yt-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    user-select: none;
    outline: none;
}

.yt-filter-scroll-btn:hover {
    background: var(--yt-bg-tertiary);
    border-color: var(--yt-primary-color);
    color: var(--yt-primary-color);
    transform: scale(1.05);
}

.yt-filter-scroll-btn:active {
    transform: scale(0.95);
}

.yt-filter-scroll-btn:disabled,
.yt-filter-scroll-btn[style*="pointer-events: none"] {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

.yt-scroll-left,
.yt-scroll-right {
    position: sticky;
    z-index: 2;
    background: var(--yt-bg-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yt-scroll-left {
    left: 0;
    margin-right: 8px;
}

.yt-scroll-right {
    right: 0;
    margin-left: 8px;
}

/* Creator Info in Video Cards */
.yt-video-creator {
    margin-top: 12px;
}

.yt-creator-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-creator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.yt-creator-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yt-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.yt-creator-details {
    flex: 1;
}

.yt-creator-name {
    color: var(--yt-text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.yt-creator-name:hover {
    color: var(--yt-primary-color);
    text-decoration: none;
}

.yt-creator-department {
    font-size: 12px;
    color: var(--yt-text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive Design for Trending */
@media (max-width: 768px) {
    .yt-trending-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }
    
    .yt-trending-title {
        font-size: 32px;
    }
    
    .yt-trending-subtitle {
        font-size: 16px;
    }
    
    .yt-filter-container {
        overflow: hidden;
    }
    
    .yt-filter-scroll-btn {
        display: none;
    }
}

/* Responsive cropper modal */
@media (max-width: 768px) {
    #avatarCropModal .modal-dialog {
        margin: 10px;
    }
    
    .crop-controls .d-flex {
        flex-direction: column;
        gap: 8px;
    }
    
    .crop-controls .btn {
        width: 100%;
        justify-content: center;
    }
    
    .crop-image-container {
        min-height: 250px;
    }
}

/* ==================================
   SEARCH PAGE STYLES
   ================================== */

/* Layout Fixes for Search Page */
.yt-main-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: var(--yt-bg-primary);
    min-height: calc(100vh - 60px);
}

/* Ensure proper spacing from sidebar */
.main-wrapper .yt-main-content {
    padding-left: 0;
    margin-left: 0;
}

.yt-search-header {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Container Spacing */
.yt-search-form-section,
.yt-search-results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .yt-search-form-section,
    .yt-search-results-section {
        padding: 0 16px;
    }
}

.yt-search-header {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Search Banner */
.yt-search-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 60px 0 40px 0;
    text-align: center;
    border-radius: 0;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.yt-search-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.yt-search-banner-content {
    position: relative;
    z-index: 2;
}

.yt-search-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.9;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

.yt-search-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.yt-search-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Advanced Search Form */
.yt-search-form-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.yt-advanced-search-form {
    background: var(--yt-card-bg);
    border: 1px solid var(--yt-border-light);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px var(--yt-shadow);
    width: 100%;
}

.yt-search-results-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.yt-search-form-row {
    margin-bottom: 20px;
}

.yt-search-form-row:last-child {
    margin-bottom: 0;
}
.yt-advanced-filters {
    background: var(--yt-bg-tertiary);
    border: 2px solid var(--yt-border-medium);
    border-radius: 12px;
    padding: 24px;
    margin-top: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .yt-advanced-filters {
    background: #1a1a1a;
    border-color: #404040;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.yt-advanced-filters .form-label {
    color: var(--yt-text-primary);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yt-advanced-filters .form-label::before {
    content: '⚙️';
    font-size: 12px;
}

.yt-advanced-filters select.yt-search-input,
.yt-advanced-filters input.yt-search-input {
    background: var(--yt-card-bg);
    border: 2px solid var(--yt-border-light);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--yt-text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.yt-advanced-filters select.yt-search-input:focus,
.yt-advanced-filters input.yt-search-input:focus {
    background-color: var(--yt-card-bg);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
    transform: translateY(-1px);
}

.yt-advanced-filters select.yt-search-input option {
    background: var(--yt-card-bg);
    color: var(--yt-text-primary);
    padding: 12px;
    font-weight: 500;
}

/* Dark theme specific select styling */
[data-theme="dark"] .yt-advanced-filters select.yt-search-input,
[data-theme="dark"] .yt-advanced-filters input.yt-search-input {
    background: #2a2a2a;
    border-color: #404040;
    color: #ffffff;
}

[data-theme="dark"] .yt-advanced-filters select.yt-search-input:focus,
[data-theme="dark"] .yt-advanced-filters input.yt-search-input:focus {
    background-color: #2a2a2a;
    border-color: #667eea;
}

[data-theme="dark"] .yt-advanced-filters select.yt-search-input option {
    background: #2a2a2a;
    color: #ffffff;
}

/* Advanced Toggle Button Enhanced */
.yt-advanced-toggle-section {
    margin-bottom: 16px;
}

.yt-advanced-toggle {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-light);
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--yt-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.yt-advanced-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.yt-advanced-toggle:hover::before {
    left: 100%;
}

.yt-advanced-toggle:hover {
    background: var(--yt-card-hover);
    color: var(--yt-text-primary);
    border-color: var(--yt-border-medium);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px var(--yt-shadow);
}

.yt-advanced-toggle.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.yt-toggle-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.yt-advanced-toggle.active .yt-toggle-arrow {
    transform: rotate(180deg);
}
.yt-search-input-group {
    display: flex;
    align-items: center;
    background: var(--yt-bg-secondary);
    border: 2px solid var(--yt-border-light);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .yt-search-input-group {
    background: #1a1a1a;
    border-color: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.yt-search-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.yt-search-input-container {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 20px;
}

.yt-search-input-container .yt-search-icon {
    color: var(--yt-text-muted);
    margin-right: 12px;
    font-size: 16px;
}

.yt-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--yt-text-primary);
    font-size: 16px;
    font-weight: 500;
    padding: 16px 0;
    outline: none;
}

.yt-search-input::placeholder {
    color: var(--yt-text-muted);
    font-weight: 400;
}

.yt-search-input:focus {
    background: var(--yt-card-bg);
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

.yt-search-input::placeholder {
    color: var(--yt-text-muted);
}

.yt-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.yt-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.yt-advanced-toggle {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-light);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--yt-text-secondary);
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.yt-advanced-toggle:hover {
    background: var(--yt-card-hover);
    color: var(--yt-text-primary);
}

.yt-toggle-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
}

/* Quick Filters Enhanced */
.yt-filter-section {
    margin-bottom: 32px;
    background: var(--yt-card-bg);
    border: 1px solid var(--yt-border-light);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px var(--yt-shadow);
}

.yt-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.yt-filter-title {
    color: var(--yt-text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yt-filter-title::before {
    content: "⚡";
    font-size: 16px;
}

.yt-filter-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-filter-scroll-wrapper {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 4px 0;
}

.yt-filter-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.yt-filter-btn {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-light);
    border-radius: 20px;
    padding: 10px 18px;
    color: var(--yt-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: fit-content;
    position: relative;
    overflow: hidden;
}

.yt-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.yt-filter-btn:hover::before {
    left: 100%;
}

.yt-filter-btn:hover {
    background: var(--yt-card-hover);
    color: var(--yt-text-primary);
    border-color: var(--yt-border-medium);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.yt-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.yt-filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.yt-filter-btn i {
    font-size: 12px;
}

.yt-filter-scroll-btn {
    background: var(--yt-card-bg);
    border: 1px solid var(--yt-border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yt-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.yt-filter-scroll-btn:hover {
    background: var(--yt-card-hover);
    color: var(--yt-text-primary);
    border-color: var(--yt-border-medium);
    transform: scale(1.05);
}

/* Active Filters Display Enhanced */
.yt-active-filters {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--yt-card-bg);
    border: 1px solid var(--yt-border-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--yt-shadow);
}

.yt-active-filter-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 18px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    transition: all 0.2s ease;
}

.yt-active-filter-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.yt-active-filter-item .remove-filter {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.yt-active-filter-item .remove-filter:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.yt-clear-filters-btn {
    background: var(--yt-bg-secondary);
    border: 1px solid var(--yt-border-light);
    border-radius: 8px;
    padding: 8px 16px;
    color: var(--yt-text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.yt-clear-filters-btn:hover {
    background: var(--yt-card-hover);
    color: var(--yt-text-primary);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px var(--yt-shadow);
}

/* Search Results Section */
.yt-search-results-header {
    margin-bottom: 24px;
}

.yt-results-count {
    color: var(--yt-text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.yt-results-title {
    color: var(--yt-text-primary);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.yt-results-subtitle {
    color: var(--yt-text-muted);
    font-size: 16px;
    margin: 0;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--yt-card-bg);
    border-radius: 16px;
    border: 1px solid var(--yt-border-light);
}

.no-results i {
    color: var(--yt-text-muted);
    margin-bottom: 16px;
}

.no-results h5 {
    color: var(--yt-text-primary);
    margin-bottom: 8px;
}

.no-results p {
    color: var(--yt-text-muted);
    margin-bottom: 24px;
}

/* Search Results Grid - Enhanced for better UX */
.yt-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.yt-search-card {
    background: var(--yt-card-bg);
    border: 1px solid var(--yt-border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.yt-search-card:hover {
    background: var(--yt-card-hover);
    border-color: var(--yt-border-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--yt-shadow-hover);
}

.yt-search-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: var(--yt-bg-secondary);
}

.yt-search-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.yt-search-card:hover .yt-search-thumbnail img {
    transform: scale(1.05);
}

.yt-search-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2.5rem;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.yt-search-card:hover .yt-search-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-search-type-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.yt-search-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    padding: 20px 12px 12px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.yt-search-card:hover .yt-search-overlay {
    opacity: 1;
}

.yt-search-info {
    padding: 16px;
}

.yt-search-title {
    color: var(--yt-text-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-search-creator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.yt-search-creator-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.yt-search-creator-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.yt-search-creator-name {
    color: var(--yt-text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.yt-search-creator-name:hover {
    color: var(--yt-text-primary);
}

.yt-search-creator-department {
    color: var(--yt-text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.yt-search-meta {
    color: var(--yt-text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yt-search-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yt-search-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Responsive Design for Search */
@media (max-width: 768px) {
    .yt-search-banner {
        padding: 40px 0 30px 0;
        margin-bottom: 20px;
    }
    
    .yt-search-title {
        font-size: 2rem;
    }
    
    .yt-search-subtitle {
        font-size: 1rem;
    }
    
    .yt-advanced-search-form {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .yt-filter-container {
        overflow-x: auto;
    }
    
    .yt-filter-scroll-btn {
        display: none;
    }
    
    .yt-search-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .yt-search-thumbnail {
        height: 140px;
    }
}
