/* ============================================
   CF-Chat 样式 · 深色现代风格 · 移动优先
   ============================================ */
:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --bg-card: #1e222b;
  --bg-hover: #262b36;
  --border: #2c313d;
  --text: #e8eaed;
  --text-dim: #9aa0ab;
  --text-faint: #6b7280;
  --accent: #4f8cff;
  --accent-hover: #3d7bff;
  --gold: #ffc53d;
  --red: #ff4d4f;
  --green: #34d399;
  --radius: 14px;
  --radius-sm: 9px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

/* ============ 登录页返回按钮 ============ */
.auth-back {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--text-dim);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .12s ease;
}
.auth-back:active { transform: scale(.92); background: rgba(255, 255, 255, .14); }

/* ============ 登录页 ============ */
.auth-view {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: calc(20px + env(safe-area-inset-top));
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(175deg, #7fc4ff 0%, #4aa3ff 48%, #2b7fe0 100%);
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 22px;
  padding: 36px 28px 28px;
  box-shadow: 0 24px 60px rgba(15, 60, 120, .28);
  animation: cardIn .45s cubic-bezier(.2,.9,.3,1);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.auth-logo { font-size: 40px; text-align: center; margin-bottom: 6px; }
.auth-title {
  text-align: center; font-size: 26px; font-weight: 700; letter-spacing: .5px;
  background: linear-gradient(92deg, #6aa6ff, #b18cff 55%, #ff8fa3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-sub { text-align: center; color: var(--text-faint); font-size: 12.5px; margin: 6px 0 22px; letter-spacing: 2px; }

.auth-tabs {
  display: flex; gap: 4px; background: var(--bg-soft);
  padding: 4px; border-radius: 11px; margin-bottom: 20px;
}
.auth-tab {
  flex: 1; padding: 9px; border-radius: 8px; font-size: 14px;
  color: var(--text-dim); transition: .18s; font-weight: 500;
}
.auth-tab.active { background: var(--accent); color: #fff; box-shadow: 0 3px 12px rgba(79,140,255,.35); }

.field { margin-bottom: 13px; }
.field input {
  width: 100%; padding: 13px 15px; border-radius: 11px;
  background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); font-size: 15px; outline: none; transition: .18s;
}
.field input:focus { border-color: var(--accent); background: #1b2029; box-shadow: 0 0 0 3px rgba(79,140,255,.14); }
.field input::placeholder { color: var(--text-faint); }

.btn-primary {
  width: 100%; padding: 13px; border-radius: 11px; margin-top: 6px;
  background: linear-gradient(135deg, #4f8cff, #6f6bff);
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 1px;
  transition: .18s; box-shadow: 0 6px 20px rgba(79,140,255,.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 26px rgba(79,140,255,.42); }
.btn-primary:active { transform: translateY(0) scale(.99); }

.auth-error {
  color: var(--red); font-size: 13px; text-align: center;
  margin-top: 12px; min-height: 18px;
}
.auth-tip { text-align: center; color: var(--text-faint); font-size: 11.5px; margin-top: 14px; }

/* ============ 主布局 ============ */
.app-view { display: flex; height: 100vh; }

.sidebar {
  width: 250px; flex-shrink: 0; background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 14px;
}
.sidebar-head { margin-bottom: 16px; }
.brand { font-size: 18px; font-weight: 700;
  background: linear-gradient(92deg, #6aa6ff, #b18cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.profile-mini {
  display: flex; align-items: center; gap: 11px;
  padding: 11px; border-radius: var(--radius); background: var(--bg-card);
  border: 1px solid var(--border); margin-bottom: 12px;
}
.avatar-wrap { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.avatar-fallback {
  width: 44px; height: 44px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
  background: linear-gradient(135deg, #4f8cff, #b18cff); color: #fff;
}
.avatar-edit {
  position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg-hover); border: 2px solid var(--bg-soft);
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  cursor: pointer; transition: .18s;
}
.avatar-edit:hover { background: var(--accent); }
.profile-info { overflow: hidden; flex: 1; }
.profile-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-level { font-size: 11.5px; color: var(--gold); margin-top: 2px; }

.wallet-card {
  background: linear-gradient(135deg, #2a3350, #1f2436);
  border: 1px solid #354060; border-radius: var(--radius);
  padding: 13px 14px; margin-bottom: 16px;
}
.wallet-label { font-size: 11.5px; color: var(--text-dim); }
.wallet-amount { font-size: 22px; font-weight: 700; color: var(--gold); margin: 3px 0 9px; }
.wallet-amount small { font-size: 12px; font-weight: 400; color: var(--text-dim); }

.btn-ghost {
  padding: 6px 12px; border-radius: 8px; font-size: 12px;
  background: rgba(255,255,255,.08); color: var(--text-dim); transition: .18s;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); color: var(--text); }
.btn-ghost.small { padding: 5px 10px; font-size: 11.5px; }

.nav { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px;
  border-radius: var(--radius-sm); color: var(--text-dim); font-size: 14px;
  transition: .18s; text-align: left; font-weight: 500;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(79,140,255,.3); }
.nav-icon { font-size: 17px; }

.btn-logout {
  padding: 10px; border-radius: var(--radius-sm); color: var(--text-faint);
  font-size: 13px; transition: .18s; border: 1px solid var(--border); margin-top: 10px;
}
.btn-logout:hover { color: var(--red); border-color: var(--red); background: rgba(255,77,79,.08); }

/* ============ 主内容 ============ */
.main { flex: 1; display: flex; overflow: hidden; }
.page { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.page.active { display: flex; }

.page-head {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-soft); flex-shrink: 0;
}
.page-head h2 { font-size: 18px; font-weight: 600; }
.page-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 3px; }
.online-count { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.btn-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--bg-card);
  border: 1px solid var(--border); font-size: 17px; transition: .18s;
}
.btn-icon:hover { background: var(--bg-hover); }

/* ============ 聊天 ============ */
.chat-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.messages { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }

.msg { display: flex; gap: 10px; animation: msgIn .26s ease; max-width: 100%; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.self { flex-direction: row-reverse; }

.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover; background: linear-gradient(135deg, #4f8cff, #b18cff);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 600;
}
.msg-content { max-width: min(560px, 62vw); }
.msg-meta { font-size: 11.5px; color: var(--text-faint); margin-bottom: 4px; display: flex; gap: 7px; }
.msg.self .msg-meta { justify-content: flex-end; }
.msg-nick { color: var(--text-dim); font-weight: 500; }

.bubble {
  padding: 9px 13px; border-radius: 14px; background: var(--bg-card);
  border: 1px solid var(--border); word-break: break-word; white-space: pre-wrap;
  font-size: 14.5px; line-height: 1.55;
}
.msg.self .bubble { background: linear-gradient(135deg, #3d6fd6, #4f8cff); border-color: transparent; }

.msg-image { max-width: min(320px, 55vw); border-radius: 12px; cursor: pointer; display: block; border: 1px solid var(--border); }

/* 系统消息 */
.msg-system { text-align: center; font-size: 12px; color: var(--text-faint); padding: 3px 0; }

/* 红包气泡 */
.rp {
  width: 235px; border-radius: 14px; overflow: hidden; cursor: pointer;
  background: linear-gradient(150deg, #e6484a, #c92f31);
  box-shadow: 0 6px 20px rgba(230,72,74,.28); transition: .18s;
  position: relative;
}
.rp:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(230,72,74,.4); }
.rp.done { background: linear-gradient(150deg, #5a5f6b, #454a54); box-shadow: none; }
.rp-top { padding: 13px 15px 10px; display: flex; align-items: center; gap: 10px; }
.rp-icon { font-size: 27px; }
.rp-blessing { font-size: 14px; font-weight: 600; color: #ffe9a8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-sub { font-size: 11.5px; color: rgba(255,233,168,.75); margin-top: 2px; }
.rp-bottom {
  background: rgba(0,0,0,.16); padding: 8px 15px; font-size: 11.5px;
  color: rgba(255,255,255,.8); display: flex; justify-content: space-between;
}

/* ============ 输入区 ============ */
.composer {
  border-top: 1px solid var(--border); padding: 12px 16px;
  display: flex; align-items: flex-end; gap: 10px;
  background: var(--bg-soft); flex-shrink: 0;
}
.composer-tools { display: flex; gap: 4px; padding-bottom: 5px; }
.tool-btn {
  width: 36px; height: 36px; border-radius: 9px; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  transition: .18s; cursor: pointer;
}
.tool-btn:hover { background: var(--bg-hover); }

#msgInput {
  flex: 1; padding: 10px 14px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); font-size: 14.5px; outline: none; resize: none;
  max-height: 120px; line-height: 1.5; transition: .18s;
}
#msgInput:focus { border-color: var(--accent); }
#msgInput::placeholder { color: var(--text-faint); }

.btn-send {
  padding: 10px 20px; border-radius: 11px; height: 41px;
  background: linear-gradient(135deg, #4f8cff, #6f6bff); color: #fff;
  font-size: 14px; font-weight: 600; transition: .18s; flex-shrink: 0;
}
.btn-send:hover { box-shadow: 0 6px 18px rgba(79,140,255,.38); }
.btn-send:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ============ 影院 ============ */
.video-grid {
  padding: 20px 24px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.video-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: .2s; cursor: pointer;
}
.video-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.36); }
.video-cover { position: relative; width: 100%; aspect-ratio: 16/9; background: #0b0d11; overflow: hidden; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; }
.video-cover .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: #333a45; background: linear-gradient(135deg, #1a1e26, #232833);
}
.video-lock {
  position: absolute; inset: 0; background: rgba(8,10,14,.72);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; backdrop-filter: blur(2px);
}
.video-lock .lock-icon { font-size: 25px; }
.video-lock .lock-text { font-size: 11.5px; color: #ffd88a; }
.video-info { padding: 11px 13px 13px; }
.video-title { font-size: 14px; font-weight: 600; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-desc { font-size: 12px; color: var(--text-faint); line-height: 1.45; height: 34px; overflow: hidden; }
.tier-badge {
  display: inline-block; margin-top: 8px; padding: 2.5px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}

/* ============ 会员 ============ */
.my-level-banner {
  margin: 20px 24px 0; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(135deg, #2a3350, #1f2436); border: 1px solid #354060;
}
.level-grid {
  padding: 20px 24px; overflow-y: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px;
}
.level-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: .2s; position: relative; overflow: hidden;
}
.level-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--lv-color, #888);
}
.level-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.4); border-color: var(--lv-color, var(--accent)); }
.level-card.current { border-color: var(--lv-color); box-shadow: 0 0 0 1px var(--lv-color); }
.lv-name { font-size: 17px; font-weight: 700; color: var(--lv-color, #fff); }
.lv-price { font-size: 25px; font-weight: 700; color: var(--gold); margin: 11px 0 3px; }
.lv-price small { font-size: 12px; font-weight: 400; color: var(--text-dim); }
.lv-days { font-size: 12.5px; color: var(--text-faint); margin-bottom: 14px; }
.lv-tier { font-size: 12.5px; color: var(--text-dim); margin-bottom: 15px; }
.lv-btn { width: 100%; padding: 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; transition: .18s; }
.lv-btn.buy { background: linear-gradient(135deg, #4f8cff, #6f6bff); color: #fff; }
.lv-btn.buy:hover { box-shadow: 0 6px 18px rgba(79,140,255,.38); }
.lv-btn.owned { background: var(--bg-hover); color: var(--text-faint); cursor: default; }
.lv-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ============ 后台 ============ */
.admin-tabs { display: flex; gap: 5px; padding: 15px 24px 0; flex-shrink: 0; }
.admin-tab {
  padding: 8px 17px; border-radius: 9px; font-size: 13.5px;
  color: var(--text-dim); background: var(--bg-card); border: 1px solid var(--border); transition: .18s;
}
.admin-tab.active { background: var(--accent); color: #fff; border-color: transparent; }
.admin-panel { display: none; padding: 18px 24px; overflow-y: auto; flex: 1; }
.admin-panel.active { display: block; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-num { font-size: 27px; font-weight: 700; color: var(--accent); }
.stat-lbl { font-size: 12.5px; color: var(--text-faint); margin-top: 5px; }

.admin-toolbar { margin-bottom: 14px; display: flex; gap: 9px; flex-wrap: wrap; }
.btn-admin {
  padding: 8px 15px; border-radius: 9px; font-size: 13px;
  background: var(--accent); color: #fff; font-weight: 500; transition: .18s;
}
.btn-admin:hover { background: var(--accent-hover); }
.btn-admin.ghost { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim); }
.btn-admin.ghost:hover { background: var(--bg-hover); color: var(--text); }
.btn-admin.danger { background: rgba(255,77,79,.16); color: var(--red); border: 1px solid rgba(255,77,79,.35); }
.btn-admin.danger:hover { background: rgba(255,77,79,.26); }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 10px 12px; color: var(--text-faint);
  font-weight: 500; font-size: 12.5px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:hover td { background: var(--bg-soft); }
.table .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.mini-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f8cff, #b18cff); color: #fff;
  font-size: 12px; font-weight: 600; vertical-align: middle; margin-right: 7px;
}

.tag { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.tag.admin { background: rgba(255,197,61,.16); color: var(--gold); }
.tag.user { background: var(--bg-hover); color: var(--text-dim); }
.tag.banned { background: rgba(255,77,79,.16); color: var(--red); }
.tag.ok { background: rgba(52,211,153,.16); color: var(--green); }

.empty { text-align: center; padding: 50px 20px; color: var(--text-faint); font-size: 13.5px; }

/* ============ 弹窗 ============ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(4,6,10,.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 20px; animation: fadeIn .2s; backdrop-filter: blur(3px);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 24px; width: 100%; max-width: 400px;
  max-height: 86vh; overflow-y: auto; animation: cardIn .3s cubic-bezier(.2,.9,.3,1);
}
.modal h3 { font-size: 17px; margin-bottom: 18px; font-weight: 600; }
.modal .field label { display: block; font-size: 12.5px; color: var(--text-dim); margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions button { flex: 1; padding: 11px; border-radius: 11px; font-size: 14px; font-weight: 500; transition: .18s; }
.modal-actions .confirm { background: linear-gradient(135deg, #4f8cff, #6f6bff); color: #fff; }
.modal-actions .confirm:hover { box-shadow: 0 6px 18px rgba(79,140,255,.36); }
.modal-actions .cancel { background: var(--bg-hover); color: var(--text-dim); }
.modal-actions .cancel:hover { color: var(--text); }

/* 红包弹窗特有 */
.rp-modal { text-align: center; }
.rp-modal .rp-amount-big { font-size: 44px; font-weight: 700; color: var(--gold); margin: 12px 0 4px; }
.rp-modal .rp-amount-big small { font-size: 17px; }
.rp-claim-list { margin-top: 18px; text-align: left; max-height: 220px; overflow-y: auto; }
.rp-claim-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 3px; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.rp-claim-item:last-child { border-bottom: none; }
.rp-claim-user { display: flex; align-items: center; gap: 9px; }
.rp-claim-amt { color: var(--gold); font-weight: 600; }

/* 视频播放 */
.player-modal { max-width: 900px; padding: 0; overflow: hidden; background: #000; }
.player-modal video { width: 100%; display: block; background: #000; }
.player-head {
  padding: 14px 18px; display: flex; justify-content: space-between;
  align-items: center; background: var(--bg-card); border-bottom: 1px solid var(--border);
}
.player-head h3 { margin: 0; font-size: 15px; }
.player-close { font-size: 21px; color: var(--text-dim); padding: 0 6px; }
.player-close:hover { color: var(--text); }

/* 图片预览 */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200;
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; }

/* ============ 提示 ============ */
.toast {
  position: fixed; bottom: 34px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(38,43,54,.97); color: #fff; padding: 11px 22px;
  border-radius: 11px; font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: .28s; z-index: 300; box-shadow: 0 8px 26px rgba(0,0,0,.5);
  border: 1px solid var(--border); max-width: 84vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 滚动条 ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333a45; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444c59; }

/* ============ 移动端适配 ============ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    width: 100%; height: auto; flex-direction: row;
    padding: 8px 10px; border-right: none; border-top: 1px solid var(--border);
    z-index: 50; align-items: center; gap: 8px;
  }
  .sidebar-head, .profile-mini, .wallet-card, .btn-logout { display: none; }
  .nav { flex-direction: row; justify-content: space-around; gap: 0; }
  .nav-item { flex-direction: column; gap: 2px; font-size: 10.5px; padding: 7px 12px; }
  .nav-icon { font-size: 19px; }

  .main { padding-bottom: 62px; }
  .page-head { padding: 13px 16px; }
  .messages { padding: 14px 14px; }
  .msg-content { max-width: 74vw; }
  .video-grid, .level-grid { padding: 14px; grid-template-columns: 1fr 1fr; gap: 11px; }
  .video-info { padding: 9px 10px 11px; }
  .video-title { font-size: 13px; }
  .video-desc { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .admin-panel { padding: 13px; }
  .admin-tabs { padding: 13px 13px 0; overflow-x: auto; }
  .table { font-size: 12px; }
  .table th, .table td { padding: 8px 7px; }
  .composer { padding: 9px 11px; }
  .rp { width: 205px; }
  .my-level-banner { margin: 14px 14px 0; }
  .auth-card { padding: 28px 22px 22px; }
}

@media (max-width: 400px) {
  .video-grid, .level-grid { grid-template-columns: 1fr; }
}
