:root {
  color-scheme: dark;
  --bg: #0b0f16;
  --panel: #131a25;
  --line: #263040;
  --muted: #98a4b7;
  --gold: #e7be70;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f2f3f6;
  font:
    15px/1.6 system-ui,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
header {
  border-bottom: 1px solid var(--line);
  background: #0e141ee8;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(18px);
}
.bar {
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 19px 28px;
}
.brand {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  white-space: nowrap;
}
.brand span {
  color: var(--gold);
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  transform: skew(-12deg);
  background: var(--gold);
  color: #10151c;
  margin-right: 9px;
}
.bar nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav,
.plain {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 7px 0;
}
.nav:hover,
.nav.active {
  color: var(--gold);
}
.admin {
  border: 1px solid var(--line);
  background: transparent;
  color: #d7dfec;
  padding: 9px 15px;
  border-radius: 5px;
}
main {
  max-width: 1240px;
  padding: 28px;
  margin: auto;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 800;
}
.ticker {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 25px;
}
.ticker b {
  color: var(--gold);
}
.hero {
  border: 1px solid #3d434b;
  border-radius: 9px;
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: #172632;
  display: flex;
  align-items: flex-end;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #070e19ee, transparent 95%), linear-gradient(0deg, #090f19, transparent 90%);
}
.herotext {
  position: relative;
  padding: 40px;
  max-width: 630px;
}
.tag {
  display: inline-block;
  color: #10151c;
  background: var(--gold);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 3px;
}
.herotext h1 {
  font-size: 44px;
  line-height: 1.15;
  margin: 18px 0;
  letter-spacing: -1px;
}
.herotext p {
  color: #c2cada;
  max-width: 480px;
}
.primary {
  border: 0;
  background: var(--gold);
  padding: 12px 21px;
  border-radius: 4px;
  font-weight: 750;
  color: #15191f;
}
.meta {
  font-size: 12px;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  margin-top: 36px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.5px;
  margin: 0;
}
.sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.search {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 5px;
  color: white;
  width: 230px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.chip {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 4px;
}
.chip.active {
  background: #e7be7018;
  border-color: var(--gold);
  color: var(--gold);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  padding: 0;
  transition: transform 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #7d6a47;
}
.art {
  height: 175px;
  background:
    radial-gradient(ellipse at 70% 40%, #7a58a4, transparent 60%), linear-gradient(135deg, #151f40, #38305a);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.art:after {
  content: "✦";
  font-size: 130px;
  color: #dabf8770;
  transform: rotate(15deg);
}
.art.gold {
  background: radial-gradient(circle at 70% 30%, #b08c40, transparent 65%), #222936;
}
.art.anniversary {
  background: url("/assets/arena-cover-720-8282051220.webp") center/cover;
}
.art.anniversary:after {
  content: "";
}
.cardtext {
  padding: 19px;
}
.card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 12px 0;
}
.card p {
  font-size: 13px;
  color: var(--muted);
}
aside .box {
  padding: 23px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 22px;
}
aside h3 {
  margin: 0 0 15px;
  font-size: 17px;
}
.quick {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.quick span {
  color: var(--gold);
  margin-right: 10px;
}
.notice {
  font-size: 13px;
  color: var(--muted);
}
.placement-preview {
  min-height: 160px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px dashed #4b4c49;
  border-radius: 6px;
  color: #b4a281;
  font-size: 12px;
  letter-spacing: 1px;
  background: #15171a;
}
.empty {
  padding: 45px 10px;
  color: var(--muted);
  grid-column: 1/-1;
}
footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 30px 28px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
dialog {
  background: #111925;
  color: white;
  border: 1px solid #354256;
  border-radius: 9px;
  width: min(800px, 95vw);
  padding: 30px;
  max-height: 90vh;
}
dialog::backdrop {
  background: #000b;
  backdrop-filter: blur(5px);
}
.close {
  float: right;
  background: none;
  border: 0;
  color: white;
  font-size: 25px;
}
.articlebody {
  white-space: pre-wrap;
  font-size: 17px;
  line-height: 1.9;
  margin: 25px 0;
}
.source {
  color: var(--gold);
  text-decoration: underline;
}
.editor {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 5px;
  color: #bec7d5;
  font-size: 13px;
}
.editor input,
.editor select,
.editor textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0c121c;
  border-radius: 5px;
  padding: 10px;
  color: white;
}
.editor textarea {
  min-height: 180px;
  resize: vertical;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.postrow {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.postrow div {
  flex: 1;
}
.postrow button {
  background: #202d3f;
  color: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
}
.status {
  color: var(--gold);
  font-size: 12px;
}
.error {
  color: #ffafa7;
}
@media (max-width: 950px) {
  .bar {
    gap: 20px;
    flex-wrap: wrap;
  }
  .bar nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    gap: 20px;
  }
  .admin {
    margin-left: auto;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .herotext h1 {
    font-size: 36px;
  }
}
@media (max-width: 560px) {
  main {
    padding: 18px;
  }
  .bar {
    padding: 15px 18px;
  }
  .brand {
    font-size: 20px;
  }
  .hero {
    min-height: 440px;
    background-position: 60% center;
  }
  .herotext {
    padding: 25px;
  }
  .herotext h1 {
    font-size: 34px;
  }
  .hero:before {
    background: linear-gradient(0deg, #070e19, #070e19a8);
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .sectionhead {
    align-items: stretch;
    flex-direction: column;
  }
  .search {
    width: 100%;
  }
  .side {
    display: block;
  }
  .ticker {
    font-size: 11px;
    gap: 12px;
  }
  .ticker span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  footer {
    flex-direction: column;
  }
  dialog {
    padding: 20px;
  }
}
.placement-home {
  min-height: 100px;
  margin: 22px 0;
  gap: 6px;
}
.placement-home small {
  font-size: 11px;
  letter-spacing: 0;
  color: #aaa;
}
.placement-label {
  color: #e7be70;
  font-weight: 700;
}
.placement-article {
  border-color: #8e774a;
  background: linear-gradient(135deg, #24241b, #151b24);
}
@media (max-width: 560px) {
  .placement-home {
    min-height: 110px;
  }
}

.placement-preview {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 140px;
  padding: 22px 14px;
  border: 2px dashed #a78bfa;
  background: #241d39;
  color: #f1eaff;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0;
  border-radius: 8px;
}
.placement-label {
  color: #f1eaff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}
.placement-preview small {
  color: #c8bbde;
  font-size: 12px;
  letter-spacing: 0;
}
.placement-preview:before {
  content: "KHUNG XEM THỬ";
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #c7adff;
}
@media (max-width: 560px) {
  header {
    position: static;
  }
  .bar {
    gap: 10px;
    padding: 13px 18px;
  }
  .brand {
    font-size: 17px;
    letter-spacing: 0.3px;
  }
  .mark {
    width: 27px;
    height: 29px;
    margin-right: 6px;
  }
  .admin {
    font-size: 12px;
    padding: 7px 10px;
  }
  .bar nav {
    gap: 18px;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .nav {
    flex-shrink: 0;
    font-size: 13px;
    padding: 5px 0;
  }
  .placement-preview {
    width: 100%;
    min-height: 145px;
    margin: 20px 0;
  }
}
.public-hero-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  color: #a9b6c9;
  font-size: 13px;
}
.public-hero-filter select {
  background: #172130;
  color: white;
  border: 1px solid #354155;
  border-radius: 5px;
  padding: 9px 12px;
  min-width: 200px;
}
.hero-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.hero-tags span,
.hero-tags a {
  font-size: 12px;
  background: #243049;
  border: 1px solid #3b4a63;
  color: #e5ca93;
  border-radius: 30px;
  padding: 3px 10px;
}
.live-ad-unit {
  margin: 25px 0;
  min-height: 100px;
  overflow: hidden;
}
.live-ad-unit > small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #98a4b7;
  text-align: center;
  margin-bottom: 7px;
}
@media (max-width: 560px) {
  .public-hero-filter select {
    width: 100%;
  }
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero:before {
  z-index: 1;
}
.herotext {
  z-index: 2;
}
img.art {
  display: block;
}
.mobile-menu-toggle {
  display: none;
}
.bar nav {
  min-width: 0;
}
.cardtext {
  overflow-wrap: anywhere;
}
.side,
.layout > section,
.reader-layout > article {
  min-width: 0;
}
.reader-aside {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .bar {
    gap: 10px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }
  .bar > .brand {
    font-size: 18px;
    flex: 1;
    min-width: 0;
  }
  .bar > #manage {
    margin-left: 0;
    min-height: 40px;
    white-space: nowrap;
  }
  .bar nav {
    order: 4;
    flex: 0 0 100%;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    white-space: nowrap;
    padding: 2px 0 6px;
  }
  .bar .nav {
    flex: 0 0 auto;
    min-height: 40px;
    border: 1px solid #354155;
    border-radius: 30px;
    padding: 8px 13px;
    line-height: 1.2;
  }
  .bar .nav.active {
    background: #e7be7018;
    border-color: #e7be70;
  }
  .bar > .public-language {
    order: 3;
    flex: 0 0 100%;
    margin-left: 0;
  }
  .hero {
    min-height: 350px;
  }
  .herotext {
    padding: 26px 22px;
  }
  .herotext h1 {
    font-size: clamp(28px, 8vw, 36px);
  }
  .hero-backdrop {
    object-position: 65% center;
  }
  .filters {
    display: none;
  }
  .ticker {
    margin-bottom: 14px;
  }
  main {
    padding: 16px;
  }
  .layout {
    margin-top: 26px;
    gap: 22px;
  }
  .grid {
    gap: 18px;
  }
  .public-hero-filter {
    display: block;
  }
  .public-hero-filter select {
    margin-top: 8px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  .reader .bar {
    gap: 10px;
  }
  .reader-layout {
    gap: 20px;
  }
  .reader h1 {
    overflow-wrap: anywhere;
  }
  .placement-preview {
    padding: 18px 12px;
  }
  .reader-content figure {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 380px) {
  .bar > .brand {
    font-size: 16px;
  }
  .bar > #manage {
    font-size: 11px;
    padding: 8px;
  }
  .mark {
    margin-right: 5px;
  }
  .hero {
    min-height: 330px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .card {
    transition: none;
  }
  .card:hover {
    transform: none;
  }
}
