/* =========================================================================
   HUYENCA.COM — CSS NÂNG CẤP TỔNG THỂ
   ========================================================================= */

:root{
  --hc-primary:#1a5276;
  --hc-primary-deep:#0f3a56;
  --hc-gold:#c8962c;
  --hc-ink:#22333b;
  --hc-slate:#5a6b73;
  --hc-line:#e3e8ea;
  --hc-bg-soft:#f6f8f9;
}

/* ============ 1) NỘI DUNG TỰ ĐỘNG (bài hát + danh mục) ============ */
.hc-content{
  font-size:15px;
  line-height:1.8;
  color:var(--hc-slate);
}
.hc-content h3{
  color:var(--hc-primary-deep);
  font-size:19px;
  font-weight:700;
  margin:26px 0 12px;
  padding-left:12px;
  border-left:4px solid var(--hc-gold);
}
.hc-content p{margin:0 0 14px}
.hc-content strong{color:var(--hc-ink)}

.hc-benefit-list{list-style:none;padding:0;margin:0 0 16px}
.hc-benefit-list li{
  display:flex;align-items:flex-start;gap:10px;
  padding:9px 0;border-bottom:1px dashed var(--hc-line);font-size:14.5px;
}
.hc-benefit-list li:last-child{border-bottom:none}
.hc-benefit-list li:before{
  content:"✓";flex:none;width:20px;height:20px;border-radius:50%;
  background:var(--hc-primary);color:#fff;font-size:11px;
  display:flex;align-items:center;justify-content:center;margin-top:2px;
}

.hc-cta{
  margin-top:22px;
  padding:20px 24px;
  background:linear-gradient(120deg,var(--hc-primary) 0%,var(--hc-primary-deep) 100%);
  border-radius:10px;
  color:#fff;
}
.hc-cta p{margin:0;font-size:14.5px;line-height:1.7;color:rgba(255,255,255,.92)}
.hc-cta strong{color:#fff}
.hc-cta em{color:var(--hc-gold);font-style:normal;font-weight:600}

/* ============ 2) BÀI VIẾT LIÊN QUAN — dạng list gọn ============ */
.hc-related{
  margin-top:34px;
  padding-top:22px;
  border-top:2px solid var(--hc-line);
}
.hc-related__title{
  font-size:19px;
  font-weight:800;
  color:var(--hc-ink);
  margin:0 0 14px;
  padding-bottom:8px;
  border-bottom:2px solid var(--hc-gold);
  display:inline-block;
}
.hc-related__list{list-style:none;margin:0;padding:0}
.hc-related__item{
  border-bottom:1px solid var(--hc-line);
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:8px;padding:6px 0;
}
.hc-related__item:last-child{border-bottom:none}
.hc-related__link{
  display:flex;align-items:center;gap:12px;
  padding:7px 4px;text-decoration:none;flex:1;min-width:220px;
}
.hc-related__link:hover{background:var(--hc-bg-soft)}
.hc-related__link:before{
  content:"🎵";flex:none;font-size:15px;opacity:.7;
}
.hc-related__icons{flex:none;display:flex}
.hc-related__icons .list-icon a{width:28px;height:28px}
.hc-related__icons img.icon-music{width:16px !important;height:16px !important}
.hc-related__cat{
  flex:none;background:var(--hc-primary);color:#fff;font-size:11px;font-weight:700;
  text-transform:uppercase;padding:3px 9px;border-radius:4px;letter-spacing:.02em;
}
.hc-related__name{
  color:var(--hc-ink);font-weight:600;font-size:14.5px;line-height:1.4;
}
.hc-related__link:hover .hc-related__name{color:var(--hc-primary)}

/* ============ 3) ICON FILE (PDF / nghe / bản nhạc số) — đồng bộ mọi trang ============ */
.list-icon{
  display:flex !important;
  align-items:center;
  gap:8px;
  float:none !important;
  margin-top:6px;
}
.list-icon a{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:34px;height:34px;
  background:var(--hc-bg-soft);
  border:1px solid var(--hc-line);
  border-radius:7px;
  transition:transform .15s, box-shadow .15s, background .15s;
}
.list-icon a:hover{
  background:var(--hc-primary);
  transform:translateY(-2px);
  box-shadow:0 4px 10px rgba(26,82,118,.25);
}
img.icon-music{
  width:20px !important;height:20px !important;
  object-fit:contain;
  display:block;
}

/* Hàng danh sách bài hát (category / musician page) gọn gàng hơn */
#content_box.list .latestPost.excerpt{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  padding:14px 6px;
  border-bottom:1px solid var(--hc-line);
}
#content_box.list .latestPost.excerpt header{flex:1;min-width:200px}
#content_box.list .latestPost.excerpt .title.front-view-title{
  margin:0;font-size:15.5px;font-weight:700;
}
#content_box.list .latestPost.excerpt .title.front-view-title a{color:var(--hc-ink)}
#content_box.list .latestPost.excerpt .title.front-view-title a:hover{color:var(--hc-primary)}
#content_box.list .latestPost.excerpt .front-view-content{flex:none}

/* ============ 4) BOX TÁC GIẢ / NHẠC SĨ — nền nhẹ, sang trọng hơn ============ */
body.single-musician .post-single-content{
  background:#fdfbf6 !important;
  background-color:#fdfbf6 !important;
  background-image:none !important;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 10px 30px rgba(15,58,86,.08);
  margin-bottom:26px;
}
/* Thay nền xanh đậm cũ bằng nền sáng, nhẹ nhàng, có điểm nhấn viền vàng
   — dùng selector rộng (không giới hạn direct-child) để chắc chắn bắt
   được khung màu dù HTML gốc lồng nhau kiểu gì */
body.single-musician .post-single-content table,
body.single-musician .post-single-content [style*="background"],
body.single-musician .post-single-content [bgcolor]{
  background:linear-gradient(135deg,#fdfbf6 0%,#f3ede0 100%) !important;
  background-image:linear-gradient(135deg,#fdfbf6 0%,#f3ede0 100%) !important;
  background-color:#f6efe0 !important;
  border:1px solid #e8ddc4 !important;
  border-left:5px solid var(--hc-gold) !important;
  border-radius:14px !important;
  color:var(--hc-ink) !important;
  box-shadow:0 6px 18px rgba(200,150,44,.12) !important;
}
body.single-musician .post-single-content table td,
body.single-musician .post-single-content table th,
body.single-musician .post-single-content [style*="background"] *,
body.single-musician .post-single-content [bgcolor] *{
  color:var(--hc-ink) !important;
  border-color:rgba(0,0,0,.08) !important;
}
body.single-musician .post-single-content table a,
body.single-musician .post-single-content [style*="background"] a,
body.single-musician .post-single-content [bgcolor] a{
  color:var(--hc-primary) !important;
  font-weight:600;
}
body.single-musician .post-single-content img{
  border-radius:10px;
  border:3px solid #fff;
  box-shadow:0 4px 14px rgba(0,0,0,.15);
}
body.single-musician h1.entry-title{
  color:var(--hc-primary-deep);
  font-weight:800;
}
body.single-musician #content_box.list{margin-top:10px}
body.single-musician .title.single-title{
  color:var(--hc-ink);
  border-left:4px solid var(--hc-gold);
  padding-left:12px;
  font-size:19px;
}

@media (max-width:700px){
  .hc-content h3{font-size:17px}
  .hc-cta{padding:16px 18px}
  #content_box.list .latestPost.excerpt{flex-direction:column;align-items:flex-start}
}

/* ============ 5) KHUNG ICON ĐỊNH DẠNG FILE — to, đẹp hơn trong bài viết ============ */
.hc-icon-box{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  padding:18px;
  background:var(--hc-bg-soft);
  border:1px solid var(--hc-line);
  border-radius:12px;
  margin-top:4px;
}
.hc-icon-box .list-icon{gap:14px !important}
.hc-icon-box .list-icon a{
  width:56px !important;height:56px !important;
  border-radius:12px !important;
  background:#fff !important;
  box-shadow:0 3px 10px rgba(0,0,0,.08);
}
.hc-icon-box img.icon-music{width:32px !important;height:32px !important}

/* ============ 6) ẨN FORM BÌNH LUẬN "Leave a Reply" ============ */
#respond,
.comment-respond,
#commentform{
  display:none !important;
}

/* ============ 7) TRANG CHỦ — "BÀI THÁNH CA MỚI NHẤT" ============ */
.hc-newsongs{
  background:#fff;
  border:1px solid var(--hc-line);
  border-radius:14px;
  padding:24px 26px 8px;
  margin:18px 0;
  box-shadow:0 8px 24px rgba(15,58,86,.06);
}
.hc-newsongs__title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0 0 22px;
  font-size:26px;
  font-weight:900;
  color:var(--hc-primary-deep);
  letter-spacing:.03em;
  text-shadow:0 1px 0 rgba(255,255,255,.6);
}
.hc-newsongs__flourish{
  color:var(--hc-gold);
  font-size:22px;
  letter-spacing:-2px;
  opacity:.9;
  font-weight:700;
}
.hc-newsongs__text{
  white-space:nowrap;
  background:linear-gradient(120deg,var(--hc-primary) 0%,var(--hc-primary-deep) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hc-newsongs__scroll{
  padding-right:6px;
}
.hc-newsongs__list{
  list-style:none;margin:0 auto;padding:0;
  max-width:820px;
}
.hc-newsongs__item{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:14px;
  padding:10px 4px;
  border-bottom:1px solid var(--hc-line);
}
.hc-newsongs__item:last-child{border-bottom:none}
.hc-newsongs__item:hover{background:var(--hc-bg-soft)}
.hc-newsongs__link{
  display:flex;align-items:center;gap:10px;
  text-decoration:none;flex:0 1 auto;min-width:160px;
}
.hc-newsongs__link:before{content:"🎵";font-size:14px;opacity:.7}
.hc-newsongs__cat{
  flex:none;background:var(--hc-primary);color:#fff;font-size:10.5px;font-weight:700;
  text-transform:uppercase;padding:3px 9px;border-radius:4px;
}
.hc-newsongs__name{color:var(--hc-ink);font-weight:600;font-size:14.5px}
.hc-newsongs__link:hover .hc-newsongs__name{color:var(--hc-primary)}
.hc-newsongs__icons{flex:none;display:flex;margin-left:auto}
.hc-newsongs__icons .list-icon a{width:26px !important;height:26px !important}
.hc-newsongs__icons img.icon-music{width:15px !important;height:15px !important}
.hc-newsongs__empty{padding:16px 4px;color:var(--hc-slate)}

@media (max-width:700px){
  .hc-newsongs__title{font-size:18px;gap:10px}
  .hc-newsongs__flourish{display:none}
  .hc-newsongs__icons{margin-left:0}
}

/* ============ 8) FOOTER MỚI — 4 cột sáng, sạch, đồng bộ kiểu sangkienmoi.com ============ */
footer,
body > .main-container-wrap footer{
  background-color:#f7f8f9 !important;
  background-image:none !important;
}
footer .footerTop.hc-footer{
  background:#f7f8f9 !important;
  padding:44px 0 24px !important;
}
.hc-footer .footer-widgets.hc-footer__grid{
  background:transparent !important;
  background-color:transparent !important;
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:34px !important;
  width:100% !important;
  padding:0 !important;
  margin:0 auto !important;
  max-width:1160px !important;
}
.hc-footer__col{width:auto !important;float:none !important}
.hc-footer .hc-footer__title{
  color:var(--hc-ink) !important;
  font-size:14.5px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.03em;
  margin:0 0 14px;
  padding-bottom:10px;
  border-bottom:2px solid var(--hc-gold);
  display:inline-block;
}
.hc-footer .hc-footer__desc{
  color:var(--hc-slate) !important;
  font-size:13.5px;
  line-height:1.7;
  margin:0 0 10px;
}
.hc-footer .hc-footer__motto{
  color:var(--hc-primary) !important;
  font-style:italic;
  font-size:13.5px;
  font-weight:700;
  margin:0;
}
.hc-footer .hc-footer__list{list-style:none;margin:0;padding:0}
.hc-footer .hc-footer__list li{margin-bottom:9px}
.hc-footer .hc-footer__list a{
  color:var(--hc-slate) !important;
  font-size:13.5px;
  text-decoration:none;
}
.hc-footer .hc-footer__list a:hover{color:var(--hc-primary) !important}
.hc-footer__bottom{
  background:var(--hc-ink);
  color:rgba(255,255,255,.7);
  font-size:12.5px;
  text-align:center;
  padding:16px 0;
}
.hc-footer__bottom a{color:var(--hc-gold);text-decoration:none}

@media (max-width:900px){
  .hc-footer__grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:520px){
  .hc-footer__grid{grid-template-columns:1fr;}
}

/* ============ 9) ẨN BOX "ABOUT THE AUTHOR" (WEBLC) — theme tự sinh ============ */
.postauthor{
  display:none !important;
}

/* ============ 10) KHUNG XEM THỬ PDF TRONG BÀI ============ */
.hc-pdf-preview{
  border:1px solid var(--hc-line);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(15,58,86,.08);
  margin-bottom:6px;
}
.hc-pdf-preview iframe{
  width:100%;
  height:480px;
  border:none;
  display:block;
}
@media (max-width:700px){
  .hc-pdf-preview iframe{height:380px}
}

/* ============ 10b) KHUNG NGHE THỬ MP3 / MIDI ============ */
.hc-audio-player{
  width:100%;
  max-width:520px;
  margin-bottom:10px;
}
.hc-midi-player{
  display:block;
  width:100%;
  max-width:520px;
  margin-bottom:10px;
  --midi-player-ito-color: var(--hc-primary);
}
.hc-midi-visualizer{
  display:block;
  width:100%;
  border:1px solid var(--hc-line);
  border-radius:10px;
  overflow:hidden;
  margin-bottom:10px;
  background:var(--hc-bg-soft);
}

/* ============ 11) TRANG CHỦ — Giảm khoảng trống mục "Hình Ảnh" ============ */
.row.about{
  margin-top:0 !important;
  margin-bottom:0 !important;
  padding-top:6px !important;
  padding-bottom:6px !important;
}
.row.about .title{margin-bottom:8px !important}

/* ============ 12) MỤC "HÌNH ẢNH" (SmartSlider3) — thử khắc phục chữ chú
   thích bị chồng mờ + thanh bóng đen phía dưới. Đây là plugin riêng
   (không thuộc theme), dùng đúng class chuẩn của SmartSlider3 — nếu
   vẫn còn lỗi, cần vào chính trong trình soạn Slider để sửa layer chú
   thích trực tiếp (khả năng cao do 2 layer chữ chồng lên nhau). ============ */
.n2-ss-slide-limit,
.nextend-arrow,
.n2-ss-slide .n2-ss-layer{
  text-shadow:none !important;
}
.row.about .n2-section-smartslider::after,
.row.about .n2-section-smartslider::before{
  display:none !important;
  box-shadow:none !important;
}

/* ============ 13) TRANG CHỦ — Box "Nhận Ký Âm - Sáng Tác Theo Yêu Cầu" ============ */
/* Theme có sẵn rule .row.about .column p { border, background hoa văn... }
   dùng cho mục "Lời ngỏ" cũ — cần reset lại để box mới sạch, giống hình 2 */
.hc-service p,
.row.about .column .hc-service p{
  padding:0 !important;
  border:none !important;
  background:none !important;
  background-image:none !important;
  color:var(--hc-slate) !important;
  border-radius:0 !important;
  text-align:center !important;
}
.hc-service{
  background:#fff;
  border:1px solid var(--hc-line);
  border-radius:16px;
  box-shadow:0 10px 30px rgba(15,58,86,.08);
  padding:34px 30px;
  text-align:center;
  max-width:780px;
  margin:0 auto 30px;
}
.hc-service__icon{font-size:2.4rem;margin-bottom:10px}
.hc-service__title{
  font-family:'Fraunces',serif,sans-serif;
  color:var(--hc-primary-deep);
  font-size:22px;
  font-weight:800;
  margin:0 0 12px;
}
.hc-service__desc{
  color:var(--hc-slate);
  font-size:14.5px;
  line-height:1.75;
  max-width:600px;
  margin:0 auto 26px;
}
.hc-service__steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:26px;
}
.hc-service__step-ico{
  width:52px;height:52px;border-radius:50%;
  background:var(--hc-bg-soft);
  display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;margin:0 auto 10px;
}
.hc-service__step h4{color:var(--hc-ink);font-size:14px;font-weight:700;margin:0 0 4px}
.hc-service__step p{color:var(--hc-slate);font-size:12.5px;margin:0}
.hc-service__btn{
  display:inline-flex;align-items:center;gap:8px;
  background:var(--hc-primary);color:#fff!important;
  font-weight:700;font-size:14.5px;padding:13px 28px;
  border-radius:8px;text-decoration:none;
}
.hc-service__btn:hover{background:var(--hc-primary-deep)}
@media (max-width:700px){
  .hc-service__steps{grid-template-columns:1fr}
  .hc-service{padding:24px 20px}
}

/* ============ 14) Link tải dự phòng dưới khung nghe thử ============ */
.hc-audio-download{
  margin:6px 0 0 !important;
  font-size:12.5px !important;
}
.hc-audio-download a{
  color:var(--hc-slate) !important;
  text-decoration:underline;
}

/* ============ 15) Tách khối "Dịch vụ âm nhạc" ra rõ ràng ============ */
.hc-service-wrap{
  margin-top:38px;
  padding-top:30px;
  border-top:2px dashed var(--hc-line);
}
