/* ==========================================================================
   FanFeed - OnlyFans-inspired Aesthetic Stylesheet
   Pure Vanilla CSS3 - Responsive, Accessible, Clean Light-Mode
   ========================================================================== */

:root {
  --bg-main: #f8f9fa;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --bg-subtle: #f3f4f6;
  
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --color-of-blue: #00aff0;
  --color-of-blue-hover: #0091c7;
  --color-of-blue-light: #e0f6fd;
  
  --color-like: #e0245e;
  --color-like-light: #fee7ef;
  
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-subtle);
  transition: background-color var(--transition-fast);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  user-select: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-of-blue);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--color-of-blue-hover);
  box-shadow: 0 2px 8px rgba(0, 175, 240, 0.35);
}

.btn-outline {
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--bg-subtle);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-full);
}

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

/* User Profile Pill & Dropdown */
.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.user-profile-btn:hover {
  background-color: var(--border-color-light);
  border-color: var(--color-of-blue);
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00aff0, #0077b6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-name-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown Menu */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 0.5rem 0;
  z-index: 120;
  display: none;
  animation: fadeInDown 0.15s ease-out;
}

.profile-dropdown.show {
  display: block;
}

.dropdown-user-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  flex-direction: column;
}

.dropdown-user-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.dropdown-user-status {
  font-size: 0.8rem;
  color: var(--color-of-blue);
  font-weight: 600;
}

.dropdown-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-color-light);
}

.dropdown-setting-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dropdown-lang-options {
  display: flex;
  gap: 0.25rem;
  background-color: var(--bg-subtle);
  padding: 2px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.dropdown-lang-choice {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.dropdown-lang-choice.active {
  background-color: var(--color-of-blue);
  color: #fff;
}

.dropdown-item {
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background-color var(--transition-fast);
}

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

.dropdown-item.danger {
  color: #ef4444;
}

.dropdown-item.danger:hover {
  background-color: #fee2e2;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  width: 100%;
  flex: 1;
}

/* Profile Banner Section */
.profile-view-section {
  display: none;
  margin-bottom: 2rem;
  animation: fadeIn 0.25s ease-out;
}

.profile-view-section.active {
  display: block;
}

.profile-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.profile-cover {
  height: 140px;
  background: linear-gradient(135deg, #00aff0 0%, #0284c7 50%, #0369a1 100%);
  position: relative;
}

.profile-info-body {
  padding: 0 1.5rem 1.5rem;
  position: relative;
}

.profile-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -45px;
  margin-bottom: 1rem;
}

.profile-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  border: 4px solid var(--bg-card);
  background: linear-gradient(135deg, #00aff0, #0369a1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  box-shadow: var(--shadow-card);
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background-color: var(--bg-card);
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.profile-action-btn:hover {
  background-color: var(--bg-subtle);
  border-color: var(--color-of-blue);
  color: var(--color-of-blue);
}

.profile-title-group {
  margin-bottom: 0.75rem;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.verified-badge {
  color: var(--color-of-blue);
  display: inline-flex;
}

.profile-handle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.profile-bio {
  color: var(--text-primary);
  font-size: 0.92rem;
  max-width: 650px;
  margin-bottom: 1.25rem;
}

.profile-stats-row {
  display: flex;
  gap: 2rem;
  border-top: 1px solid var(--border-color-light);
  padding-top: 1rem;
}

.profile-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

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

/* Feed Section Header */
.feed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.feed-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.feed-filter-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-of-blue-light);
  color: var(--color-of-blue);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.feed-filter-indicator button {
  color: var(--color-of-blue);
  display: flex;
  align-items: center;
  padding: 2px;
}

/* ==========================================================================
   Media Grid Layout (Multi-column desktop 3-4, Single-column mobile <768px)
   ========================================================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .media-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Post Card */
.post-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.post-thumbnail-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: #0f172a;
  overflow: hidden;
}

.post-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal), filter 0.4s ease;
}

.post-card:hover .post-thumbnail-img {
  transform: scale(1.03);
}

/* Media Blur rule for age verification consent */
.media-blurred .post-thumbnail-img,
.media-blurred .lightbox-media-img {
  filter: blur(16px) brightness(0.85);
  transform: scale(1.1);
  pointer-events: none;
}

.blur-overlay-notice {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  z-index: 10;
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(2px);
}

.media-blurred .blur-overlay-notice {
  display: flex;
}

.blur-lock-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  color: var(--color-of-blue);
}

.blur-lock-text {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Post Info Container */
.post-info-container {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background-color: var(--bg-card);
}

.post-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.post-account-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-of-blue);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.post-account-link:hover {
  text-decoration: underline;
  color: var(--color-of-blue-hover);
}

.post-likes-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.post-likes-badge svg {
  fill: none;
  stroke: currentColor;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.2s ease;
}

.post-likes-badge:hover {
  background-color: var(--color-like-light);
  color: var(--color-like);
  border-color: #fbcfe8;
}

.post-likes-badge.liked {
  color: var(--color-like);
  background-color: var(--color-like-light);
  border-color: #f472b6;
}

.post-likes-badge.liked svg {
  fill: var(--color-like);
  stroke: var(--color-like);
  transform: scale(1.1);
}

/* Empty & Loading states */
.loading-feed-placeholder,
.empty-feed-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loading-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border-color);
  border-top-color: var(--color-of-blue);
  border-radius: 50%;
  animation: spinLoader 0.8s linear infinite;
  margin-bottom: 0.85rem;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.empty-feed-placeholder h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.empty-feed-placeholder p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Modals & Lightbox System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 460px;
  overflow: hidden;
  position: relative;
  animation: modalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

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

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color-light);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Age Verification Specifics */
.age-modal-dialog {
  max-width: 480px;
  text-align: center;
}

.age-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background-color: var(--color-of-blue-light);
  color: var(--color-of-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.age-modal-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.age-warning-box {
  background-color: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.82rem;
  color: #b45309;
  text-align: left;
}

.age-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

/* Auth Nag Modal Specifics */
.auth-nag-dialog {
  max-width: 420px;
  text-align: center;
}

.auth-nag-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: var(--color-of-blue-light);
  color: var(--color-of-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-nag-benefits {
  list-style: none;
  text-align: left;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.auth-benefit-item svg {
  color: var(--color-of-blue);
  flex-shrink: 0;
}

/* ==========================================================================
   Full-Screen Lightbox Modal
   ========================================================================== */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 15, 29, 0.92);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.lightbox-backdrop.show {
  display: flex;
}

.lightbox-container {
  width: 100%;
  max-width: 980px;
  height: 90vh;
  max-height: 860px;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-media-panel {
  flex: 1.3;
  background-color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-media-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background-color: rgba(0, 175, 240, 0.85);
}

.lightbox-nav-prev {
  left: 1rem;
}

.lightbox-nav-next {
  right: 1rem;
}

.lightbox-media-like-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-fast);
}

.lightbox-media-like-badge svg {
  fill: none;
  stroke: currentColor;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-media-like-badge:hover {
  background: rgba(236, 72, 153, 0.4);
  border-color: #f472b6;
  color: #ffffff;
  transform: translateY(-2px);
}

.lightbox-media-like-badge.liked {
  background: rgba(236, 72, 153, 0.9);
  border-color: #ec4899;
  color: #ffffff;
}

.lightbox-media-like-badge.liked svg {
  fill: #ffffff;
  stroke: #ffffff;
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-media-like-badge.heart-bump svg {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-details-panel {
  flex: 1;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border-left: 1px solid var(--border-color);
}

.lightbox-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lightbox-creator-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lightbox-creator-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #00aff0, #0284c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.lightbox-creator-meta {
  display: flex;
  flex-direction: column;
}

.lightbox-creator-handle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-of-blue);
  cursor: pointer;
}

.lightbox-creator-handle:hover {
  text-decoration: underline;
}

.lightbox-content-body {
  padding: 1.25rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
}

.lightbox-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.lightbox-actions-bar {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color-light);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.like-button-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.like-button-action svg {
  fill: none;
  stroke: currentColor;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), fill 0.2s ease;
}

.like-button-action:hover {
  background-color: var(--color-like-light);
  color: var(--color-like);
  border-color: #fbcfe8;
}

.like-button-action.liked {
  background-color: var(--color-like-light);
  color: var(--color-like);
  border-color: #f472b6;
}

.like-button-action.liked svg {
  fill: var(--color-like);
  stroke: var(--color-like);
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-button-action.heart-bump svg {
  animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Lightbox Mobile layout (<768px) */
@media (max-width: 767px) {
  .lightbox-container {
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .lightbox-media-panel {
    flex: 1.2;
    min-height: 45vh;
  }
  .lightbox-details-panel {
    flex: 1;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
  }
}

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

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

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

@keyframes heartPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* Live DB Status Pill in footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 1.25rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
