* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0f0f0f;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAV ── */
header {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.5px;
  min-width: 160px;
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tab {
  background: none;
  border: none;
  color: #888;
  font-size: 0.95rem;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.nav-tab:hover {
  background: #2a2a2a;
  color: #fff;
}

.nav-tab.active {
  background: #2a2a2a;
  color: #fff;
  font-weight: 600;
}

.nav-right {
  min-width: 160px;
  text-align: right;
  font-size: 0.9rem;
  color: #aaa;
}

/* ── PAGES ── */
.page {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 20px;
}

.page.active {
  display: flex;
}

/* ── GAME SWITCHER ── */
.game-switcher {
  display: flex;
  gap: 8px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 6px;
}

.game-tab {
  flex: 1;
  background: none;
  border: none;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.3px;
}

.game-tab:hover {
  background: #2a2a2a;
  color: #ccc;
}

.game-tab.active {
  background: #2a2a2a;
  color: #fff;
}

/* ── VIDEO CARD ── */
.video-card {
  position: relative;
  width: 1100px;
  max-width: 100%;
  background: #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.video-card video {
  aspect-ratio: 16/9;
  object-fit: cover;
  background: #111;
}

/* Portrait mode for Clash Royale (9:16 phone) */
.video-card.portrait {
  width: 480px;
}

.video-card.portrait video {
  aspect-ratio: 9/16;
}

/* ── PLAY/PAUSE OVERLAY ── */
.video-wrap {
  position: relative;
  display: block;
  line-height: 0;
}

.video-wrap video {
  width: 100%;
  display: block;
}

.play-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  font-size: 4rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
  pointer-events: none;
}

.play-overlay.show .play-icon {
  opacity: 1;
  transform: scale(1);
  animation: icon-fade 0.8s ease forwards;
}

@keyframes icon-fade {
  0%   { opacity: 1; transform: scale(1); }
  60%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.3); }
}

.video-info {
  padding: 14px 16px;
}

.video-username {
  font-weight: 600;
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 4px;
}

.video-caption {
  font-size: 0.85rem;
  color: #aaa;
}


.volume-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.volume-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 120px;
  height: 4px;
  border-radius: 2px;
  background: #3a3a3a;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
}

/* ── ARROW BUTTONS ── */
.arrow-hint {
  display: flex;
  align-items: center;
  gap: 24px;
  user-select: none;
}

.arrow-btn {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  transition: background 0.2s;
}

.arrow-btn:hover {
  background: #3a3a3a;
}


/* ── FORM CARD (shared by upload + login) ── */
.form-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 36px 40px;
  width: 480px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.form-sub {
  color: #777;
  font-size: 0.88rem;
  margin-top: -12px;
}

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

.form-group label {
  font-size: 0.88rem;
  color: #aaa;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s;
}

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

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

/* ── FILE DROP ── */
.file-drop {
  background: #111;
  border: 2px dashed #2a2a2a;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  color: #555;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  position: relative;
}

.file-drop:hover,
.file-drop.drag-over {
  border-color: #555;
  color: #aaa;
}

.file-drop input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-name {
  font-size: 1.1rem;
  color: #ccc;
  min-height: 18px;
  font-weight: 500;
}

/* ── SUBMIT BUTTON ── */
.submit-btn {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #ddd;
}

/* ── STATUS MESSAGES ── */
.upload-status,
.auth-status {
  font-size: 0.85rem;
  min-height: 18px;
  text-align: center;
}

.upload-status.success {
  color: #00e676;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 10px 0;
}

.auth-status.success { color: #4caf50; }

.upload-status.error,
.auth-status.error   { color: #f44336; }

/* ── NAV USER + LOGOUT ── */
.nav-user-name {
  font-size: 0.88rem;
  color: #ccc;
  margin-right: 10px;
}

.nav-logout {
  background: none;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #888;
  font-size: 0.8rem;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.nav-logout:hover {
  border-color: #666;
  color: #fff;
}

/* ── PASSWORD WRAP ── */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  flex: 1;
  padding-right: 42px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: #666;
  padding: 0;
  line-height: 1;
}

.toggle-password:hover {
  color: #aaa;
}

/* ── AUTH TOGGLE ── */
.auth-toggle {
  display: flex;
  gap: 4px;
  background: #111;
  border-radius: 8px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  color: #666;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.auth-tab.active {
  background: #2a2a2a;
  color: #fff;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

/* ── ADMIN BUTTONS ── */
.admin-btn {
  position: fixed;
  right: 20px;
  color: #fff;
  border: none;
  padding: 11px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
  white-space: nowrap;
  z-index: 1000;
}

.admin-btn:hover { transform: translateX(-3px); }

.admin-btn-reports {
  top: calc(50% - 52px);
  background: #c0392b;
}
.admin-btn-reports:hover { background: #e74c3c; }

.admin-btn-approve {
  top: calc(50% + 12px);
  background: #1a7a3a;
}
.admin-btn-approve:hover { background: #27ae60; }

/* ── ADMIN SIDE PANEL ── */
.admin-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: #1a1a1a;
  border-left: 1px solid #333;
  box-shadow: -4px 0 24px rgba(0,0,0,0.6);
  z-index: 999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.admin-panel.open { right: 0; }

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #333;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.admin-panel-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}

.admin-panel-close:hover { color: #fff; }

.admin-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* ── LOGIN SUCCESS ── */
.login-success-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  text-align: center;
}

.success-check {
  font-size: 3rem;
  color: #4caf50;
  line-height: 1;
}

/* ── REPORT BUTTON ── */
.report-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.report-btn {
  background: none;
  border: 1.5px solid #444;
  border-radius: 6px;
  color: #888;
  font-size: 0.8rem;
  padding: 3px 10px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.report-btn:hover { border-color: #e05; color: #e05; }

.report-msg {
  font-size: 0.8rem;
  color: #aaa;
}

.report-msg.error { color: #e05; }
.report-msg.ok    { color: #4caf50; }

/* ── ADMIN PANEL REPORT CARDS ── */
.admin-loading,
.admin-empty {
  color: #666;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 40px;
}

.report-card {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.report-video {
  width: 100%;
  display: block;
  background: #000;
  max-height: 220px;
  object-fit: contain;
}

.report-card-info {
  padding: 10px 14px 6px;
}

.report-card-uploader,
.report-card-caption,
.report-card-reporter {
  font-size: 0.83rem;
  color: #aaa;
  margin-bottom: 3px;
}

.report-card-uploader strong,
.report-card-reporter strong { color: #ddd; }

.report-card-actions {
  display: flex;
  gap: 8px;
  padding: 8px 14px 12px;
}

.rca-delete, .rca-dismiss {
  flex: 1;
  padding: 6px 0;
  border-radius: 6px;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.rca-delete            { background: #c0392b; color: #fff; }
.rca-delete.confirming { background: #e74c3c; }
.rca-delete:hover      { opacity: 0.85; }
.rca-dismiss           { background: #2a2a2a; color: #ccc; border: 1px solid #444; }
.rca-dismiss:hover     { background: #333; }
.rca-approve           { background: #1a7a3a; color: #fff; }
.rca-approve:hover     { opacity: 0.85; }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 16px;
  color: #333;
  font-size: 0.8rem;
  border-top: 1px solid #1e1e1e;
}
