/* =========================================================
   Shopee Auto — giao diện nội bộ, tối ưu cho màn hình ≥ 1366px
   ========================================================= */
:root {
  --brand: #ee4d2d;
  --brand-600: #d73f21;
  --brand-50: #fff1ee;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e3e6ea;
  --border-strong: #cfd4da;
  --text: #1f2933;
  --text-2: #52606d;
  --text-3: #8a96a3;

  /* Màu trạng thái thống nhất */
  --st-cho: #6b7785;      --st-cho-bg: #eef0f3;    /* xám: đang chờ */
  --st-chay: #1f6feb;     --st-chay-bg: #e7f0ff;   /* xanh dương: đang chạy */
  --st-ok: #1a7f37;       --st-ok-bg: #e6f4ea;     /* xanh lá: thành công */
  --st-loi: #cf222e;      --st-loi-bg: #fdecec;    /* đỏ: lỗi */
  --st-warn: #9a6700;     --st-warn-bg: #fff8e1;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --sidebar-w: 232px;
  --font: "Be Vietnam Pro", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-width: 1280px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--st-chay); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0 0 8px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---------------- Bố cục ---------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: #1d2430;
  color: #c9d1db;
  display: flex; flex-direction: column;
  z-index: 20;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 20px 18px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; color: #8d99a8; font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  color: #c9d1db; font-weight: 500;
}
.nav-item svg { width: 18px; height: 18px; fill: currentColor; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--brand); color: #fff; }
.nav-item.active svg { opacity: 1; }
.sidebar-foot { padding: 14px 18px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.shop-mini { display: flex; gap: 8px; align-items: center; font-size: 13px; color: #e6ebf1; margin-bottom: 8px; }
.mode-tag { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-bottom: 8px; }
.mode-mock { background: rgba(255,255,255,.1); color: #c9d1db; }
.mode-sandbox { background: #fff3c4; color: #7a5a00; }
.mode-live { background: #3fb950; color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: #8d99a8; font: inherit; font-size: 12px; cursor: pointer; }
.link-btn:hover { color: #fff; text-decoration: underline; }

.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }

.conn-banner {
  position: sticky; top: 0; z-index: 15;
  background: var(--st-loi); color: #fff;
  padding: 10px 28px; display: flex; gap: 8px; align-items: center;
}
.banner-btn {
  margin-left: auto; background: #fff; color: var(--st-loi);
  padding: 5px 14px; border-radius: 6px; font-weight: 600;
}
.banner-btn:hover { text-decoration: none; background: #ffecec; }

.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 20px 28px 4px;
}
.topbar h1 { font-size: 22px; font-weight: 700; }
.topbar .sub { color: var(--text-2); margin-top: 2px; }
.topbar .spacer { flex: 1; }
.clock { color: var(--text-2); font-size: 13px; font-variant-numeric: tabular-nums; }

.content { padding: 16px 28px 40px; display: flex; flex-direction: column; gap: 20px; max-width: 1600px; }

/* ---------------- Thẻ / khối ---------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h2 { font-size: 15px; font-weight: 600; }
.card-head .spacer { flex: 1; }
.card-body { padding: 16px 18px; }
.card-body.flush { padding: 0; }
.card-foot { padding: 10px 18px; border-top: 1px solid var(--border); color: var(--text-2); font-size: 13px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }

.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; }

.empty { padding: 28px; text-align: center; color: var(--text-3); }

/* ---------------- Nút ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 36px; padding: 0 16px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-danger { background: var(--st-loi); border-color: var(--st-loi); color: #fff; }
.btn-danger:hover { background: #b01d27; }
.btn-ghost { background: transparent; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 6px; border: 0; background: transparent;
  cursor: pointer; color: var(--text-2); font-size: 15px; display: inline-grid; place-items: center;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.on { color: var(--brand); }

/* ---------------- Badge trạng thái ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-cho { color: var(--st-cho); background: var(--st-cho-bg); }
.badge-chay { color: var(--st-chay); background: var(--st-chay-bg); }
.badge-ok { color: var(--st-ok); background: var(--st-ok-bg); }
.badge-loi { color: var(--st-loi); background: var(--st-loi-bg); }
.badge-warn { color: var(--st-warn); background: var(--st-warn-bg); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-ok { background: #3fb950; } .dot-loi { background: #f85149; } .dot-chay { background: var(--st-chay); } .dot-cho { background: var(--st-cho); }

/* ---------------- Bảng ---------------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table th { font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--surface-2); white-space: nowrap; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: #fafbfc; }
.table tr.row-loi td { background: var(--st-loi-bg); }
.table tr.row-loi td:first-child { box-shadow: inset 3px 0 0 var(--st-loi); }
.table tr.row-highlight td { background: #fff7d6; }
.table .err { color: var(--st-loi); font-size: 12.5px; }
.table-wrap { overflow: auto; }
.table-wrap.max-h { max-height: 420px; }
.table-wrap.max-h th { position: sticky; top: 0; z-index: 1; }

/* ---------------- Biểu mẫu ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 13px; }
.field .hint { color: var(--text-3); font-size: 12.5px; }
.input, .select, textarea.input {
  height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; color: var(--text); background: #fff; min-width: 0;
}
textarea.input { height: auto; padding: 8px 10px; resize: vertical; font-family: var(--mono); font-size: 13px; }
.input:focus, .select:focus { outline: 2px solid rgba(238, 77, 45, .25); border-color: var(--brand); }
.input-time { width: 100px; }
.filters { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }

/* Công tắc */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 600; }
.switch input { display: none; }
.switch .track { width: 46px; height: 26px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); transition: left .15s; }
.switch input:checked + .track { background: var(--st-ok); }
.switch input:checked + .track::after { left: 23px; }

/* ---------------- Thông báo trong trang ---------------- */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-loi { color: #8a1c24; background: var(--st-loi-bg); border-color: #f5c2c5; }
.alert-warn { color: #6b4a00; background: var(--st-warn-bg); border-color: #f1dc9a; }
.alert-info { color: #164a9e; background: var(--st-chay-bg); border-color: #c4d8fb; }
.alert-ok { color: #135c29; background: var(--st-ok-bg); border-color: #b7dfc3; }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------------- Sản phẩm ---------------- */
.prod { display: flex; gap: 10px; align-items: center; min-width: 0; }
.thumb {
  width: 40px; height: 40px; border-radius: 6px; flex: none;
  display: grid; place-items: center; font-weight: 700; color: rgba(0,0,0,.45); font-size: 13px;
}
.thumb-lg { width: 100%; height: 96px; border-radius: 8px; font-size: 22px; }
.prod-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-id { color: var(--text-3); font-size: 12px; font-family: var(--mono); }

/* ---------------- Tổng quan ---------------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.dash .card { display: flex; flex-direction: column; min-height: 300px; }
.dash .card-body { flex: 1; }
.big-status { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.big-status .dot { width: 14px; height: 14px; }
.big-status strong { font-size: 18px; }
.mini-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.mini-slot { border: 1px solid var(--border); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini-slot .prod-name { font-size: 12.5px; }
.mini-slot.empty-slot { border-style: dashed; color: var(--text-3); justify-content: center; align-items: center; text-align: center; font-size: 12.5px; }

/* ---------------- Ô đẩy sản phẩm ---------------- */
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.slot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); min-width: 0; }
.slot-num { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.slot .prod-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 42px; }
.slot-timer { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--st-chay); }
.slot-empty { border-style: dashed; background: var(--surface-2); color: var(--text-3); align-items: center; justify-content: center; text-align: center; min-height: 250px; box-shadow: none; }
.slot-manual { border-color: #f1dc9a; }
.progress { height: 6px; border-radius: 999px; background: var(--st-cho-bg); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--st-chay); border-radius: inherit; }

.loop-bar { display: flex; align-items: center; gap: 24px; padding: 14px 18px; }
.loop-bar .stat { display: flex; flex-direction: column; }
.loop-bar .stat small { color: var(--text-2); font-size: 12px; }
.loop-bar .stat strong { font-size: 15px; font-variant-numeric: tabular-nums; }

tr.dragging td { opacity: .4; }
tr.drag-over td { box-shadow: inset 0 2px 0 var(--brand); }
.drag-handle { cursor: grab; color: var(--text-3); font-size: 16px; user-select: none; }

.suggest { position: relative; }
.suggest-list {
  position: absolute; top: 40px; left: 0; right: 0; z-index: 10;
  background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-lg);
  max-height: 300px; overflow: auto;
}
.suggest-item { padding: 8px 12px; cursor: pointer; }
.suggest-item:hover, .suggest-item.active { background: var(--brand-50); }

/* ---------------- Trình tạo Flash Sale ---------------- */
.stepper { display: flex; gap: 0; counter-reset: step; }
.step {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  color: var(--text-3); font-weight: 600; border-bottom: 3px solid var(--border);
}
.step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--st-cho-bg); color: var(--text-2); font-size: 13px; }
.step.active { color: var(--text); border-color: var(--brand); }
.step.active .n { background: var(--brand); color: #fff; }
.step.done { color: var(--st-ok); border-color: var(--st-ok); }
.step.done .n { background: var(--st-ok); color: #fff; }

.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius); padding: 28px; text-align: center;
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-50); }
.dropzone strong { display: block; font-size: 15px; margin-bottom: 4px; }

.ranges { display: flex; flex-direction: column; gap: 8px; }
.range-row { display: flex; gap: 8px; align-items: center; }

.slot-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.day-col { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.day-col h4 { font-size: 13px; padding: 8px 10px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.day-col .slots-list { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
.slot-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 6px;
  border: 1px solid var(--border); font-size: 13px; font-variant-numeric: tabular-nums; cursor: pointer; user-select: none;
}
.slot-chip.match { border-color: #9cc0f9; background: var(--st-chay-bg); }
.slot-chip.match.off { background: #fff; border-color: var(--border); color: var(--text-2); }
.slot-chip.nomatch { color: var(--text-3); cursor: default; background: transparent; border-style: dashed; }
.slot-chip .warn { margin-left: auto; color: var(--st-warn); }

.summary-nums { display: flex; gap: 16px; }
.summary-num { flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.summary-num small { color: var(--text-2); display: block; }
.summary-num strong { font-size: 24px; font-variant-numeric: tabular-nums; }

.wizard-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--border); }
.wizard-foot .spacer { flex: 1; }

/* ---------------- Hộp thoại ---------------- */
.modal-back { position: fixed; inset: 0; background: rgba(15, 23, 32, .45); display: grid; place-items: center; z-index: 50; padding: 24px; }
.modal { background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); width: 480px; max-width: 100%; max-height: calc(100vh - 48px); display: flex; flex-direction: column; }
.modal-wide { width: 980px; }
.modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 16px; flex: 1; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); }

/* ---------------- Toast ---------------- */
#toasts { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: #1d2430; color: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg); max-width: 380px; transition: opacity .3s, transform .3s; }
.toast-ok { background: var(--st-ok); }
.toast-loi { background: var(--st-loi); }
.toast.out { opacity: 0; transform: translateY(8px); }

.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.15); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================= Shopee Video ================= */
.user-mini { margin-top: 6px; font-size: 13px; color: #e6ebf1; }
.user-mini .user-name { margin-bottom: 4px; }

.chip { display: inline-flex; align-items: center; gap: 4px; max-width: 220px; padding: 2px 8px; border-radius: 999px;
  background: var(--brand-50); color: #8a2a12; font-size: 12.5px; margin: 0 4px 4px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; padding: 0 0 0 2px; line-height: 1; }

/* Đăng nhập */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #1d2430, #3b2a2a); padding: 24px; }
.login-card { width: 380px; max-width: 100%; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 28px; }
.login-card h1 { font-size: 20px; margin: 14px 0 4px; }
.login-card .stack { gap: 14px; }

/* Bảng tạo đợt */
.batch-table td { vertical-align: top; }
.vthumb { width: 96px; height: 128px; border-radius: 8px; background: #111; object-fit: cover; display: block; }
.vthumb-sm { width: 54px; height: 72px; border-radius: 6px; background: #111; object-fit: cover; display: block; }
.vname { font-weight: 600; word-break: break-all; max-width: 220px; }
.vmeta { color: var(--text-3); font-size: 12px; margin-top: 2px; }
.warn-list { margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--st-warn); }
.warn-list li::before { content: "⚠ "; }
.caption-box { width: 100%; min-width: 240px; height: 96px; resize: vertical; font-family: inherit; font-size: 13.5px; padding: 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); }
.counter { font-size: 12px; color: var(--text-3); text-align: right; }
.counter.over { color: var(--st-loi); font-weight: 600; }
.upbar { height: 6px; border-radius: 999px; background: var(--st-cho-bg); overflow: hidden; margin-top: 6px; }
.upbar > span { display: block; height: 100%; background: var(--st-chay); transition: width .2s; }
.upbar.done > span { background: var(--st-ok); }
.upbar.err > span { background: var(--st-loi); }
.toolbar { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.input-dt { width: 190px; }
.sticky-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border); padding: 12px 18px; display: flex; gap: 12px; align-items: center; z-index: 5; border-radius: 0 0 var(--radius) var(--radius); }
.dropzone.compact { padding: 18px; }

/* Lịch theo ngày */
.day-group { border-top: 1px solid var(--border); }
.day-group:first-child { border-top: 0; }
.day-title { padding: 10px 18px; background: var(--surface-2); font-weight: 600; display: flex; gap: 10px; align-items: center; }
.tabs { display: flex; gap: 4px; }
.tab { padding: 6px 14px; border-radius: 6px; border: 1px solid transparent; background: none; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; }
.tab.active { background: var(--brand-50); color: var(--brand); border-color: #f6c3b7; }
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat small { color: var(--text-2); display: block; }
.stat strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.pick-list { max-height: 360px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.pick-item { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pick-item:last-child { border-bottom: 0; }
.pick-item:hover { background: var(--surface-2); }
.pick-item.disabled { opacity: .45; cursor: not-allowed; }
.pick-thumb { width: 48px; height: 48px; flex: none; border-radius: 6px; object-fit: cover; background: var(--surface-2); border: 1px solid var(--border); }

/* Xem video lớn (giống Seller Centre) */
.player-back { position: fixed; inset: 0; z-index: 70; background: rgba(10, 12, 16, .82); display: flex; align-items: center; justify-content: center; padding: 24px; }
.player-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: 100%; }
.player-box video { max-height: calc(100vh - 110px); max-width: calc(100vw - 48px); width: auto; height: calc(100vh - 110px); aspect-ratio: 9 / 16; background: #000; border-radius: 10px; box-shadow: var(--shadow-lg); }
.player-title { color: #e6ebf1; font-size: 13px; max-width: 520px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-close { position: fixed; top: 16px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 20px; cursor: pointer; }
.player-close:hover { background: rgba(255,255,255,.3); }
.player-err { color: #ffb4a8; font-size: 13px; }
.playable { position: relative; cursor: zoom-in; display: inline-block; }
.playable::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.6); opacity: .85; pointer-events: none; }
.playable:hover::after { opacity: 1; font-size: 22px; }
