@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/playfair-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/playfair-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/fonts/spacegrotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("/fonts/spacegrotesk-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
:root {
  color-scheme: dark;
  --blog-bg: #0f0e0d;
  --blog-panel: #161513;
  --blog-ember: #e8813a;
  --blog-cream: #ede5d8;
  --blog-sand: #b8aa96;
  --blog-dust: #7a6f63;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--blog-sand);
  background: var(--blog-bg);
  font: 300 16px/1.8 "Space Grotesk", sans-serif;
}
a { color: inherit; }
.blog-wrap { width: min(100% - 40px, 860px); margin: 0 auto; padding: 64px 0 48px; }
.blog-back { color: var(--blog-dust); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; }
.blog-back:hover, .blog-footer a:hover { color: var(--blog-ember); }
.blog-heading { padding: 72px 0 54px; border-bottom: 1px solid rgba(184,170,150,.24); }
.blog-kicker { margin: 0 0 12px; color: var(--blog-ember); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
h1, h2 { color: var(--blog-cream); font-family: "Playfair Display", Georgia, serif; font-weight: 400; line-height: 1.16; }
.blog-heading h1, .article-heading h1 { margin: 0; font-size: clamp(36px, 7vw, 58px); }
.blog-intro, .article-excerpt { max-width: 56ch; margin: 18px 0 0; font-size: 17px; }
.blog-list { display: grid; }
.blog-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid rgba(184,170,150,.18); }
.blog-entry-cover { display: block; overflow: hidden; background: var(--blog-panel); aspect-ratio: 4 / 3; }
.blog-entry-cover img, .article-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-entry-copy { align-self: center; }
.blog-meta, .blog-tags { margin: 0 0 8px; color: var(--blog-dust); font-size: 12px; }
.blog-entry h2 { margin: 0 0 10px; font-size: 27px; }
.blog-entry h2 a { text-decoration: none; }
.blog-entry h2 a:hover { color: var(--blog-ember); }
.blog-excerpt { margin: 0; }
.blog-tags { margin-top: 12px; color: var(--blog-ember); }
.blog-empty { padding: 44px 0; }
.blog-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(184,170,150,.18); color: var(--blog-dust); font-size: 12px; }
.blog-footer a { text-decoration: none; }
.article-heading { padding: 54px 0 34px; }
.article-cover { max-height: 520px; margin: 0 0 32px; overflow: hidden; background: var(--blog-panel); }
.article-cover img { max-height: 520px; }
.mixcloud-player { margin: 28px 0; padding: 16px; background: var(--blog-panel); }
.mixcloud-player iframe { display: block; border: 0; }
.radio-reference { color: var(--blog-dust); font-size: 13px; }
.radio-reference a { color: var(--blog-ember); }
/* ── Media embed player ─────────────────────────── */
.media-player-wrapper {
  width: 100%;
  margin: 28px 0;
  border: 1px solid rgba(138,125,107,.25);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(15,14,13,.5);
}
.media-player-wrapper iframe {
  display: block;
  width: 100%;
  border: 0;
}
.media-embeds { margin: 28px 0; border: 1px solid rgba(184,170,150,.18); border-radius: 8px; overflow: hidden; }
.media-tab { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; background: rgba(232,129,58,.06); color: var(--blog-sand); font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: all .2s; }
.media-tab:hover { background: rgba(232,129,58,.12); color: var(--blog-cream); }
.media-tab[aria-selected="true"] { background: var(--blog-ember); color: var(--blog-bg); }
.media-tab:focus-visible { outline: 2px solid var(--blog-cream); outline-offset: 2px; }
.media-panel { padding: 16px; }
.media-panel[style*="display: none"] { padding: 0; }

/* Enhanced click-to-load placeholder button */
.media-placeholder {
  width: 100%;
  min-height: 60px;
  border: 1px dashed rgba(184,170,150,.4);
  border-radius: 6px;
  background: rgba(15,14,13,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--blog-sand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.media-placeholder:hover {
  background: rgba(25,24,22,.7);
  border-color: rgba(184,170,150,.5);
  color: var(--blog-cream);
}
.media-placeholder:focus-visible {
  outline: 2px solid var(--blog-cream);
  outline-offset: 2px;
}
.media-placeholder-btn {
  align-content: center;
  text-align: center;
}
.media-placeholder .play-icon { width: 18px; height: 18px; }
.media-placeholder .listen-label { font-size: 13px; font-weight: 500; }
.media-placeholder .platform-label { font-size: 11px; color: var(--blog-dust); text-transform: uppercase; letter-spacing: .08em; }

/* Fallback button for failed iframes */
.media-fallback-btn {
  width: 100%;
  min-height: 60px;
  border: 1px dashed rgba(184,170,150,.4);
  border-radius: 6px;
  background: rgba(15,14,13,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--blog-sand);
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.media-fallback-btn:hover {
  background: rgba(25,24,22,.7);
  border-color: rgba(184,170,150,.5);
  color: var(--blog-cream);
}
.media-fallback-btn:focus-visible {
  outline: 2px solid var(--blog-cream);
  outline-offset: 2px;
}
.media-fallback-btn svg { width: 18px; height: 18px; }
.listen { display: inline-flex; align-items: center; padding: 12px 26px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; background: var(--blog-ember); color: var(--blog-bg); border-radius: 1px; font-family: "Space Grotesk", sans-serif; font-weight: 500; transition: background .2s; }
.listen:hover { background: #f0924a; }
.article-body { max-width: 68ch; margin: 36px auto; }
.article-body h2, .article-body h3, .article-tracklist h2 { margin: 1.8em 0 .55em; }
.article-body p, .article-body ul, .article-body ol, .article-body blockquote { margin: 0 0 1.2em; }
.article-body img { display: block; max-width: 100%; height: auto; margin: 28px auto; }
.article-body a { color: var(--blog-ember); }
.article-body blockquote { margin-left: 0; padding-left: 20px; border-left: 2px solid var(--blog-ember); color: var(--blog-cream); }
.article-tracklist { max-width: 68ch; margin: 44px auto; padding-top: 20px; border-top: 1px solid rgba(184,170,150,.2); }
.article-tracklist h2 { font-size: 24px; }
.article-tracklist ol { padding-left: 22px; }
.article-tracklist li { padding: 3px 0; }
.article-tracklist li span { color: var(--blog-cream); }
@media (max-width: 640px) {
  .blog-wrap { width: min(100% - 32px, 860px); padding-top: 36px; }
  .blog-heading { padding: 54px 0 36px; }
  .blog-entry { grid-template-columns: 1fr; gap: 16px; }
  .blog-entry h2 { font-size: 24px; }
  .article-heading { padding-top: 38px; }
  .blog-footer { flex-wrap: wrap; }
}

/* ── Share sidebar (blog-post detail pages) ─────────────────── */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}
.share-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  flex-shrink: 0;
}
.share-label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blog-dust);
}
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  color: var(--blog-sand);
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}
.share-btn:hover {
  color: var(--blog-cream);
  background: rgba(25, 24, 22, .7);
}
.share-btn:focus {
  outline: none;
}
.share-btn:focus-visible {
  outline: 2px solid var(--blog-cream);
  outline-offset: 2px;
}
.share-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Mobile: horizontal row below content */
@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .share-sidebar {
    position: static;
    align-self: start;
  }
    .share-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
}
.share-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blog-panel);
  color: var(--blog-cream);
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  z-index: 1000;
  border: 1px solid rgba(184,170,150,.3);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
}
/* -------- Comments section (blog-post detail pages only) -------- */
.article-comments {
  max-width: 68ch;
  margin: 44px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(184,170,150,.2);
}
.article-comments h2 {
  margin: 0 0 24px;
  font-size: 24px;
}
#waline-comments {
  min-height: 400px;
  --waline-theme-color: var(--blog-ember);
  --waline-active-color: var(--blog-ember);
  --waline-bg-color: var(--blog-panel);
  --waline-bg-color-light: var(--blog-panel);
  --waline-color: var(--blog-sand);
  --waline-border-color: rgba(184,170,150,.2);
  --waline-info-color: var(--blog-dust);
    --waline-bq-color: var(--blog-panel);
}

/* Pageview counter label (blog-post detail pages only) */
.waline-pageview {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--blog-dust);
}
.waline-pageview-count:empty::before {
  content: '\2026';
  opacity: .5;
}

/* ===== Footer 3 cột ===== */
.blog-footer {
  margin-top: 5rem;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
    gap: 4rem;
  }
}
.footer-heading {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  opacity: 0.9;
}
.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
  opacity: 0.75;
}
.footer-recent-list,
.footer-social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-recent-list li {
  margin-bottom: 1.25rem;
}
.footer-recent-list a {
  display: block;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  margin-bottom: 0.25rem;
}
.footer-recent-list a:hover {
  text-decoration: underline;
}
.footer-recent-list time {
  font-size: 0.8rem;
  opacity: 0.6;
}
.footer-social-list li {
  margin-bottom: 0.75rem;
}
.footer-social-list a {
  font-size: 0.95rem;
  text-decoration: none;
  opacity: 0.75;
}
.footer-social-list a:hover {
  opacity: 1;
}
.footer-copyright {
  text-align: center;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  opacity: 0.5;
  max-width: 1100px;
}
.footer-copyright a {
  color: inherit;
  text-decoration: underline;
}