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

html {
  overflow-y: scroll;
  background: #0a0a0f; /* Prevent white flash between page navigations */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  min-height: 100vh;
}

header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 2rem;
  border-bottom: none;
  min-height: 85px; /* Reserve space to prevent layout shift while JS renders */
}

/* Sub-navigation bar (Clips | Matches | Social) */
.sub-nav {
  background: #12122a;
  border-bottom: 2px solid #0f3460;
  padding: 0;
}
.sub-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 0 2rem;
}
.sub-nav-link {
  padding: 0.65rem 1.4rem;
  color: #778;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  margin-bottom: -2px;
}
.sub-nav-link:hover {
  color: #ccc;
  background: rgba(255,255,255,0.03);
}
.sub-nav-link-active {
  color: #00d4ff;
  border-bottom-color: #00d4ff;
}

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

header h1 {
  font-size: 2rem;
  color: #00d4ff;
  text-transform: uppercase;
  letter-spacing: 2px;
}

header p {
  color: #888;
  margin-top: 0.5rem;
}

/* Header icon buttons (bell, etc.) */
.header-icon-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #8899aa;
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.header-icon-btn:hover {
  color: #00d4ff;
  border-color: #00d4ff44;
  background: rgba(0,212,255,0.06);
}
.header-icon-btn svg {
  display: block;
}
.notif-badge-dot {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff4444;
  color: #fff;
  border-radius: 50%;
  font-size: 0.55rem;
  min-width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #1a1a2e;
}

/* Notification dropdown styles */
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a2f3e;
  font-weight: 600;
  color: #e0e0e0;
  font-size: 0.9rem;
}
.notif-header a {
  color: #00d4ff;
  text-decoration: none;
  font-weight: 400;
}
.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #555;
}
.notif-list {
  max-height: 320px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #1f2536;
}
.notif-item:hover {
  background: rgba(0,212,255,0.04);
}
.notif-item-unread {
  background: rgba(0,212,255,0.06);
}
.notif-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.notif-content {
  flex: 1;
  min-width: 0;
}
.notif-message {
  color: #ccc;
  font-size: 0.82rem;
  line-height: 1.35;
}
.notif-time {
  color: #555;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d4ff;
  flex-shrink: 0;
  margin-top: 0.4rem;
}
.notif-footer {
  padding: 0.6rem 1rem;
  text-align: center;
  border-top: 1px solid #2a2f3e;
}
.notif-footer a {
  color: #00d4ff;
  text-decoration: none;
  font-size: 0.82rem;
}
.notif-footer a:hover {
  text-decoration: underline;
}

/* Auth */
#auth-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #00d4ff;
  border-radius: 6px;
  background: transparent;
  color: #00d4ff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.auth-btn:hover {
  background: #00d4ff;
  color: #0a0a0f;
}

.user-email {
  font-size: 0.8rem;
  color: #888;
}

/* Inline avatars (reusable across platform) */
.inline-avatar {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #333;
  flex-shrink: 0;
}
.inline-avatar-sm {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #333;
  flex-shrink: 0;
}

/* Avatar dropdown menu */
.nav-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 8px;
  transition: background 0.15s;
}
.nav-avatar-wrap:hover {
  background: rgba(255,255,255,0.06);
}
.nav-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #333;
  transition: border-color 0.15s;
}
.nav-avatar-wrap:hover .nav-avatar-img {
  border-color: #00d4ff;
}
.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  background: #1a1f2e;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 1100;
  overflow: hidden;
  padding: 0.35rem 0;
}
.nav-avatar-wrap.open .nav-dropdown {
  display: block;
}
.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.12s, color 0.12s;
  cursor: pointer;
}
.nav-dropdown-item:hover {
  background: rgba(0,212,255,0.08);
  color: #fff;
}
.nav-dropdown-item-active {
  color: #00d4ff;
  font-weight: 600;
}
.nav-dropdown-epic {
  cursor: default;
  font-size: 0.8rem;
}
.nav-dropdown-epic:hover {
  background: transparent;
  color: #4ade80;
}
.nav-dropdown-sep {
  height: 1px;
  background: #333;
  margin: 0.3rem 0;
}
.nav-dropdown-logout {
  color: #ef4444;
}
.nav-dropdown-logout:hover {
  background: rgba(239,68,68,0.1);
  color: #f87171;
}
.nav-dropdown-email {
  padding: 0.45rem 1rem;
  color: #555;
  font-size: 0.75rem;
  border-top: 1px solid #2a2a3a;
  margin-top: 0.15rem;
}

/* ── Video Call Overlay ── */
.video-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #0a0a0f;
  z-index: 5000;
  display: flex;
  flex-direction: column;
}
.video-main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
}
.remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.video-no-signal {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #555;
  font-size: 1rem;
}
.video-remote-label {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.6);
  color: #ccc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.video-quality {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  color: #ccc;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.video-pip {
  position: absolute;
  bottom: 80px; right: 16px;
  width: 200px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #333;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  cursor: move;
  z-index: 5010;
  background: #111;
  transition: border-color 0.2s;
}
.video-pip:hover {
  border-color: #00d4ff;
}
.local-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror local video */
}
.video-pip-label {
  position: absolute;
  bottom: 4px; left: 8px;
  color: #aaa;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(0,0,0,0.5);
  padding: 1px 6px;
  border-radius: 8px;
}

/* Video toolbar (Discord-style bottom bar) */
.video-toolbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  z-index: 5020;
  border: 1px solid #222;
}
.video-ctrl-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #333;
  border: none;
  color: #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.video-ctrl-btn:hover {
  background: #444;
  color: #fff;
  transform: scale(1.05);
}
.video-ctrl-btn.active {
  background: #00d4ff22;
  color: #00d4ff;
  border: 1px solid #00d4ff44;
}
.video-ctrl-btn.muted-btn {
  background: #555;
  color: #888;
}
.video-ctrl-btn.off-btn {
  background: #333;
  color: #555;
}
.video-ctrl-hangup {
  background: #ef4444;
  color: #fff;
}
.video-ctrl-hangup:hover {
  background: #dc2626;
}

@media (max-width: 600px) {
  .video-pip {
    width: 120px;
    height: 90px;
    bottom: 70px;
    right: 8px;
  }
  .video-toolbar {
    gap: 8px;
    padding: 8px 14px;
  }
  .video-ctrl-btn {
    width: 38px; height: 38px;
  }
}

/* Admin toolbar */
.admin-toolbar {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  background: #0d0d18;
  border-bottom: 1px solid #222;
  flex-wrap: wrap;
  justify-content: center;
}

.admin-toolbar.hidden {
  display: none;
}

.admin-btn {
  padding: 0.45rem 1rem;
  border: 1px solid #00d4ff;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.08);
  color: #00d4ff;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.admin-btn:hover {
  background: #00d4ff;
  color: #0a0a0f;
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #151520;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content-wide {
  max-width: 640px;
}

.modal-content h2 {
  color: #00d4ff;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.modal-content label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.4rem;
}

.modal-content input[type="text"],
.modal-content input[type="file"],
.modal-content select,
.modal-content textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #0d0d18;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
  transition: border-color 0.2s;
}

.modal-content input[type="text"]:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #00d4ff;
}

.modal-content textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-content select option {
  background: #151520;
}

.extract-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 6px;
  display: none;
  margin: 0.4rem 0;
}

.extract-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.modal-btn {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  background: #1a1a2e;
  color: #ccc;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.modal-btn:hover {
  border-color: #666;
  color: #fff;
}

.modal-btn-primary {
  background: #00d4ff;
  color: #0a0a0f;
  border-color: #00d4ff;
}

.modal-btn-primary:hover {
  background: #00b8d9;
  border-color: #00b8d9;
  color: #0a0a0f;
}

/* Source URL link */
.source-link {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.source-link:hover {
  color: #00d4ff;
  text-decoration: underline;
}

/* Card action buttons (edit/delete in footer) */
.card-action-btn {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 0.2rem 0.4rem;
  margin-left: 0.25rem;
  transition: color 0.2s;
  opacity: 0;
}

.clip-card:hover .card-action-btn {
  opacity: 1;
}

.card-action-btn:hover {
  color: #00d4ff;
}

.card-action-btn-danger:hover {
  color: #ef4444;
}

/* Inline edit */
.editable {
  cursor: pointer;
}

.editable:hover {
  outline: 1px dashed #00d4ff44;
  border-radius: 3px;
}

.inline-edit {
  width: 100%;
  padding: 0.25rem 0.4rem;
  border: 1px solid #00d4ff;
  border-radius: 4px;
  background: #0d0d18;
  color: #fff;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: #111;
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 10;
}

.filter-btn {
  padding: 0.5rem 1.2rem;
  border: 1px solid #333;
  border-radius: 20px;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #00d4ff;
  color: #00d4ff;
}

.filter-btn.active {
  background: #00d4ff;
  color: #0a0a0f;
  border-color: #00d4ff;
  font-weight: 600;
}

/* Visibility Bar */
.visibility-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 2rem;
  background: #0d0d18;
  border-bottom: 1px solid #1a1a2e;
}

.visibility-bar.hidden {
  display: none;
}

.visibility-btn {
  padding: 0.35rem 1rem;
  border: 1px solid #2a2a45;
  border-radius: 20px;
  background: transparent;
  color: #888;
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
}

.visibility-btn:hover {
  border-color: #00d4ff;
  color: #00d4ff;
}

.visibility-btn.active {
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
  border-color: #00d4ff;
  font-weight: 600;
}

/* Visibility badge on clip cards */
.clip-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.clip-title-row h3 {
  flex: 1;
  min-width: 0;
}

.visibility-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
  transition: opacity 0.2s;
}

.visibility-badge:hover {
  opacity: 0.8;
}

.visibility-badge-public {
  background: #1a3a1a;
  color: #4ade80;
  border: 1px solid #2a5a2a;
}

.visibility-badge-shared {
  background: #1a2a3a;
  color: #60a5fa;
  border: 1px solid #2a4a6a;
}

.visibility-badge-private {
  background: #3a1a1a;
  color: #f87171;
  border: 1px solid #6a2a2a;
}

/* Clip Count */
.clip-count {
  text-align: center;
  padding: 1rem;
  color: #666;
  font-size: 0.85rem;
}

/* Grid */
.clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Clip Card */
.clip-card {
  display: block;
  background: #151520;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #222;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.clip-card:hover {
  border-color: #00d4ff;
  transform: translateY(-2px);
}

.clip-card video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16/9;
  cursor: pointer;
}

/* Custom Controls */
.custom-controls {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  background: #0d0d18;
  border-top: 1px solid #222;
}

.ctrl-btn {
  flex: 1;
  padding: 0.4rem 0.5rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #1a1a2e;
  color: #ccc;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.15s;
}

.ctrl-btn:hover {
  border-color: #00d4ff;
  color: #00d4ff;
}

.ctrl-btn.ctrl-play {
  background: #0f3460;
  color: #00d4ff;
  border-color: #0f3460;
}

.ctrl-btn.active {
  background: #3a2a1a;
  color: #fbbf24;
  border-color: #fbbf24;
}

.clip-info {
  padding: 1rem;
}

.clip-info h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.clip-info .source {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.clip-info .description {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.clip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.clip-tag {
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  background: #1a1a2e;
  color: #888;
  border: 1px solid #2a2a3e;
}

/* Clip owner row */
.clip-owner-row {
  margin-bottom: 0.5rem;
}

.clip-owner-name {
  color: #00d4ff;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s;
}
.clip-owner-name:hover {
  color: #66e0ff;
  text-decoration: underline;
}

/* Tag Colors */
.tag-building   { background: #1a3a1a; color: #4ade80; }
.tag-defense    { background: #1a2a3a; color: #60a5fa; }
.tag-offense    { background: #3a1a1a; color: #f87171; }
.tag-editing    { background: #3a2a1a; color: #fbbf24; }
.tag-rotations  { background: #2a1a3a; color: #c084fc; }
.tag-positioning { background: #1a3a3a; color: #2dd4bf; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #555;
  grid-column: 1 / -1;
}

.empty-state h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #666;
}

/* Share button */
.ctrl-btn.ctrl-share {
  background: #1a2a1a;
  color: #4ade80;
  border-color: #2a5a2a;
}

.ctrl-btn.ctrl-share:hover {
  background: #4ade80;
  color: #0a0a0f;
  border-color: #4ade80;
}

.ctrl-btn.ctrl-share.active {
  background: #4ade80;
  color: #0a0a0f;
  border-color: #4ade80;
}

/* Video list in modal */
.video-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid #222;
  border-radius: 6px;
  margin-bottom: 0.4rem;
  text-decoration: none;
  color: #e0e0e0;
  transition: all 0.2s;
}

.video-list-item:hover {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.05);
}

.video-list-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.video-list-arrow {
  color: #555;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.video-list-item:hover .video-list-arrow {
  color: #00d4ff;
}

/* ---- Clip Detail Page ---- */

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: #00d4ff;
}

.clip-detail-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.clip-detail-loading,
.detail-error {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  font-size: 1rem;
}

.detail-player-wrap {
  background: #151520;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #222;
}

.detail-player-wrap video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16/9;
}

.detail-controls {
  border-top: 1px solid #222;
}

.detail-info {
  margin-top: 1.25rem;
  padding: 0 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail-source {
  font-size: 0.85rem;
  color: #555;
}

.detail-desc {
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.5;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ---- Reactions ---- */

.detail-reactions-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0;
}

.reaction-buttons {
  display: flex;
  gap: 0.5rem;
}

.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #333;
  border-radius: 20px;
  background: #1a1a2e;
  color: #ccc;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.reaction-btn:hover {
  border-color: #00d4ff;
  background: #1a2a3a;
}

.reaction-btn.reaction-active {
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.15);
  color: #00d4ff;
}

.reaction-icon {
  font-size: 1.1rem;
}

.reaction-count {
  font-weight: 600;
  font-size: 0.85rem;
}

.detail-view-count {
  font-size: 0.8rem;
  color: #555;
  margin-left: auto;
}

/* Card-level reactions (small) */
.card-reactions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem 0.75rem;
}

.card-reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.card-reaction-btn:hover {
  color: #00d4ff;
}

.card-reaction-btn.reaction-active {
  color: #00d4ff;
}

.card-view-count {
  font-size: 0.75rem;
  color: #444;
  margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .clip-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .filter-bar {
    padding: 1rem;
  }
}
