/* Main Filter Buttons */
.filter-btn-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-width: 100%;
}

.filter-btn-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  position: relative;
  background: linear-gradient(rgba(26,26,26,0.95), rgba(26,26,26,0.95)) padding-box,
              var(--gradient) border-box;
  color: var(--primary-color);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(102,0,255,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.filter-btn:hover {
  box-shadow: 0 2px 8px rgba(255,0,102,0.15);
}

.filter-btn.selected {
  background: var(--secondary-color);
  color: #fff;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 0 0 2px var(--secondary-color), 0 2px 12px rgba(102,0,255,0.18);
}

/* Disabled state for basic filters when advanced filter is active */
.filter-btn.disabled,
.filter-btn-container.disabled .filter-btn,
.filter-btn-row.disabled .filter-btn {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.8);
}

.filter-group.disabled label {
  opacity: 0.5;
}

/* Advanced Filter Button - match filter-group style */
.advanced-filter-btn {
  padding: 0.5rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-end;
}
.advanced-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
/* Advanced Filter Modal Styles */

/* Advanced Filter Modal - Refined for Site Theme */
.advanced-filter-modal {
    /* Unique, modern advanced filter modal */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(120deg, rgba(12,12,12,0.96) 0%, rgba(32,0,48,0.98) 100%);
    backdrop-filter: blur(8px) brightness(0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Use purple/pink theme for modal */
.advanced-filter-content {
    /* Glassmorphism, bold border, gradient shadow */
    background: rgba(26,26,26,0.85);
    border-radius: 22px;
    box-shadow: 0 8px 40px 0 rgba(255,0,102,0.18), 0 2px 24px 0 rgba(102,0,255,0.12);
    border: 2px solid var(--primary-color);
    width: 95vw;
    max-width: 500px;
    max-height: 95vh;
    overflow-y: auto;
    padding: 2.2rem 1.7rem 1.7rem 1.7rem;
    color: var(--text-primary);
    position: relative;
}
.advanced-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
/* Title uses purple/pink accent */
.advanced-filter-title {
    /* Gradient text for modal title */
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(255,0,102,0.12);
}
.advanced-filter-close {
  background: none;
  border: none;
  color: #ff4444;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.advanced-filter-close:hover {
  color: #fff;
}
.advanced-filter-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.advanced-filter-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.advanced-filter-section label {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 500;
}
.advanced-filter-btn-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.5rem;
}
.adv-btn {
  /* Modern button with gradient border and glow using background layers */
  position: relative;
  background: linear-gradient(rgba(26,26,26,0.95), rgba(26,26,26,0.95)) padding-box,
              var(--gradient) border-box;
  color: var(--primary-color);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,0,102,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.adv-btn:active, .adv-btn.selected {
  background: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 0 2px var(--primary-color), 0 2px 12px rgba(255,0,102,0.18);
}
.adv-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.adv-category-btn {
  /* Category buttons with gradient border and glow using background layers */
  position: relative;
  background: linear-gradient(rgba(26,26,26,0.95), rgba(26,26,26,0.95)) padding-box,
              var(--gradient) border-box;
  color: var(--primary-color);
  border: 2px solid transparent;
  border-radius: 18px;
  padding: 0.35rem 1rem;
  font-size: 0.97rem;
  cursor: pointer;
  margin-bottom: 0.2rem;
  box-shadow: 0 1px 6px rgba(102,0,255,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.adv-category-btn.selected {
  background: var(--secondary-color);
  color: #fff;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 0 0 2px var(--secondary-color), 0 2px 12px rgba(102,0,255,0.18);
}
.adv-input {
  /* Input with accent border and subtle glow */
  width: 100%;
  background: rgba(26,26,26,0.95);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  padding: 0.5rem;
  font-size: 1rem;
  margin-top: 0.2rem;
  box-shadow: 0 1px 6px rgba(255,0,102,0.10);
}
.adv-input::placeholder {
  color: #b3b3b3;
  opacity: 0.7;
}
.adv-duration-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--primary-color);
  margin-top: 0.4rem;
  padding: 0 0.25rem;
}
.adv-duration-labels span {
  text-align: center;
  min-width: 1.5rem;
}
/* Simple Toggle Switches - Button Style */
.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  margin-bottom: 0.5rem;
}

.toggle-label > span:first-child {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.simple-toggle {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.toggle-checkbox {
  display: none;
}

.toggle-btn {
  position: relative;
  background: linear-gradient(rgba(26,26,26,0.95), rgba(26,26,26,0.95)) padding-box,
              var(--gradient) border-box;
  color: var(--primary-color);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.toggle-btn:hover {
  background: linear-gradient(rgba(40,40,40,0.95), rgba(40,40,40,0.95)) padding-box,
              var(--gradient) border-box;
  box-shadow: 0 4px 12px rgba(255,0,102,0.25);
}

.toggle-btn.active {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,0,102,0.35);
}

.toggle-slider,
.toggle-state {
  display: none;
}

/* Autocomplete dropdown */
.autocomplete-container {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(26,26,26,0.98);
  border: 2px solid var(--primary-color);
  border-top: none;
  border-radius: 0 0 16px 16px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(255,0,102,0.20);
}

.autocomplete-item {
  padding: 0.6rem 1rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s;
  font-size: 0.95rem;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(255,0,102,0.15);
  color: var(--primary-color);
}

.autocomplete-item mark {
  background: var(--primary-color);
  color: #fff;
  padding: 0 2px;
  border-radius: 2px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  border-radius: 24px;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--primary-color);
  border-radius: 50%;
  transition: .4s;
}
.switch input:checked + .slider {
  background-color: var(--primary-color);
}
.switch input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #fff;
}
.advanced-filter-footer {
    /* Footer with glass effect and accent border */
    display: flex;
    justify-content: flex-end;
    gap: 1.2rem;
    margin-top: 1.5rem;
    background: rgba(255,0,102,0.07);
    border-radius: 0 0 18px 18px;
    border-top: 1.5px solid var(--primary-color);
    box-shadow: 0 -2px 12px rgba(255,0,102,0.08);
    padding-top: 1rem;
}
.adv-reset-btn {
    /* Modern reset button */
    background: none;
    color: #2ecc40;
    border: none;
    font-size: 1.08rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-shadow: 0 1px 6px rgba(46,204,64,0.10);
}
.adv-apply-btn {
    /* Modern apply button */
    background: var(--gradient);
    color: #fff;
    border: none;
    font-size: 1.08rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.7px;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(255,0,102,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}
.adv-apply-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(255,0,102,0.35);
}
/* Ad Zones */
.ad-zone {
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  padding: 0.75rem 0;
}
.ad-banner-top {
  min-height: 90px;
}
.ad-sidebar {
  min-height: 600px;
  position: sticky;
  top: 90px;
  display: block;
}
.ad-footer {
  min-height: 90px;
}

/* Native Ad Card in Video Grid */
.native-ad-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  min-height: 302px;
}

.native-ad-card .native-ad-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.native-ad-card .native-ad-container ins {
  max-width: 100%;
}

.native-ad-card .ad-label {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
  opacity: 0.7;
}

/* Make ad span full width on smaller screens */
@media (max-width: 768px) {
  .native-ad-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .ad-sidebar {
    display: none !important;
  }
}
/* PMVPlay - Modern Video Tube Styles */

:root {
  --primary-color: #ff0066;
  --secondary-color: #6600ff;
  --dark-bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --border-color: #333333;
  --hover-color: #ff3385;
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Header */
.header {
  background: var(--card-bg);
  padding: 1rem 0;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-image {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.8rem;
  font-weight: bold;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.search-bar {
  flex: 1;
  max-width: 500px;
  margin: 0 2rem;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

/* Social Media Links in Navbar */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  margin: 0 0.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  transform: translateY(-2px);
}

/* Discord - Blurple */
.social-link[title="Discord"]:hover {
  color: #5865F2;
  background: rgba(88, 101, 242, 0.1);
}

/* Reddit - Orange */
.social-link[title="Reddit"]:hover {
  color: #FF4500;
  background: rgba(255, 69, 0, 0.1);
}

/* X (Twitter) - White/Black */
.social-link[title="X (Twitter)"]:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Ko-fi - Red/Pink */
.social-link-kofi:hover {
  color: #FF5E5B;
  background: rgba(255, 94, 91, 0.1);
}

/* Hamburger button - hidden on desktop */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  margin-left: auto;
}

.user-icon {
  font-size: 1.2rem;
}

.username {
  color: var(--text-primary);
  font-weight: 500;
}

/* User Dropdown Menu */
.user-dropdown {
  position: relative;
}

.user-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.user-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  min-width: 150px;
  overflow: hidden;
  z-index: 1000;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: background 0.3s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Main Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

/* Filters Section */
.filters-section {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.filters-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  padding: 0.5rem 1rem;
  background: var(--dark-bg);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-primary);
  font-size: 0.9rem;
  min-width: 150px;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.clear-filters-btn {
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-end;
}

.clear-filters-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
}

.stats-info {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  min-height: 400px;
  align-content: start; /* Prevents vertical stretching of cards */
}

.video-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  max-width: 400px; /* Prevent cards from getting too wide */
  width: 100%;
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 0, 102, 0.3);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

/* Video preview progress bar */
.preview-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  z-index: 10;
  transition: width 0.1s linear;
}

/* Video preview on hover */
.preview-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
}

/* Preview mute button */
.preview-mute-btn {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  cursor: pointer;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease, transform 0.1s ease;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.preview-mute-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em; /* Reserve space for 2 lines to keep consistent height */
  line-height: 1.2;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.video-category {
  display: inline-block;
  background: var(--gradient);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  min-height: 2rem; /* Reserve space for tags to maintain consistent card height */
  align-content: flex-start;
}

.tag {
  background: var(--dark-bg);
  padding: 0.2rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* Loading Spinner */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
}

.spinner {
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Load More Button */
.load-more-section {
  text-align: center;
  margin-top: 2rem;
}

.load-more-btn {
  padding: 1rem 3rem;
  background: var(--gradient);
  border: none;
  border-radius: 25px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.load-more-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 0, 102, 0.4);
}

.load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: var(--card-bg);
  border-top: 2px solid var(--border-color);
  padding: 2rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}

.no-results h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Header mobile layout - scroll-linked animation via --scroll-progress (0 to 1) */
  .header {
    --scroll-progress: 0;
    /* Padding shrinks: 0.75rem -> 0.4rem */
    padding: calc(0.75rem - (0.35rem * var(--scroll-progress))) 0;
  }

  .header-content {
    flex-wrap: wrap;
    /* Gap shrinks: 0.75rem -> 0 */
    gap: calc(0.75rem * (1 - var(--scroll-progress)));
    padding: 0 1rem;
  }

  /* Logo stays on left - order 1 */
  .header .logo {
    order: 1;
  }

  /* Hamburger on right - order 2, always visible */
  .hamburger-btn {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  /* Search bar - full width on its own row below logo/hamburger */
  .search-bar {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* Opacity fades based on scroll */
    opacity: calc(1 - var(--scroll-progress));
    /* Max height shrinks: 50px -> 0 */
    max-height: calc(50px * (1 - var(--scroll-progress)));
    overflow: hidden;
  }

  /* Disable pointer events when collapsed */
  .header.collapsing .search-bar {
    pointer-events: none;
  }

  /* Nav links mobile dropdown */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--card-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 1.5rem 2rem;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
  }

  /* Social links in mobile menu */
  .nav-links .social-links {
    width: 100%;
    justify-content: center;
    padding: 1rem 0;
    margin: 0;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
  }

  .nav-links .social-link {
    width: 40px;
    height: 40px;
  }

  .nav-links .social-link svg {
    width: 22px;
    height: 22px;
  }

  .nav-links .user-info {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
  }

  /* Mobile user dropdown - styled like nav links */
  .nav-links .user-dropdown {
    width: 100%;
  }

  .nav-links .user-dropdown-toggle {
    width: 100%;
    padding: 1rem 0;
    justify-content: flex-start;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
  }

  .nav-links .user-dropdown-toggle .user-icon {
    display: none;
  }

  .nav-links .user-dropdown-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
  }

  .nav-links .user-dropdown.open .user-dropdown-toggle {
    border-bottom: none;
  }

  .nav-links .user-dropdown.open .user-dropdown-toggle::after {
    transform: rotate(-135deg);
  }

  .nav-links .user-dropdown-menu {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links .user-dropdown.open .user-dropdown-menu {
    display: block !important;
    max-height: 200px;
  }

  .nav-links .user-dropdown-menu .dropdown-item {
    padding: 0.75rem 0 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
  }

  .nav-links .user-dropdown-menu .dropdown-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
  }

  /* Overlay when menu is open */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .nav-overlay.visible {
    opacity: 1;
    visibility: visible;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group select,
  .filter-group input {
    width: 100%;
  }

  .stats-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1rem;
  }
}

/* ============================================
   AGE GATE / AGE VERIFICATION MODAL
   ============================================ */

.age-gate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.age-gate-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #667eea;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  animation: ageGateFadeIn 0.4s ease-out;
}

@keyframes ageGateFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.age-gate-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  animation: ageGatePulse 2s ease-in-out infinite;
}

@keyframes ageGatePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.age-gate-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.age-gate-message {
  color: #b3b3b3;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.age-gate-warning {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid #f44336;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  color: #ff6b6b;
  font-size: 0.95rem;
  font-weight: 500;
}

.age-gate-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.age-gate-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.age-gate-enter {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.age-gate-enter:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.age-gate-enter:active {
  transform: translateY(0);
}

.age-gate-exit {
  background: rgba(255, 255, 255, 0.1);
  color: #b3b3b3;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.age-gate-exit:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.age-gate-legal {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #808080;
  line-height: 1.5;
}

.age-gate-legal a {
  color: #667eea;
  text-decoration: none;
}

.age-gate-legal a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .age-gate-content {
    padding: 2rem 1.5rem;
  }

  .age-gate-title {
    font-size: 1.75rem;
  }

  .age-gate-message {
    font-size: 1rem;
  }

  .age-gate-icon {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .age-gate-content {
    padding: 1.5rem 1rem;
  }

  .age-gate-title {
    font-size: 1.5rem;
  }

  .age-gate-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ============================================================
   HOMEPAGE HERO & TABS
   ============================================================ */

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Tabs */
.tabs-container {
  margin-bottom: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.tab-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  bottom: -2px;
}

.tab-btn:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Video Sections */
.video-section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid #667eea;
}

.video-scroll-container {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.video-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.video-scroll-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.video-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.5);
  border-radius: 4px;
}

.video-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.7);
}

/* Video Card Enhancements */
.video-card {
  position: relative;
  background: rgba(26, 26, 26, 0.6);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 280px;
  flex-shrink: 0;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.video-likes {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 0, 102, 0.9);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  gap: 0.5rem;
}

.video-uploader {
  color: #667eea;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-uploader:hover {
  color: #764ba2;
  text-decoration: underline;
}

.video-views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

/* Responsive Hero & Sections */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }

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

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

  .section-title {
    font-size: 1.25rem;
  }

  .video-card {
    min-width: 250px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 1.5rem 1rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

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

  .video-card {
    min-width: 220px;
  }

  .video-thumbnail {
    height: 140px;
  }
}

/* ============================================
   RATING SYSTEM STYLES
   ============================================ */

/* Rating Display (Read-only) */
.rating-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-display .stars {
  display: flex;
  gap: 0.1rem;
  font-size: 1.2rem;
  line-height: 1;
}

.rating-display .star {
  color: #ffd700;
  text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
}

.rating-display .star.empty {
  color: #444;
}

.rating-display .star.half::before {
  content: '★';
  position: absolute;
  width: 50%;
  overflow: hidden;
  color: #ffd700;
}

.rating-display .rating-text {
  color: var(--text-color);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Interactive Rating */
.rating-interactive {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(102, 0, 255, 0.2);
}

.rating-interactive .stars {
  display: flex;
  gap: 0.3rem;
  font-size: 2rem;
  line-height: 1;
}

.rating-interactive .stars.interactive .star {
  cursor: pointer;
  transition: all 0.2s ease;
  color: #444;
}

.rating-interactive .stars.interactive .star:hover {
  transform: scale(1.2);
}

.rating-interactive .stars.interactive .star.filled {
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.rating-interactive .rating-label {
  color: var(--text-color);
  font-size: 0.9rem;
  text-align: center;
  opacity: 0.8;
}

/* Compact Rating (for video cards) */
.rating-compact {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.rating-compact .star-icon {
  color: #ffd700;
  font-size: 1rem;
  text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
}

.rating-compact .rating-value {
  color: var(--text-color);
  font-weight: 600;
}

.rating-compact .rating-count {
  color: var(--text-color);
  opacity: 0.6;
  font-size: 0.8rem;
}

.rating-compact .no-rating {
  color: var(--text-color);
  opacity: 0.5;
  font-size: 0.85rem;
}

/* Rating Histogram */
.rating-histogram {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.rating-histogram .no-ratings {
  text-align: center;
  color: var(--text-color);
  opacity: 0.5;
  padding: 1rem;
}

.histogram-row {
  display: grid;
  grid-template-columns: 40px 1fr 100px;
  align-items: center;
  gap: 0.75rem;
}

.histogram-label {
  color: #ffd700;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: right;
}

.histogram-bar-container {
  background: rgba(255, 255, 255, 0.05);
  height: 20px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.histogram-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(102, 0, 255, 0.8), rgba(102, 0, 255, 0.4));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.histogram-count {
  color: var(--text-color);
  font-size: 0.85rem;
  opacity: 0.8;
  text-align: right;
}

/* Rating Stats Section */
.rating-stats-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(102, 0, 255, 0.2);
}

.rating-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.rating-stats-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
}

.rating-average {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-average-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.rating-average-outof {
  font-size: 1rem;
  color: var(--text-color);
  opacity: 0.6;
}

.rating-total-count {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* Video Info Rating Display */
.video-info .rating-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.video-info .stat-item.rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Rating Filter Slider */
.rating-filter {
  margin-top: 1rem;
}

.rating-filter label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
}

.rating-filter-value {
  color: #ffd700;
  font-weight: 600;
  margin-left: 0.5rem;
}

.rating-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
}

.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  cursor: pointer;
  box-shadow: 0 0 8px rgba(102, 0, 255, 0.5);
}

.rating-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  cursor: pointer;
  box-shadow: 0 0 8px rgba(102, 0, 255, 0.5);
  border: none;
}

/* Responsive */
@media (max-width: 768px) {
  .rating-interactive .stars {
    font-size: 1.5rem;
  }

  .rating-average-number {
    font-size: 2rem;
  }

  .histogram-row {
    grid-template-columns: 35px 1fr 80px;
    gap: 0.5rem;
  }
}

/* ===================================
   COMMENTS SYSTEM STYLES
   =================================== */

.comments-container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
}

.comments-section {
  max-width: 100%;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

/* Comment Form */
.comment-form {
  margin-bottom: 2rem;
}

.comment-input {
  width: 100%;
  background: var(--bg-color);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.3s;
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.comment-char-count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-right: auto;
}

.btn-comment-submit,
.btn-comment-cancel {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-comment-submit {
  background: var(--primary-color);
  color: white;
}

.btn-comment-submit:hover {
  background: #7c3aed;
}

.btn-comment-cancel {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-comment-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Comment Login Prompt */
.comment-login-prompt {
  text-align: center;
  padding: 2rem;
  background: rgba(102, 0, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 2rem;
}

.comment-login-prompt a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.comment-login-prompt a:hover {
  text-decoration: underline;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.no-comments {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem;
  font-style: italic;
}

/* Individual Comment */
.comment {
  background: var(--bg-color);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border-color);
}

.comment.reply {
  margin-left: 2rem;
  margin-top: 1rem;
  background: rgba(102, 0, 255, 0.05);
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
}

.comment-author:hover {
  text-decoration: underline;
}

.admin-badge {
  background: linear-gradient(135deg, #ff6b6b, #ff0000);
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.comment-edited {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

.comment-body {
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Comment Actions */
.comment-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.comment-action-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.comment-action-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.comment-action-btn.liked {
  color: var(--primary-color);
}

.comment-delete-btn:hover {
  color: #ff4444;
}

.comment-likes,
.comment-replies {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Reply Form */
.reply-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.comment-replies {
  margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .comments-container {
    padding: 1.5rem;
  }

  .comment.reply {
    margin-left: 1rem;
  }

  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .comment-actions {
    gap: 0.5rem;
  }
}
