/* Tem Studio — "Tem" là con tem: ảnh được đóng khung như tem bưu chính (viền răng cưa) */
:root {
  --milk: #FBF6EC;      /* nền vàng be */
  --ink: #3A2E24;       /* chữ, nút chính: nâu cacao */
  --ink-2: #6E5E4D;     /* chữ phụ */
  --powder: #F2E4C6;    /* mảng nền be đậm hơn */
  --butter: #F7D98B;    /* gói nổi bật */
  --rose: #E3A28C;      /* dấu bưu điện */
  --line: #EADFCB;
  --paper: #FFFDF8;
  --r: 18px;
  --display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--milk); color: var(--ink); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6.2vw, 72px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
:focus-visible { outline: 3px solid #C08A2E; outline-offset: 3px; border-radius: 6px; }

/* Nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px; font: 700 16px var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #57463a; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Con tem: viền răng cưa bằng các lỗ tròn trong phần đệm */
.stamp { --hole: 5px; --gap: 17px; position: relative; padding: 13px; background: radial-gradient(circle, transparent var(--hole), var(--paper) calc(var(--hole) + .5px)) calc(var(--gap) / -2) calc(var(--gap) / -2) / var(--gap) var(--gap); filter: drop-shadow(0 10px 22px rgba(80, 58, 30, .14)); }
.stamp-in { position: relative; overflow: hidden; background: var(--powder); }
.stamp-in img { width: 100%; height: 100%; object-fit: cover; }

/* Đầu trang */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(251, 246, 236, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-stamp { font: 800 22px/1 var(--display); background: var(--ink); color: #fff; padding: 8px 12px 6px; border-radius: 4px; outline: 2px dashed #fff; outline-offset: -6px; }
.logo-sub { font: 700 20px/1 var(--display); }
.menu { display: flex; gap: 26px; margin-left: auto; font-weight: 700; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.menu a:hover { border-color: var(--powder); }
.menu a[aria-current="page"] { border-color: var(--ink); }
.hdr-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 860px) {
  .hdr-in { flex-wrap: wrap; gap: 6px 16px; padding: 10px 0 0; min-height: 0; }
  .hdr-cta { margin-left: auto; min-height: 38px; padding: 0 14px; font-size: 14px; }
  .menu { order: 3; width: 100%; margin: 0; gap: 20px; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; font-size: 15.5px; scrollbar-width: none; }
}

/* Trang chủ: phần đầu */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 64px 0 80px; }
.hero-text p { font-size: 19px; color: var(--ink-2); margin: 20px 0 30px; max-width: 34em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo { position: relative; transform: rotate(2.2deg); }
.hero-photo .stamp-in { aspect-ratio: 4 / 5; }
.hero-photo .stamp-in img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-photo .stamp-in img.on { opacity: 1; }
.postmark { position: absolute; left: -46px; bottom: 34px; width: 132px; height: 132px; border-radius: 50%; border: 3px solid var(--rose); color: #c9765f; display: grid; place-items: center; text-align: center; font: 800 13px/1.25 var(--display); transform: rotate(-14deg); background: rgba(255, 255, 255, .55); backdrop-filter: blur(2px); }
.postmark::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px solid var(--rose); }
.postmark b { display: block; font-size: 21px; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 36px 0 56px; }
  .hero-photo { max-width: 420px; margin: 0 auto; width: 88%; }
  .postmark { left: -22px; width: 104px; height: 104px; font-size: 11px; }
  .postmark b { font-size: 17px; }
}

/* Khối nội dung */
.sec { padding: 72px 0; }
.sec-blue { background: var(--powder); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.sec-head p { color: var(--ink-2); max-width: 36em; margin-top: 8px; }

/* Album mẫu: mỗi mục là 1 con tem */
.stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.stamp-card { text-decoration: none; display: block; }
.stamp-card .stamp-in { aspect-ratio: 4 / 5; }
.stamp-card:nth-child(3n+1) .stamp { transform: rotate(-1.4deg); }
.stamp-card:nth-child(3n+2) .stamp { transform: rotate(.9deg); }
.stamp-card:nth-child(3n) .stamp { transform: rotate(-.5deg); }
.stamp-card:hover .stamp { transform: rotate(0) translateY(-4px); transition: transform .2s; }
.stamp-card h3 { margin-top: 16px; }
.stamp-card p { color: var(--ink-2); font-size: 15.5px; }
.stamp-empty { display: grid; place-items: center; height: 100%; color: var(--ink-2); font-weight: 700; font-size: 14px; text-align: center; padding: 20px; }
@media (max-width: 860px) { .stamps { grid-template-columns: 1fr 1fr; gap: 26px 18px; } .stamp { --hole: 4px; --gap: 13px; padding: 10px; } .stamp-card h3 { font-size: 18px; } }

/* Bảng giá */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab { border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 700 15.5px var(--body); padding: 8px 18px; border-radius: 99px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; align-items: start; }
.pkg { background: var(--paper); border-radius: var(--r); padding: 26px 24px; border: 2px solid var(--line); }
.pkg.hot { background: var(--butter); border-color: var(--butter); }
.pkg-flag { display: inline-block; font-size: 13px; font-weight: 800; background: var(--ink); color: #fff; border-radius: 99px; padding: 2px 10px; margin-bottom: 10px; }
.pkg-price { font: 800 34px/1.1 var(--display); margin: 10px 0 4px; }
.pkg-price.contact { font-size: 26px; }
.pkg ul { list-style: none; padding: 14px 0 0; margin: 14px 0 20px; border-top: 1.5px dashed rgba(80, 58, 30, .25); display: grid; gap: 8px; font-size: 15.5px; }
.pkg li { padding-left: 24px; position: relative; }
.pkg li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--ink); }
.pkg .btn { width: 100%; }
.vat { color: var(--ink-2); font-size: 15px; margin-top: 18px; }

/* Album ảnh (trang chi tiết) */
.gal { columns: 3 260px; column-gap: 12px; }
.gal button { all: unset; display: block; width: 100%; margin-bottom: 12px; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--powder); break-inside: avoid; }
.gal button:focus-visible { outline: 3px solid #C08A2E; }
.gal img { width: 100%; height: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chips a { text-decoration: none; border: 2px solid var(--ink); border-radius: 99px; padding: 6px 16px; font-weight: 700; font-size: 15px; }
.chips a[aria-current="page"] { background: var(--ink); color: #fff; }

/* Liên hệ */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 24px 0 30px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list small { color: var(--ink-2); font-size: 14px; font-weight: 700; }
.contact-list a, .contact-list span { font-size: 19px; font-weight: 700; text-decoration: none; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--powder); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Dải kêu gọi */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 28px; padding: 40px 44px; }
.cta-band p { color: #eadcc6; margin-top: 6px; }
.cta-band .btn-ink { background: #fff; color: var(--ink); }

/* Chân trang */
.ftr { border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 40px; }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.ftr-tag { color: var(--ink-2); margin-top: 12px; max-width: 24em; }
.ftr-col { display: grid; gap: 6px; align-content: start; }
.ftr-col a, .ftr-col span { color: var(--ink-2); text-decoration: none; }
.ftr-col a:hover { color: var(--ink); text-decoration: underline; }
.ftr-copy { color: var(--ink-2); font-size: 14px; margin-top: 34px; }
@media (max-width: 700px) { .ftr-in { grid-template-columns: 1fr; } }

/* Nút liên hệ nổi */
.fab { position: fixed; right: 16px; bottom: 18px; z-index: 30; display: grid; gap: 10px; }
.fab a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(80, 58, 30, .25); }
.fab svg { width: 30px; height: 30px; }
.fab-zalo { background: #0068FF; } .fab-zalo svg { width: 38px; height: 38px; color: #fff; }
.fab-zalo svg text { fill: #0068FF; }
.fab-mess { background: #A033FF; }
.fab-call { background: #1F9D55; } .fab-call svg { width: 24px; height: 24px; }

/* Xem ảnh lớn */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(30, 22, 15, .94); display: grid; place-items: center; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); border-radius: 6px; }
.lb-x { position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lb-nav.prev { left: 12px; } .lb-nav.next { right: 12px; }
.lb-count { position: absolute; bottom: 18px; color: #eadcc6; font-weight: 700; }

.loading { padding: 40px 0; color: var(--ink-2); }
.page-head { padding: 52px 0 10px; }
.page-head p { color: var(--ink-2); margin-top: 10px; max-width: 38em; font-size: 18px; }
.pkg-price.contact { white-space: nowrap; }

.notes { margin-top: 30px; background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r); padding: 20px 24px; }
.notes h3 { font-size: 19px; margin-bottom: 8px; }
.notes ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 15.5px; }

/* Dấu bưu điện có địa chỉ */
.postmark { width: 150px; height: 150px; font-size: 12px; line-height: 1.2; padding: 14px; }
.postmark span { display: block; }
.postmark .pm-st { font-size: 13.5px; font-weight: 800; margin: 2px 0 1px; }
.postmark .pm-st:empty { display: none; }
@media (max-width: 860px) { .postmark { width: 122px; height: 122px; font-size: 10.5px; padding: 10px; } .postmark .pm-st { font-size: 11.5px; } }
.postmark { background: rgba(255, 253, 248, .88); }
/* Điện thoại: ảnh trong album chia 2 cột để thấy nhiều ảnh */
@media (max-width: 640px) {
  .gal { columns: 2; column-gap: 6px; }
  .gal button { margin-bottom: 6px; border-radius: 8px; }
}

/* ===== Trang chủ: ảnh tràn màn hình kiểu story ===== */
.show { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: #2a221b; color: #fff; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.4s ease; cursor: pointer; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transform: scale(1.08); transition: transform 7s ease-out; }
.slide.on img { transform: scale(1); }
.show-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 14, 9, .45) 0%, rgba(20, 14, 9, 0) 22%, rgba(20, 14, 9, 0) 45%, rgba(20, 14, 9, .72) 100%); }
.show-text { position: absolute; left: max(20px, calc((100vw - 1160px) / 2)); right: 20px; bottom: 34px; max-width: 640px; pointer-events: none; }
.show-text a, .show-text button { pointer-events: auto; }
.show-line { font: italic 500 clamp(30px, 4.6vw, 54px)/1.12 'Cormorant Garamond', Georgia, serif; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.show-label { display: block; margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.show-album { display: flex; align-items: baseline; gap: 16px; margin-top: 6px; }
.show-album em { font: italic 500 22px 'Cormorant Garamond', Georgia, serif; }
.show-album a { color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .8); padding-bottom: 2px; }
.bars { display: flex; gap: 6px; margin-top: 20px; max-width: 420px; }
.bar { all: unset; flex: 1; height: 14px; display: flex; align-items: center; cursor: pointer; }
.bar i { display: block; width: 100%; height: 2px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; border-radius: 2px; }
.bar i::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.bar.done i::after { transform: scaleX(1); }
.bar.run i::after { animation: barfill var(--dur, 5500ms) linear forwards; }
@keyframes barfill { to { transform: scaleX(1); } }
.bar:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pm-show { left: auto; right: max(20px, calc((100vw - 1160px) / 2)); bottom: 40px; transform: rotate(-12deg); }
.slide.empty { background: linear-gradient(135deg, #7a6450, #c8a77d); opacity: 1; }

/* Đầu trang nằm đè lên ảnh: trong suốt, chữ trắng; cuộn xuống thì có nền */
body.home .hdr { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; transition: background .3s, color .3s; }
body.home .hdr:not(.solid) { color: #fff; }
body.home .hdr:not(.solid) .logo-stamp { background: transparent; outline-color: #fff; border: 1.5px solid #fff; }
body.home .hdr:not(.solid) .menu a[aria-current="page"] { border-color: #fff; }
body.home .hdr:not(.solid) .hdr-cta { background: rgba(255, 255, 255, .16); border: 1.5px solid rgba(255, 255, 255, .8); }
body.home .hdr.solid { background: rgba(251, 246, 236, .95); border-color: var(--line); backdrop-filter: blur(10px); }
.burger { display: none; }
.intro { padding: 64px 0 20px; max-width: 760px; text-align: center; }
.intro h1 { font-size: clamp(32px, 4.4vw, 50px); }
.intro p { color: var(--ink-2); font-size: 18px; margin: 16px auto 26px; max-width: 34em; }
.intro .hero-cta { justify-content: center; }

@media (max-width: 860px) {
  /* Điện thoại, trang chủ: logo ở giữa, menu gọn trong nút ☰ */
  body.home .hdr .hdr-in { justify-content: center; padding: 12px 0; position: relative; }
  body.home .hdr .menu, body.home .hdr .hdr-cta { display: none; }
  body.home .burger { display: grid; gap: 5px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 10px 4px; cursor: pointer; color: inherit; }
  body.home .burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
  body.home .hdr.open { background: rgba(251, 246, 236, .98); color: var(--ink); }
  body.home .hdr.open .menu { display: grid; order: 3; width: 100%; gap: 4px; padding: 8px 0 14px; text-align: center; font-size: 18px; }
  body.home .hdr.open .logo-stamp { background: var(--ink); border: 0; outline-color: #fff; }
  .show-text { bottom: 22px; }
  .show-line { font-size: 31px; }
  .bars { max-width: none; }
  .pm-show { width: 92px; height: 92px; font-size: 9px; padding: 8px; right: 14px; bottom: auto; top: 84px; }
  .pm-show b { font-size: 14px; } .pm-show .pm-st { font-size: 9.5px; }
}

/* Ảnh đầu trang: trên máy tính 2 ảnh dọc đặt song song, có đường kẻ mảnh ở giữa; điện thoại chỉ hiện 1 ảnh */
.slide img.fg2 { display: none; }
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  .slide.duo { display: flex; gap: 2px; background: rgba(255, 255, 255, .25); }
  .slide.duo img { width: 50%; flex: 1 1 50%; min-width: 0; }
  .slide.duo img.fg2 { display: block; }
}

/* ---- Bảng giá dạng lưới: thẻ cao bằng nhau, nút đặt gói nằm cùng hàng ---- */
.pkgs { grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 18px; }
.pkg { display: flex; flex-direction: column; position: relative; }
.pkg ul { flex: 1; align-content: start; }
.pkg-flag { position: absolute; top: -12px; left: 22px; margin: 0; }
@media (max-width: 900px) { .pkgs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .pkgs { gap: 10px; }
  .pkg { padding: 18px 12px 12px; border-radius: 14px; }
  .pkg h3 { font-size: 15px; line-height: 1.25; }
  .pkg-price { font-size: 21px; margin: 6px 0 0; }
  .pkg-price.contact { font-size: 18px; }
  .pkg ul { padding-top: 10px; margin: 10px 0 12px; gap: 5px; font-size: 13px; line-height: 1.35; }
  .pkg li { padding-left: 15px; }
  .pkg li::before { width: 7px; height: 7px; border-width: 2px; left: 0; top: .45em; }
  .pkg .btn { padding: 9px 6px; font-size: 13px; min-height: 0; }
  .pkg-flag { font-size: 10.5px; left: 10px; padding: 1px 8px; }
}

/* Máy bật "giảm chuyển động": ảnh đầu trang vẫn tự chuyển, chỉ mờ dần nhẹ, không phóng to */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: opacity .8s ease !important; }
  .slide img, .slide.on img { transform: none !important; }
  .bar.run i::after { animation: barfill var(--dur, 5500ms) linear forwards !important; }
}

/* Logo Tem Studio (ảnh): bản nâu đậm trên nền be, bản trắng khi đầu trang nằm đè lên ảnh */
.logo-img { display: block; height: 40px; width: auto; }
.logo-wht { display: none; }
.ftr .logo-img { height: 46px; }
body.home .hdr:not(.solid):not(.open) .logo-img { display: none; }
body.home .hdr:not(.solid):not(.open) .logo-wht { display: block; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
@media (max-width: 860px) { .logo-img { height: 34px; } }

/* ---- Ba mẹ cần chuẩn bị gì (cuối trang chủ) ---- */
.prep-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; counter-reset: prep; }
.prep-list li { counter-increment: prep; display: flex; gap: 16px; align-items: flex-start; border-radius: 22px; padding: 22px 22px 22px 18px; border: 2px dashed rgba(80, 58, 30, .18); }
.prep-ic { flex: none; width: 58px; height: 58px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 30px; position: relative; box-shadow: 0 2px 0 rgba(80, 58, 30, .08); }
.prep-ic::after { content: counter(prep, decimal-leading-zero); position: absolute; right: -8px; bottom: -6px; font: 800 13px/1 var(--display); background: var(--ink); color: #fff; border-radius: 99px; padding: 4px 7px; }
.prep-list h3 { font-size: 18px; line-height: 1.3; margin: 2px 0 6px; }
.prep-list p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; margin: 0; }
.p-yel { background: #FBF0CF; } .p-grn { background: #E8F1DA; } .p-pnk { background: #F8E3DC; } .p-blu { background: #E2EEF3; }
.prep-thanks { text-align: center; margin: 26px 0 0; font: italic 500 24px 'Cormorant Garamond', Georgia, serif; color: var(--ink-2); }
@media (max-width: 760px) {
  .prep-list { grid-template-columns: 1fr; gap: 12px; }
  .prep-list li { padding: 18px 16px 18px 14px; gap: 14px; }
  .prep-ic { width: 48px; height: 48px; font-size: 25px; }
  .prep-list h3 { font-size: 16.5px; }
  .prep-list p { font-size: 14.5px; }
}

/* ---- Video hậu trường (cuối trang chủ) ---- */
.bts-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.bts-item { margin: 0; scroll-snap-align: start; }
.bts-item.wide { grid-column: span 2; }
.bts-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #2a221b; }
.bts-item.wide { align-self: center; }
.bts-item.wide .bts-frame { aspect-ratio: 16 / 9; }
.bts-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bts-item figcaption { margin-top: 8px; font-weight: 700; font-size: 15px; }
@media (min-width: 1000px) { .bts-row { grid-auto-columns: calc((100% - 48px) / 4); } }
@media (max-width: 640px) { .bts-row { grid-auto-columns: 62%; gap: 10px; } .bts-item.wide { grid-column: span 1; } } 
.bts-play { all: unset; display: block; position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #2a221b; cursor: pointer; }
.bts-item.wide .bts-play { aspect-ratio: 16 / 9; }
.bts-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.bts-play:hover img { transform: scale(1.03); }
.bts-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.bts-btn::after { content: ''; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.bts-play:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bts-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Nút đặt gói: Zalo + nhắn Page (Messenger điền sẵn tên gói) */
.pkg-btns { display: grid; gap: 10px; justify-items: center; }
.pkg-mess { font-weight: 700; font-size: 14.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(58, 46, 36, .4); padding: 2px 4px; }
.pkg-mess:hover { text-decoration-color: currentColor; }
@media (max-width: 640px) { .pkg-mess { font-size: 12.5px; text-align: center; } }

/* ---- Album nhỏ (thư mục con) trong 1 album ---- */
.subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin-bottom: 34px; }
.sub-card { text-decoration: none; color: inherit; display: block; }
.sub-img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--powder); }
.sub-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.sub-card:hover .sub-img img { transform: scale(1.03); }
.sub-card h3 { font-size: 17px; margin: 10px 2px 0; }
.sub-card:focus-visible .sub-img { outline: 3px solid var(--ink); outline-offset: 3px; }
.sub-h { font-size: 22px; margin: 0 0 14px; }
.crumbs { font-size: 15px; color: var(--ink-2); }
.crumbs a { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) { .subs { grid-template-columns: 1fr 1fr; gap: 10px; } .sub-img { border-radius: 12px; } .sub-card h3 { font-size: 14.5px; margin-top: 6px; } }
/* Nút làm mới ảnh (đọc lại Drive ngay) */
.page-head { position: relative; }
.refresh-btn { position: absolute; top: 60px; right: 0; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 99px; padding: 7px 14px; font: 700 14px/1 inherit; cursor: pointer; }
.refresh-btn:hover { border-color: var(--ink); }
.ftr-refresh { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (min-width: 641px) { .page-head:has(.refresh-btn) h1 { padding-right: 130px; } }
@media (max-width: 640px) { .refresh-btn { position: static; margin-top: 12px; } }
