/* ===== 伴夏山房 H5 · 水墨主题 ===== */
:root {
  --primary: #8B7355;
  --primary-light: #a8916f;
  --bg: #F6F3EE;
  --nav: #2C2A28;
  --text: #2C2A28;
  --subtext: #8a8378;
  --line: #e7e0d6;
  --card: #ffffff;
  --danger: #b4524a;
  --ok: #5b8c6e;
  --shadow: 0 6px 20px rgba(44, 42, 40, 0.08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: #d9d2c7;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  justify-content: center;
}

/* 手机容器 */
.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 顶部标题栏（tab 页面统一） */
.topbar {
  height: 48px;
  background: var(--nav);
  color: #f3ede3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  letter-spacing: 2px;
  flex-shrink: 0;
  position: relative;
}
.topbar .back {
  position: absolute;
  left: 14px;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

/* 主内容滚动区 */
.page {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 70px;
}

/* 底部 tabBar */
.tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
  z-index: 20;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--subtext);
  cursor: pointer;
  font-size: 11px;
  gap: 3px;
}
.tab-item .ic {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(139, 115, 85, 0.1);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.tab-item.active { color: var(--primary); }
.tab-item.active .ic { background: var(--primary); color: #fff; }

/* ===== 通用组件 ===== */
.card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.section-title {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  margin: 6px 14px 12px;
  color: var(--text);
}
.section-title .bar {
  width: 4px; height: 16px;
  background: var(--primary);
  border-radius: 2px;
  margin-right: 8px;
}
.section-title .more { margin-left: auto; font-size: 12px; color: var(--subtext); font-weight: 400; cursor: pointer; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  padding: 11px 0;
  text-align: center;
  cursor: pointer;
  width: 100%;
}
.btn-primary[disabled] { background: #cfc6b8; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  font-size: 13px;
  padding: 7px 16px;
  cursor: pointer;
}
.btn-ghost.sm { padding: 5px 12px; font-size: 12px; }

.char-cover {
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  background: linear-gradient(135deg, #8B7355, #b09a78);
  border-radius: 10px;
}
/* 真实图片封面：填充容器并保持比例 */
.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.tag {
  display: inline-block;
  font-size: 11px;
  color: var(--primary);
  background: rgba(139, 115, 85, 0.1);
  border-radius: 5px;
  padding: 2px 8px;
  margin-right: 5px;
}
.muted { color: var(--subtext); font-size: 12px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.empty { text-align: center; color: var(--subtext); padding: 40px 0; font-size: 13px; }
.footer-space { height: 20px; }

/* ===== 首页 ===== */
.banner {
  background: linear-gradient(135deg, #2C2A28, #4a463f);
  padding: 40px 24px 34px;
  color: #f3ede3;
}
.banner-title { font-size: 30px; font-weight: 700; letter-spacing: 6px; }
.banner-sub { margin-top: 8px; font-size: 13px; color: #c9bfae; letter-spacing: 3px; }
.mode-badge { display: inline-block; margin-top: 12px; padding: 3px 10px; font-size: 11px; border-radius: 20px; background: rgba(255,255,255,0.18); color: #fff; }
.mode-badge.on { background: rgba(120,200,140,0.32); color: #d8ffe4; }

.course-card {
  margin: -22px 16px 0;
  background: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(44, 42, 40, 0.12);
}
.course-num { font-size: 30px; font-weight: 700; color: var(--primary); }
.course-num .unit { font-size: 13px; color: var(--subtext); font-weight: 400; }
.course-right { color: var(--primary); font-size: 14px; }

.grid {
  display: flex;
  margin: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 18px 0;
  box-shadow: var(--shadow);
}
.grid-item { flex: 1; display: flex; flex-direction: column; align-items: center; cursor: pointer; }
.gi-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(139, 115, 85, 0.12); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; margin-bottom: 7px;
}
.gi-label { font-size: 12px; color: var(--text); }

.card.inset { margin: 0 16px 14px; }
.intro { font-size: 13px; line-height: 1.7; color: #5b554c; }
/* 精选作品：等宽列、统一封面高度、标题/作者单行省略（每个作品格式一致） */
.feat-list { display: flex; }
.feat-item { flex: 1; min-width: 0; margin-right: 10px; cursor: pointer; }
.feat-item:last-child { margin-right: 0; }
.feat-cover { width: 100%; height: 90px; border-radius: 8px; overflow: hidden; }
.feat-cover .cover-img,
.feat-cover .char-cover { width: 100%; height: 100%; border-radius: 0; }
.feat-title { font-size: 12px; margin: 7px 1px 3px; }
.feat-author { font-size: 11px; color: var(--subtext); margin: 0 1px; }
.feat-empty { width: 100%; text-align: center; color: var(--subtext); font-size: 12px; padding: 14px 0; }
.contact .row.between { justify-content: space-between; }
.wxid { font-size: 14px; }
.announce {
  margin: 0 16px;
  background: rgba(139, 115, 85, 0.1);
  color: var(--primary);
  font-size: 12px;
  border-radius: 10px;
  padding: 12px 14px;
}
.icp-beian {
  margin: 12px 16px 0;
  text-align: center;
  color: var(--subtext);
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* ===== 约课页 ===== */
.days {
  display: flex;
  overflow-x: auto;
  padding: 4px 16px 12px;
  gap: 8px;
}
.day {
  flex: 0 0 auto;
  width: 52px;
  background: #fff;
  border-radius: 12px;
  padding: 10px 0;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1px solid transparent;
}
.day.sel { border-color: var(--primary); background: rgba(139, 115, 85, 0.08); }
.d-week { font-size: 11px; color: var(--subtext); }
.d-num { font-size: 18px; font-weight: 700; margin: 2px 0; }
.d-month { font-size: 10px; color: var(--subtext); }

.slot {
  display: flex; align-items: center;
  margin: 0 16px 12px;
}
.slot-time { width: 96px; font-size: 15px; font-weight: 600; }
.slot-mid { flex: 1; }
.bar-wrap { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--primary); border-radius: 3px; }
.slot-status { font-size: 11px; margin-top: 4px; color: var(--subtext); }
.slot-status.full { color: var(--danger); }
.slot-status.closed { color: var(--subtext); }
.slot-btn { width: 64px; padding: 7px 0; font-size: 13px; }

.bk {
  margin: 0 16px 12px;
}
.bk-top { display: flex; justify-content: space-between; align-items: center; }
.bk-date { font-size: 14px; font-weight: 600; }
.bk-status { font-size: 12px; }
.s-confirmed, .s-completed { color: var(--ok); }
.s-pending { color: var(--primary); }
.s-cancelled, .s-rejected { color: var(--danger); }
.bk-mid { font-size: 12px; color: var(--subtext); margin-top: 4px; }
.bk-cancel { font-size: 12px; color: var(--danger); text-align: right; margin-top: 6px; cursor: pointer; }

/* ===== 作品瀑布流 ===== */
.cats {
  display: flex; overflow-x: auto; padding: 8px 16px; gap: 10px;
}
.cat {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--subtext);
  padding: 5px 14px;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--line);
}
.cat.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 作品页顶部分段：老师作品 / 学员作品 */
.seg { display: flex; padding: 12px 16px 4px; gap: 10px; }
.seg-item {
  flex: 1; text-align: center; font-size: 14px; font-weight: 600;
  padding: 9px 0; border-radius: 10px; cursor: pointer;
  background: #fff; color: var(--subtext); border: 1px solid var(--line);
}
.seg-item.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.waterfall { display: flex; padding: 0 12px; gap: 12px; }
.wf-col { flex: 1; min-width: 0; }
.wf-item { padding: 0; overflow: hidden; margin-bottom: 12px; cursor: pointer; }
/* 统一卡片：封面固定高度，中部固定高，标题/评论单行省略 → 所有卡片等高整齐 */
.wf-cover { width: 100%; height: 150px; overflow: hidden; }
.wf-cover .cover-img,
.wf-cover .char-cover { width: 100%; height: 100%; border-radius: 0; }
.wf-mid { height: 48px; padding: 7px 10px 0; box-sizing: border-box; }
.wf-title { font-size: 13px; line-height: 1.3; }
.wf-comment { font-size: 11px; color: var(--subtext); line-height: 1.4; margin-top: 3px; }
.wf-foot { display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding: 0 10px 9px; }
.wf-author { flex: 1; min-width: 0; margin-right: 6px; }
.like { color: var(--danger); flex-shrink: 0; }

/* 弹窗 */
.modal-mask, .player-mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal {
  background: #fff; border-radius: 16px; padding: 20px;
  width: 100%; max-width: 340px; text-align: center;
}
.modal-cover { width: 100%; max-width: 300px; max-height: 56vh; height: auto; object-fit: contain; font-size: 56px; margin: 0 auto 14px; border-radius: 10px; cursor: zoom-in; background: var(--card2); }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-author { font-size: 12px; color: var(--subtext); margin-top: 4px; }
.modal-comment { font-size: 13px; color: var(--text); margin-top: 10px; line-height: 1.5; background: rgba(139,115,85,0.08); padding: 8px 12px; border-radius: 8px; text-align: left; }
.modal-like { color: var(--danger); margin: 14px 0; font-size: 15px; cursor: pointer; }
.modal-like.on { font-weight: 700; }
.modal-close { margin-top: 4px; }

/* ===== 图片放大灯箱 ===== */
.lightbox-mask {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92);
  z-index: 200; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox-img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox-tip { color: #fff; opacity: 0.75; font-size: 12px; margin-top: 14px; }

/* ===== 视频 ===== */
.v-list { padding: 0 16px; }
.v-item { padding: 0; overflow: hidden; }
.v-cover { position: relative; cursor: pointer; }
.v-char { width: 100%; height: 150px; font-size: 56px; border-radius: 0; }
.play-icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.4); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.v-views {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
}
.v-info { padding: 12px 14px; }
.v-title { font-size: 14px; font-weight: 600; }
.v-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12px; }

.player { background: #fff; border-radius: 16px; padding: 20px; width: 100%; max-width: 320px; text-align: center; }
.player-cover { width: 130px; height: 130px; font-size: 60px; margin: 0 auto 14px; }
.player-title { font-size: 15px; font-weight: 600; }
.player-meta { font-size: 12px; color: var(--subtext); margin-top: 4px; }
.player-like { color: var(--danger); margin: 14px 0 8px; font-size: 15px; cursor: pointer; }
.player-like.on { font-weight: 700; }
.player-tip { font-size: 11px; color: var(--subtext); margin-bottom: 12px; line-height: 1.6; }
/* 真实视频播放 */
.player-video {
  width: 100%;
  max-height: 60vh;
  border-radius: 12px;
  background: #000;
  margin-bottom: 12px;
}
.player-no-video { margin-bottom: 12px; }
.player-no-video .player-cover { width: 140px; height: 140px; font-size: 60px; margin: 0 auto 10px; border-radius: 12px; }

/* ===== 我的课时 ===== */
.overview { display: flex; align-items: center; margin: 0 16px 14px; }
.ov-main { text-align: center; padding-right: 18px; border-right: 1px solid var(--line); }
.ov-num { font-size: 34px; font-weight: 700; color: var(--primary); }
.ov-side { flex: 1; display: flex; justify-content: space-around; text-align: center; }
.ov-item { display: flex; flex-direction: column; }

/* ===== 个人中心 ===== */
.p-header {
  background: linear-gradient(135deg, #2C2A28, #4a463f);
  padding: 30px 20px;
  display: flex; align-items: center;
  color: #f3ede3;
}
.p-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 600; margin-right: 14px;
}
.p-name { font-size: 18px; font-weight: 600; }
.p-phone { font-size: 12px; color: #c9bfae; margin-top: 3px; }
.stat { display: flex; margin: 16px; align-items: center; }
.stat-item { flex: 1; text-align: center; }
.stat-num { font-size: 22px; font-weight: 700; color: var(--primary); display: block; }
.menu { margin: 0 16px 14px; }
.menu-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--line);
  cursor: pointer; font-size: 14px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .arrow { color: var(--subtext); }
.logout { margin: 10px 16px 0; width: calc(100% - 32px); }
.p-login { text-align: center; padding: 30px 20px; }

/* ===== 登录页 ===== */
.login-page { padding: 50px 28px 30px; text-align: center; }
.login-logo { width: 72px; height: 72px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 38px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.app-name { font-size: 24px; font-weight: 700; letter-spacing: 4px; }
.app-slogan { font-size: 13px; color: var(--subtext); letter-spacing: 2px; margin-top: 6px; }
.login-tabs { display: flex; margin: 26px 0 18px; }
.login-tabs .lt { flex: 1; text-align: center; padding: 10px 0; color: var(--subtext); cursor: pointer; border-bottom: 2px solid var(--line); }
.login-tabs .lt.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.field { text-align: left; margin-bottom: 14px; }
.field .label { font-size: 12px; color: var(--subtext); }
.field .input {
  width: 100%; border: none; border-bottom: 1px solid var(--line);
  padding: 9px 2px; font-size: 15px; background: transparent; outline: none;
}
.code-row { display: flex; gap: 10px; align-items: center; }
.code-row .input { flex: 1; }
.submit { margin-top: 8px; }
.wx-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 18px; padding: 12px 0; background: #07c160; color: #fff;
  border-radius: 10px; cursor: pointer; font-size: 15px; font-weight: 600;
}
.wx-btn:active { opacity: 0.9; }
.wx-icon { width: 24px; height: 24px; border-radius: 50%; background: #07c160; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.wx-btn .wx-icon { background: #fff; color: #07c160; }
.divider { display: flex; align-items: center; margin: 20px 0 6px; color: var(--subtext); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); margin: 0 12px; }
.hint { font-size: 12px; color: var(--subtext); margin-top: 8px; }

/* ===== 管理后台 ===== */
.admin-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--line); }
.admin-tabs .at { flex: 1; text-align: center; padding: 12px 0; font-size: 13px; color: var(--subtext); cursor: pointer; border-bottom: 2px solid transparent; }
.admin-tabs .at.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* 内容管理：作品/视频列表 + 文件上传 */
.form-field input[type="file"] { font-size: 13px; color: var(--subtext); padding: 6px 0; }
.upload-preview:empty { display: none; }
.upload-preview img, .upload-preview video { display: block; }
.mgr-item { display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mgr-item:last-child { border-bottom: none; }
.mgr-thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; margin-right: 12px; background: var(--card2); display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.mgr-thumb img, .mgr-thumb .cover-img { width: 100%; height: 100%; object-fit: cover; }
.mgr-thumb .char-cover { width: 100%; height: 100%; font-size: 22px; }
.mgr-info { flex: 1; min-width: 0; }
.mgr-title { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mgr-ops { display: flex; gap: 8px; flex: 0 0 auto; }
.mgr-ops .op { font-size: 12px; padding: 5px 11px; border-radius: 6px; background: var(--card2); color: var(--primary); cursor: pointer; }
.mgr-ops .op.no { color: #e54d42; background: #fdecea; }
.search-row { display: flex; gap: 10px; padding: 14px 16px 4px; }
.search-input { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; outline: none; }
/* 约课记录状态过滤条 */
.bk-filters { display: flex; gap: 8px; padding: 14px 16px 4px; overflow-x: auto; }
.bkf { flex: 0 0 auto; font-size: 12px; padding: 5px 12px; border-radius: 14px; background: #fff; color: var(--subtext); border: 1px solid var(--line); cursor: pointer; }
.bkf.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
/* 自定义时段编辑器 */
.slot-edit-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ser-idx { width: 20px; font-size: 12px; color: var(--subtext); text-align: center; flex: 0 0 auto; }
.ser-time { flex: 1; }
.slot-edit-row .op { flex: 0 0 auto; }
.slot-edit-ops { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.stu { display: flex; align-items: center; margin: 0 16px 12px; }
.stu-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(139,115,85,0.15); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-right: 12px; }
.stu-info { flex: 1; }
.stu-name { font-size: 14px; font-weight: 600; }
.stu-ops { display: flex; flex-direction: column; gap: 6px; }
.op { font-size: 11px; padding: 4px 9px; border-radius: 8px; background: rgba(139,115,85,0.1); color: var(--primary); cursor: pointer; text-align: center; }
.op.ok { background: rgba(91,140,110,0.15); color: var(--ok); }
.op.no { background: rgba(180,82,74,0.12); color: var(--danger); }
.bk-ops { display: flex; gap: 10px; margin-top: 8px; }
/* 学员卡：补录手机号行 + 删除二次确认 */
.stu { flex-wrap: wrap; }
.stu .stu-avatar, .stu .stu-info, .stu .stu-ops { margin-bottom: 4px; }
.stu-phone-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; }
.stu-phone-row .fi { flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; outline: none; min-width: 0; }
.stu-phone-row .op { font-size: 12px; padding: 6px 10px; white-space: nowrap; }
.stu .op[data-act="admin-edit-phone"], .stu .op[data-act="admin-del-student"] { font-size: 12px; }
.stu-confirm { width: 100%; margin-top: 8px; padding: 10px; border-radius: 8px; background: rgba(229,77,66,0.08); border: 1px solid rgba(229,77,66,0.35); }
.stu-confirm .danger-text { display: block; font-size: 12px; color: var(--danger); line-height: 1.5; margin-bottom: 8px; }
.stu-confirm-ops { display: flex; gap: 10px; justify-content: flex-end; }
/* 课时管理分页条 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 16px 20px; }
.pg-btn { font-size: 13px; color: var(--primary); background: rgba(139,115,85,0.1); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.pg-btn.disabled { color: var(--subtext); background: var(--card2); cursor: not-allowed; }
.pg-info { font-size: 12px; color: var(--subtext); text-align: center; flex: 1; }
.form-field { display: flex; align-items: center; margin-bottom: 12px; }
.form-field .fl { width: 52px; font-size: 13px; color: var(--subtext); }
.form-field .fi { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 14px; outline: none; }

.textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 14px; line-height: 1.6; outline: none; resize: vertical; font-family: inherit; color: inherit; background: var(--card); }

.toast {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: rgba(44, 42, 40, 0.9); color: #fff; padding: 10px 18px;
  border-radius: 10px; font-size: 13px; z-index: 100; max-width: 80%;
  text-align: center;
}
