/* ============ CSS Variables ============ */
:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --surface: #1e293b;
  --surface-hover: #334155;
  --border: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --success: #10b981;
  --success-bg: #064e3b;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
}

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

a { text-decoration: none; color: inherit; }

/* ============ Page Loader ============ */
.page-loader { position: fixed; inset: 0; z-index: 999; background: var(--bg); display: flex; align-items: center; justify-content: center; transition: opacity 0.3s; }
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-spin { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============ Navbar ============ */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 12px; }
.logo { font-size: 22px; font-weight: 700; color: var(--primary); }
.logo-sub { font-size: 13px; color: var(--text-muted); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-user { font-size: 13px; color: var(--text-muted); padding: 0 8px; border-right: 1px solid var(--border); margin-right: 4px; line-height: 1; }
.nav-label { display: inline; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 14px;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
  font-family: inherit; line-height: 1.4;
}
.btn:hover { background: var(--surface-hover); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ Forms ============ */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 500; }
.form-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg); color: var(--text); font-size: 14px; font-family: inherit;
  transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.2); }
.form-row { display: flex; gap: 16px; }
.form-row-2 > * { flex: 1; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); cursor: pointer; }

/* ============ Login Page ============ */
.login-page {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; background: var(--bg); padding: 20px;
}
.login-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-logo { color: var(--primary); margin-bottom: 12px; }
.login-header h1 { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.login-header p { font-size: 14px; color: var(--text-muted); }
.login-form .form-input { font-size: 15px; padding: 12px 16px; }
.btn-login { width: 100%; justify-content: center; padding: 12px; font-size: 16px; margin-top: 8px; }
.login-error { background: rgba(239,68,68,0.15); color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; }

/* ============ Main Container ============ */
.main-container { flex: 1; padding: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ============ Toolbar (Search + Tabs) ============ */
.toolbar {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  flex-wrap: wrap;
}
.type-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.type-tab {
  padding: 8px 20px; border: none; background: transparent; color: var(--text-muted);
  font-size: 14px; cursor: pointer; transition: var(--transition); font-family: inherit;
  border-right: 1px solid var(--border);
}
.type-tab:last-child { border-right: none; }
.type-tab.active { background: var(--primary); color: #fff; }
.type-tab:hover:not(.active) { background: var(--surface-hover); }
.search-box { position: relative; flex: 1; min-width: 200px; max-width: 400px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-input {
  width: 100%; padding: 10px 14px 10px 38px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--primary); }
.search-input::placeholder { color: var(--text-muted); }

/* ============ Media Grid ============ */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.media-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; transition: var(--transition);
}
.media-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.media-card.playing { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99,102,241,0.4); }
.card-thumb {
  position: relative; width: 100%; padding-top: 56.25%; background: var(--bg-secondary);
  overflow: hidden;
}
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-thumb-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
}
.card-play-btn {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); border: none; cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.card-thumb:hover .card-play-btn { opacity: 1; }
.card-type-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.video-badge { background: rgba(99,102,241,0.85); color: #fff; }
.audio-badge { background: rgba(16,185,129,0.85); color: #fff; }
.card-duration { position: absolute; bottom: 8px; right: 8px; padding: 2px 6px; border-radius: 4px; background: rgba(0,0,0,0.75); color: #fff; font-size: 11px; font-weight: 500; }
.card-body { padding: 14px; }
.card-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.card-artist { font-size: 13px; color: var(--primary); margin-bottom: 4px; }
.card-desc { font-size: 12px; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.loading, .empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-size: 15px; grid-column: 1 / -1; }

/* ============ Pagination ============ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; padding-bottom: 100px; }

/* ============ Player Bar (compact bottom) ============ */
.player-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(30,41,59,0.95); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border); padding: 0;
}
.player-bar-inner { display: flex; align-items: center; max-width: 1400px; margin: 0 auto; padding: 8px 24px; gap: 16px; }
.pbar-left { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; flex: 1; }
.pbar-cover {
  width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.pbar-info { min-width: 0; }
.pbar-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-artist { font-size: 12px; color: var(--text-muted); }
.player-controls { display: flex; align-items: center; gap: 4px; }
.player-ctrl-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text); cursor: pointer; border-radius: 50%;
  transition: var(--transition);
}
.player-ctrl-btn:hover { background: var(--surface-hover); }
.player-play-btn {
  width: 44px; height: 44px; background: var(--primary); color: #fff; border-radius: 50%;
}
.player-play-btn:hover { background: var(--primary-hover); }
.player-mini-progress { position: absolute; top: -3px; left: 0; right: 0; height: 4px; background: rgba(255,255,255,0.08); cursor: pointer; }
.player-mini-buffered { position: absolute; left: 0; top: 0; height: 100%; background: rgba(99,102,241,0.35); border-radius: 2px; }
.player-mini-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--primary); transition: width 0.1s linear; box-shadow: 0 0 4px rgba(99,102,241,0.4); }
.player-volume { display: flex; align-items: center; gap: 6px; }
.volume-slider { width: 80px; accent-color: var(--primary); }
.player-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; min-width: 45px; text-align: right; }

/* ============ Full Player Overlay ============ */
.fullplayer-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column;
  background: #0f172a;
}
.fullplayer-bg {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(99,102,241,0.3) 0%, #0f172a 60%);
  pointer-events: none;
}
.fullplayer-content {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex: 1; padding: 40px 24px;
}
.fullplayer-close {
  position: absolute; top: 20px; right: 20px; z-index: 2;
  background: rgba(255,255,255,0.1); border: none; color: #fff;
  width: 40px; height: 40px; border-radius: 50%; font-size: 24px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.fullplayer-art {
  width: 240px; height: 240px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 72px; font-weight: 700; color: #fff; margin-bottom: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.fullplayer-info { text-align: center; margin-bottom: 32px; }
.fullplayer-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.fullplayer-artist { font-size: 15px; color: var(--text-muted); }
.fullplayer-progress-wrap { width: 100%; max-width: 500px; margin-bottom: 8px; cursor: pointer; padding: 8px 0; }
.fullplayer-progress-bar {
  width: 100%; height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px;
  position: relative; pointer-events: none;
}
.fullplayer-buffered-fill { position: absolute; left: 0; top: 0; height: 100%; background: rgba(99,102,241,0.3); border-radius: 3px; }
.fullplayer-progress-fill { position: absolute; left: 0; top: 0; height: 100%; background: var(--primary); border-radius: 3px; transition: width 0.15s linear; z-index: 1; }
.fullplayer-progress-input { display: none; }
.fullplayer-time-row { display: flex; justify-content: space-between; width: 100%; max-width: 500px; font-size: 12px; color: var(--text-muted); margin-bottom: 24px; }
.fullplayer-controls { display: flex; align-items: center; gap: 16px; }
.fullplayer-ctrl-btn {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: var(--text); cursor: pointer; border-radius: 50%;
  transition: var(--transition);
}
.fullplayer-ctrl-btn:hover { background: rgba(255,255,255,0.1); }
.fullplayer-play-btn {
  width: 64px; height: 64px; background: var(--primary); color: #fff; border-radius: 50%;
}
.fullplayer-play-btn:hover { background: var(--primary-hover); }
.fullplayer-volume { display: flex; align-items: center; gap: 8px; margin-top: 24px; }

/* ============ Video Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,0.9);
  display: flex; align-items: center; justify-content: center;
}
.modal-overlay:fullscreen { background: #000; align-items: center; }
.modal-overlay:-webkit-full-screen { background: #000; align-items: center; }
.modal-video { width: 100%; max-width: 960px; position: relative; }
.modal-overlay:fullscreen .modal-video { max-width: none; height: 100%; display: flex; flex-direction: column; }
.modal-overlay:-webkit-full-screen .modal-video { max-width: none; height: 100%; display: flex; flex-direction: column; }
.modal-overlay:fullscreen .video-container { flex: 1; display: flex; align-items: center; justify-content: center; }
.modal-overlay:-webkit-full-screen .video-container { flex: 1; display: flex; align-items: center; justify-content: center; }
.modal-overlay:fullscreen .video-container video { max-height: 100vh; max-width: 100vw; border-radius: 0; }
.modal-overlay:-webkit-full-screen .video-container video { max-height: 100vh; max-width: 100vw; border-radius: 0; }
.modal-close {
  background: none; border: none;
  color: #fff; font-size: 28px; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.video-title-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.video-title-bar h3 { font-size: 16px; font-weight: 600; }
.video-title-actions { display: flex; align-items: center; gap: 8px; }
.video-fs-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; border: none;
  background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; transition: var(--transition);
}
.video-fs-btn:hover { background: rgba(255,255,255,0.2); }
.video-progress-bar {
  width: 100%; height: 8px; background: rgba(255,255,255,0.12); border-radius: 4px;
  cursor: pointer; margin-top: 0; position: relative;
}
.video-progress-bar:hover { height: 10px; }
.video-container { position: relative; }
.video-container video { width: 100%; max-height: 70vh; border-radius: 8px 8px 0 0; background: #000; display: block; }
/* 透明遮罩防长按下载（移动端） */
.video-protect-overlay {
  position: absolute; inset: 0; z-index: 5;
  background: transparent;
  pointer-events: none; /* 点击穿透，不阻塞视频控件 */
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.video-controls { padding: 12px 0 4px; }
.video-buffered-fill { position: absolute; left: 0; top: 0; height: 100%; background: rgba(99,102,241,0.3); border-radius: 4px; }
.video-progress-fill {
  position: absolute; left: 0; top: 0;
  height: 100%; background: var(--primary); border-radius: 4px;
  transition: width 0.1s linear; z-index: 1;
}
.video-progress-fill::after {
  content: ''; position: absolute; right: -5px; top: -4px;
  width: 16px; height: 16px; background: #fff; border-radius: 50%;
  box-shadow: 0 0 6px rgba(99,102,241,0.6); opacity: 0; transition: opacity 0.15s;
}
.video-progress-bar:hover .video-progress-fill::after { opacity: 1; }
.video-time-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-top: 10px; }

/* ============ Admin ============ */
.admin-container { padding-top: 24px; }
.admin-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 24px; width: fit-content; }
.admin-tab {
  display: flex; align-items: center; gap: 8px; padding: 10px 24px;
  border: none; background: transparent; color: var(--text-muted);
  font-size: 14px; cursor: pointer; transition: var(--transition); font-family: inherit;
  border-right: 1px solid var(--border);
}
.admin-tab:last-child { border-right: none; }
.admin-tab.active { background: var(--primary); color: #fff; }
.admin-tab:hover:not(.active) { background: var(--surface-hover); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-toolbar h2 { font-size: 18px; font-weight: 600; }
.admin-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin-bottom: 24px;
}
.admin-form h3 { font-size: 16px; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--border); color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.admin-table tbody tr:hover { background: var(--surface-hover); }
.actions-cell { display: flex; gap: 6px; }
.empty-row { text-align: center; color: var(--text-muted); padding: 40px 14px !important; }
.link-truncate { color: var(--primary); font-size: 13px; max-width: 200px; display: inline-block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ Badges ============ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-video { background: rgba(99,102,241,0.2); color: #818cf8; }
.badge-audio { background: rgba(16,185,129,0.2); color: #34d399; }
.badge-active { background: rgba(16,185,129,0.2); color: #34d399; }
.badge-disabled { background: rgba(148,163,184,0.2); color: #94a3b8; }
.badge-expired { background: rgba(239,68,68,0.2); color: #f87171; }

/* ============ Toast ============ */
.toast-container { position: fixed; top: 72px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 20px; border-radius: 10px; font-size: 14px; color: #fff; box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease; pointer-events: none; }
.toast-info { background: var(--primary); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .nav-label { display: none; }
  .hamburger { display: flex; }
  .nav-right {
    display: none; position: absolute; top: 56px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 16px; flex-direction: column; align-items: stretch; gap: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 99;
  }
  .nav-right.open { display: flex; }
  .nav-right .btn {
    justify-content: center; padding: 12px 16px; font-size: 15px;
    min-height: 48px;
  }
  .nav-user { border-right: none; padding: 4px 0; text-align: center; font-size: 13px; }

  .media-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
  .main-container { padding: 16px; }

  .toolbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .type-tabs { width: 100%; }
  .type-tab { flex: 1; justify-content: center; text-align: center; }
  .search-box { max-width: none; }

  .player-bar-inner { padding: 6px 10px; gap: 6px; }
  .player-volume { display: none; }
  .player-ctrl-btn { width: 40px; height: 40px; }
  .player-play-btn { width: 48px; height: 48px; }
  .player-time { display: none; }
  .pbar-cover { width: 38px; height: 38px; font-size: 15px; }

  .modal-video { max-width: 100%; margin: 0; }
  .video-title-bar { padding: 8px 0; }
  .video-title-bar h3 { font-size: 14px; }
  .video-fs-btn { width: 44px; height: 44px; }
  .modal-close { font-size: 32px; padding: 4px 12px; }
  .video-container video { max-height: 50vh; border-radius: 4px 4px 0 0; }

  .fullplayer-art { width: 180px; height: 180px; font-size: 56px; }
  .fullplayer-title { font-size: 18px; }
  .fullplayer-content { padding: 30px 20px; }

  .admin-tab { padding: 10px 16px; font-size: 14px; }
  .admin-toolbar { flex-direction: column; gap: 12px; align-items: stretch; }
  .admin-toolbar .btn { justify-content: center; min-height: 44px; }
  .form-row { flex-direction: column; gap: 0; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 8px 6px; }

  .toast-container { top: auto; bottom: 100px; right: 12px; left: 12px; }
  .pagination { padding-bottom: 120px; }
}

@media (max-width: 560px) {
  .navbar { padding: 0 10px; }
  .logo { font-size: 17px; }
  .logo-sub { display: none; }

  .media-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card-body { padding: 8px; }
  .card-title { font-size: 13px; }
  .card-artist { font-size: 11px; }
  .card-desc { display: none; }
  .card-type-badge { font-size: 10px; padding: 2px 6px; }
  .card-duration { font-size: 10px; }

  .main-container { padding: 10px; }
  .toolbar { gap: 8px; }

  .admin-tabs { width: 100%; }
  .admin-tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }

  .player-bar-inner { padding: 4px 8px; gap: 4px; }
  .player-ctrl-btn { width: 36px; height: 36px; }
  .player-play-btn { width: 42px; height: 42px; }
  .pbar-title { font-size: 12px; }
  .pbar-artist { font-size: 11px; }
  .pbar-cover { width: 34px; height: 34px; font-size: 14px; }

  .fullplayer-art { width: 120px; height: 120px; font-size: 40px; }
  .fullplayer-content { padding: 16px 12px; }
  .fullplayer-title { font-size: 16px; }
  .fullplayer-controls { gap: 8px; }
  .fullplayer-ctrl-btn { width: 42px; height: 42px; }
  .fullplayer-play-btn { width: 56px; height: 56px; }

  .modal-video { border-radius: 0; }
  .video-container video { max-height: 40vh; }
  .video-title-bar { padding: 6px 0; }
  .video-title-bar h3 { font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .login-card { padding: 24px 20px; margin: 0 10px; }

  .search-input { font-size: 16px; } /* prevent iOS zoom */
  .toast-container { bottom: 90px; right: 8px; left: 8px; }
  .toast { font-size: 13px; padding: 10px 16px; }
  .pagination { padding-bottom: 110px; gap: 4px; }
  .pagination .btn { padding: 6px 10px; font-size: 12px; }
}
