/* Design Tokens - Bright & Minimalist (Light Mode) */
:root {
  --accent-orange: #E86D00;
  --menu-peach: #F4B3A9;
  --dot-pink: #FF82A8;
  --dot-teal: #18C1B9;
  --dot-yellow: #FFD232;
  --dot-blue: #3F7FFF;
  --dot-purple: #A774FF;

  --bg: #ffffff;
  --panel: #fafafa;
  --text: #1a1a1a;
  --muted: #666666;
  --border: #e5e5e5;
  --shadow: rgba(0, 0, 0, 0.05);
  --shadow-strong: rgba(0, 0, 0, 0.1);

  /* Award Colors */
  --award-grandprix: #FFD700;
  --award-gold: #FFD700;
  --award-silver: #C0C0C0;
  --award-bronze: #CD7F32;
}

/* Dark Mode */
:root.dark-mode {
  --bg: #0a0a0a;
  --panel: #1a1a1a;
  --text: #f5f5f5;
  --muted: #999999;
  --border: #2a2a2a;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-strong: rgba(0, 0, 0, 0.5);

  /* Keep accent colors the same */
  --accent-orange: #FF8C42;
  --menu-peach: #D4957C;

  /* Award Colors adjusted for dark mode */
  --award-grandprix: #FFC700;
  --award-gold: #FFC700;
  --award-silver: #E0E0E0;
  --award-bronze: #E09956;
}

/* Reset & Base */
* { box-sizing: border-box; }
*::selection { background: var(--accent-orange); color: white; }

body {
  margin: 0;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Cursor removed for performance - keeping standard cursor */
.cursor-dot {
  display: none !important;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  min-height: 70px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

:root.dark-mode .site-header {
  background: rgba(10, 10, 10, 0.95);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-container {
  position: relative;
  display: flex;
  align-items: center;
}

.logo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

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

.logo-img {
  height: 10px !important;
  max-height: 10px !important;
  width: auto;
  object-fit: contain;
}

/* Show black logo in light mode, white logo in dark mode */
.mufasaLogoDark {
  display: block !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: 200px !important;
  width: auto !important;
  object-fit: contain !important;
}

.mufasaLogoLight {
  display: none !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: 200px !important;
  width: auto !important;
  object-fit: contain !important;
}

body.dark-mode .mufasaLogoDark,
html.dark-mode .mufasaLogoDark {
  display: none !important;
}

body.dark-mode .mufasaLogoLight,
html.dark-mode .mufasaLogoLight {
  display: block !important;
}

.brand {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.user-greeting {
  font-family: 'Poppins', 'Outfit', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.dot {
  color: var(--accent-orange);
}

/* Bookmarks Toggle Button */
.bookmarks-toggle-btn {
  background: none;
  border: 2px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  position: relative;
}

.bookmarks-toggle-btn:hover {
  background: var(--panel);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
  transform: scale(1.05);
}

.bookmarks-toggle-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
}

.bookmarks-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.bookmarks-toggle-btn.active svg {
  fill: white;
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.menu-btn svg {
  width: 20px;
  height: 20px;
}

.menu-btn:hover {
  background: var(--panel);
  transform: scale(1.05);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  position: relative;
}

.theme-toggle:hover {
  background: var(--panel);
  transform: scale(1.05);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  position: absolute;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle .moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

:root.dark-mode .theme-toggle .sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

:root.dark-mode .theme-toggle .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Homepage */
.home-main {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--panel);
}

.video-container iframe,
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 7rem);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2rem);
  letter-spacing: -2px;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.enter-btn {
  background: white;
  color: var(--text);
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 16px);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  letter-spacing: -0.25px;
}

.enter-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Horizontal View */
.horizontal-view {
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.horizontal-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.horizontal-scroll {
  width: 100vw;
  height: 70vh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.horizontal-scroll:active {
  cursor: grabbing;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 3px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: var(--border);
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-orange);
  border-radius: 10px;
}

.video-rail {
  display: flex;
  gap: 30px;
  padding: 0 15vw;
  height: 100%;
  align-items: center;
}

.rail-video {
  flex: 0 0 auto;
  width: 280px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: none;
}

.rail-video-container {
  width: 100%;
  height: 158px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow-strong);
  background: var(--panel);
  margin-bottom: 12px;
}

.rail-video-text {
  text-align: left;
  padding: 0 4px;
}

.rail-video-text h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--text);
  line-height: 1.3;
}

.rail-video-text p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.rail-video-text .client-agency {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.rail-video-text .client {
  color: var(--text);
  font-weight: 500;
}

.rail-video-text .agency {
  color: var(--text-secondary);
  font-style: italic;
  font-size: 11px;
}

.rail-video-text .separator {
  color: var(--muted);
  opacity: 0.5;
  margin: 0 2px;
}


.rail-video:hover .rail-video-container {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow-strong);
}

.rail-video.scroll-left .rail-video-container {
  transform: perspective(800px) rotateY(-12deg) rotateX(2deg) scale(0.9);
}

.rail-video.scroll-left {
  opacity: 0.7;
}

.rail-video.scroll-right .rail-video-container {
  transform: perspective(800px) rotateY(12deg) rotateX(2deg) scale(0.9);
}

.rail-video.scroll-right {
  opacity: 0.7;
}

.rail-video.scroll-center .rail-video-container {
  transform: none;
}

.rail-video.scroll-center {
  opacity: 1;
}

.rail-video.scroll-active .rail-video-container {
  transform: scale(1.05);
}

.rail-video.scroll-active {
  opacity: 1;
  z-index: 5;
}

.rail-video-container iframe,
.rail-video-container video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.rail-video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 30px 20px 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rail-video:hover .rail-video-info {
  opacity: 1;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 50%;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* List Archives */
.list-archives {
  position: fixed;
  inset: 0;
  top: 65px;
  background: var(--bg);
  display: flex;
  overflow: hidden;
}

.archives-left {
  width: 50%;
  padding: 30px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}

.archives-right {
  width: 50%;
  position: relative;
  background: var(--panel);
}

.archives-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0;
  color: var(--text);
  text-transform: uppercase;
}

/* Active Filter Bubbles - appears below dropdowns when filters selected */
.active-filter-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 0;
  align-items: center;
}

.filter-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--panel);
  color: var(--text);
  border-radius: 20px;
  border: 2px solid var(--accent-orange);
  font-size: 13px;
  font-weight: 600;
  cursor: default;
  animation: popIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 0.2s ease;
}

.filter-bubble:hover {
  background: rgba(232, 109, 0, 0.1);
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.filter-bubble-label {
  font-weight: 600;
  color: var(--accent-orange);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-bubble-value {
  font-weight: 600;
  color: var(--text);
}

.filter-bubble-remove {
  background: var(--accent-orange);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 18px;
  height: 18px;
  margin-left: 4px;
}

.filter-bubble-remove:hover {
  background: #d66200;
  transform: scale(1.15);
}

.filter-bubble-remove svg {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

.clear-all-filters-btn {
  padding: 8px 16px;
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-all-filters-btn:hover {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

.filter-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.custom-dropdown {
  position: relative;
}

.dropdown-toggle {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  text-align: left;
  color: var(--text);
}

.dropdown-toggle:hover {
  border-color: var(--accent-orange);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 30px var(--shadow-strong);
  z-index: 100;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
  color: var(--text);
}

.dropdown-item:hover {
  background: var(--bg);
}

.dropdown-item.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  color: var(--muted);
  font-style: italic;
}

.dropdown-item.disabled:hover {
  background: transparent;
}

.filter-chips-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-chip {
  background: none;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: var(--text);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
}

/* Dark mode: make inactive filter chips white text */
:root.dark-mode .filter-chip {
  color: white;
}

/* Randomize button - Legacy (keeping for compatibility) */
.randomize-btn {
  background: var(--accent-orange);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.randomize-btn:hover {
  background: var(--accent-orange-hover);
  transform: scale(1.05);
  visibility: visible !important;
  opacity: 1 !important;
}

.randomize-btn svg {
  width: 16px;
  height: 16px;
}

/* Fresh Shuffle Campaigns Button - No conflicts, always visible */
.cp-shuffle-campaigns-button {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: #ff6b35;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 10;
}

.cp-shuffle-campaigns-button:hover {
  background-color: #ff5722;
  transform: scale(1.05);
}

.cp-shuffle-campaigns-button:active {
  transform: scale(0.98);
}

.cp-shuffle-campaigns-button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Dark mode support */
:root.dark-mode .cp-shuffle-campaigns-button {
  background-color: #ff6b35;
  color: #ffffff;
}

:root.dark-mode .cp-shuffle-campaigns-button:hover {
  background-color: #ff5722;
}

.search-bar {
  margin-bottom: 20px;
}

.search-bar input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--panel);
  color: var(--text);
  transition: border-color 0.2s ease, background 0.3s ease, color 0.3s ease;
}

.search-bar input::placeholder {
  color: var(--muted);
}

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

.project-list {
  height: calc(100vh - 280px);
  overflow-y: auto;
  perspective: 1000px;
}

/* No Results Message */
.no-results-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
  color: var(--muted);
}

.no-results-message svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.no-results-message h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px 0;
}

.no-results-message p {
  font-size: 14px;
  margin: 0 0 8px 0;
  line-height: 1.6;
}

.no-results-message .active-filters-summary {
  margin-top: 16px;
  padding: 12px 20px;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 13px;
}

.no-results-message .active-filters-summary strong {
  color: var(--accent-orange);
}

.project-item {
  padding: 12px 40px 12px 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform-origin: left center;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInStacked 0.4s ease forwards;
}

.save-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  opacity: 0.2;
  transition: all 0.2s ease;
  color: var(--muted);
  z-index: 20;
  pointer-events: auto;
}

.project-item:hover .save-btn {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

.save-btn:hover {
  color: var(--accent-orange);
  transform: translateY(-50%) scale(1.15);
}

.save-btn.saved {
  opacity: 1 !important;
  color: var(--accent-orange);
}

.save-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.save-btn.saved svg {
  fill: currentColor;
}

.project-item:nth-child(1) { animation-delay: 0s; }
.project-item:nth-child(2) { animation-delay: 0.05s; }
.project-item:nth-child(3) { animation-delay: 0.1s; }
.project-item:nth-child(4) { animation-delay: 0.15s; }
.project-item:nth-child(5) { animation-delay: 0.2s; }
.project-item:nth-child(n+6) { animation-delay: 0.25s; }

.project-item:hover {
  background: rgba(0, 0, 0, 0.02);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 52px;
  border-radius: 4px;
  transform: translateX(8px) scale(1.01);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-item.scroll-visible {
  transform: rotateX(-2deg) translateZ(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-title {
  font-weight: 400;
  font-size: 14px;
  margin: 0 0 2px;
  line-height: 1.4;
  color: var(--text);
}

.project-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
}

.project-meta .client {
  color: var(--text);
  font-weight: 500;
}

.project-meta .agency {
  color: var(--text-secondary);
  font-style: italic;
}

.project-meta .separator {
  color: var(--muted);
  opacity: 0.5;
  margin: 0 2px;
}


.preview-video {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-placeholder {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border-radius: 8px;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.placeholder-content p {
  margin: 0;
  color: var(--muted);
}

.video-thumbnail {
  width: 100%;
  height: 450px;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-thumbnail.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.video-thumbnail iframe,
.video-thumbnail video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* Video Detail - Integrated Layout */
.video-detail {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 150;
  display: block;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Mobile content containers - hidden by default on desktop */
.mobile-detail-content {
  display: none;
}

/* Top Controls Bar */
.detail-top-controls {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  gap: 12px;
}

.detail-top-controls > * {
  pointer-events: auto;
}

.back-btn {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

:root.dark-mode .back-btn {
  background: rgba(26, 26, 26, 0.95);
  color: white;
}

.back-btn:hover {
  background: white;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

:root.dark-mode .back-btn:hover {
  background: rgba(26, 26, 26, 1);
}

/* Desktop detail header */
.desktop-detail-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 420px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 28px;
  box-sizing: border-box;
}

.desktop-detail-header .header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Detail View Theme Toggle - Always visible with white background */
.detail-theme-toggle {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #1a1a1a !important;
}

.detail-theme-toggle:hover {
  background: white !important;
  border-color: var(--accent-orange);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hide top right controls - no longer needed */
.top-right-controls {
  display: none;
}

.control-icon-btn {
  display: none;
}

/* Jump to Comments Button - Desktop and Mobile */
.jump-to-comments-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 500;
}

.jump-to-comments-btn:hover {
  background: rgba(255, 107, 53, 0.9);
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

.jump-to-comments-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.jump-btn-text {
  white-space: nowrap;
}

/* Video Player - Fills available space dynamically */
.detail-player {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 40px 40px 40px;
  overflow: visible;
  position: relative;
}

/* When sidebar is open (default), video resizes to fit remaining space */
.video-detail:not(.sidebar-collapsed) .detail-player {
  margin-left: 420px;
  width: calc(100% - 420px);
}

.detail-player-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.detail-player iframe,
.detail-player video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: none;
  background: #000;
}

/* Hide old bottom controls */
.detail-controls {
  display: none;
}

.control-btn {
  display: none;
}

/* Info Sidebar - Left side integrated panel */
.detail-info {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  background: var(--bg);
  color: var(--text);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 2px 0 16px var(--shadow-strong);
  border-right: 1px solid var(--border);
  z-index: 160;
  transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
  padding: 70px 28px 28px 28px;
}

.detail-info.collapsed {
  transform: translateX(-100%);
}

/* Sidebar Close Button - X icon with other header buttons */
.sidebar-close-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  padding: 0;
}

.sidebar-close-btn:hover {
  background: var(--panel);
  color: var(--text);
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

.sidebar-close-btn:active {
  transform: scale(0.95);
}

/* Ensure buttons group together nicely */
.header-buttons {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* Sidebar Reopen Button - Vertical dots (info icon) */
.sidebar-reopen-btn {
  position: fixed;
  left: 20px;
  top: 80px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 170;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  color: var(--text);
}

:root.dark-mode .sidebar-reopen-btn {
  background: rgba(26, 26, 26, 0.95);
  box-shadow: 0 2px 12px var(--shadow-strong);
}

.sidebar-reopen-btn:hover {
  background: var(--accent-orange);
  color: white;
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 109, 0, 0.3);
}

.sidebar-reopen-btn:active {
  transform: translateY(0);
}

/* Show reopen button only when sidebar is collapsed */
.video-detail:not(.sidebar-collapsed) .sidebar-reopen-btn {
  display: none;
}

.video-detail.sidebar-collapsed .sidebar-reopen-btn {
  display: flex;
}

/* First-time user nudge */
.info-nudge {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  background: var(--accent-orange);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(232, 109, 0, 0.4);
  animation: nudgePulse 2s ease-in-out infinite;
  z-index: 170;
  white-space: nowrap;
  pointer-events: none;
}

.info-nudge::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid var(--accent-orange);
}

@keyframes nudgePulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50%) translateX(5px);
  }
}

.detail-info.collapsed .info-nudge {
  display: none;
}

/* Hide nudge after user interaction */
.detail-info.interacted .info-nudge {
  display: none;
}

.detail-info h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  line-height: 1.3;
}

.detail-info h3 {
  margin: 24px 0 12px 0;
  font-weight: 600;
  color: var(--accent-orange);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.client-agency-section,
.campaign-section,
.award-hierarchy,
.media-info,
.contributors-section {
  background: white;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.client-agency-section {
  background: linear-gradient(135deg, white 0%, rgba(255,128,0,0.03) 100%);
  border-color: rgba(255,128,0,0.15);
}

.client-agency-section p strong,
.campaign-section p strong {
  display: inline-block;
  min-width: 140px;
  color: var(--text-secondary);
  font-weight: 500;
}

.client-agency-section p,
.campaign-section p {
  margin: 8px 0;
  color: var(--text);
}

.contributors-section {
  background: linear-gradient(135deg, white 0%, rgba(128,0,255,0.03) 100%);
  border-color: rgba(128,0,255,0.15);
}

.contributor-item {
  margin: 12px 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contributor-item:last-child {
  border-bottom: none;
}

.contributor-item p {
  margin: 4px 0;
}

.contributor-role {
  color: var(--text-secondary);
  font-size: 12px;
  font-style: italic;
}

.award-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.award-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.award-badge.grand-prix {
  background: linear-gradient(135deg, var(--dot-purple), #7c3aed);
  color: white;
  font-weight: 800;
}

.award-badge.gold {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #1a1a1a;
  font-weight: 800;
}

.award-badge.silver {
  background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
  color: #1a1a1a;
  font-weight: 800;
}

.award-badge.bronze {
  background: linear-gradient(135deg, #cd7f32, #e89b5a);
  color: white;
  font-weight: 800;
}

.award-badge.shortlist {
  background: linear-gradient(135deg, #4a5568, #718096);
  color: white;
  font-weight: 700;
}

.project-awards {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.award-count {
  font-size: 12px;
  color: var(--muted);
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.award-summary {
  background: var(--panel);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  border: 1px solid var(--border);
}

.awards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

/* Enhanced Expandable Info Panel */
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
}

.campaign-title-section {
  flex: 1;
}

.campaign-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: var(--text);
  line-height: 1.2;
}

.campaign-meta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.campaign-year {
  background: var(--accent-orange);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
}

.campaign-festival {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.expand-info-btn {
  background: var(--accent-orange);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(232, 109, 0, 0.2);
}

.expand-info-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 109, 0, 0.3);
}

.campaign-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.overview-item {
  background: var(--panel);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.overview-item label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.overview-item value {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.awards-showcase {
  margin-bottom: 32px;
}

.awards-showcase h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
}

.section-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
  stroke-width: 2;
}

.awards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.awards-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* Media Galleries */
.media-section {
  margin-bottom: 32px;
}

.media-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 20px;
  font-weight: 700;
}

.media-gallery {
  display: grid;
  gap: 16px;
}

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

.image-gallery {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.video-item {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

:root.dark-mode .video-item {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

:root.dark-mode .video-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.video-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Duplicate removed - using main definition above */

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

.play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
  background: var(--accent-orange);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
  padding: 12px;
}

.video-title {
  margin: 0 0 4px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.video-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.image-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  height: 200px;
  background: var(--panel);
}

.image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 16px 12px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-item:hover .image-overlay {
  opacity: 1;
}

.image-title {
  margin: 0;
  color: white;
  font-size: 12px;
  font-weight: 500;
}

/* Expanded View */
.detail-info.expanded {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  max-height: 100vh;
  z-index: 300;
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  backdrop-filter: blur(20px);
  border-radius: 0;
  padding: 40px 60px;
  overflow-y: auto;
  box-shadow: none;
  animation: expandIn 0.3s ease-out;
}

:root.dark-mode .detail-info.expanded {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.detail-info.expanding {
  animation: expandIn 0.3s ease-out;
}

.detail-info.collapsing {
  animation: collapseOut 0.3s ease-in;
}

@keyframes expandIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes collapseOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

.video-detail.info-expanded .detail-player {
  display: none;
}

.video-detail.info-expanded .detail-controls {
  display: none;
}

/* Detailed Awards Styling */
.detailed-awards {
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid var(--border);
}

.category-section {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.category-section:last-child {
  border-bottom: none;
}

.main-category {
  color: var(--accent-orange);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.category {
  margin-left: 16px;
  margin-bottom: 16px;
}

.category-name {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.subcategory {
  margin-left: 16px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.subcategory-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.subcategory-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* External Content Section */
.external-content-section {
  margin-top: 32px;
  background: var(--panel);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.iframe-fallback {
  background: var(--panel);
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.fallback-content h4 {
  margin: 0 0 12px 0;
  color: var(--text);
  font-weight: 600;
}

.fallback-content p {
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.5;
}

/* External Source Button - Clean button instead of URL display */
.external-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent-orange);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(232, 109, 0, 0.2);
  margin-top: 12px;
}

.external-source-btn:hover {
  background: #cc5500;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(232, 109, 0, 0.3);
}

.external-source-btn:active {
  transform: translateY(0);
}

.external-source-btn svg {
  flex-shrink: 0;
}

.external-content-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}

.external-note {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
  font-style: italic;
}

.external-iframe-container {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}

.external-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.source-url {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  margin: 0;
}

/* Video Modal */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 1000px;
  height: 56.25vw;
  max-height: 562px;
  background: black;
  border-radius: 12px;
  overflow: hidden;
}

.video-player-container {
  width: 100%;
  height: 100%;
}

.video-player-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 401;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-modal:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  z-index: 401;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-lightbox:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Enhanced Categories Styling */
.detailed-awards-section {
  margin-top: 32px;
}

.categories-container {
  background: var(--panel);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px var(--shadow-strong);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.category-section {
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 24px;
}

.category-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.main-category {
  color: var(--accent-orange);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category {
  margin-left: 20px;
  margin-bottom: 20px;
}

.category-name {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px 0;
  position: relative;
  padding-left: 16px;
}

.category-name::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--accent-orange);
  border-radius: 2px;
}

.subcategory {
  margin-left: 20px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--panel);
  border-radius: 8px;
  border-left: 4px solid var(--border);
  transition: border-color 0.3s ease;
}

.subcategory:hover {
  border-left-color: var(--accent-orange);
}

.subcategory-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subcategory-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive adjustments for expanded view */
@media (max-width: 768px) {
  .detail-info.expanded {
    padding: 20px;
  }

  .campaign-overview {
    grid-template-columns: 1fr;
  }

  .video-gallery {
    grid-template-columns: 1fr;
  }

  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .campaign-title {
    font-size: 24px;
  }

  .main-category {
    font-size: 20px;
  }

  .video-modal-content {
    width: 95vw;
    height: 53.4vw;
  }
}

/* Dropdown Menu - positioned exactly below the menu button */
.menu-container .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: -20px !important;
  left: auto !important;
  margin-top: 4px !important;
  background: var(--panel) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px var(--shadow-strong) !important;
  z-index: 200 !important;
  width: max-content !important;
  animation: dropdownSlide 0.2s ease !important;
  max-height: none !important;
  overflow-y: visible !important;
  transition: background 0.3s ease, border-color 0.3s ease !important;
}

@keyframes dropdownSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dropdown-list li {
  margin: 0;
}

.dropdown-list a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  font-family: 'Poppins', 'Outfit', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--text);
  border-radius: 0;
  transition: all 0.15s ease;
  white-space: nowrap;
  letter-spacing: 0;
}

.dropdown-list li:first-child a {
  border-radius: 6px 6px 0 0;
}

.dropdown-list li:last-child a {
  border-radius: 0 0 6px 6px;
}

.dropdown-list a:hover {
  background: var(--bg);
  color: var(--accent-orange);
  padding-left: 14px;
  transition: all 0.15s ease;
}

.dot--orange { color: var(--accent-orange); }
.dot--purple { color: var(--dot-purple); }
.dot--blue { color: var(--dot-blue); }

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

.page-transition {
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@keyframes slideInStacked {
  from {
    opacity: 0;
    transform: translateY(20px) rotateX(-5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Header adjustments */
  .site-header {
    padding: 12px 16px;
    height: 60px;
  }

  .brand {
    font-size: 18px;
  }

  /* Archives layout - single column on mobile */
  .list-archives {
    flex-direction: column;
    top: 60px;
    overflow: hidden;
  }

  .archives-left {
    width: 100%;
    height: 100vh;
    padding: 0;
    border-right: none;
    border-bottom: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  .archives-right {
    display: none; /* Hide preview area on mobile */
  }

  /* Archives header - scrolls naturally with content, not sticky */
  .archives-header {
    padding: 16px;
    padding-bottom: 8px;
  }

  .archives-header h2 {
    font-size: 24px;
    margin-bottom: 16px;
  }

  /* Filter row - make it more mobile friendly */
  .filter-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
  }

  .filter-chips {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-chip {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 16px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Year dropdown */
  .custom-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 16px;
  }

  /* Search bar */
  .search-bar {
    margin-bottom: 8px;
  }

  .search-bar input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    border-radius: 8px;
  }

  /* Project list - takes remaining space, no separate scroll */
  .project-list {
    gap: 16px;
    padding: 16px;
    padding-top: 8px;
    height: auto !important;
    overflow-y: visible !important;
  }

  .project-item {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
  }

  .project-preview {
    height: 160px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
  }

  .project-preview img,
  .project-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .project-preview .play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
  }

  .project-content {
    padding: 12px;
    flex: 1;
  }

  .project-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 0;
  }

  .project-title {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: 600;
  }

  .project-awards,
  .project-year,
  .project-client {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg);
  }

  .project-expand-btn {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    width: 100%;
  }

  /* Preview video area */
  .preview-placeholder {
    padding: 20px;
    text-align: center;
  }

  .preview-placeholder p {
    font-size: 14px;
    color: var(--text-muted);
  }

  /* Mobile Detail View - Vertical scroll layout */
  .video-detail {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    position: fixed;
    inset: 0;
  }

  /* Mobile top controls - hide on mobile, use mobile-detail-header instead */
  .detail-top-controls {
    display: none !important;
  }

  .back-btn {
    padding: 8px 14px;
    font-size: 14px;
  }

  /* Mobile detail header */
  .mobile-detail-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 200;
    padding: 12px 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-detail-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Video player - Full width at top on mobile */
  .detail-player {
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
    background: #000;
    flex-shrink: 0;
    left: 0 !important;
    top: 0;
    transform: none;
    display: block;
  }

  /* On mobile, video always full width */
  .video-detail:not(.sidebar-collapsed) .detail-player {
    left: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
  }

  .detail-player-inner {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
    background: #000;
  }

  /* Mobile: Make jump button more compact */
  .jump-to-comments-btn {
    border-radius: 50%;
    padding: 14px;
  }

  .jump-btn-text {
    display: none;
  }

  /* Mobile Info Section - Scrollable content below video */
  .detail-info {
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100%;
    background: var(--bg);
    transform: none;
    transition: none;
    padding: 20px;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    box-shadow: none;
    border-right: none;
    z-index: 1;
    flex: 1;
    min-height: 60vh;
  }

  /* Remove collapsed state on mobile */
  .detail-info.collapsed {
    transform: none;
    display: block;
  }

  .detail-info:not(.collapsed) {
    transform: none;
  }

  /* Hide sidebar controls on mobile */
  .sidebar-close-btn {
    display: none;
  }

  .sidebar-reopen-btn {
    display: none !important;
  }

  /* Hide expand/show more button on mobile */
  .expand-info-btn {
    display: none !important;
  }

  /* Hide nudge on mobile */
  .info-nudge {
    display: none;
  }

  /* Adjust header for mobile vertical layout */
  .info-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
  }

  .header-buttons {
    gap: 6px;
  }

  /* Make sure share button is visible and styled */
  .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .share-btn:hover {
    background: var(--panel);
    border-color: var(--accent-orange);
  }

  .share-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Mobile: Show mobile content, hide desktop comments/sidebar */
  .mobile-detail-content {
    display: block !important;
    background: var(--bg);
    padding: 0;
  }

  .desktop-comments {
    display: none !important;
  }

  .detail-info {
    display: none !important;
  }

  .mobile-info-section {
    background: var(--bg);
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .mobile-info-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
  }

  .mobile-header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .expand-toggle-btn {
    background: var(--accent-orange) !important;
    color: white !important;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .expand-toggle-btn:hover {
    background: var(--accent-orange-hover) !important;
    transform: scale(1.05);
  }

  .expand-toggle-btn:focus,
  .expand-toggle-btn:active {
    background: var(--accent-orange) !important;
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    outline: none;
  }

  .expand-toggle-btn:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
  }

  /* Prevent iOS/mobile from making button transparent on touch */
  .expand-toggle-btn:active {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
  }

  /* Aiden's annoyed show more button - completely fresh, no inheritance */
  .aiden-annoyed-show-more-btn {
    all: unset;
    display: inline-block;
    background-color: #ff6b35;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  .aiden-annoyed-show-more-btn * {
    all: unset;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
  }

  .aiden-btn-label {
    display: inline;
    color: #ffffff;
    pointer-events: none;
  }

  /* Button text span - always visible */
  .expand-toggle-btn .btn-text {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline !important;
  }

  .mobile-share,
  .mobile-info-header .report-bug-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--muted);
    transition: all 0.2s ease;
    padding: 0;
  }

  .mobile-share:hover,
  .mobile-info-header .report-bug-btn:hover {
    background: var(--panel);
    color: var(--text);
    border-color: var(--accent-orange);
  }

  .mobile-share svg,
  .mobile-info-header .report-bug-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-info-content {
    max-height: 5000px;
    overflow: visible;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 1;
  }

  .mobile-info-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
  }

  .mobile-comments-section {
    background: var(--bg);
    padding: 20px;
    min-height: 50vh;
  }

  /* Campaign overview mobile */
  .campaign-overview {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .campaign-title {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .campaign-meta {
    gap: 8px;
  }

  .meta-item {
    font-size: 12px;
    padding: 4px 8px;
  }

  /* Media sections mobile */
  .media-section {
    margin-bottom: 24px;
  }

  .media-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .section-icon {
    width: 16px;
    height: 16px;
  }

  /* Video gallery mobile */
  .video-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .video-item {
    border-radius: 8px;
    overflow: hidden;
  }

  .video-thumbnail {
    height: 200px;
  }

  .video-info {
    padding: 8px 12px;
  }

  .video-title {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .video-meta {
    font-size: 11px;
  }

  /* Image gallery mobile */
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
  }

  .image-item {
    border-radius: 6px;
    overflow: hidden;
  }

  .image-item img {
    aspect-ratio: 1;
    object-fit: cover;
  }

  /* Awards section mobile */
  .awards-section {
    margin-bottom: 24px;
  }

  .award-category {
    margin-bottom: 16px;
  }

  .award-category h4 {
    font-size: 14px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--panel);
  }

  .award-list {
    gap: 6px;
  }

  .award-item {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    line-height: 1.3;
  }

  /* External content mobile */
  .external-content-section {
    margin-bottom: 24px;
  }

  .external-iframe-container {
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
  }

  .external-iframe-container iframe {
    width: 100%;
    height: 100%;
  }

  .source-url {
    font-size: 11px;
    margin-top: 8px;
    word-break: break-all;
  }

  .external-source-link {
    color: var(--accent);
    text-decoration: none;
  }

  /* Menu adjustments */
  .menu-content {
    padding: 40px 24px;
  }

  .menu-social {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 40px;
  }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
  .detail-info {
    /* Already defined in main section - fixed right sidebar */
  }

  /* Desktop expanded state */
  .detail-info.expanded {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-height: 100vh;
    z-index: 300;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    backdrop-filter: blur(20px);
    border-radius: 0;
    padding: 40px 60px;
    overflow-y: auto;
    box-shadow: none;
    animation: expandIn 0.3s ease-out;
  }

  :root.dark-mode .detail-info.expanded {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    transform: none;
  }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1024px) {
  .list-archives {
    top: 65px;
  }

  .archives-left {
    width: 60%;
    padding: 24px;
  }

  .archives-right {
    width: 40%;
  }

  .filter-row {
    gap: 16px;
  }

  .project-item {
    padding: 16px;
  }

  .video-detail {
    top: 65px;
  }

  .detail-player {
    height: 50vh;
  }

  .detail-info {
    padding: 24px;
  }

  .detail-controls {
    display: flex; /* Show controls on tablet */
    padding: 12px 16px;
    gap: 12px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    justify-content: center;
  }

  .control-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 100px;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
  }

  .control-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
  }

  .video-gallery {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

/* Touch-friendly improvements for all mobile devices */
@media (max-width: 1024px) {
  /* Larger touch targets */
  .project-item {
    min-height: 60px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  .filter-chip {
    min-height: 36px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* Control buttons removed on mobile */

  .video-item,
  .image-item {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }

  /* Improve scrolling on mobile */
  .project-list,
  .detail-info {
    -webkit-overflow-scrolling: touch;
  }

  /* Better hover states for touch devices */
  .project-item:hover {
    transform: none;
    background: var(--panel);
  }

  /* Disable transitions on touch for better performance */
  .project-item,
  .filter-chip,
  .video-item {
    transition: background-color 0.2s ease;
  }
}

/* Utilities */
[hidden] {
  display: none !important;
}

.loading {
  opacity: 0.5;
  pointer-events: none;
}

.no-scroll {
  overflow: hidden;
}

/* Content Protection */
video, iframe, .detail-player, .video-container, .video-thumbnail {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
}

video::cue {
  color: transparent;
}

/* Prevent drag and drop */
video, iframe {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}
/* Performance optimizations */
.project-item,
.filter-chip,
.dropdown-toggle,
button {
  will-change: transform;
}

/* Reduce motion for better performance */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* GPU acceleration for smooth scrolling */
.project-list,
.archives-right {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Share Button Styles */
.share-btn {
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

:root.dark-mode .share-btn {
  border-color: white;
}

.share-btn:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: white;
  transform: scale(1.05);
}

.share-btn svg {
  width: 20px;
  height: 20px;
}

.header-buttons {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.mobile-header-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mobile-share {
  background: white;
  border: 2px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 6px 10px;
  border-radius: 20px;
}

.mobile-share:hover {
  background: var(--accent-orange);
  color: white;
}

/* Share Menu Popup */
.share-menu-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(0px);
  transition: all 0.3s ease;
}

.share-menu-popup.active {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.share-menu-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.share-menu-popup.active .share-menu-content {
  transform: scale(1);
  opacity: 1;
}

.share-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.share-menu-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.share-menu-close {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.share-menu-close:hover {
  background: var(--panel);
  color: var(--text);
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.share-option {
  background: var(--panel);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.share-option:hover {
  background: white;
  border-color: var(--accent-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-option svg {
  width: 24px;
  height: 24px;
}

.share-option[data-share="whatsapp"] svg {
  color: #25D366;
}

.share-option[data-share="twitter"] svg {
  color: #1DA1F2;
}

.share-option[data-share="linkedin"] svg {
  color: #0077B5;
}

.share-option[data-share="copy"] svg {
  color: var(--accent-orange);
}

.share-url-display {
  background: var(--panel);
  border-radius: 8px;
  padding: 12px;
}

.share-url-input {
  width: 100%;
  background: none;
  border: none;
  font-size: 12px;
  color: var(--muted);
  font-family: 'Monaco', 'Courier New', monospace;
  outline: none;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-notification.error {
  background: #ff4444;
}

@media (max-width: 768px) {
  .share-menu-content {
    width: 95%;
    padding: 20px;
  }

  .share-options {
    grid-template-columns: 1fr;
  }

  .share-option {
    flex-direction: row;
    justify-content: flex-start;
    padding: 12px 16px;
  }
}

/* Bug Report Button & Modal Styles */
.report-bug-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--muted);
  padding: 0;
  position: relative;
}

.report-bug-btn:hover {
  background: var(--panel);
  color: var(--text);
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

.report-bug-btn:active {
  transform: scale(0.95);
}

/* Bug icon image */
.bug-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Tooltip for bug report button */
.report-bug-btn::after {
  content: 'Report Bug';
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.report-bug-btn:hover::after {
  opacity: 1;
}

.bug-report-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.bug-report-modal[hidden] {
  display: none;
}

.bug-report-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.bug-report-dialog {
  position: relative;
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 10px 40px var(--shadow-strong);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
  animation: slideUp 0.3s ease;
}

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

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

.bug-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.bug-report-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.bug-report-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.bug-report-close:hover {
  color: var(--text);
}

.bug-report-content {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.form-group input[type="text"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.file-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-input-wrapper input[type="file"] {
  display: none;
}

.file-input-button {
  padding: 10px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.file-input-button:hover {
  border-color: var(--accent-orange);
  background: rgba(232, 109, 0, 0.05);
}

.file-name {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bug-report-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-cancel,
.btn-submit {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

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

.btn-cancel:hover {
  background: var(--border);
}

.btn-submit {
  background: var(--accent-orange);
  color: white;
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

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

.bug-report-status {
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 14px;
}

.bug-report-status.success {
  background: rgba(76, 175, 80, 0.1);
  color: #4CAF50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.bug-report-status.error {
  background: rgba(244, 67, 54, 0.1);
  color: #F44336;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Bug Report Image Preview */
.bug-image-preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.bug-image-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bug-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bug-image-delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(244, 67, 54, 0.9);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
  opacity: 0;
}

.bug-image-preview:hover .bug-image-delete-btn {
  opacity: 1;
}

.bug-image-delete-btn:hover {
  background: rgba(244, 67, 54, 1);
  transform: scale(1.1);
}

/* Campaign Bug Reports Section */
.bug-reports-section {
  margin-top: 32px;
  display: none; /* Hidden by default, only shown to admins */
}

.bug-reports-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.campaign-bug-reports-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-bug-report-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.campaign-bug-report-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px 0;
  color: var(--text);
}

.campaign-bug-report-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.campaign-bug-report-severity {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 11px;
  color: white;
}

.campaign-bug-report-severity.low {
  background: #48bb78;
}

.campaign-bug-report-severity.medium {
  background: #ed8936;
}

.campaign-bug-report-severity.high {
  background: #f56565;
}

.campaign-bug-report-severity.critical {
  background: #c53030;
}

.campaign-bug-report-description {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  margin: 8px 0;
}

.campaign-bug-report-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.campaign-bug-report-image {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.campaign-bug-report-image:hover {
  transform: scale(1.05);
}

.campaign-bug-report-image img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

.no-bug-reports {
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
}

/* ========================================
   COMMENTS & USER PROFILES STYLES
   ======================================== */

/* Comments Section */
.comments-section {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.comments-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.comments-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.comments-count {
  background: var(--panel);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
}

/* Comment Form */
.comment-form {
  margin-bottom: 32px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.comment-input-wrapper {
  position: relative;
  margin-bottom: 8px;
}

.comment-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
}

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

.comment-char-count {
  display: block;
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.comment-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-post-comment,
.btn-cancel-reply {
  padding: 8px 20px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-post-comment {
  background: var(--accent-orange);
  color: white;
}

.btn-post-comment:hover {
  opacity: 0.9;
}

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

.btn-cancel-reply:hover {
  background: var(--panel);
}

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

.no-comments,
.login-prompt {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}

/* Individual Comment */
.comment {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.comment-reply {
  margin-left: 48px;
  margin-top: 12px;
}

.comment-avatar,
.comment-avatar-small {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-author {
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
}

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

.comment-time {
  font-size: 12px;
  color: var(--muted);
}

.comment-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  word-wrap: break-word;
}

/* Comment Actions */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.comment-like-btn,
.comment-reply-btn,
.comment-delete-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.comment-like-btn:hover,
.comment-reply-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.comment-delete-btn:hover {
  background: #fee;
  color: #c00;
}

.comment-like-btn.liked {
  color: #e74c3c;
}

.comment-like-btn.liked .like-icon {
  fill: currentColor;
}

.like-icon {
  font-size: 14px;
}

.like-count {
  font-weight: 500;
}

/* Reply Form Container */
.reply-form-container {
  margin-top: 12px;
}

.comment-replies {
  margin-top: 12px;
}

/* User Profile Card */
.profile-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.profile-card-compact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.profile-avatar,
.profile-avatar-small {
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
}

.profile-avatar-small {
  width: 32px;
  height: 32px;
}

.profile-avatar img,
.profile-avatar-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  font-size: 36px;
}

.profile-avatar-small .profile-avatar-placeholder {
  font-size: 14px;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.profile-name-small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.profile-bio {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
}

.profile-stat {
  font-size: 14px;
  color: var(--muted);
}

.profile-stat strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

.profile-follow-btn {
  padding: 8px 24px;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-follow-btn:hover {
  opacity: 0.9;
}

.profile-follow-btn.following {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
}

/* Profile Modal */
.profile-modal-content {
  max-width: 600px;
  width: 90%;
}

.profile-edit-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.profile-edit-section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-orange);
}

.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.btn-primary {
  padding: 10px 24px;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
}

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

  .comment-reply {
    margin-left: 28px;
  }

  .comment-avatar {
    width: 32px;
    height: 32px;
  }

  .comment-avatar-placeholder {
    font-size: 14px;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
  }
}

/* ========================================
   YOUTUBE-STYLE COMMENTS (BELOW VIDEO)
   ======================================== */

/* Scroll to Comments Indicator - Fixed position overlaying bottom of video area */
.scroll-to-comments {
  position: fixed;
  top: calc(100vh - 60px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 100;
}

.scroll-to-comments:hover {
  color: var(--accent-orange);
  background: rgba(0, 0, 0, 0.9);
  border-color: var(--accent-orange);
  transform: translateX(-50%) translateY(-2px);
}

.scroll-to-comments svg {
  animation: bounceDown 2s infinite;
  flex-shrink: 0;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(3px);
  }
  60% {
    transform: translateY(2px);
  }
}

/* Adjust position when sidebar is open */
.video-detail:not(.sidebar-collapsed) .scroll-to-comments {
  left: calc(50% + 210px);
}

/* Hide when scrolled down */
.video-detail.scrolled .scroll-to-comments {
  opacity: 0;
  pointer-events: none;
}

/* Comments Wrapper below video player */
.detail-comments-wrapper {
  width: 100%;
  min-height: 600px;
  padding: 24px 40px;
  background: var(--bg);
  transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When sidebar is open, shift comments too */
.video-detail:not(.sidebar-collapsed) .detail-comments-wrapper {
  margin-left: 420px;
  width: calc(100% - 420px);
}

/* Comments Section Header with Sort */
.comments-section .comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.comments-section .comments-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.comments-count {
  font-weight: 600;
  color: var(--text);
}

/* Sort Buttons */
.comments-sort {
  display: flex;
  gap: 8px;
}

/* Floating scroll-to-top button within the detail view */
.scroll-to-top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 260;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.scroll-to-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top-btn:hover {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.scroll-to-top-btn svg {
  width: 18px;
  height: 18px;
}

.scroll-to-top-btn .scroll-top-text {
  font-weight: 600;
  font-size: 14px;
}

:root.dark-mode .scroll-to-top-btn {
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-btn:hover {
  background: var(--panel);
}

.sort-btn.active {
  background: var(--panel);
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.sort-btn svg {
  width: 16px;
  height: 16px;
}

/* View Replies Button */
.view-replies-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: 20px;
  color: var(--accent-orange);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-replies-btn:hover {
  background: var(--panel);
}

.view-replies-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

/* Collapsed replies */
.comment-replies.collapsed {
  display: none;
}

/* Comment Actions - YouTube Style */
.comment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.comment-actions button {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* Mobile Responsive for Scroll Indicator */
@media (max-width: 768px) {
  .scroll-to-comments {
    top: calc(100vh - 50px);
    padding: 8px 16px;
    font-size: 12px;
  }

  .scroll-to-comments svg {
    width: 14px;
    height: 14px;
  }

  .video-detail:not(.sidebar-collapsed) .scroll-to-comments {
    left: 50%;
  }
}

/* Mobile Responsive for Comments */
@media (max-width: 768px) {
  .detail-comments-wrapper {
    padding: 16px;
  }

  .comments-section .comments-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .comments-sort {
    width: 100%;
  }

  .sort-btn {
    flex: 1;
    justify-content: center;
    font-size: 13px;
    padding: 6px 12px;
  }

  .sort-btn svg {
    display: none;
  }
}
