/*
Theme Name: DL90 Media
Theme URI: https://dl90media.net/
Author: DL90 Media
Description: Giao diện tin tức - truyền thông được chuyển đổi từ mẫu HTML DL90 Media sang WordPress.
Version: 1.0.16
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dl90-media
*/

:root {
    --ink: #14181F;
    --ink-muted: #566070;
    --paper: #F4F6F8;
    --surface: #FFFFFF;
    --surface-sunken: #E9EDF2;
    --border: #D9DFE7;
    --brand-blue: #1478B0;
    --brand-gold: #9C7530;
    --breaking: #AE281F;
    --masthead-bg: #08070D;
    --on-masthead: #F5F5F0;
    --gold-bright: #E8C878;
    --font-serif: "Noto Serif", "Times New Roman", serif;
    --font-body: "Be Vietnam Pro", "Segoe UI", sans-serif;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --ink: #E7EAF0;
      --ink-muted: #9AA3B2;
      --paper: #0F1113;
      --surface: #17191C;
      --surface-sunken: #0B0D0C;
      --border: #2A2E33;
      --brand-blue: #34C3F0;
      --brand-gold: #E8C878;
      --breaking: #E5534B;
      --masthead-bg: #08070D;
      --on-masthead: #F5F5F0;
      --gold-bright: #E8C878;
    }
  }
  :root[data-theme="dark"] {
    --ink: #E7EAF0;
    --ink-muted: #9AA3B2;
    --paper: #0F1113;
    --surface: #17191C;
    --surface-sunken: #0B0D0C;
    --border: #2A2E33;
    --brand-blue: #34C3F0;
    --brand-gold: #E8C878;
    --breaking: #E5534B;
    --masthead-bg: #08070D;
    --on-masthead: #F5F5F0;
    --gold-bright: #E8C878;
  }

  * { box-sizing: border-box; }
  @media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.001ms !important; }
  }

  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  img, svg { display: block; }
  a { color: inherit; text-decoration: none; }
  .icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }

  .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

  /* ---------- Utility bar ---------- */
  .utility {
    background: var(--surface-sunken);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--ink-muted);
  }
  .utility .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
  }
  .utility-links { display: flex; gap: 18px; }
  .utility-links a:hover { color: var(--brand-blue); }

  /* ---------- Masthead ---------- */
  .masthead { padding: 14px 0; background: var(--masthead-bg); }
  .masthead .wrap { display: flex; align-items: center; gap: 16px; }
  .logo-mark { width: 56px; height: 56px; border-radius: 13px; overflow: hidden; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,0.06); }
  .logo-mark img { width: 100%; height: 100%; object-fit: cover; }
  .masthead-text { display: flex; flex-direction: column; gap: 3px; }
  .nameplate { font-family: var(--font-serif); font-weight: 900; font-size: 1.55rem; letter-spacing: 0.01em; color: var(--on-masthead); }
  .nameplate span { color: var(--gold-bright); }
  .tagline { font-size: 0.8rem; color: var(--on-masthead); opacity: 0.68; font-weight: 600; letter-spacing: 0.03em; }

  /* ---------- Category nav ---------- */
  .catnav { position: sticky; top: 0; z-index: 40; background: var(--masthead-bg); }
  .catnav .wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
  .catnav .wrap::-webkit-scrollbar { display: none; }
  .catnav a {
    color: var(--on-masthead);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    padding: 13px 16px;
    border-bottom: 3px solid transparent;
    opacity: 0.88;
  }
  .catnav a:hover, .catnav a:focus-visible { opacity: 1; border-bottom-color: var(--gold-bright); }
  .catnav a.current { opacity: 1; border-bottom-color: var(--gold-bright); }

  main { padding-bottom: 20px; }

  /* ---------- Tags & meta ---------- */
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-blue);
  }
  .tag::before { content: "●"; font-size: 0.5rem; }
  .tag.breaking { color: var(--breaking); }
  .meta-time { font-size: 0.76rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

  .badge-sample {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-gold);
    border: 1px solid var(--brand-gold);
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 6px;
    transform: translateY(-1px);
  }

  /* ---------- Lead + secondary ---------- */
  .front {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
  }
  .lead-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--masthead-bg) 60%, var(--brand-gold) 130%);
    position: relative;
    margin-bottom: 14px;
  }
  .lead-thumb::after {
    content: "ẢNH MINH HOẠ";
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--on-masthead);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    opacity: 0.55;
  }
  .lead h1 {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.18;
    text-wrap: balance;
    margin: 10px 0 10px;
  }
  .lead h1 a:hover { color: var(--brand-blue); }
  .lead p.sapo { color: var(--ink-muted); font-size: 1rem; margin: 0 0 10px; max-width: 60ch; }

  .side-list { display: flex; flex-direction: column; }
  .side-item {
    display: flex; gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border);
  }
  .side-item:first-child { border-top: none; padding-top: 0; }
  .side-thumb {
    width: 84px; height: 60px; flex-shrink: 0;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    position: relative;
  }
  .side-thumb .icon { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; color: var(--ink-muted); }
  .side-item h3 { font-size: 0.94rem; font-weight: 700; line-height: 1.32; margin: 3px 0 5px; }
  .side-item h3 a:hover { color: var(--brand-blue); }

  /* ---------- About strip ---------- */
  .about-strip {
    display: flex; gap: 20px; align-items: flex-start;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
  }
  .about-strip .rule { width: 4px; align-self: stretch; background: var(--brand-gold); flex-shrink: 0; }
  .about-strip h2 { font-family: var(--font-serif); font-size: 1.05rem; margin: 0 0 6px; }
  .about-strip p { margin: 0; color: var(--ink-muted); font-size: 0.92rem; max-width: 74ch; }

  /* ---------- Category sections ---------- */
  .cat-section { padding: 30px 0; border-bottom: 1px solid var(--border); }
  .cat-section.priority { background: var(--surface); }
  .cat-head {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 10px; margin-bottom: 20px;
  }
  .cat-head .title-group { display: flex; align-items: center; gap: 10px; }
  .cat-head .icon { color: var(--brand-blue); width: 22px; height: 22px; }
  .cat-head h2 {
    font-family: var(--font-serif); font-weight: 700;
    font-size: 1.3rem; margin: 0;
  }
  .cat-head .viewall { font-size: 0.78rem; font-weight: 700; color: var(--brand-blue); white-space: nowrap; }
  .cat-head .viewall:hover { text-decoration: underline; }
  .cat-note { font-size: 0.86rem; color: var(--ink-muted); margin: -12px 0 20px; max-width: 70ch; }

  .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card-thumb {
    aspect-ratio: 16/10;
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    position: relative;
    margin-bottom: 12px;
  }
  .card-thumb .icon { position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; color: var(--ink-muted); opacity: 0.7; }
  .card h3 { font-size: 1.02rem; line-height: 1.35; margin: 0 0 8px; }
  .card h3 a:hover { color: var(--brand-blue); }
  .card p { font-size: 0.86rem; color: var(--ink-muted); margin: 0 0 8px; }

  /* ---------- Sport/other strip ---------- */
  .strip-section { padding: 22px 0; }
  .strip-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; }
  .strip-item {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 9px 0; border-bottom: 1px dashed var(--border);
    font-size: 0.9rem;
  }
  .strip-item a:hover { color: var(--brand-blue); }

  @media (max-width: 860px) {
    .front { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-list { grid-template-columns: 1fr; }
  }
  @media (max-width: 560px) {
    .card-grid { grid-template-columns: 1fr; }
    .nameplate { font-size: 1.9rem; }
  }

  /* ---------- Footer ---------- */
  footer { background: var(--masthead-bg); color: var(--on-masthead); padding: 44px 0 22px; }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(246,248,251,0.18);
  }
  footer h4 {
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--gold-bright); margin: 0 0 14px;
  }
  .footer-about { font-size: 0.88rem; opacity: 0.88; max-width: 42ch; }
  .footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
  .footer-links a { font-size: 0.86rem; opacity: 0.9; }
  .footer-links a:hover { opacity: 1; text-decoration: underline; }
  .footer-contact div { font-size: 0.86rem; opacity: 0.88; margin-bottom: 8px; }
  .footer-contact .badge-sample { color: var(--gold-bright); border-color: var(--gold-bright); }
  .footer-bottom {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
    padding-top: 20px; font-size: 0.76rem; opacity: 0.75;
  }
  .footer-social { display: flex; gap: 10px; }
  .footer-social span { border: 1px solid rgba(246,248,251,0.35); border-radius: 20px; padding: 4px 11px; font-size: 0.72rem; font-weight: 700; }

/* ---------- WordPress integration ---------- */
body.admin-bar .catnav { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .catnav { top: 46px; } }

.custom-logo-link { display:block; }
.custom-logo { width:100%; height:100%; object-fit:cover; }
.logo-mark a { display:block; width:100%; height:100%; }

.catnav .menu { display:flex; margin:0; padding:0; list-style:none; }
.catnav .menu-item { margin:0; }
.catnav .current-menu-item > a, .catnav .current-category-ancestor > a { opacity:1; border-bottom-color:var(--gold-bright); }

.wp-post-image { width:100%; height:100%; object-fit:cover; }
.lead-thumb.has-image::after { display:none; }
.card-thumb.has-image, .side-thumb.has-image { overflow:hidden; border:0; }
.card-thumb.has-image .wp-post-image, .side-thumb.has-image .wp-post-image { width:100%; height:100%; object-fit:cover; }

.site-title-link { display:block; }
.search-toggle { background:none; border:0; color:inherit; padding:0; cursor:pointer; display:inline-flex; align-items:center; }
.utility-search { display:none; padding:10px 0; }
.utility-search.is-open { display:block; }
.utility-search form { display:flex; gap:8px; }
.utility-search label { flex:1; }
.utility-search .search-field { width:100%; border:1px solid var(--border); border-radius:4px; padding:9px 11px; background:var(--surface); color:var(--ink); }
.utility-search .search-submit { border:0; border-radius:4px; padding:9px 14px; background:var(--brand-blue); color:#fff; font-weight:700; cursor:pointer; }

.empty-card { min-height:180px; display:flex; flex-direction:column; justify-content:center; padding:20px; border:1px dashed var(--border); background:var(--surface); }
.empty-card p { margin:5px 0; color:var(--ink-muted); }

.content-shell { max-width:900px; margin:0 auto; padding:34px 24px 56px; }
.archive-shell { max-width:1180px; margin:0 auto; padding:34px 24px 56px; }
.page-header { border-bottom:2px solid var(--brand-blue); margin-bottom:24px; padding-bottom:12px; }
.page-header h1 { font-family:var(--font-serif); font-size:2rem; line-height:1.2; margin:0; }
.archive-description { margin-top:8px; color:var(--ink-muted); }
.archive-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.archive-card { background:var(--surface); border-bottom:1px solid var(--border); padding-bottom:18px; }
.archive-card .card-thumb { margin-bottom:12px; }
.archive-card h2 { font-family:var(--font-serif); font-size:1.18rem; line-height:1.35; margin:8px 0; }
.archive-card h2 a:hover { color:var(--brand-blue); }

.single-article { background:var(--surface); padding:28px; border:1px solid var(--border); }
.single-article .entry-kicker { margin-bottom:10px; }
.single-article h1 { font-family:var(--font-serif); font-size:2.35rem; line-height:1.18; margin:0 0 12px; text-wrap:balance; }
.single-meta { color:var(--ink-muted); font-size:.83rem; margin-bottom:20px; display:flex; flex-wrap:wrap; gap:8px 14px; }
.single-featured { margin:0 -28px 24px; }
.single-featured img { width:100%; height:auto; }
.entry-content { font-family:var(--font-body); font-size:1.04rem; line-height:1.8; }
.entry-content p { margin:0 0 1.2em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family:var(--font-serif); line-height:1.3; margin:1.6em 0 .6em; }
.entry-content img { max-width:100%; height:auto; }
.entry-content a { color:var(--brand-blue); text-decoration:underline; }
.entry-content blockquote { margin:1.5em 0; padding:14px 18px; border-left:4px solid var(--brand-gold); background:var(--surface-sunken); }
.post-tags { margin-top:26px; padding-top:16px; border-top:1px solid var(--border); font-size:.84rem; }
.post-tags a { color:var(--brand-blue); }

.pagination { margin-top:30px; }
.pagination .nav-links { display:flex; gap:7px; flex-wrap:wrap; }
.pagination .page-numbers { padding:7px 11px; border:1px solid var(--border); background:var(--surface); }
.pagination .current { background:var(--brand-blue); color:#fff; border-color:var(--brand-blue); }

.error-404 { text-align:center; padding:72px 24px; }
.error-404 h1 { font-family:var(--font-serif); font-size:3rem; margin:0 0 12px; }
.error-404 p { color:var(--ink-muted); }
.button-link { display:inline-block; padding:10px 16px; border-radius:4px; background:var(--brand-blue); color:#fff; font-weight:700; }

.screen-reader-text { border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute!important; width:1px; word-wrap:normal!important; }

@media (max-width:860px) {
  .archive-grid { grid-template-columns:repeat(2,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width:560px) {
  .archive-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .single-article { padding:20px; border-left:0; border-right:0; }
  .single-featured { margin:0 -20px 20px; }
  .single-article h1 { font-size:1.85rem; }
  .utility-links { gap:10px; }
}


/* DL90 MEDIA — Thời tiết Hải Phòng */
.utility .hp-weather {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  margin-left: 12px;
  margin-right: auto;
  color: var(--ink-muted);
  font-size: 0.76rem;
  white-space: nowrap;
}
.utility .hp-weather-icon {
  color: var(--gold-bright);
  font-size: 0.9rem;
  line-height: 1;
}
.utility .hp-weather-label {
  color: var(--ink);
  font-weight: 700;
}
.utility .hp-weather-value { color: var(--ink-muted); }

@media (max-width: 640px) {
  .utility .wrap {
    height: auto;
    min-height: 34px;
    padding: 4px 0;
    flex-wrap: wrap;
  }
  .utility #today-date,
  .utility .hp-weather {
    order: 1;
  }
  .utility .hp-weather {
    margin-left: 0;
    margin-right: 0;
    font-size: 0.72rem;
  }
  .utility .utility-links {
    order: 2;
    width: 100%;
    justify-content: flex-end;
  }
  .utility .hp-weather-label {
    display: none;
  }
}


/* DL90 MEDIA — Mobile header search guard */
.utility .utility-search {
  display: none;
}
.utility .utility-search.is-open {
  display: block;
  height: auto;
  min-height: 0;
}
@media (max-width: 640px) {
  .utility .utility-search.is-open {
    padding: 8px 0 10px;
  }
  .utility .utility-search.is-open form {
    display: flex;
  }
}


/* DL90 MEDIA — WordPress primary menu */
.catnav .menu {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}
.catnav .menu > li {
  display: flex;
  flex: 0 0 auto;
  margin: 0;
}
.catnav .menu > li > a {
  display: block;
}


/* DL90 MEDIA — Thanh chia sẻ bài viết */
.dl90-share {
  margin: 32px 0 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dl90-share-label {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.dl90-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dl90-share-button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.dl90-share-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(20, 24, 31, .16);
}
.dl90-share-button:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}
.dl90-share-icon {
  display: inline-flex;
  width: 15px;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-size: 1.05em;
  font-weight: 900;
}
.dl90-share-facebook {
  background: #1877F2;
  color: #fff;
}
.dl90-share-facebook:hover,
.dl90-share-facebook:focus-visible {
  color: #fff;
  background: #1264cf;
}
.dl90-share-tiktok {
  border-color: var(--masthead-bg);
  background: var(--masthead-bg);
  color: var(--on-masthead);
  box-shadow: inset 2px 0 0 var(--brand-blue), inset -2px 0 0 var(--gold-bright);
}
.dl90-share-tiktok:hover,
.dl90-share-tiktok:focus-visible {
  color: var(--on-masthead);
  background: #1e2430;
}
.dl90-share-copy {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}
.dl90-share-copy:hover,
.dl90-share-copy:focus-visible {
  color: var(--ink);
  border-color: var(--brand-gold);
  background: var(--surface-sunken);
}
.dl90-share-status {
  min-height: 1.25em;
  margin: 9px 0 0;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: .76rem;
}
@media (max-width: 560px) {
  .dl90-share-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dl90-share-button {
    gap: 5px;
    min-width: 0;
    padding: 0 7px;
    font-size: .72rem;
  }
}/* DL90 MEDIA — Lớp giao diện sự kiện Quốc khánh 2/9
   Hiển thị theo lịch trong header.php: 29/08–05/09 hằng năm. */
.dl90-seasonal-event {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 50%, rgba(52, 195, 240, .16), transparent 24%),
    linear-gradient(102deg, #08070D 0%, #181B24 48%, #741F24 100%);
  border-bottom: 1px solid rgba(232, 200, 120, .72);
  box-shadow: inset 0 -1px 0 rgba(52, 195, 240, .30);
}
.dl90-seasonal-event__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 42px;
  padding: 9px 18px;
  text-align: center;
}
.dl90-seasonal-event__star {
  flex: 0 0 auto;
  color: #F6C85D;
  font-size: .95rem;
  line-height: 1;
  text-shadow: 0 0 14px rgba(246, 200, 93, .35);
}
.dl90-seasonal-event__message {
  margin: 0;
  color: #FFF7E7;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .012em;
  line-height: 1.45;
}
.dl90-seasonal-event__message strong {
  color: #FFE19A;
  font-weight: 800;
}
.dl90-seasonal-event__message span {
  margin: 0 .45em;
  color: #48C9F2;
}
@media (max-width: 560px) {
  .dl90-seasonal-event__inner {
    gap: 8px;
    min-height: 38px;
    padding: 7px 14px;
  }
  .dl90-seasonal-event__star {
    font-size: .78rem;
  }
  .dl90-seasonal-event__message {
    font-size: .69rem;
    line-height: 1.35;
  }
}/* DL90 MEDIA — Cờ Tổ quốc cho banner Quốc khánh */
.dl90-seasonal-event__star {
  position: relative;
  box-sizing: border-box;
  width: 30px;
  height: 20px;
  flex: 0 0 30px;
  overflow: hidden;
  border-radius: 1px;
  background: #DA251D;
  color: transparent;
  font-size: 0;
  line-height: 1;
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.dl90-seasonal-event__star::after {
  content: "★";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #FFED00;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-shadow: none;
}
@media (max-width: 560px) {
  .dl90-seasonal-event__star {
    width: 24px;
    height: 16px;
    flex-basis: 24px;
  }
  .dl90-seasonal-event__star::after {
    font-size: 11px;
  }
}
/* DL90 MEDIA — Trợ lý hỗ trợ website */
.dl90-assistant {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: var(--font-body);
}
.dl90-assistant__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(360px, calc(100vw - 32px));
  max-height: min(72svh, 560px);
  overflow: auto;
  color: #F8FAFC;
  background: linear-gradient(145deg, #10151E 0%, #171D28 66%, #112D38 100%);
  border: 1px solid rgba(72, 201, 242, .48);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(4, 8, 14, .42), 0 0 0 1px rgba(232, 200, 120, .12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(.985);
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.dl90-assistant.is-open .dl90-assistant__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.dl90-assistant__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid rgba(232, 200, 120, .18);
  background: linear-gradient(100deg, rgba(156, 117, 48, .24), rgba(72, 201, 242, .10));
  border-radius: 16px 16px 0 0;
}
.dl90-assistant__eyebrow {
  margin: 0 0 4px;
  color: #FFE19A;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.dl90-assistant__head h2 {
  margin: 0;
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.2;
}
.dl90-assistant__head p:not(.dl90-assistant__eyebrow) {
  margin: 5px 0 0;
  color: #C8D7E5;
  font-size: .79rem;
  line-height: 1.45;
}
.dl90-assistant__close {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #DDE6EF;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}
.dl90-assistant__body {
  padding: 15px 18px 17px;
}
.dl90-assistant__message {
  min-height: 3.6em;
  margin: 0;
  color: #F1F5F9;
  font-size: .86rem;
  line-height: 1.55;
}
.dl90-assistant__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}
.dl90-assistant__actions button,
.dl90-assistant__actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 10px;
  color: #F8FAFC;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(72, 201, 242, .25);
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.dl90-assistant__actions a {
  color: #FFF1BD;
  border-color: rgba(232, 200, 120, .45);
}
.dl90-assistant__actions button:hover,
.dl90-assistant__actions a:hover,
.dl90-assistant__close:hover {
  background: rgba(72, 201, 242, .15);
  border-color: rgba(72, 201, 242, .68);
}
.dl90-assistant__actions a:hover {
  background: rgba(232, 200, 120, .13);
  border-color: rgba(232, 200, 120, .72);
}
.dl90-assistant__note {
  margin: 13px 0 0;
  color: #AAB9C8;
  font-size: .68rem;
  line-height: 1.45;
}
.dl90-assistant__launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 14px 9px 10px;
  color: #FFF8E8;
  background: linear-gradient(135deg, #0B111A 0%, #172431 100%);
  border: 1px solid rgba(72, 201, 242, .78);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(4, 8, 14, .28), 0 0 0 1px rgba(232, 200, 120, .18);
  cursor: pointer;
  font: inherit;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.dl90-assistant__launcher-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #0C151C;
  background: linear-gradient(135deg, #FFE19A, #48C9F2);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 900;
}
.dl90-assistant__launcher:hover {
  transform: translateY(-2px);
}
.dl90-assistant__launcher:focus-visible,
.dl90-assistant__close:focus-visible,
.dl90-assistant__actions button:focus-visible,
.dl90-assistant__actions a:focus-visible {
  outline: 3px solid rgba(255, 225, 154, .88);
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .dl90-assistant {
    right: 16px;
    bottom: 16px;
  }
  .dl90-assistant__panel {
    width: calc(100vw - 32px);
    border-radius: 14px;
  }
  .dl90-assistant__head {
    padding: 14px 15px 12px;
    border-radius: 14px 14px 0 0;
  }
  .dl90-assistant__body {
    padding: 13px 15px 15px;
  }
  .dl90-assistant__actions {
    gap: 7px;
  }
  .dl90-assistant__actions button,
  .dl90-assistant__actions a {
    min-height: 40px;
    padding: 8px;
    font-size: .72rem;
  }
  .dl90-assistant__launcher {
    min-height: 43px;
    padding-right: 13px;
    font-size: .8rem;
  }
}

/* DL90 MEDIA — Bộ điều chỉnh cỡ chữ bài viết */
.dl90-reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 10px 12px;
  color: var(--ink);
  background: linear-gradient(110deg, var(--surface-sunken), var(--surface));
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
}
.dl90-reader-tools__label {
  display: flex;
  flex-direction: column;
  min-width: 110px;
  line-height: 1.2;
}
.dl90-reader-tools__label strong {
  font-size: .82rem;
  font-weight: 800;
}
.dl90-reader-tools__label span {
  margin-top: 3px;
  color: var(--ink-muted);
  font-size: .7rem;
}
.dl90-reader-tools__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.dl90-reader-tools__actions button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  min-width: 88px;
  min-height: 42px;
  padding: 7px 10px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.dl90-reader-tools__actions button:hover:not(:disabled) {
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}
.dl90-reader-tools__actions button:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}
.dl90-reader-tools__actions button[aria-pressed="true"] {
  color: var(--on-masthead);
  background: var(--masthead-bg);
  border-color: var(--brand-blue);
  box-shadow: inset 2px 0 0 var(--brand-blue), inset -2px 0 0 var(--gold-bright);
}
.dl90-reader-tools__actions button:disabled {
  cursor: not-allowed;
  opacity: .42;
}
.dl90-reader-tools__text {
  font-size: .66rem;
  font-weight: 800;
  white-space: nowrap;
}
.entry-content[data-dl90-reader-level] {
  font-size: var(--dl90-reader-font-size, 18px) !important;
  line-height: 1.8;
}
.entry-content[data-dl90-reader-level] p,
.entry-content[data-dl90-reader-level] li,
.entry-content[data-dl90-reader-level] blockquote,
.entry-content[data-dl90-reader-level] td,
.entry-content[data-dl90-reader-level] th {
  font-size: inherit !important;
}
.entry-content[data-dl90-reader-level] p *,
.entry-content[data-dl90-reader-level] li *,
.entry-content[data-dl90-reader-level] blockquote *,
.entry-content[data-dl90-reader-level] td *,
.entry-content[data-dl90-reader-level] th * {
  font-size: inherit !important;
}
.entry-content[data-dl90-reader-level] figcaption {
  font-size: .82em !important;
}

@media (max-width: 560px) {
  .dl90-reader-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
    padding: 10px;
  }
  .dl90-reader-tools__label {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .dl90-reader-tools__label span {
    margin-top: 0;
  }
  .dl90-reader-tools__actions {
    width: 100%;
  }
  .dl90-reader-tools__actions button {
    min-width: 0;
    min-height: 46px;
    padding: 7px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl90-reader-tools__actions button {
    transition: none;
  }
}

/* DL90 MEDIA — Bình luận tinh gọn */
.comments-area {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.comments-area .dl90-comment-respond,
.comments-area .comment-respond {
  margin: 0;
}
.comments-area .comment-reply-title,
.comments-area .dl90-comments-head h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.3;
}
.comments-area .comment-reply-title small {
  margin-left: 8px;
  font-family: var(--font-body);
  font-size: .72rem;
}
.comments-area .dl90-comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.comments-area .dl90-comment-form p {
  margin: 0;
}
.comments-area .comment-form-comment,
.comments-area .form-submit,
.comments-area .must-log-in {
  grid-column: 1 / -1;
}
.comments-area .comment-form-author,
.comments-area .comment-form-email {
  min-width: 0;
}
.comments-area .comment-form-author label,
.comments-area .comment-form-email label {
  display: block;
  margin: 0 0 5px;
  color: var(--ink-muted);
  font-size: .78rem;
  font-weight: 700;
}
.comments-area .comment-form-author input,
.comments-area .comment-form-email input,
.comments-area .comment-form-comment textarea {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}
.comments-area .comment-form-author input,
.comments-area .comment-form-email input {
  min-height: 44px;
  padding: 9px 11px;
}
.comments-area .comment-form-comment textarea {
  min-height: 126px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
.comments-area .comment-form-comment textarea::placeholder {
  color: var(--ink-muted);
  opacity: .82;
}
.comments-area .comment-form-author input:focus,
.comments-area .comment-form-email input:focus,
.comments-area .comment-form-comment textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(52, 195, 240, .16);
  outline: 0;
}
.comments-area .comment-notes,
.comments-area .logged-in-as,
.comments-area .comment-form-url,
.comments-area .comment-form-cookies-consent {
  display: none;
}
.comments-area .dl90-comment-submit {
  min-height: 44px;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), #0E5F8D);
  border: 1px solid rgba(232, 200, 120, .7);
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 800;
}
.comments-area .dl90-comment-submit:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.comments-area .dl90-comment-submit:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}
.comments-area .comment-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.comments-area .comment-list > li {
  margin: 0 0 12px;
  padding: 14px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: 10px;
}
@media (max-width: 560px) {
  .comments-area {
    margin-top: 22px;
    padding-top: 18px;
  }
  .comments-area .dl90-comment-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .comments-area .comment-form-author,
  .comments-area .comment-form-email {
    grid-column: 1 / -1;
  }
  .comments-area .comment-form-comment textarea {
    min-height: 116px;
  }
  .comments-area .dl90-comment-submit {
    width: 100%;
  }
}

/* DL90 MEDIA — Bảng màu thương hiệu sáng */
:root {
  --dl90-white: #FFFFFF;
  --dl90-bg: #F6F7F9;
  --dl90-text: #17191F;
  --dl90-body: #343A40;
  --dl90-muted: #6B7280;
  --dl90-border: #E5E7EB;

  --dl90-gold: #D6A33A;
  --dl90-blue: #159FE6;
  --dl90-blue-dark: #176A96;
  --dl90-navy: #0D1726;

  --dl90-danger: #D92D20;
  --dl90-success: #16865C;
}

:root:not([data-theme="light"]),
:root[data-theme="light"] {
  color-scheme: light;
  --ink: var(--dl90-text);
  --ink-muted: var(--dl90-muted);
  --paper: var(--dl90-bg);
  --surface: var(--dl90-white);
  --surface-sunken: var(--dl90-bg);
  --border: var(--dl90-border);
  --brand-blue: var(--dl90-blue);
  --brand-blue-text: var(--dl90-blue-dark);
  --brand-blue-soft: #EAF6FD;
  --brand-gold: var(--dl90-gold);
  --brand-gold-soft: #FBF5E8;
  --breaking: var(--dl90-danger);
  --success: var(--dl90-success);
  --masthead-bg: var(--dl90-white);
  --on-masthead: var(--dl90-text);
  --gold-bright: var(--dl90-gold);
  --footer-bg: var(--dl90-navy);
  --on-footer: var(--dl90-white);
}

body {
  background: var(--dl90-bg);
  color: var(--dl90-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.page-title,
.card h3,
.archive-card h2,
.side-item h3 {
  color: var(--dl90-text);
}

.entry-content,
.entry-content p,
.entry-content li,
.card-excerpt,
.about-strip p {
  color: var(--dl90-body);
}

.meta,
.archive-card .meta,
.card .meta,
.side-item .meta,
.entry-meta,
.wp-caption-text,
figcaption {
  color: var(--dl90-muted);
}

::selection {
  color: var(--dl90-text);
  background: rgba(214, 163, 58, .38);
}

.utility {
  color: var(--dl90-muted);
  background: var(--dl90-bg);
  border-bottom-color: var(--dl90-border);
}

.utility .hp-weather-label,
.utility #today-date {
  color: var(--dl90-text);
}

.utility-links a:hover,
.utility-links a:focus-visible {
  color: var(--dl90-blue-dark);
}

.masthead {
  background: var(--dl90-white);
  border-bottom: 1px solid var(--dl90-border);
}

.masthead .nameplate {
  color: var(--dl90-blue);
}

.masthead .nameplate span {
  color: var(--dl90-gold);
}

.masthead .tagline {
  color: var(--dl90-muted);
  opacity: 1;
}

.logo-mark {
  box-shadow: 0 0 0 1px rgba(23, 25, 31, .08), 0 5px 16px rgba(23, 25, 31, .10);
}

.catnav {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--dl90-border);
  box-shadow: 0 7px 20px rgba(23, 25, 31, .07);
  backdrop-filter: blur(10px);
}

.catnav a {
  color: var(--dl90-text);
  opacity: .88;
}

.catnav a:hover,
.catnav a:focus-visible,
.catnav a.current,
.catnav .current-menu-item > a,
.catnav .current-category-ancestor > a {
  color: var(--dl90-blue-dark);
  border-bottom-color: var(--dl90-gold);
  opacity: 1;
}

main {
  background: var(--dl90-bg);
}

.front {
  margin-top: 24px;
  padding: 24px;
  background: var(--dl90-white);
  border: 1px solid var(--dl90-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 25, 31, .055);
}

.about-strip {
  margin-top: 20px;
  padding: 20px;
  background: var(--dl90-white);
  border: 1px solid var(--dl90-border);
  border-radius: 12px;
}

.about-strip .rule {
  background: var(--dl90-gold);
}

.cat-section.priority {
  padding-right: 20px;
  padding-left: 20px;
  background: var(--dl90-white);
  border: 1px solid var(--dl90-border);
  border-radius: 14px;
}

.cat-head {
  border-bottom-color: var(--dl90-gold);
}

.cat-head .icon,
.cat-head .viewall,
.entry-content a,
.post-tags a,
.archive-card h2 a:hover,
.card h3 a:hover,
.side-item h3 a:hover,
.strip-item a:hover {
  color: var(--dl90-blue-dark);
}

.tag {
  color: var(--dl90-blue-dark);
}

.card {
  padding: 12px;
  background: var(--dl90-white);
  border: 1px solid var(--dl90-border);
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(23, 25, 31, .045);
}

.card-thumb {
  overflow: hidden;
  border-radius: 8px;
}

.archive-card,
.single-article {
  background: var(--dl90-white);
  border-color: var(--dl90-border);
  box-shadow: 0 8px 26px rgba(23, 25, 31, .05);
}

.page-header {
  border-bottom-color: var(--dl90-gold);
}

.button-link,
.utility-search .search-submit,
.pagination .current {
  color: #07141C;
  background: var(--dl90-blue);
  border-color: var(--dl90-blue);
}

.button-link:hover,
.utility-search .search-submit:hover {
  filter: brightness(.96);
}

.dl90-reader-tools__actions button[aria-pressed="true"] {
  color: #07141C;
  background: #EAF6FD;
  border-color: var(--dl90-blue);
  box-shadow: inset 3px 0 0 var(--dl90-blue), inset -3px 0 0 var(--dl90-gold);
}

.comments-area .dl90-comment-submit {
  color: #07141C;
  background: var(--dl90-blue);
  border-color: var(--dl90-gold);
}

.breaking,
.breaking-label,
.notice-danger {
  color: var(--dl90-danger);
}

.notice-success {
  color: var(--dl90-success);
}

footer {
  color: var(--dl90-white);
  background: var(--dl90-navy);
}

footer h4 {
  color: var(--dl90-gold);
}

footer .footer-about,
footer .footer-links a,
footer .footer-contact div,
footer .footer-bottom {
  color: var(--dl90-white);
}

footer .footer-social span {
  border-color: rgba(255, 255, 255, .34);
}

@media (max-width: 560px) {
  .front {
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
  }

  .about-strip {
    padding: 16px;
  }

  .cat-section.priority {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 12px;
  }
}

/* DL90 MEDIA: tiện ích kết quả xổ số 3 miền và Vietlott */
.lottery-widget {
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 22px;
  background: var(--dl90-white, #fff);
  border: 1px solid var(--dl90-border, #e5e7eb);
  border-top: 4px solid var(--dl90-gold, #d6a33a);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(13, 23, 38, .06);
}

.lottery-widget-head,
.lottery-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lottery-widget-head {
  margin-bottom: 18px;
}

.lottery-widget-head h2,
.lottery-panel-head h2 {
  margin: 0;
  color: var(--dl90-text, #17191f);
}

.lottery-widget-head h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
}

.lottery-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--dl90-blue-dark, #176a96);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.lottery-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lottery-quick-card {
  display: flex;
  min-width: 0;
  min-height: 92px;
  padding: 15px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  color: var(--dl90-text, #17191f);
  text-decoration: none;
  background: var(--dl90-bg, #f6f7f9);
  border: 1px solid var(--dl90-border, #e5e7eb);
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.lottery-quick-card:hover,
.lottery-quick-card:focus-visible {
  color: var(--dl90-text, #17191f);
  border-color: var(--dl90-blue, #159fe6);
  box-shadow: 0 8px 20px rgba(21, 159, 230, .12);
  transform: translateY(-2px);
}

.lottery-quick-card > span {
  font-size: 1rem;
  font-weight: 800;
}

.lottery-quick-card strong {
  color: var(--dl90-blue-dark, #176a96);
  font-size: .8rem;
}

.lottery-widget-note,
.lottery-source,
.lottery-safety-note,
.lottery-panel-head > span {
  color: var(--dl90-muted, #6b7280);
  font-size: .82rem;
}

.lottery-widget-note {
  margin: 14px 0 0;
}

.lottery-results {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.lottery-intro {
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--dl90-bg, #f6f7f9);
  border-left: 4px solid var(--dl90-gold, #d6a33a);
  border-radius: 12px;
}

.lottery-intro p {
  margin: 0;
}

.lottery-tablist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  background: var(--dl90-bg, #f6f7f9);
  border: 1px solid var(--dl90-border, #e5e7eb);
  border-radius: 14px;
}

.lottery-tab {
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--dl90-body, #343a40);
  font: inherit;
  font-size: .9rem;
  font-weight: 800;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
}

.lottery-tab:hover,
.lottery-tab:focus-visible {
  color: var(--dl90-blue-dark, #176a96);
  background: var(--dl90-white, #fff);
  outline: none;
}

.lottery-tab.is-active,
.lottery-tab[aria-selected="true"] {
  color: var(--dl90-white, #fff);
  background: var(--dl90-blue, #159fe6);
  border-color: var(--dl90-blue, #159fe6);
  box-shadow: 0 5px 14px rgba(21, 159, 230, .2);
}

.lottery-panel[hidden] {
  display: none;
}

.lottery-panel {
  padding: 18px;
  background: var(--dl90-white, #fff);
  border: 1px solid var(--dl90-border, #e5e7eb);
  border-top: 3px solid var(--dl90-gold, #d6a33a);
  border-radius: 14px;
}

.lottery-panel-head {
  margin-bottom: 14px;
}

.lottery-panel-head h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
}

.lottery-embed-shell {
  position: relative;
  min-height: min(220px, var(--lottery-frame-height, 700px));
  overflow: hidden;
  background: var(--dl90-bg, #f6f7f9);
  border: 1px solid var(--dl90-border, #e5e7eb);
  border-radius: 12px;
}

.lottery-embed-loading {
  position: absolute;
  top: 22px;
  right: 18px;
  left: 18px;
  z-index: 0;
  margin: 0;
  color: var(--dl90-blue-dark, #176a96);
  font-size: .88rem;
  font-weight: 700;
  text-align: center;
}

.lottery-embed-shell.is-loaded .lottery-embed-loading {
  display: none;
}

.lottery-embed {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: var(--lottery-frame-height, 700px);
  background: transparent;
  border: 0;
}

.lottery-source {
  margin: 20px 0 6px;
  padding-top: 14px;
  line-height: 1.65;
  border-top: 1px solid var(--dl90-border, #e5e7eb);
}

.lottery-source a {
  color: var(--dl90-blue-dark, #176a96);
  font-weight: 700;
}

.lottery-safety-note {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 900px) {
  .lottery-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .lottery-widget {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
  }

  .lottery-tablist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lottery-panel {
    padding: 13px;
  }
}

@media (max-width: 520px) {
  .lottery-widget-head,
  .lottery-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .lottery-widget-head .viewall {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .lottery-quick-grid {
    grid-template-columns: 1fr;
  }

  .lottery-quick-card {
    min-height: 76px;
  }

  .lottery-tab {
    min-height: 48px;
    padding: 10px 8px;
    font-size: .84rem;
  }

  .lottery-intro {
    padding: 14px;
  }
}



/* DL90 MEDIA — Bố cục danh mục dạng tòa soạn (v1.0.16) */
body.category .archive-shell {
  max-width: 1120px;
}

body.category .archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body.category .archive-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  grid-template-areas:
    "thumb tag"
    "thumb title"
    "thumb excerpt"
    "thumb time";
  column-gap: 24px;
  min-height: 220px;
  padding: 15px;
  overflow: hidden;
  background: var(--dl90-white, #fff);
  border: 1px solid var(--dl90-border, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(13, 23, 38, .055);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.category .archive-card:hover {
  border-color: rgba(21, 159, 230, .38);
  box-shadow: 0 12px 30px rgba(13, 23, 38, .09);
  transform: translateY(-1px);
}

body.category .archive-card .card-thumb {
  grid-area: thumb;
  align-self: stretch;
  width: 100%;
  height: 190px;
  margin: 0;
  border-radius: 10px;
}

body.category .archive-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.category .archive-card .tag {
  grid-area: tag;
  align-self: start;
  margin: 2px 0 4px;
}

body.category .archive-card h2 {
  grid-area: title;
  margin: 4px 0 8px;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.32;
  text-wrap: balance;
}

body.category .archive-card p {
  grid-area: excerpt;
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--dl90-body, #343a40);
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body.category .archive-card .meta-time {
  grid-area: time;
  align-self: end;
  color: var(--dl90-muted, #6b7280);
  font-size: .82rem;
}

body.category .archive-card:first-child {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  min-height: 330px;
  margin-bottom: 4px;
  padding: 18px;
  border-top: 4px solid var(--dl90-gold, #d6a33a);
  box-shadow: 0 14px 34px rgba(13, 23, 38, .08);
}

body.category .archive-card:first-child .card-thumb {
  height: 100%;
  min-height: 294px;
}

body.category .archive-card:first-child h2 {
  margin-top: 6px;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.22;
}

body.category .archive-card:first-child p {
  -webkit-line-clamp: 4;
}

@media (max-width: 900px) {
  body.category .archive-card {
    grid-template-columns: 240px minmax(0, 1fr);
    column-gap: 20px;
    min-height: 196px;
  }

  body.category .archive-card .card-thumb {
    height: 166px;
  }

  body.category .archive-card:first-child {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    min-height: 290px;
  }

  body.category .archive-card:first-child .card-thumb {
    min-height: 254px;
  }
}

@media (max-width: 700px) {
  body.category .archive-shell {
    padding: 24px 16px 44px;
  }

  body.category .page-header {
    margin-bottom: 18px;
  }

  body.category .archive-card,
  body.category .archive-card:first-child {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
      "thumb"
      "tag"
      "title"
      "excerpt"
      "time";
    min-height: 0;
    margin-bottom: 0;
    padding: 12px;
  }

  body.category .archive-card .card-thumb,
  body.category .archive-card:first-child .card-thumb {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-bottom: 4px;
    aspect-ratio: 16 / 9;
  }

  body.category .archive-card .tag {
    margin-top: 8px;
  }

  body.category .archive-card h2,
  body.category .archive-card:first-child h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.18rem, 6vw, 1.55rem);
    line-height: 1.3;
  }

  body.category .archive-card p,
  body.category .archive-card:first-child p {
    margin-bottom: 10px;
    -webkit-line-clamp: 3;
  }
}
/* Kết thúc bố cục danh mục dạng tòa soạn */
