/* Modern Dark TikTok Theme Design System */
:root {
  --bg-primary: #09090d;
  --bg-card: #13131a;
  --bg-glass: rgba(22, 22, 32, 0.75);
  --bg-glass-overlay: rgba(0, 0, 0, 0.45);
  --accent-pink: #ff2b66;
  --accent-pink-glow: rgba(255, 43, 102, 0.4);
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  --border-glass: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-glow: 0 8px 32px rgba(255, 43, 102, 0.25);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  touch-action: manipulation;
}

/* Main Mobile Outer Wrapper */
.app-container {
  width: 100%;
  height: 100dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  overflow: hidden;
}

/* TOP HEADER */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 16px) 16px 12px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none;
}

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

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.icon-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

.badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--bg-primary);
}

.feed-tabs {
  display: flex;
  gap: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* VIDEO FEED (TIKTOK VERTICAL SNAP) */
.video-feed {
  width: 100%;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* Hide scrollbars */
.video-feed::-webkit-scrollbar {
  display: none;
}
.video-feed {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* INDIVIDUAL VIDEO CARD */
.video-card {
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Gradient Overlays for Video Controls Readability */
.video-overlay-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
}

.video-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
  pointer-events: none;
}

/* BIG PLAY/PAUSE CENTER INDICATOR */
.play-pause-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.25s ease;
  z-index: 20;
}

.play-pause-indicator.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* RIGHT ACTION BAR (LIKE, COMMENT, SHARE, SOUND) */
.right-action-bar {
  position: absolute;
  right: 14px;
  bottom: 110px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.action-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 22, 32, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform var(--transition-bounce), color var(--transition-fast), background var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.action-btn-circle:active {
  transform: scale(0.85);
}

.action-btn-circle.liked {
  color: var(--accent-pink);
  background: rgba(255, 43, 102, 0.2);
  border-color: var(--accent-pink);
  box-shadow: var(--shadow-glow);
  animation: pulseLike 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseLike {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.action-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-pink);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 12px var(--accent-pink-glow);
  margin-bottom: 6px;
}

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

.author-avatar-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-pink);
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

/* MUSIC DISC ROTATING ANIMATION */
.music-disc {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #111;
  border: 8px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotateDisc 5s linear infinite;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.music-disc.paused {
  animation-play-state: paused;
}

.music-disc img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

@keyframes rotateDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* BOTTOM LEFT INFO PANEL (CAPTION, TAGS, MUSIC) */
.bottom-info-panel {
  position: absolute;
  left: 16px;
  bottom: 95px;
  right: 80px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-primary);
  text-shadow: 0 1px 4px rgba(0,0,0,0.9);
}

.author-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.verified-badge {
  color: var(--accent-cyan);
  font-size: 0.85rem;
}

.video-caption {
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.tag-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-pill i {
  color: var(--accent-pink);
}

.music-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
}

.music-marquee {
  display: inline-block;
  animation: marquee 10s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* VIDEO PROGRESS BAR (SEEKABLE) */
.video-progress-container {
  position: absolute;
  bottom: 65px;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  padding: 4px 0;
}

.video-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  position: relative;
  transition: height 0.15s ease;
}

.video-progress-container:hover .video-progress-bar,
.video-progress-container:active .video-progress-bar {
  height: 6px;
}

.video-progress-filled {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent-purple), var(--accent-pink));
  position: relative;
}

.video-progress-thumb {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px var(--accent-pink);
  transition: transform 0.15s ease;
}

.video-progress-container:hover .video-progress-thumb,
.video-progress-container:active .video-progress-thumb {
  transform: translateY(-50%) scale(1);
}

/* BOTTOM NAVIGATION BAR */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 50;
  background: rgba(9, 9, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: env(safe-area-inset-bottom, 4px);
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
  padding: 4px 12px;
}

.nav-item i {
  font-size: 1.25rem;
}

.nav-item.active {
  color: var(--text-primary);
}

/* FLOATING PLUS UPLOAD BUTTON IN CENTER OF NAV */
.upload-trigger {
  padding: 0;
}

.upload-btn-inner {
  width: 48px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 16px var(--accent-pink-glow);
  transition: transform var(--transition-bounce);
}

.upload-trigger:active .upload-btn-inner {
  transform: scale(0.9);
}

/* DOUBLE TAP HEART POP ANIMATION */
.heart-anim-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 45;
  overflow: hidden;
}

.pop-heart {
  position: absolute;
  color: var(--accent-pink);
  font-size: 90px;
  transform: translate(-50%, -50%) scale(0) rotate(-15deg);
  animation: popHeartAnim 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  filter: drop-shadow(0 0 20px var(--accent-pink-glow));
}

@keyframes popHeartAnim {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-15deg);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
  }
  60% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(-5deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100px) scale(1.4) rotate(15deg);
  }
}

/* MODALS & BOTTOM SHEETS */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.hidden .modal-card {
  transform: translateY(100%);
}

.modal-card.center-card {
  margin: auto;
  border-radius: var(--radius-lg);
  max-height: 90vh;
  transform: scale(1);
}

.modal-overlay.hidden .modal-card.center-card {
  transform: scale(0.9) translateY(20px);
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.sheet-handle {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* UPLOAD DROPZONE */
.upload-dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.upload-dropzone:hover {
  border-color: var(--accent-pink);
  background: rgba(255, 43, 102, 0.05);
}

.upload-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 43, 102, 0.15);
  color: var(--accent-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px auto;
}

.dropzone-content .primary-text {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.dropzone-content .secondary-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.video-preview-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 220px;
  background: #000;
}

.video-preview-wrapper video {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.btn-change-video {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
}

/* FORM STYLES */
.upload-form, .aws-config-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

label i {
  color: var(--accent-pink);
}

input[type="text"], input[type="url"], input[type="date"], input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: white;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input[type="text"]:focus, input[type="url"]:focus, input[type="date"]:focus, input[type="password"]:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(255, 43, 102, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast);
  margin-top: 6px;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* AWS BANNER & PROGRESS BAR */
.aws-mode-banner {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.78rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-progress-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-pink));
  transition: width 0.2s ease;
}

.progress-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

/* RADIO CARDS FOR AWS CONFIG */
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card input {
  display: none;
}

.card-box {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-fast);
}

.card-box i {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.card-box span {
  font-size: 0.82rem;
  font-weight: 700;
}

.card-box small {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.radio-card input:checked + .card-box {
  border-color: var(--accent-pink);
  background: rgba(255, 43, 102, 0.1);
}

.radio-card input:checked + .card-box i {
  color: var(--accent-pink);
}

.aws-info-card {
  display: flex;
  gap: 12px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 12px;
  border-radius: var(--radius-md);
}

.aws-info-card .info-icon {
  font-size: 1.5rem;
  color: var(--accent-purple);
}

.aws-info-card .info-content h4 {
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.aws-info-card .info-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.code-snippet-box {
  background: #000;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.snippet-header {
  background: rgba(255,255,255,0.05);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-copy {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  cursor: pointer;
}

.code-content {
  padding: 10px 12px;
  font-family: monospace;
  font-size: 0.72rem;
  color: #a7f3d0;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
}

/* SEARCH & CHIPS */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
}

.search-box input {
  padding-left: 40px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.sort-options {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sort-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
}

.sort-btn.active {
  border-color: var(--accent-purple);
  background: rgba(139, 92, 246, 0.2);
  color: #fff;
}

/* COMMENTS SHEET STYLES */
.comments-sheet {
  height: 70vh;
}

.comments-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comment-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.comment-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comment-author {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.comment-text {
  font-size: 0.88rem;
  line-height: 1.35;
}

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

.comment-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.3);
}

.comment-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: #fff;
  font-size: 0.85rem;
}

.btn-send-comment {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-pink);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(19, 19, 26, 0.95);
  border: 1px solid var(--accent-pink);
  box-shadow: var(--shadow-glow);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 200;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(-20px);
  pointer-events: none;
}

.toast i {
  color: var(--accent-pink);
}

/* GALLERY MODAL STYLES */
.gallery-sheet {
  height: 80vh;
}

.gallery-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #000;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.gallery-item:active {
  transform: scale(0.96);
  border-color: var(--accent-pink);
}

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  color: #fff;
}

.gallery-play-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin: auto;
}

.gallery-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gallery-item-title {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  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);
}

.gallery-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-secondary);
}

.gallery-item-likes i {
  color: var(--accent-pink);
}

/* FULLSCREEN LOGIN OVERLAY */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: radial-gradient(circle at center, #1c1429 0%, #09090d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.login-screen.hidden {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: rgba(22, 22, 32, 0.85);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 30px rgba(255, 43, 102, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-avatar-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  box-shadow: var(--shadow-glow);
  margin-bottom: 14px;
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 40px rgba(255, 43, 102, 0.6); }
}

.login-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
  background: linear-gradient(to right, #fff, var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.login-select,
.login-input,
.passcode-input-wrapper input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 16px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.95rem !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: all var(--transition-fast) !important;
}

.login-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.7)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px !important;
  padding-right: 40px !important;
}

.login-select:focus,
.login-input:focus,
.passcode-input-wrapper input:focus {
  border-color: var(--accent-pink) !important;
  box-shadow: 0 0 0 3px rgba(255, 43, 102, 0.2) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.login-select option {
  background: var(--bg-card);
  color: #fff;
}

.passcode-input-wrapper {
  position: relative;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex;
  align-items: center;
}

.passcode-input-wrapper input {
  padding-right: 48px !important;
}

.btn-toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.btn-toggle-pass:hover, .btn-toggle-pass:active {
  color: var(--accent-pink);
  transform: translateY(-50%) scale(1.15);
}

.passcode-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-login {
  margin-top: 8px;
  padding: 14px;
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

/* HIDE NETLIFY BADGE / DRAWER / FOOTER CREDITS */
iframe[src*="netlify"],
[id*="netlify-drawer"],
[id*="netlify-badge"],
.netlify-badge,
#netlify-modal-root,
div[class*="netlify-badge"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
