/* Desktop Video App Styles - clean grid layout for desktop video browsing
 * Handles navbar visibility, page scrolling, video grid layouts, responsive design,
 * search interface styling, and desktop-specific video player controls
 *END_DESCRIPTION
 */

/* Desktop Video App Styles - YouTube-style Layout */

/* Show navbar on desktop pages */
body:has(.desktop-video-app) .navbar,
body.search-page .navbar {
  display: block !important;
}

/* Ensure search page can scroll properly - strongest specificity */
html:has(body.search-page) {
  overflow: auto !important;
  overflow-y: scroll !important;
  height: auto !important;
  max-height: none !important;
}

body.search-page {
  overflow: auto !important;
  overflow-y: scroll !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.search-page .search-container {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  position: static !important;
}

/* Force all search page elements to be scrollable */
body.search-page *,
body.search-page *:before,
body.search-page *:after {
  overflow: visible !important;
  max-height: none !important;
}

/* Desktop-specific variables handled by application.css */

/* Desktop App Container */
.desktop-video-app {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  min-height: 100vh;
}

/* Desktop Header */
.desktop-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-color);
}

.nav-tabs {
  display: flex;
  gap: 8px;
}

.nav-tab {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.nav-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-tab.active {
  background: var(--accent-color);
  color: white;
}

.indicator-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background-color: #ff4444;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0);
  }
}

/* All Done Slide for Desktop */
.desktop-video-app .all-done-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
  background: var(--bg-primary);
  padding: 40px;
}

.desktop-video-app .all-done-content {
  text-align: center;
  max-width: 500px;
}

.desktop-video-app .all-done-icon {
  font-size: 72px;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.desktop-video-app .all-done-content h2 {
  color: var(--text-primary);
  font-size: 32px;
  margin-bottom: 16px;
}

.desktop-video-app .all-done-content p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 32px;
}

.desktop-video-app .all-done-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.desktop-video-app .all-done-actions button {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.desktop-video-app .all-done-actions .btn-primary {
  background: var(--accent-color);
  color: white;
  border: none;
}

.desktop-video-app .all-done-actions .btn-primary:hover {
  background: var(--accent-hover);
}

.desktop-video-app .all-done-actions .btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.desktop-video-app .all-done-actions .btn-secondary:hover {
  background: var(--bg-secondary);
}

.nav-actions {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Desktop Video Feed - TikTok style snap scrolling with virtual scrolling */
.desktop-video-feed {
  height: calc(100vh - 80px);
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  position: relative; /* Required for absolute positioned children */
}

.desktop-video-feed::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

/* Desktop Video Slide - Full viewport height */
.desktop-video-slide {
  height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  padding: 24px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}

/* Main Content Wrapper - Legacy support */
.desktop-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Video Main Section */
.video-main-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Desktop Video Main Content */
.desktop-video-main {
  display: flex;
  flex-direction: column;
}

/* Desktop Video Container */
.desktop-video-container {
  position: relative;
  width: 100%;
  height: 60vh;
  max-height: 500px;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Legacy Video Container */
.video-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.video-container iframe,
.video-container video,
.desktop-video-container iframe,
.desktop-video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Desktop Video Actions */
.desktop-video-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.desktop-action-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.desktop-action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.desktop-action-btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.desktop-action-btn.like-btn.active,
.desktop-action-btn.like-btn:hover {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

.desktop-action-btn.dislike-btn.active,
.desktop-action-btn.dislike-btn:hover {
  background: #f44336;
  color: white;
  border-color: #f44336;
}

/* Video Info Section */
.video-info-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-title {
  color: var(--text-primary);
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.rating-stats {
  color: var(--text-secondary);
}

.trend-score {
  color: var(--accent-color);
  font-weight: 600;
}

/* Video Actions */
.video-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.action-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.action-btn:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.action-btn.like-btn.active,
.action-btn.like-btn:hover {
  background: #4caf50;
  color: white;
  border-color: #4caf50;
}

.action-btn.dislike-btn.active,
.action-btn.dislike-btn:hover {
  background: #f44336;
  color: white;
  border-color: #f44336;
}

.filter-indicator {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
}

/* Video Description */
.video-description-section {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
}

.description-header h3 {
  color: var(--text-primary);
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.description-content {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Video Tags */
.video-tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.video-tag {
  background: var(--accent-color);
  color: white;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
}

/* Desktop Transcript Sidebar */
.desktop-transcript-sidebar {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  height: calc(100vh - 140px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Legacy Transcript Sidebar */
.transcript-sidebar {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 84px;
}

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

.transcript-content {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 14px;
  flex: 1;
  overflow-y: auto;
  padding-right: 8px;
  min-height: 0;
  max-height: 100%;
}

/* Desktop specific transcript content */
.desktop-transcript-sidebar .transcript-content {
  flex: 1;
  overflow-y: auto;
}

.transcript-content::-webkit-scrollbar {
  width: 4px;
}

.transcript-content::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.transcript-content::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.no-transcript {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

.no-transcript i {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.no-transcript p {
  margin: 0;
  font-style: italic;
}

/* Comments Section */
.comments-section {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 12px;
  margin-top: 24px;
}

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

.comments-list {
  margin-bottom: 20px;
  max-height: 400px;
  overflow-y: auto;
}

.comments-list p {
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  margin: 20px 0;
}

.comment-item {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

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

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

.comment-content {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
}

.comment-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.comment-form textarea {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.comment-form textarea::placeholder {
  color: var(--text-muted);
}

.comment-submit-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  /* Removed background transition for performance */
  white-space: nowrap;
}

.comment-submit-btn:hover {
  background: var(--accent-hover);
}

.comment-submit-btn:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

/* Modal Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  width: 90vw;
  max-width: 600px;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-content.large {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

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

.modal-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Categories Modal */
.categories-section {
  margin-bottom: 24px;
}

.categories-section:last-child {
  margin-bottom: 0;
}

.categories-section h4 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px 0;
}

.current-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 40px;
  align-items: flex-start;
}

.category-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-color);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  gap: 8px;
}

.remove-btn {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Removed background transition for performance */
}

.remove-btn:hover {
  background: rgba(255, 255, 255, 0.5);
}

.no-categories {
  color: var(--text-muted);
  font-style: italic;
  font-size: 14px;
}

.available-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-option:hover {
  background: var(--accent-color);
  color: white;
}

.add-icon {
  font-size: 16px;
  font-weight: bold;
}

.new-category-form {
  display: flex;
  gap: 12px;
}

.new-category-form input {
  flex: 1;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

.new-category-form input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.create-btn {
  background: var(--accent-color);
  border: none;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  /* Removed background transition for performance */
}

.create-btn:hover {
  background: var(--accent-hover);
}

/* Settings Modal */
.settings-section {
  margin-bottom: 32px;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section h4 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

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

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

.filter-group select,
.tag-search-input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
}

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

.date-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.date-inputs span {
  color: var(--text-secondary);
  font-size: 14px;
}

.video-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.video-type-checkbox,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
}

.video-type-checkbox input,
.checkbox-label input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-tertiary);
}

.tag-filter-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tag-filter-btn:hover {
  background: var(--bg-primary);
}

.tag-filter-btn.include {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

.tag-filter-btn.exclude {
  background: #f44336;
  color: white;
  border-color: #f44336;
}

.active-filters {
  background: var(--bg-tertiary);
  padding: 16px;
  border-radius: 8px;
}

.filter-section {
  margin-bottom: 12px;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section strong {
  color: var(--text-primary);
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tag {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.filter-tag.include-tag {
  background: var(--accent-color);
  color: white;
}

.filter-tag.exclude-tag {
  background: #f44336;
  color: white;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* No Videos State */
.no-videos {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.no-videos h2 {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.no-videos p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.clear-filters-btn {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

/* Auth Required State */
.trw-auth-required {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.trw-auth-required h2 {
  color: var(--text-primary);
  margin-bottom: 15px;
}

.trw-auth-required p {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.auth-btn {
  background: var(--accent-color);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  /* Removed background transition for performance */
}

.auth-btn:hover {
  background: var(--accent-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .desktop-content-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .transcript-sidebar {
    position: static;
    order: 3;
  }
  
  .nav-brand h1 {
    font-size: 20px;
  }
  
  .nav-tabs {
    gap: 4px;
  }
  
  .nav-tab {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    padding: 0 16px;
    height: 50px;
  }
  
  .desktop-content-wrapper {
    padding: 16px;
  }
  
  .video-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .action-group {
    justify-content: center;
  }
  
  .modal-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .modal-body {
    padding: 16px;
  }
  
  .available-categories {
    grid-template-columns: 1fr;
  }
  
  .date-inputs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .video-types-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop Sidebar Tabs for Comments/Transcript */
.desktop-sidebar {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 130px);
  max-height: calc(100vh - 130px);
  padding-bottom: 30px;
  overflow: hidden;
}

.desktop-sidebar-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-color);
  background: var(--surface-variant);
  border-radius: 8px 8px 0 0;
}

.desktop-sidebar-tab {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.desktop-sidebar-tab:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.desktop-sidebar-tab.active {
  background: var(--surface);
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.desktop-sidebar-tab i {
  font-size: 14px;
}

.desktop-sidebar-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: none;
  background: var(--surface);
  border-radius: 0 0 8px 8px;
  min-height: 0;
  max-height: 100%;
}

.desktop-sidebar-content.active {
  display: flex;
  flex-direction: column;
}

.desktop-comments-container {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.desktop-comments-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.desktop-comment-form {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
  flex-shrink: 0;
}

.desktop-comment-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.desktop-comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface-variant);
  resize: vertical;
  min-height: 60px;
}

.desktop-comment-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(254, 44, 85, 0.1);
}

.desktop-comment-form button {
  align-self: flex-end;
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.desktop-comment-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.desktop-comment-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #ccc;
}

.loading-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.loading-comments i {
  font-size: 24px;
  margin-bottom: 12px;
}

.desktop-comment-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: var(--surface-variant);
}

.comment-author {
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 4px;
}

.comment-content {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 6px;
  word-wrap: break-word;
}

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

.no-desktop-comments,
.error-loading-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-desktop-comments i,
.error-loading-comments i {
  font-size: 32px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.error-loading-comments {
  color: var(--error-color, #ff6b6b);
}

/* Watched Badge for Desktop */
.watched-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  margin-left: 12px;
  vertical-align: middle;
}

.watched-badge i {
  font-size: 12px;
}

/* Theme variables are now handled in application.css using data-theme attribute */
