/* ===== Trang QUẢN TRỊ NHMedia (dùng chung token với styles.css) ===== */
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.adm-right { display: flex; align-items: center; gap: 12px; }
.adm-right .me { font-weight: 700; font-size: 13px; color: var(--mut); }
.adm-right .link { color: var(--teal); font-weight: 700; font-size: 12.5px; }
@media (max-width: 560px) { .adm-right .link, .adm-right .me { display: none; } }

.btn { background: linear-gradient(135deg, var(--teal), var(--teal-d)); color: #fff; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; box-shadow: 0 6px 16px -7px rgba(15,90,86,0.6); transition: transform .15s, opacity .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.block { width: 100%; margin-top: 6px; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.xs { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost.sm { padding: 7px 12px; font-size: 12.5px; }
.btn-ghost.xs { padding: 4px 9px; font-size: 11.5px; border-radius: 8px; }
.btn-danger { background: #fdecec; color: #dc2626; border: 1px solid #f7caca; border-radius: 10px; padding: 7px 12px; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.btn-danger.sm { font-size: 12px; }
.btn-danger.xs { padding: 4px 9px; font-size: 11.5px; border-radius: 8px; }
.link { background: none; border: 0; color: var(--mut); font-weight: 700; font-size: 12.5px; cursor: pointer; text-decoration: underline; font-family: inherit; }
.link:hover { color: var(--teal); }

.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--mut); margin-bottom: 6px; }
.field input, .field select, .adm-card input, .adm-card select { width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: 14px; font-weight: 600; color: var(--fg); outline: none; font-family: inherit; box-sizing: border-box; transition: border-color .15s, background .15s; }
.field input:focus, .field select:focus { border-color: var(--teal); background: #fff; }
.field input[type=color] { padding: 4px; height: 44px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.auth-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow-h); text-align: center; }
.auth-logo { width: 54px; height: 54px; border-radius: 15px; background: linear-gradient(135deg, var(--teal), var(--teal-d)); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; box-shadow: 0 8px 20px -6px rgba(15,90,86,0.5); }
.auth-logo svg { width: 26px; height: 26px; }
.auth-card h2 { font-size: 22px; }
.auth-card .field, .auth-card .btn { text-align: left; }
.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--mut); cursor: pointer; font-family: inherit; }
.seg button.on { background: var(--teal); color: #fff; }

.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.logo-edit { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.logo-edit .big { width: 64px; height: 64px; border-radius: 15px; }

.adm-list { display: flex; flex-direction: column; gap: 10px; }
.lrow { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.lrow .lg { width: 42px; height: 42px; }
.lrow .lmain { flex: 1; min-width: 0; }
.lrow .lmain b { display: block; font-weight: 700; }
.lrow .lmain span { font-size: 12.5px; color: var(--mut); }

.mrow { display: grid; grid-template-columns: 1fr auto auto auto auto; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; box-shadow: var(--shadow); }
.mrow.islive { border-color: rgba(239,68,68,.4); }
.mrow .mteams { min-width: 0; }
.mrow .mteams b { font-weight: 700; }
.mrow .mteams .vs { color: var(--mut2); margin: 0 7px; font-size: 12px; }
.mrow .mmeta { display: block; font-size: 11.5px; color: var(--mut); margin-top: 3px; }
.mrow .msc { display: flex; align-items: center; gap: 5px; }
.mrow .msc input { width: 46px; text-align: center; padding: 7px 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; font-weight: 800; font-family: inherit; }
.mrow .mst { padding: 7px 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 600; font-family: inherit; }
@media (max-width: 620px) { .mrow { grid-template-columns: 1fr auto; row-gap: 8px; } }

.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(18,32,29,.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal-card { width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; background: #fff; border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); }
.modal-card h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.players-hd { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 13px; margin: 6px 0 8px; }
.plist { display: flex; flex-direction: column; gap: 7px; }
.prow { display: grid; grid-template-columns: 52px 1fr 108px auto auto; gap: 6px; align-items: center; }
.prow input, .prow select { padding: 7px 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; }
.prow .pimg, .prow .pdel { padding: 7px 8px; border: 1px solid var(--line); background: var(--bg2); border-radius: 8px; cursor: pointer; font-size: 12px; font-family: inherit; }
.codebox { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.codebox span { font-size: 26px; font-weight: 800; letter-spacing: 5px; color: var(--teal); background: var(--bg2); border: 1px dashed var(--teal); border-radius: 10px; padding: 10px 18px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); opacity: 0; background: var(--fg); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 13.5px; z-index: 2000; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: all .3s; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--teal); }
.toast.err { background: #dc2626; }
