/* ==========================================================
   KHO ẢNH mười mùa: chọn mùa → lưới ảnh → xem lớn / tải về
   ========================================================== */
.archive { position: relative; padding: clamp(96px, 13vh, 150px) 0 clamp(80px, 11vh, 130px); background-color: #F6FAF0; }
.archive-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 0 var(--gutter); margin-bottom: clamp(28px, 5vh, 52px); }
.archive-head h2 {
  font: 650 clamp(40px, 6vw, 96px)/.95 var(--display, Georgia, serif);
  letter-spacing: -.012em; color: var(--green-deep); max-width: 12ch; text-wrap: balance;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}
.archive-head p { max-width: 34ch; color: var(--muted); font: italic 400 19px/1.45 var(--serif, Georgia, serif); }

/* ---- Lưới ảnh kiểu "masonry" ---- */
.archive-grid { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 14px; }
.archive-grid > li {
  break-inside: avoid; margin: 0 0 14px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(110deg, #E6F0DC 30%, #F1F7EA 50%, #E6F0DC 70%) 0 0 / 300% 100%;
  animation: archive-shimmer 1.4s linear infinite;
  min-height: 120px;
}
.archive-grid > li.is-in { animation: none; background: none; min-height: 0; }
.archive-grid > li.is-broken { display: none; }
@keyframes archive-shimmer { to { background-position: -300% 0; } }
.archive-tile { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.archive-tile img { display: block; width: 100%; height: auto; opacity: 0; transform: scale(1.03); transition: opacity .6s ease, transform 1s cubic-bezier(.2, .7, .1, 1); }
.archive-grid > li.is-in .archive-tile img { opacity: 1; transform: none; }
.archive-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8, 40, 18, .28)); opacity: 0; transition: opacity .4s; }
@media (hover: hover) {
  .archive-tile:hover img { transform: scale(1.04); }
  .archive-tile:hover::after { opacity: 1; }
}
.archive-tile:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.archive-grid.is-swap > li { animation-name: archive-shimmer, archive-in; animation-duration: 1.4s, .6s; animation-timing-function: linear, cubic-bezier(.2, .7, .1, 1); animation-iteration-count: infinite, 1; }
.archive-grid.is-swap > li.is-in { animation: archive-in .6s cubic-bezier(.2, .7, .1, 1); }
@keyframes archive-in { from { opacity: 0; transform: translateY(18px); } }
/* ---- Hộp xem ảnh lớn ---- */
.archive-viewer {
  position: fixed; inset: 0; z-index: 186; display: grid; grid-template-rows: auto minmax(0, 1fr);
  background: #07190E; color: #fff; /* nền đặc: không lộ trang album phía sau */
  padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
  animation: archive-fade .3s ease;
}
@keyframes archive-fade { from { opacity: 0; } }
.archive-viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.archive-viewer-info { display: grid; gap: 2px; margin: 0; }
.archive-viewer-info b { font: 650 20px/1.1 var(--display, Georgia, serif); }
.archive-viewer-info span { font: 500 13px/1.3 var(--sans); opacity: .7; font-variant-numeric: tabular-nums; }
.archive-viewer-actions { display: flex; align-items: center; gap: 10px; }
.archive-viewer-dl {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 99px;
  background: #fff; color: var(--green-deep); text-decoration: none; font: 600 14px/1 var(--sans);
}
.archive-viewer-dl:hover { background: #DFF3D2; }
.archive-viewer-close, .archive-viewer-nav {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .3s;
}
.archive-viewer-close:hover, .archive-viewer-nav:hover { background: rgba(255, 255, 255, .24); }
.archive-viewer-close svg, .archive-viewer-nav svg { width: 22px; height: 22px; }
.archive-viewer-stage { display: flex; align-items: center; justify-content: center; margin: 0; min-height: 0; min-width: 0; overflow: hidden; padding: 0 64px; }
.archive-viewer-stage img {
  /* ảnh luôn nằm gọn trong khung, kể cả ảnh gốc rất lớn từ Drive */
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); opacity: 0; transform: scale(.98); transition: opacity .35s, transform .5s cubic-bezier(.2, .7, .1, 1);
}
.archive-viewer.is-ready .archive-viewer-stage img { opacity: 1; transform: none; }
.archive-viewer-nav { position: absolute; top: 50%; translate: 0 -50%; }
.archive-viewer-nav--prev { left: max(12px, env(safe-area-inset-left, 0px)); }
.archive-viewer-nav--next { right: max(12px, env(safe-area-inset-right, 0px)); }

/* ---- Điện thoại / máy tính bảng ---- */
@media (max-width: 899px) {
  .archive-head { flex-direction: column; align-items: start; gap: 12px; }
  .archive-grid { columns: 3 180px; column-gap: 10px; }
  .archive-grid > li { margin-bottom: 10px; border-radius: 8px; }
}
@media (max-width: 599px) {
  .archive-head p { font-size: 17px; }
  .archive-grid { columns: 2; column-gap: 8px; }
  .archive-grid > li { margin-bottom: 8px; border-radius: 6px; }
  .archive-viewer-stage { padding: 0; }
  .archive-viewer-nav { top: auto; bottom: max(16px, env(safe-area-inset-bottom, 0px)); translate: none; }
  .archive-viewer { grid-template-rows: auto minmax(0, 1fr) 64px; }
  .archive-viewer-dl span { display: none; }
  .archive-viewer-dl { width: 44px; padding: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .archive-grid > li, .archive-tile img, .archive-viewer, .archive-viewer-stage img { animation: none !important; transition: none !important; }
}

/* ==========================================================
   Thẻ album trên trang chính + "trang album" riêng (archive.js)
   ========================================================== */
.archive-viewer svg, .album svg, .album-cards svg, .archive-drive svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---- 10 thẻ album ---- */
.album-cards {
  list-style: none; margin: 0; padding: 0 var(--grid-x, var(--gutter));
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px);
}
.album-card-btn {
  position: relative; display: grid; width: 100%; padding: 0; border: 0; text-align: left; cursor: pointer;
  background: #fff; color: var(--ink); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(12, 46, 27, .05), 0 18px 34px -26px rgba(12, 46, 27, .55);
  transition: translate .5s var(--ease), box-shadow .5s var(--ease);
}
.album-card-btn:hover { translate: 0 -4px; box-shadow: 0 1px 0 rgba(12, 46, 27, .05), 0 28px 44px -26px rgba(12, 46, 27, .6); }
.album-card-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.album-card-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sprout); }
.album-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.album-card-btn:hover .album-card-cover img { scale: 1.07; }
.album-card-body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 12px 14px 14px; }
.album-card-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; grid-row: span 2; box-shadow: 0 0 0 1px var(--line); }
.album-card-text { display: grid; min-width: 0; }
.album-card-text b { font: 650 19px/1.1 var(--display, Georgia, serif); color: var(--green-deep); }
.album-card-text small { font: 500 12px/1.35 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-card-count { grid-column: 2; justify-self: start; font: 600 11px/1 var(--sans); letter-spacing: .04em; color: var(--green); padding: 5px 8px; border-radius: 99px; background: #EAF5E1; }
.album-card-go {
  position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--green-deep); opacity: 0; scale: .7; transition: opacity .35s, scale .45s var(--ease);
}
.album-card-btn:hover .album-card-go, .album-card-btn:focus-visible .album-card-go { opacity: 1; scale: 1; }
@media (max-width: 1100px) { .album-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 899px) { .album-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .album-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .album-card-btn { border-radius: 14px; }
  .album-card-body { padding: 10px; gap: 4px 8px; }
  .album-card-logo { width: 30px; height: 30px; border-radius: 8px; }
  .album-card-text b { font-size: 16px; }
  .album-card-go { opacity: 1; scale: .85; }
}

/* ---- Trang album (phủ toàn màn hình, cuộn riêng) ---- */
html.album-open { overflow: hidden; }
html.album-open .season-pill, html.album-open .nt-music { visibility: hidden; }
.album {
  position: fixed; inset: 0; z-index: 175; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: radial-gradient(90% 50% at 100% 0%, #E3F3D6 0%, rgba(227, 243, 214, 0) 60%), #F2F6EE;
  color: var(--ink);
}
.album[hidden] { display: none; }
.album-topbar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 16px;
  padding: max(12px, env(safe-area-inset-top, 0px)) var(--gutter) 12px;
  background: rgba(242, 246, 238, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 46, 27, .07);
}
.album-back {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 99px;
  border: 1.5px solid rgba(15, 92, 48, .2); background: #fff; color: var(--green-deep); font: 600 14px/1 var(--sans); cursor: pointer;
  transition: background-color .3s, color .3s;
}
.album-back:hover { background: var(--green-deep); color: #fff; }
.album-switch { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px; margin-left: auto; }
.album-switch::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .album-switch { cursor: grab; } .album-switch.is-dragging, .album-switch.is-dragging * { cursor: grabbing; user-select: none; } }
/* mờ hai đầu dãy khi còn mùa bị che → biết là kéo được */
.album-switch.has-more-right { -webkit-mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.album-switch.has-more-left { -webkit-mask: linear-gradient(90deg, transparent, #000 48px); mask: linear-gradient(90deg, transparent, #000 48px); }
.album-switch.has-more-left.has-more-right { -webkit-mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.album-chip img { -webkit-user-drag: none; }
.album-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 4px; border-radius: 99px;
  border: 1.5px solid transparent; background: #fff; color: var(--green-deep); cursor: pointer; font: 700 14px/1 var(--display, Georgia, serif);
  transition: background-color .3s, color .3s, border-color .3s;
}
.album-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.album-chip:hover { border-color: rgba(15, 92, 48, .3); }
.album-chip.is-active { background: var(--green-deep); color: #fff; }
.album-back:focus-visible, .album-chip:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.album-inner { width: min(100% - 2 * var(--gutter), 1360px); margin: 0 auto; padding: clamp(20px, 3vh, 36px) 0 calc(64px + env(safe-area-inset-bottom, 0px)); display: grid; gap: clamp(16px, 2.4vh, 28px); }
.album-card { position: relative; background: #fff; border-radius: 28px; box-shadow: 0 1px 0 rgba(12, 46, 27, .04), 0 24px 50px -40px rgba(12, 46, 27, .5); }

/* đầu trang album: viền màu trên cùng, huy hiệu, tên mùa, nơi lưu, các nút */
.album-hero { overflow: hidden; padding: clamp(24px, 3vw, 40px); }
.album-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: linear-gradient(90deg, #0F5C30, #139E49 35%, #7CC242 70%, #C9F28F); }
.album-hero-main { display: flex; align-items: center; gap: clamp(16px, 2vw, 26px); padding-bottom: clamp(20px, 3vh, 28px); border-bottom: 1px solid var(--line); }
.album-badge { flex: none; width: clamp(72px, 7vw, 104px); aspect-ratio: 1; border-radius: 22px; object-fit: cover; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 14px 28px -18px rgba(12, 46, 27, .6); }
.album-hero-text { display: grid; gap: 6px; min-width: 0; }
.album-title { margin: 0; font: 650 clamp(30px, 3.6vw, 56px)/1.02 var(--display, Georgia, serif); letter-spacing: -.012em; color: var(--green-deep); font-variation-settings: "SOFT" 100, "opsz" 144; }
.album-where { margin: 0; font: 500 15px/1.45 var(--sans); color: var(--ink); }
.album-store { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.album-store::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(19, 158, 73, .15); }
.album-store.is-sample::before { background: #E3B341; box-shadow: 0 0 0 4px rgba(227, 179, 65, .2); }
.album-hero-actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: clamp(20px, 3vh, 26px); }
.album-link-group { display: inline-flex; border: 1.5px solid rgba(12, 46, 27, .14); border-radius: 14px; overflow: hidden; background: #fff; }
.album-copy, .album-open {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 0; background: none;
  color: var(--ink); font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .25s;
}
.album-open { padding: 0 18px; border-left: 1.5px solid rgba(12, 46, 27, .14); }
.album-copy:hover:not(:disabled), .album-open:hover:not(.is-disabled) { background: #F0F7EA; }
.album-copy:disabled, .album-open.is-disabled { color: rgba(12, 46, 27, .38); cursor: not-allowed; }
.album-all {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--green); color: #fff; text-decoration: none; font: 600 16px/1 var(--sans);
  box-shadow: 0 14px 26px -16px rgba(19, 158, 73, .9); transition: background-color .3s;
}
.album-all:hover:not(.is-disabled) { background: var(--green-deep); }
.album-all.is-disabled { background: #E3EEDA; color: var(--muted); box-shadow: none; cursor: not-allowed; }
.album-all svg, .album-copy svg, .album-open svg { width: 20px; height: 20px; }
.album-toast {
  margin: 0; padding: 8px 14px; border-radius: 10px; background: var(--ink); color: #fff; font: 500 13px/1.4 var(--sans);
  max-width: 100%; overflow-wrap: anywhere; opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s; pointer-events: none;
}
.album-toast.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }

/* số ảnh */
.album-stat { padding: clamp(18px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px); }
.album-stat-label { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.album-stat-num { margin: 8px 0 0; font: 650 clamp(40px, 4vw, 56px)/1 var(--display, Georgia, serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.album-note { display: flex; gap: 8px; margin: 12px 0 0; font: 400 13.5px/1.5 var(--sans); color: var(--muted); }
.album-note::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #E3B341; }

/* lưới ảnh đều ô (không masonry), nút tải góc phải mỗi ảnh */
.album-grid.archive-grid { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 44vw), 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.album-grid.archive-grid > li { position: relative; margin: 0; border-radius: 22px; aspect-ratio: 4 / 3.2; min-height: 0; }
.album-grid .archive-tile, .album-grid .archive-tile img { height: 100%; }
.album-grid .archive-tile img { object-fit: cover; }
.album-dl {
  position: absolute; right: 12px; top: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .94); color: var(--ink); cursor: pointer;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .5); opacity: 0; translate: 0 -6px; transition: opacity .3s, translate .3s, background-color .3s;
}
.album-dl:hover { background: var(--green); color: #fff; }
.album-grid > li:hover .album-dl, .album-dl:focus-visible { opacity: 1; translate: 0 0; }
@media (hover: none) { .album-dl { opacity: 1; translate: 0 0; width: 38px; height: 38px; } }
.album-end { margin: 6px 0 0; text-align: center; font: 700 20px/1.3 var(--script, cursive); color: var(--green); }
.album-sentinel { height: 1px; }

@media (max-width: 599px) {
  .album-topbar { gap: 10px; }
  .album-back span { display: none; }
  .album-back { width: 44px; padding: 0; justify-content: center; }
  .album-card { border-radius: 20px; }
  .album-hero-main { align-items: flex-start; }
  .album-store { letter-spacing: .08em; }
  .album-hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .album-link-group { width: 100%; }
  .album-copy { flex: 1; justify-content: center; }
  .album-all { justify-content: center; }
  .album-grid.archive-grid > li { border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .album-card-btn, .album-card-cover img, .album-card-go, .album-dl, .album-toast { transition: none !important; }
}

/* Liên kết tới toàn bộ kho trên Google Drive (dưới 10 thẻ album) */
.archive-drive {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content;
  margin: clamp(20px, 3vh, 32px) auto 0; padding: 0 22px; min-height: 50px; border-radius: 99px;
  border: 1.5px solid rgba(15, 92, 48, .22); background: #fff; color: var(--green-deep);
  font: 600 15px/1.2 var(--sans); text-decoration: none; transition: background-color .3s, color .3s, border-color .3s;
}
.archive-drive:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.archive-drive:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.archive-drive svg { width: 20px; height: 20px; }
.archive-drive svg:last-child { width: 16px; height: 16px; opacity: .7; }
@media (max-width: 599px) { .archive-drive { width: calc(100% - 2 * var(--gutter)); font-size: 14px; text-align: center; } }

/* Ảnh từ thư mục con trên Drive: nhãn tên thư mục ở góc dưới */
.album-tag {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 10px; border-radius: 99px;
  background: rgba(12, 46, 27, .72); color: #fff; font: 600 12px/1.2 var(--sans);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.album-grid .archive-tile { position: relative; }
/* đang đọc Drive: vài ô xám nhấp nháy */
.album-grid.is-loading { min-height: 240px; background:
  linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%) -100% 0 / 50% 100% no-repeat,
  repeating-linear-gradient(90deg, #E4EEDB 0 calc(25% - 15px), transparent calc(25% - 15px) 25%);
  border-radius: 22px; animation: album-shimmer 1.2s linear infinite; }
@keyframes album-shimmer { to { background-position: 200% 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .album-grid.is-loading { animation: none; } }

/* Ô thư mục con trong một mùa (Drive): Tất cả · Ngày 1 · Ngày 2 ... */
.album-folders { display: flex; flex-wrap: wrap; gap: 10px; }
.album-folders[hidden] { display: none; }
.album-folder {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 14px; border-radius: 14px;
  border: 1.5px solid rgba(12, 46, 27, .12); background: #fff; color: var(--ink); cursor: pointer;
  font: 600 15px/1.2 var(--sans); transition: background-color .25s, color .25s, border-color .25s;
}
.album-folder svg { width: 18px; height: 18px; color: var(--green); flex: none; }
.album-folder small { font: 700 12px/1 var(--sans); padding: 4px 7px; border-radius: 99px; background: #EAF5E1; color: var(--green-deep); }
.album-folder:hover { border-color: rgba(15, 92, 48, .35); }
.album-folder.is-active { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.album-folder.is-active svg { color: #C9F28F; }
.album-folder.is-active small { background: rgba(255, 255, 255, .18); color: #fff; }
.album-folder:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 599px) {
  .album-folders { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
  .album-folders::-webkit-scrollbar { display: none; }
  .album-folder { flex: none; min-height: 42px; font-size: 14px; }
}

/* Thanh tua ảnh dọc sát mép phải trang album */
.album-scrub { position: fixed; right: max(6px, env(safe-area-inset-right, 0px)); top: 96px; bottom: 28px; z-index: 4; width: 28px; display: flex; justify-content: center; }
.album-scrub[hidden] { display: none; }
.album-scrub-track { position: relative; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.album-scrub-track::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; translate: -50% 0; border-radius: 4px; background: rgba(12, 46, 27, .12); transition: width .2s; }
.album-scrub.is-active .album-scrub-track::before, .album-scrub-track:hover::before { width: 6px; }
.album-scrub-thumb { position: absolute; left: 50%; top: 0; width: 22px; height: 44px; translate: -50% -50%; border-radius: 99px; background: var(--green-deep); box-shadow: 0 4px 12px -4px rgba(12, 46, 27, .6); }
.album-scrub.is-drag .album-scrub-track { cursor: grabbing; }
.album-scrub-bubble { position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: #fff; font: 700 13px/1 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .2s; pointer-events: none; }
.album-scrub.is-active .album-scrub-bubble, .album-scrub-track:focus-visible .album-scrub-bubble { opacity: 1; }
.album-scrub-track:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 99px; }
.album-inner { padding-right: 24px; }
@media (max-width: 599px) { .album-scrub { width: 24px; top: 84px; } .album-scrub-thumb { width: 18px; height: 38px; } }
