/* ===== BROWSE SESSIONS CSS ===== */

.browse-header {
  text-align: center;
  margin-bottom: 50px;
}

.browse-title {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.browse-subtitle {
  color: var(--muted);
  font-size: 16px;
}

.sessions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 50px;
  justify-content: center;
  justify-items: center;
  max-width: 820px;
  margin: 0 auto;
}

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

/* SESSION CARD */
.sessions-grid .session-card {
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;
  min-height: 400px !important;
  min-width: 0 !important;
  flex: none !important;
  padding: 0 !important;
  text-align: left !important;
  background: #050514 !important;
  border: 1.5px solid rgba(138, 76, 255, 0.15) !important;
  border-radius: 20px !important;
  overflow: visible !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 auto !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

.card-top {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    overflow: hidden;
}

.card-footer {
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.sessions-grid .session-card * {
    color: #fff; /* Safe fallback, no !important so inline colors (like accent) can override */
}

.sessions-grid .session-card .stat-label, 
.sessions-grid .session-card .browse-subtitle,
.sessions-grid .session-card .creator-name-mini + span {
    color: rgba(255, 255, 255, 0.5) !important;
}

.sessions-grid .session-card .btn-open-session {
    color: #fff !important;
}

.sessions-grid .session-card:hover {
  transform: translateY(-10px) !important;
  background: rgba(10, 10, 30, 0.8) !important;
  border-color: rgba(138, 76, 255, 0.4) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5) !important;
}

.card-top {
  position: relative;
  height: 230px;
  width: 100%;
  z-index: 1;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.card-top::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 2;
}

/* Session name overlay — positioned at bottom of image (like in screenshots) */
.session-name-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px 18px 14px;
  z-index: 3;
  pointer-events: none;
}

.session-name {
  font-size: 22px;
  font-weight: 900;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: transform 0.8s ease, filter 0.4s ease;
}

.session-card:hover .session-thumb {
  transform: scale(1.1);
  filter: brightness(0.8);
}

.creator-mini-profile {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 5px 12px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2;
}

.creator-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--accent);
}

.creator-name-mini {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-follow-mini {
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-follow-mini:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
}

.btn-follow-mini.following {
  background: #2ed573;
}

/* LIKE BADGE */
.like-badge-container {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.like-badge-container {
    opacity: 1;
    transform: translateY(0);
}

.session-card .like-badge-container {
    opacity: 1;
    transform: translateY(0);
}

.btn-like-session {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-like-session i {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.btn-like-session.liked {
    border-color: rgba(255, 71, 87, 0.4);
    background: rgba(255, 71, 87, 0.15);
}

.btn-like-session.liked i {
    color: #ff4757;
}

.btn-like-session:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.btn-like-session:active {
    transform: scale(0.95);
}

.like-count {
    font-size: 13px;
    font-weight: 700;
}

.card-body {
  position: relative;
  z-index: 2;
  padding: 16px 18px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* session-name is now inside card-top overlay, not here */

.session-stats-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
}

.stat-item i {
  color: var(--accent);
}

.session-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-box .stat-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-box .stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.card-footer {
  position: relative;
  z-index: 2;
  padding: 0 25px 25px 25px;
}

.btn-open-session {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  border: none;
  border-radius: 15px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(106, 47, 233, 0.3);
}

.btn-open-session:hover {
  background: var(--secondary);
  border-color: var(--accent);
}

.btn-open-session i {
  font-size: 14px;
}

/* SKELETON / LOADING */
.sessions-grid .skeleton-card {
  width: 100% !important;
  max-width: 380px !important;
  min-height: 400px !important;
  min-width: 0 !important;
  flex: none !important;
  padding: 0 !important;
  background: #050514 !important;
  border: 1.5px solid rgba(138, 76, 255, 0.15) !important;
  border-radius: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

.skeleton-photo {
  width: 100%;
  height: 230px;
}

.skeleton-content {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-block {
  animation: shimmer-effect 1.4s linear infinite;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.03) 75%);
  background-size: 400px 100%;
  border-radius: 12px;
}


.skeleton-profile {
  display: flex;
  gap: 10px;
  align-items: center;
}

.skeleton-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.skeleton-text-short {
  width: 40%;
  height: 15px;
}

.skeleton-text-long {
  width: 70%;
  height: 20px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.skeleton-stat {
  height: 50px;
}

.skeleton-button {
  height: 50px;
  border-radius: 15px;
  margin-top: auto;
}

@keyframes shimmer-effect {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.loading-trigger {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.shimmer-loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(138, 76, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

/* PASSWORD MODAL EXTRA */
.password-card {
  max-width: 400px;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn-alert-close.confirm {
  background: var(--success);
}

/* ===== VIDEO FEATURES ===== */

/* Removed height and layout overrides for .session-card.has-video so it shares the same structure as photo cards */

.video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #00d4ff;
    border: 1px solid #00d4ff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.session-card:hover .video-preview {
    opacity: 1;
}

/* FULLSCREEN OVERLAY */
.fullscreen-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.btn-close-video {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

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

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px; /* TikTok style max width on desktop */
    background: #000;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s;
    will-change: transform, opacity;
}

.video-container.slide-out-up {
    transform: translateY(-100%);
    opacity: 0;
}

.video-container.slide-out-down {
    transform: translateY(100%);
    opacity: 0;
}

.video-container.slide-in-up {
    animation: slideInUp 0.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.video-container.slide-in-down {
    animation: slideInDown 0.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

@keyframes slideInUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

#fullscreenVideoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or cover depending on preference, contain is safer */
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.video-play-btn i {
    margin-left: 5px;
}

/* SIDEBAR ACTIONS — Right rail TikTok-style, vertically centred */
.sidebar-actions {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    z-index: 10001;
}

.action-btn {
    background: rgba(0,0,0,0.38);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    padding: 10px 13px 8px;
    min-width: 54px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s, background 0.2s;
}

.action-btn i {
    font-size: 26px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
    transition: color 0.2s;
}

.action-btn:hover {
    background: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

.action-btn.liked i {
    color: #ff4757;
    animation: heartBeat 0.5s;
}

.action-count {
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

@keyframes heartBeat {
    0%   { transform: scale(1); }
    25%  { transform: scale(1.4); }
    50%  { transform: scale(1); }
    75%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* CREATOR INFO BOTTOM — clipped so it never overlaps sidebar */
.creator-info-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% - 90px);
    padding: 60px 18px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    z-index: 10000;
    color: white;
    pointer-events: none;
}

.creator-info-content {
    pointer-events: all;
}

.video-session-title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.9);
    line-height: 1.3;
}

.video-session-desc {
    font-size: 13px;
    color: #d1d5db;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.creator-profile-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-creator-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2.5px solid #00d4ff;
    object-fit: cover;
    flex-shrink: 0;
}

.video-creator-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.video-creator-name {
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-creator-pseudo {
    font-size: 12px;
    color: #94a3b8;
}

.btn-video-follow {
    margin-left: auto;
    background: rgba(255,255,255,0.92);
    color: #0f172a;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.btn-video-follow:hover {
    background: #ffffff;
    transform: scale(1.04);
}

.btn-video-follow.following {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.5);
}

/* Share preview — circular session photo */
.share-preview-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #e2e8f0;
    flex-shrink: 0;
    background: #f1f5f9;
}

/* Reply banner in comments drawer */
.reply-target-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f3ff;
    border-left: 3px solid #7c3aed;
    border-radius: 0 10px 10px 0;
    padding: 8px 12px;
    margin-bottom: 8px;
    gap: 10px;
}

.reply-target-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.btn-cancel-reply {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #475569;
    flex-shrink: 0;
}

/* Auth required notice inside comments */
.comment-auth-notice {
    text-align: center;
    padding: 24px 16px;
    background: #f5f3ff;
    border-radius: 14px;
    margin: 8px;
}

.comment-auth-notice p {
    font-size: 13.5px;
    color: #4b5563;
    margin-bottom: 12px;
}

.btn-login-to-comment {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
    transition: all 0.2s;
}

.btn-login-to-comment:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(124,58,237,0.5);
}

/* ============================================================
   RESPONSIVE MOBILE — browse-sessions
   ≤ 768px : tablettes/petits écrans
   ≤ 480px : smartphones
   ============================================================ */

@media (max-width: 768px) {
  .sessions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 30px;
    justify-items: center;
    max-width: 400px;
    margin: 0 auto;
  }

  /* Titre de la page */
  .browse-header {
    margin-bottom: 30px;
  }
  .browse-title {
    font-size: 28px;
  }
  .browse-subtitle {
    font-size: 14px;
  }

  /* Carte session */
  .sessions-grid .session-card {
    min-height: auto !important;
    border-radius: 20px !important;
  }
  .card-top {
    height: 200px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }
  .card-footer {
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
  }
  .card-body {
    padding: 14px 16px 10px;
  }
  .card-footer {
    padding: 0 16px 16px;
  }
  .session-name {
    font-size: 20px;
  }
  .stat-item {
    font-size: 13px;
  }
  .btn-open-session {
    padding: 13px;
    font-size: 14px;
    border-radius: 13px;
  }

  /* Skeleton */
  .sessions-grid .skeleton-card {
    min-height: auto !important;
    border-radius: 22px !important;
  }
  .skeleton-photo {
    height: 200px;
  }

  /* Password modal */
  .password-card {
    margin: 0 16px;
    padding: 24px 20px;
    border-radius: 20px;
  }

  /* Video fullscreen — sidebar actions centrées et bien visibles */
  .sidebar-actions {
    right: 12px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    gap: 16px;
  }
  .action-btn {
    min-width: 48px;
    padding: 8px 10px 6px;
  }
  .action-btn i {
    font-size: 24px;
  }
  .action-count {
    font-size: 11.5px;
  }

  /* Creator info bottom */
  .creator-info-bottom {
    width: calc(100% - 75px);
    padding: 40px 14px 18px;
  }
  .video-session-title {
    font-size: 16px;
  }
  .video-session-desc {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .video-creator-avatar {
    width: 36px;
    height: 36px;
  }
  .video-creator-name {
    font-size: 13px;
  }
  .video-creator-pseudo {
    font-size: 11px;
  }
  .btn-video-follow {
    font-size: 12px;
    padding: 5px 10px;
  }

  /* Stat boxes */
  .session-stats-grid {
    gap: 8px;
    margin-top: 10px;
  }
  .stat-box {
    padding: 8px;
    border-radius: 10px;
  }
  .stat-box .stat-val {
    font-size: 14px;
  }
  .stat-box .stat-label {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  /* Titre encore plus petit */
  .browse-title {
    font-size: 22px;
  }
  .browse-subtitle {
    font-size: 13px;
  }

  /* Carte : plus compacte */
  .sessions-grid .session-card {
    border-radius: 18px !important;
  }
  .card-top {
    height: 180px;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  .card-footer {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    padding: 0 14px 14px;
  }
  .card-body {
    padding: 12px 14px;
  }
  .session-name {
    font-size: 18px;
  }
  .stat-item {
    font-size: 12px;
    gap: 6px;
  }
  .btn-open-session {
    padding: 11px;
    font-size: 13px;
    border-radius: 12px;
    gap: 8px;
  }
  .btn-open-session i {
    font-size: 12px;
  }

  /* Badge créateur mini */
  .creator-mini-profile {
    padding: 4px 8px;
    gap: 6px;
    border-radius: 20px;
  }
  .creator-avatar {
    width: 20px;
    height: 20px;
  }
  .creator-name-mini {
    font-size: 11px;
  }
  .btn-follow-mini {
    width: 18px;
    height: 18px;
    font-size: 9px;
  }

  /* Like badge */
  .btn-like-session {
    padding: 5px 9px;
    gap: 5px;
  }
  .btn-like-session i {
    font-size: 12px;
  }
  .like-count {
    font-size: 11px;
  }

  /* Skeleton */
  .sessions-grid .skeleton-card {
    border-radius: 18px !important;
  }
  .skeleton-photo {
    height: 180px;
  }
  .skeleton-content {
    padding: 16px;
    gap: 10px;
  }

  /* Password modal */
  .password-card {
    margin: 0 10px;
    padding: 20px 14px;
    border-radius: 16px;
  }
  .modal-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .btn-alert-close {
    width: 100%;
  }

  /* Video fullscreen — player plein écran sur mobile */
  .video-container {
    max-width: 100%;
  }
  .sidebar-actions {
    right: 10px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    gap: 14px;
  }
  .action-btn {
    min-width: 44px;
    padding: 8px 8px 6px;
  }
  .action-btn i {
    font-size: 22px;
  }
  .creator-info-bottom {
    width: calc(100% - 68px);
    padding: 30px 12px 16px;
  }
  .video-play-btn {
    width: 64px;
    height: 64px;
    font-size: 24px;
  }
  .btn-close-video {
    top: 14px;
    left: 14px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}

/* ==========================================================================
   VIDEO FULLSCREEN DRAWERS & MODALS (White & Professional Theme)
   ========================================================================== */

.video-drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999998 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s !important;
}

.video-drawer-backdrop.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.video-bottom-drawer {
  position: fixed !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(105%) !important;
  width: 100% !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  border-top-left-radius: 28px !important;
  border-top-right-radius: 28px !important;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.35) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 75vh !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15), visibility 0.35s !important;
  color: #0f172a !important;
  overflow: hidden !important;
}

.video-bottom-drawer.show {
  transform: translateX(-50%) translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}


.drawer-drag-pill {
  width: 42px;
  height: 4.5px;
  background: #cbd5e1;
  border-radius: 99px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 14px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.drawer-counter-badge {
  background: #f1f5f9;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.drawer-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.drawer-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: scale(1.05);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 18px;
  color: #334155;
}

/* Comments List */
.comments-list-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  max-height: 48vh;
}

.comment-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 4px;
  border-bottom: 1px solid #f8fafc;
  animation: fadeIn 0.3s ease;
}

.comment-card-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
}

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

.comment-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.comment-card-time {
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
}

.comment-card-text {
  font-size: 13.5px;
  line-height: 1.45;
  color: #334155;
  word-break: break-word;
}

.comment-card-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
}

.comment-like-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  padding: 0;
  transition: color 0.2s, transform 0.15s;
}

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

.comment-like-btn.liked i {
  animation: heartBeat 0.35s;
}

.comment-like-btn:hover {
  color: #ef4444;
}

/* Empty comments state */
.empty-comments-state {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
}

.empty-comments-state .empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
}

.empty-comments-state h4 {
  font-size: 15px;
  color: #0f172a;
  margin-bottom: 4px;
}

.empty-comments-state p {
  font-size: 13px;
}

/* Comments Footer & Input Bar */
.drawer-footer.comment-input-bar {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  padding: 10px 16px 14px;
  flex-shrink: 0;
}

.quick-emoji-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 6px;
  scrollbar-width: none;
}

.quick-emoji-row::-webkit-scrollbar {
  display: none;
}

.quick-emoji-btn {
  font-size: 18px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 8px;
  transition: transform 0.15s, background 0.15s;
  user-select: none;
}

.quick-emoji-btn:hover {
  transform: scale(1.3);
  background: #f8fafc;
}

.comment-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.comment-input-wrapper {
  flex: 1;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.comment-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.comment-text-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 9px 0;
  font-size: 13.5px;
  color: #0f172a;
  outline: none;
}

.comment-text-input::placeholder {
  color: #94a3b8;
}

.btn-send-comment {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-send-comment:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
}

/* ==========================================================================
   SHARE DRAWER & SOCIAL GRID
   ========================================================================== */

.share-session-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.share-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.share-preview-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.share-preview-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.social-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.social-share-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 12px;
  transition: transform 0.2s ease, background-color 0.2s;
}

.social-share-btn:hover {
  transform: translateY(-3px);
  background: #f8fafc;
}

.social-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}

.social-share-btn span {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

/* Brand Colors */
.share-wa .social-icon-circle { background: linear-gradient(135deg, #25D366 0%, #128C7E 100%); }
.share-tg .social-icon-circle { background: linear-gradient(135deg, #2AABEE 0%, #229ED9 100%); }
.share-fb .social-icon-circle { background: linear-gradient(135deg, #1877F2 0%, #0d5cb6 100%); }
.share-tw .social-icon-circle { background: linear-gradient(135deg, #0f172a 0%, #334155 100%); }
.share-native .social-icon-circle { background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%); }
.share-sms .social-icon-circle { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.share-email .social-icon-circle { background: linear-gradient(135deg, #ea4335 0%, #c5221f 100%); }
.share-qr .social-icon-circle { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.share-copy-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px 6px 4px 14px;
  gap: 8px;
}

.share-link-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: #475569;
  outline: none;
  font-family: monospace;
}

.btn-copy-share-link {
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-copy-share-link:hover {
  background: #7c3aed;
  transform: scale(1.02);
}

.btn-copy-share-link.copied {
  background: #10b981;
}

/* ==========================================================================
   3-DOTS ACTION SHEET MENU
   ========================================================================== */

.action-sheet-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 20px;
}

.action-sheet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease, transform 0.15s;
}

.action-sheet-row:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

.sheet-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.icon-purple { background: #f5f3ff; color: #7c3aed; }
.icon-blue { background: #eff6ff; color: #2563eb; }
.icon-cyan { background: #ecfeff; color: #0891b2; }
.icon-amber { background: #fffbeb; color: #d97706; }
.icon-emerald { background: #ecfdf5; color: #059669; }
.icon-rose { background: #fff1f2; color: #e11d48; }

.sheet-row-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sheet-row-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.sheet-row-text span {
  font-size: 12px;
  color: #64748b;
  margin-top: 1px;
}

.sheet-chevron {
  font-size: 12px;
  color: #cbd5e1;
}

.sheet-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 10px;
}

/* ==========================================================================
   REPORT & QR MODAL DIALOGS
   ========================================================================== */

.video-modal-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 90%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  z-index: 100030;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
  color: #0f172a;
  overflow: hidden;
}

.video-modal-dialog.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  visibility: visible;
}

.modal-dialog-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-dialog-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff1f2;
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.modal-dialog-header h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  flex: 1;
  color: #0f172a;
}

.modal-dialog-body {
  padding: 18px 20px;
}

.report-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.report-option-item input[type="radio"] {
  display: none;
}

.report-opt-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s;
}

.report-option-item input[type="radio"]:checked + .report-opt-box {
  background: #fff1f2;
  border-color: #f43f5e;
  color: #e11d48;
}

.report-opt-box i {
  font-size: 15px;
}

.report-textarea {
  width: 100%;
  height: 70px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  resize: none;
}

.report-textarea:focus {
  border-color: #e11d48;
}

.modal-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #f1f5f9;
  background: #f8fafc;
}

.btn-modal-cancel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-modal-cancel:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.btn-modal-submit-report {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  transition: all 0.2s;
}

.btn-modal-submit-report:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.45);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}


