/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

:root {
  --primary: #ff2d55;
  --primary-dark: #e6204a;
  --primary-light: #ff6b8a;
  --secondary: #ffd700;
  --bg-primary: #0a0a0a;
  --bg-secondary: #0f0f0f;
  --bg-card: rgba(20, 20, 20, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --border-color: rgba(255, 255, 255, 0.06);
  --shadow-color: rgba(255, 45, 85, 0.15);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 100vh;
  background-image: 
    radial-gradient(ellipse at 10% 20%, rgba(255, 45, 85, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
}

/* ============ APP CONTAINER ============ */
#app {
  max-width: 480px;
  width: 100%;
  background: var(--bg-secondary);
  min-height: 100vh;
  border-radius: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 0 80px rgba(255, 45, 85, 0.06),
    0 0 40px rgba(0, 0, 0, 0.4);
  transition: all 0.5s var(--transition-smooth);
}

/* ============ RESPONSIVE PC ============ */
@media (min-width: 769px) {
  body {
    padding: 40px 30px;
    background: radial-gradient(ellipse at 50% 0%, #1a0808 0%, var(--bg-primary) 70%);
  }
  #app {
    max-width: 1100px;
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    min-height: auto;
    padding-bottom: 20px;
  }
  .video-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
  }
  .ios-header {
    padding: 20px 32px 16px !important;
    border-radius: 32px 32px 0 0;
  }
  .logo-text {
    font-size: 28px !important;
  }
  .logo-emoji {
    font-size: 30px !important;
    animation: float 3s ease-in-out infinite !important;
  }
  .logo-sub {
    font-size: 16px !important;
    padding: 4px 14px !important;
  }
  .bottom-nav {
    max-width: 1100px !important;
    border-radius: 0 0 32px 32px;
    padding: 12px 0 18px !important;
    position: relative !important;
    transform: none !important;
    left: auto !important;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 15, 15, 0.98);
  }
  .nav-btn {
    max-width: 90px !important;
  }
  .nav-btn i {
    font-size: 26px !important;
  }
  .nav-btn span {
    font-size: 12px !important;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.02); }
}

@keyframes telegramPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3); }
  50% { box-shadow: 0 4px 40px rgba(0, 136, 204, 0.5); }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 45, 85, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 45, 85, 0.4);
  }
}

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

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1); }
  42% { transform: scale(1.3); }
  70% { transform: scale(1); }
}

/* ============ HEADER ============ */
.ios-header {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 20;
  animation: slideDown 0.5s var(--transition-smooth);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-emoji {
  font-size: 22px;
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-light);
  background: rgba(255, 45, 85, 0.1);
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 45, 85, 0.1);
  transition: all 0.3s var(--transition-smooth);
}

.logo-sub:hover {
  background: rgba(255, 45, 85, 0.2);
  transform: scale(1.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  font-size: 13px;
  color: #ccc;
  background: rgba(255, 255, 255, 0.04);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition-smooth);
  cursor: default;
}

.user-badge:hover {
  background: rgba(255, 255, 255, 0.08);
}

.vip-badge {
  font-size: 13px;
  font-weight: bold;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition-smooth);
  cursor: default;
}

.vip-badge.vip-active {
  background: rgba(255, 215, 0, 0.15);
  border-color: var(--secondary);
  color: var(--secondary);
  animation: glow 2s ease-in-out infinite;
}

.btn-logout {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.12);
  color: #ff3b30;
  font-size: 16px;
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-logout::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.1);
  transition: all 0.5s var(--transition-smooth);
  transform: translate(-50%, -50%);
}

.btn-logout:hover::before {
  width: 200%;
  height: 200%;
}

.btn-logout:hover {
  background: rgba(255, 59, 48, 0.15);
  transform: scale(1.05) rotate(10deg);
}

.telegram-link {
  color: #0088cc;
  font-size: 22px;
  transition: all 0.3s var(--transition-bounce);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 50%;
  background: rgba(0, 136, 204, 0.08);
}

.telegram-link:hover {
  transform: scale(1.15) rotate(-10deg);
  background: rgba(0, 136, 204, 0.18);
  box-shadow: 0 0 30px rgba(0, 136, 204, 0.15);
}

/* ============ TELEGRAM FIXED ============ */
.telegram-fixed {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #0088cc, #00a8ff);
  color: #fff;
  padding: 14px;
  border-radius: 50%;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.3);
  transition: all 0.3s var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  animation: telegramPulse 3s ease-in-out infinite;
}

.telegram-fixed:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 40px rgba(0, 136, 204, 0.4);
}

.telegram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0088cc, #00a8ff);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s var(--transition-smooth);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.telegram-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.5s;
}

.telegram-btn:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 136, 204, 0.25);
}

/* ============ AUTH ============ */
.section {
  display: none;
  padding: 20px 16px;
  animation: fadeIn 0.4s var(--transition-smooth);
}

.auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 20px;
  background: radial-gradient(ellipse at center, rgba(255, 45, 85, 0.05) 0%, transparent 70%);
}

.auth-container {
  width: 100%;
  max-width: 400px;
  animation: scaleIn 0.6s var(--transition-bounce);
}

.auth-logo {
  text-align: center;
  margin-bottom: 30px;
}

.auth-logo-big {
  font-size: 64px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.auth-logo h1 {
  font-size: 36px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.auth-logo h1 span {
  font-size: 28px;
  -webkit-text-fill-color: var(--primary-light);
}

.auth-slogan {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 4px;
  font-style: italic;
  font-family: 'Dancing Script', cursive;
}

.auth-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  margin: 12px auto;
  border-radius: 10px;
  animation: pulse 2s ease-in-out infinite;
}

.auth-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 24px 20px 28px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--transition-smooth);
}

.auth-card:hover {
  border-color: rgba(255, 45, 85, 0.1);
}

.auth-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  opacity: 0;
  transition: all 0.3s var(--transition-smooth);
  border-radius: 30px;
}

.tab-btn.active {
  color: #fff;
}

.tab-btn.active::before {
  opacity: 1;
}

.tab-btn.active i,
.tab-btn.active span {
  position: relative;
  z-index: 1;
}

.tab-btn:not(.active):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: fadeIn 0.3s var(--transition-smooth);
}

.auth-form.active {
  display: flex;
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.input-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: all 0.3s var(--transition-smooth);
  transform: translateX(-50%);
}

.input-group:focus-within::after {
  width: 80%;
}

.input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.05);
}

.input-group i {
  color: #555;
  font-size: 14px;
  margin-right: 12px;
  transition: all 0.3s var(--transition-smooth);
}

.input-group:focus-within i {
  color: var(--primary-light);
}

.input-group input {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.input-group input::placeholder {
  color: #444;
}

.btn-primary {
  padding: 14px;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: all 0.5s;
}

.btn-primary:hover::after {
  transform: rotate(45deg) translateX(100%);
}

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

.btn-login {
  background: linear-gradient(135deg, var(--primary), #ff3b30);
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.12);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 45, 85, 0.2);
}

.btn-register {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.1);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255, 45, 85, 0.18);
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
  font-size: 13px;
}

.auth-18 {
  color: var(--primary);
  font-weight: 700;
}

.auth-forgot {
  color: #555;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.auth-forgot:hover {
  color: var(--primary-light);
}

.auth-terms {
  color: #555;
}

.auth-footer {
  text-align: center;
  margin-top: 16px;
  color: #444;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.footer-heart {
  animation: heartBeat 1.5s ease-in-out infinite;
  display: inline-block;
}

/* ============ FEED ============ */
.feed-section {
  padding: 16px 12px 80px;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
  animation: slideUp 0.5s var(--transition-smooth);
}

.feed-header h2 {
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-header h2 i {
  animation: pulse 2s ease-in-out infinite;
}

.video-count {
  font-size: 13px;
  color: #666;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition-smooth);
}

.video-count:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.video-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  border: 1px solid var(--border-color);
  animation: slideUp 0.5s var(--transition-smooth);
  animation-fill-mode: backwards;
}

.video-card:nth-child(1) { animation-delay: 0.05s; }
.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.15s; }
.video-card:nth-child(4) { animation-delay: 0.2s; }
.video-card:nth-child(5) { animation-delay: 0.25s; }
.video-card:nth-child(6) { animation-delay: 0.3s; }

.video-card:hover {
  border-color: rgba(255, 45, 85, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-card:active {
  transform: scale(0.96);
}

.video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  overflow: hidden;
  position: relative;
}

.video-thumb iframe,
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: transform 0.3s var(--transition-smooth);
}

.video-card:hover .video-thumb iframe,
.video-card:hover .video-thumb video {
  transform: scale(1.05);
}

.views-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 10px;
  color: #fff;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s var(--transition-smooth);
}

.video-card:hover .views-badge {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

.video-info {
  padding: 10px 12px 14px;
}

.video-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s var(--transition-smooth);
}

.video-card:hover .video-info h4 {
  color: var(--primary-light);
}

.video-info .meta {
  font-size: 11px;
  color: #555;
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.video-info .meta span {
  transition: all 0.3s var(--transition-smooth);
}

.video-card:hover .video-info .meta span {
  color: #888;
}

/* ============ SEARCH ============ */
.search-header {
  margin-bottom: 16px;
  animation: slideUp 0.5s var(--transition-smooth);
}

.search-header h2 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-header p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 2px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
  transition: all 0.3s var(--transition-smooth);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.05);
}

.search-bar i {
  color: #555;
  margin-right: 12px;
  transition: all 0.3s var(--transition-smooth);
}

.search-bar:focus-within i {
  color: var(--primary-light);
}

.search-bar input {
  flex: 1;
  padding: 14px 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.search-bar input::placeholder {
  color: #444;
}

.search-clear {
  background: none;
  border: none;
  color: #555;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  transition: all 0.3s var(--transition-smooth);
}

.search-clear:hover {
  color: #fff;
  transform: rotate(90deg);
}

.trending-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.trending-header span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trending-count {
  font-size: 12px;
  color: #555;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

.hashtag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  animation: slideUp 0.5s var(--transition-smooth);
}

.search-tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  color: var(--primary-light);
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.2);
}

.search-tag.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 25px rgba(255, 45, 85, 0.3);
  transform: scale(1.05);
}

.search-tag .tag-count {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 8px;
  border-radius: 12px;
  color: #888;
  transition: all 0.3s var(--transition-smooth);
}

.search-tag.active .tag-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 150px;
}

.search-empty {
  text-align: center;
  padding: 40px 20px;
  color: #555;
  animation: fadeIn 0.5s var(--transition-smooth);
}

.search-empty i {
  font-size: 40px;
  opacity: 0.5;
  display: block;
  margin-bottom: 12px;
  animation: float 3s ease-in-out infinite;
}

.search-empty p {
  font-size: 16px;
  color: #888;
}

.search-empty span {
  font-size: 13px;
  color: #444;
}

.search-item {
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s var(--transition-smooth);
  animation: slideUp 0.3s var(--transition-smooth);
}

.search-item:hover {
  border-color: rgba(255, 45, 85, 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-item .thumb {
  width: 80px;
  height: 50px;
  background: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.search-item .thumb iframe,
.search-item .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-item .info {
  flex: 1;
  min-width: 0;
}

.search-item .info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #eee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-item .info .tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 4px 0;
}

.search-item .info .tags span {
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 10px;
  border-radius: 12px;
  font-size: 10px;
  color: var(--primary-light);
  border: 1px solid var(--border-color);
}

.search-item .info .meta {
  font-size: 12px;
  color: #555;
  display: flex;
  gap: 12px;
}

/* ============ UPLOAD ============ */
.upload-section {
  padding: 20px 16px 80px;
}

.upload-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  animation: scaleIn 0.5s var(--transition-bounce);
}

.upload-card h3 {
  margin-bottom: 16px;
  color: #eee;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-card h3 i {
  color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

.upload-or {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin: 8px 0 12px;
  position: relative;
}

.upload-or::before,
.upload-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 25%;
  height: 1px;
  background: var(--border-color);
}

.upload-or::before {
  left: 0;
}

.upload-or::after {
  right: 0;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s var(--transition-smooth);
  margin-bottom: 10px;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.05);
}

.input-field.file-input {
  padding: 10px 14px;
  color: #888;
}

.input-field.file-input::file-selector-button {
  padding: 6px 16px;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.input-field.file-input::file-selector-button:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.progress-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  height: 6px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  height: 100%;
  width: 0%;
  transition: width 0.3s var(--transition-smooth);
  border-radius: 10px;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 2s ease-in-out infinite;
  background-size: 200% 100%;
}

/* ============ PROFILE ============ */
.profile-section {
  padding: 20px 16px 80px;
}

.profile-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  animation: scaleIn 0.5s var(--transition-bounce);
  transition: all 0.3s var(--transition-smooth);
}

.profile-card:hover {
  border-color: rgba(255, 45, 85, 0.1);
}

.profile-avatar {
  font-size: 64px;
  color: var(--primary-light);
  margin-bottom: 8px;
  animation: float 3s ease-in-out infinite;
}

.profile-card h3 {
  color: #eee;
  margin-bottom: 16px;
  font-weight: 600;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  text-align: left;
  transition: all 0.3s var(--transition-smooth);
}

.profile-item:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 8px;
}

.profile-item:last-child {
  border-bottom: none;
}

.profile-item span {
  color: #555;
}

.profile-item strong {
  color: #eee;
}

#profileVip {
  display: inline-block;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.3s var(--transition-smooth);
}

.vip-active {
  color: var(--secondary) !important;
  background: rgba(255, 215, 0, 0.1) !important;
  animation: glow 2s ease-in-out infinite;
}

.vip-expiring {
  color: #ff9500 !important;
  background: rgba(255, 149, 0, 0.15) !important;
  animation: pulseWarning 2s ease-in-out infinite;
}

.vip-inactive {
  color: #ff3b30 !important;
  background: rgba(255, 59, 48, 0.1) !important;
}

#vipWarningBanner {
  background: linear-gradient(135deg, rgba(255, 149, 0, 0.15), rgba(255, 59, 48, 0.1));
  border: 1px solid #ff9500;
  border-radius: 16px;
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  animation: pulseWarning 2s ease-in-out infinite;
}

/* ============ DETAIL ============ */
.detail-section {
  padding: 16px 16px 80px;
}

.detail-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  animation: scaleIn 0.5s var(--transition-bounce);
}

.detail-player iframe,
.detail-player video {
  width: 100%;
  height: 100%;
}

#vipOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.5s var(--transition-smooth);
}

#detailTitle {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  animation: slideUp 0.5s var(--transition-smooth);
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  animation: slideUp 0.5s var(--transition-smooth);
}

.detail-tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 14px;
  border-radius: 14px;
  font-size: 12px;
  color: var(--primary-light);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
}

.detail-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 45, 85, 0.2);
}

.detail-stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  animation: slideUp 0.5s var(--transition-smooth);
}

.detail-stats i {
  margin-right: 4px;
}

.detail-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  animation: slideUp 0.5s var(--transition-smooth);
}

.action-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #aaa;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
}

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

.action-btn.liked {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.2);
  animation: heartBeat 0.5s ease-in-out;
}

.action-btn.disliked {
  background: #555;
  color: #fff;
  border-color: #555;
}

.action-btn:hover {
  border-color: rgba(255, 45, 85, 0.15);
  transform: translateY(-2px);
}

/* ============ COMMENTS ============ */
.comment-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  animation: slideUp 0.5s var(--transition-smooth);
}

.comment-section h4 {
  color: #eee;
  margin-bottom: 10px;
}

.comment-input {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-input input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s var(--transition-smooth);
}

.comment-input input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(255, 45, 85, 0.05);
}

.comment-input button {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  width: 44px;
  border-radius: 30px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
}

.comment-input button:active {
  transform: scale(0.9);
}

.comment-input button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.2);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

.comment-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  border-left: 3px solid var(--primary);
  position: relative;
  animation: slideUp 0.3s var(--transition-smooth);
}

.comment-item .c-user {
  font-weight: 600;
  color: var(--primary-light);
}

.comment-item .c-text {
  margin-top: 4px;
  color: #ccc;
}

.comment-item .c-time {
  font-size: 10px;
  color: #444;
  margin-top: 4px;
}

/* ============ ADMIN ============ */
.admin-section {
  padding: 20px 16px 80px;
}

.admin-card {
  background: var(--bg-card);
  border-radius: 20px;
  padding: 20px 16px;
  border: 1px solid var(--border-color);
  animation: scaleIn 0.5s var(--transition-bounce);
}

.admin-card h3 {
  color: var(--primary-light);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 30px;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
}

.admin-tab {
  flex: 1;
  padding: 8px 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s var(--transition-smooth);
  position: relative;
}

.admin-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 45, 85, 0.15);
}

.admin-tab .badge {
  background: var(--primary);
  color: #fff;
  padding: 1px 10px;
  border-radius: 12px;
  font-size: 10px;
}

.admin-tab.active .badge {
  background: #fff;
  color: var(--primary);
}

.admin-comment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.admin-comment-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 3px solid var(--primary);
  animation: slideUp 0.3s var(--transition-smooth);
}

.admin-comment-item .ac-video {
  font-size: 12px;
  color: var(--primary-light);
}

.admin-comment-item .ac-user {
  font-weight: 600;
  color: #eee;
}

.admin-comment-item .ac-text {
  margin: 4px 0;
  color: #ccc;
  font-size: 13px;
}

.admin-comment-item .ac-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.admin-comment-item .ac-actions button {
  padding: 3px 14px;
  border-radius: 20px;
  border: none;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
}

.btn-approve {
  background: #34c759;
  color: #fff;
}

.btn-approve:hover {
  background: #2db84d;
  transform: scale(1.05);
}

.btn-delete {
  background: #ff3b30;
  color: #fff;
}

.btn-delete:hover {
  background: #e6204a;
  transform: scale(1.05);
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 480px;
  width: 100%;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 12px;
  border-top: 1px solid var(--border-color);
  z-index: 30;
  animation: slideUp 0.5s var(--transition-smooth);
}

.nav-btn {
  background: none;
  border: none;
  color: #444;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 9px;
  gap: 2px;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  padding: 0 8px;
  flex: 1;
  max-width: 60px;
  position: relative;
}

.nav-btn::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  transition: all 0.3s var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-btn.active::after {
  width: 60%;
}

.nav-btn i {
  font-size: 20px;
  transition: all 0.3s var(--transition-bounce);
}

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

.nav-btn.active i {
  text-shadow: 0 0 30px rgba(255, 45, 85, 0.2);
  transform: translateY(-2px);
}

.nav-btn:hover:not(.active) {
  color: #888;
  transform: translateY(-2px);
}

.nav-btn:active {
  transform: scale(0.92);
}

.btn-back {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s var(--transition-smooth);
}

.btn-back:hover {
  color: var(--primary-light);
  transform: translateX(-4px);
}

.video-actions {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.video-actions button {
  padding: 6px 14px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-actions button:active {
  transform: scale(0.92);
}

.video-actions button:hover {
  transform: translateY(-2px);
}

/* ============ VIP ============ */
.vip-section {
  padding: 20px 16px 80px;
}

#vipPackages {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.vip-btn {
  background: linear-gradient(135deg, var(--secondary), #ffaa00);
  color: #000;
  border: none;
  padding: 12px 24px;
  margin: 8px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s var(--transition-bounce);
}

.vip-btn:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

#transactionInfo {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  animation: slideUp 0.5s var(--transition-smooth);
}

#transactionInfo h4 {
  color: var(--secondary);
  margin-bottom: 8px;
}

#transactionDetails {
  color: #ddd;
  font-size: 14px;
  line-height: 1.8;
}

#transactionDetails span {
  padding: 2px 0;
}

#qrDisplay img {
  max-width: 200px;
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.2);
  margin-top: 6px;
  transition: all 0.3s var(--transition-smooth);
}

#qrDisplay img:hover {
  transform: scale(1.05);
  border-color: var(--secondary);
}

#transactionList {
  max-height: 400px;
  overflow-y: auto;
}

#transactionList::-webkit-scrollbar {
  width: 3px;
}

#transactionList::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

#transactionList::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 10px;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 480px) {
  #app {
    border-radius: 0;
  }
  
  .video-grid {
    gap: 10px;
  }
  
  .logo-text {
    font-size: 17px;
  }
  
  .logo-sub {
    font-size: 11px;
  }
  
  .auth-logo h1 {
    font-size: 30px;
  }
  
  .auth-logo-big {
    font-size: 52px;
  }
  
  .search-item .thumb {
    width: 60px;
    height: 40px;
  }
  
  .search-item .info h4 {
    font-size: 12px;
  }
  
  .telegram-fixed {
    bottom: 80px;
    right: 14px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

@media (max-width: 380px) {
  .video-grid {
    gap: 8px;
  }
  
  .video-info h4 {
    font-size: 11px;
  }
  
  .nav-btn i {
    font-size: 17px;
  }
  
  .nav-btn {
    font-size: 8px;
  }
  
  .search-tag {
    font-size: 11px;
    padding: 4px 12px;
  }
}