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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
}

/* ───────────────────────────────────────────
   REGISTRATION PAGE
─────────────────────────────────────────── */
.reg-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 60px;
  background: #0a0a0a;
}

.reg-container {
  width: 100%;
  max-width: 480px;
}

.reg-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -0.5px;
}

.reg-info {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border: 1px solid #2a2a2a;
}

.reg-info p {
  font-size: 14px;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 10px;
}

.reg-info p:last-child { margin-bottom: 0; }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #eee;
}

.form-group input[type="email"],
.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #555;
}

.form-group select option { background: #1a1a1a; }

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.radio-option:hover { border-color: #555; }

.radio-option input[type="radio"] {
  margin-top: 2px;
  accent-color: #fff;
  flex-shrink: 0;
}

.radio-option span {
  font-size: 14px;
  color: #ccc;
  line-height: 1.4;
}

.error-msg {
  color: #ff4d4d;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ───────────────────────────────────────────
   FEED PAGE
─────────────────────────────────────────── */
.feed-page {
  background: #000;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.feed-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.feed-container::-webkit-scrollbar { display: none; }

.video-slide {
  height: 100vh;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0; left: 0;
}

/* Right-side action buttons */
.action-bar {
  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;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.action-btn svg {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
  transition: transform 0.15s;
}

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

.action-btn.liked svg { fill: #ff3b5c; stroke: #ff3b5c; }

.action-btn span {
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Bottom video info */
.video-info {
  position: absolute;
  bottom: 20px;
  left: 12px;
  right: 80px;
  z-index: 10;
}

.video-info .video-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}

/* Loading state */
.feed-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 16px;
  color: #888;
}

/* ───────────────────────────────────────────
   ADMIN PAGE
─────────────────────────────────────────── */
.admin-page {
  background: #0a0a0a;
  min-height: 100vh;
  padding: 32px 16px 60px;
}

.admin-container {
  max-width: 700px;
  margin: 0 auto;
}

.admin-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.admin-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 32px;
}

.admin-section {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.admin-section h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #eee;
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.upload-row label {
  font-size: 12px;
  color: #aaa;
  display: block;
  margin-bottom: 4px;
}

.upload-row input,
.upload-row select {
  width: 100%;
  padding: 9px 10px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
}

.btn-upload {
  padding: 9px 16px;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-upload:disabled { opacity: 0.5; cursor: not-allowed; }

.video-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.video-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ccc;
}

.video-item .badge {
  font-size: 11px;
  background: #2a2a2a;
  padding: 2px 8px;
  border-radius: 20px;
  color: #aaa;
}

.btn-delete {
  background: none;
  border: none;
  color: #ff4d4d;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.btn-export {
  width: 100%;
  padding: 13px;
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-bottom: 10px;
}

.btn-export:hover { opacity: 0.88; }

.admin-msg {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  min-height: 18px;
}
