:root {
  --accent: #78b43d;
  --accent-dark: #5e9330;
  --text: #222;
  --muted: #777;
  --border: #e8e8e8;
  --bg: #f4f4f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.icon-eye,
.icon-clock { vertical-align: -2px; margin-right: 2px; }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.site-header {
  background: #fff;
  border-bottom: 3px solid var(--accent);
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header__logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.site-header__logo .fallback-logo {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
@media (max-width: 480px) {
  .site-header__logo .fallback-logo { font-size: 32px; }
}

.site-header__tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-header__hotline {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
  white-space: nowrap;
}
.site-header__hotline span { color: var(--muted); font-weight: 400; margin-right: 6px; }

/* Nav */
.site-nav {
  background: var(--accent);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav li a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.site-nav li a:hover,
.site-nav li a.active {
  background: var(--accent-dark);
}

/* Hot news - plain-text ticker for is_top_news articles */
.hot-news {
  margin: 20px 0;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
}
.hot-news__title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 14px 0 0;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}
.hot-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.hot-news__item {
  font-size: 14px;
  font-weight: 600;
}
.hot-news__item a:hover { color: var(--accent); }
.hot-news__item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--border);
  margin: 0 14px;
  vertical-align: middle;
}

/* Featured news ("Tin nổi bật") - big story + secondary list */
.featured {
  margin-bottom: 20px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.featured__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
}
.featured__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
}
@media (max-width: 700px) {
  .featured__grid { grid-template-columns: 1fr; }
}
.featured__main-media { position: relative; }
.featured__main-media img {
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
}
.featured__main-body { padding-top: 10px; }

.news-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 9px;
  border-radius: 3px;
}
.news-badge-pill {
  align-self: flex-start;
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 9999px;
}
.featured__main h3 { font-size: 22px; margin: 0 0 8px; transition: color 0.15s ease; }
.featured__main .excerpt { color: #444; }
.featured__main:hover h3 { color: var(--accent); }

.featured__secondary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.featured__secondary::-webkit-scrollbar { width: 6px; }
.featured__secondary::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.featured__secondary li { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.featured__secondary li:last-child { border-bottom: none; padding-bottom: 0; }
.featured__secondary a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px;
  margin: -8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.featured__secondary a:hover {
  background: #f7f7f5;
  border-color: var(--border);
}
.featured__secondary-media { position: relative; flex-shrink: 0; }
.featured__secondary img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.featured__secondary-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.featured__secondary-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.featured__secondary-meta {
  font-size: 12px;
  color: var(--muted);
}
.featured__secondary a:hover .featured__secondary-title { color: var(--accent); }

.category-tag {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}

.news-list {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}
.news-list__item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.news-list__item:last-child { border-bottom: none; }
.news-list__item img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.news-list__item h3 { font-size: 16px; margin: 0 0 6px; transition: color 0.15s ease; }
.news-list__item:hover h3 { color: var(--accent); }
.news-list__item .excerpt-short { font-size: 13px; color: #555; margin: 0 0 6px; line-height: 1.5; }
.news-list__item .meta { font-size: 12px; color: var(--muted); }

.pagination { display: flex; gap: 6px; justify-content: center; margin: 20px 0; }
.pagination a, .pagination span {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Article detail */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0;
}
.breadcrumb a { color: var(--accent); }

.article {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 20px;
}
.article h1 { font-size: 26px; margin: 0 0 10px; }
.article .meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.article img {
  width: 100%;
  border-radius: 4px;
  margin: 14px 0;
}
.article p { margin: 14px 0; font-size: 16px; }

.most-read {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}
.most-read h3 {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.most-read li { margin-bottom: 10px; font-size: 14px; }
.most-read ol { padding-left: 20px; margin: 0; }

.article-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 800px) {
  .article-layout { grid-template-columns: 1fr; }
}

.home-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 800px) {
  .home-layout { grid-template-columns: 1fr; }
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.most-read-home {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}
.most-read-home__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.most-read-home__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.most-read-home__list li:last-child { border-bottom: none; padding-bottom: 0; }
.most-read-home__rank {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}
.most-read-home__body { min-width: 0; }
.most-read-home__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.most-read-home__title:hover { color: var(--accent); }
.most-read-home__meta { font-size: 12px; color: var(--muted); margin-top: 4px; }

.categories-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}
.categories-widget__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.categories-widget__pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.categories-widget__pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: #222;
  color: #ccc;
  margin-top: 30px;
  padding: 30px 0;
  font-size: 13px;
}
.site-footer a { color: #ccc; }
.site-footer strong { color: #fff; }
.site-footer__logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.site-footer__logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.site-footer strong.site-footer__logo {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
@media (max-width: 480px) {
  .site-footer strong.site-footer__logo { font-size: 32px; }
  .site-footer__logo-icon { width: 36px; height: 36px; }
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 640px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}
.site-footer__bottom {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #444;
  text-align: center;
  color: #888;
}

/* TikTok gate popup */
.tiktok-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tiktok-gate-card {
  background: #fff;
  border-radius: 10px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
}
.tiktok-gate-card img {
  width: 100%;
  max-height: 60vh;
  border-radius: 8px;
  margin-bottom: 16px;
  aspect-ratio: 9/16;
  object-fit: cover;
}
.tiktok-gate-headline { margin: 0 0 18px; font-size: 20px; font-weight: 700; }
.tiktok-gate-close {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 34px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  font-size: 17px;
}
.tiktok-gate-close-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.tiktok-gate-close-x:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.article-content-wrapper.is-gated {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

/* ---------------------------------------------------------------
   Responsive breakpoints
   Desktop:        > 1024px (default styles above)
   Small desktop:  <= 1024px
   Tablet:         <= 768px
   Mobile:         <= 480px
   ------------------------------------------------------------- */

@media (max-width: 1024px) {
  .container { max-width: 900px; }
  .featured__grid { gap: 16px; }
  .news-list__item img { width: 120px; height: 80px; }
}

@media (max-width: 768px) {
  .site-header__logo-icon { width: 36px; height: 36px; }
  .site-header__tagline { display: none; }
  .site-nav li a { padding: 10px 12px; font-size: 14px; }

  .hot-news { padding: 8px 12px; }
  .hot-news__title { margin-right: 10px; }
  .hot-news__item { font-size: 13px; }
  .hot-news__item:not(:last-child)::after { margin: 0 10px; }

  .article { padding: 16px; }
  .article h1 { font-size: 21px; }

  .main-news, .featured { padding: 12px; }
}

@media (max-width: 480px) {
  .site-header__top { padding: 10px 0; }
  .site-header__hotline { font-size: 13px; }

  .site-nav li a { padding: 9px 10px; font-size: 13px; }

  .featured__secondary img { width: 90px; height: 68px; }
  .featured__secondary { max-height: 400px; }
  .featured__secondary span { font-size: 13px; }
  .featured__main h3 { font-size: 18px; }

  .news-list__item { flex-direction: column; }
  .news-list__item img { width: 100%; height: 180px; }

  .article h1 { font-size: 19px; }
  .article .meta { gap: 8px; font-size: 12px; }

  .tiktok-gate-card { padding: 20px; }
  .tiktok-gate-card img { max-height: 45vh; }
}

/* Small utility classes (used for one-off inline-style headings) */
.text-lg { font-size: 18px; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.text-ink { color: var(--text); }
.mr-2 { margin-right: 8px; }
.inline-block { display: inline-block; }
.h-4 { height: 16px; }
.w-1\.5 { width: 6px; }
.translate-y-0\.5 { transform: translateY(2px); }
.bg-brand { background-color: var(--accent); }
