/* ==========================================================
   MẪU BÌA DÙNG CHUNG — chọn bằng album.coverStyle (cần album.coverArt)
     fullbleed : tranh tràn bìa, tên chữ trắng nằm trên tranh
     linen     : bìa vải lanh kem, ô ảnh khoét lõm, tên ép nhũ (bìa sau cũng vải lanh)
     polaroid  : polaroid lớn trên nền bìa da (màu theo palette), tên viết tay + vé + sticker
     magazine  : tranh 2/3 trên, dải kem dưới ghi tên + vé
   Chữ: kicker (trên), title (tên), subtitle (dòng năm) · Vé: ticket, ticketSub, ticketNo
   ========================================================== */
.cs { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cs .cs-k  { font-family: "EB Garamond", serif; text-transform: uppercase; letter-spacing: .5em; padding-left: .5em; font-size: 13px; margin: 0; }
.cs .cs-nm { font-family: "Dancing Script", cursive; font-weight: 700; margin: 0; line-height: 1.2; padding: .1em .12em .28em; }
.cs .cs-yr { font-family: "EB Garamond", serif; font-style: italic; letter-spacing: .2em; font-size: 14px; margin: 0; }
.cs img { display: block; }

/* fullbleed */
.cs-fullbleed { justify-content: flex-start; background: #2a1d22; }
.cs-fullbleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-fullbleed .cs-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(40,10,20,.35), transparent 22%, transparent 55%, rgba(40,10,20,.72)); }
.cs-fullbleed .cs-k { position: absolute; top: 30px; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.cs-fullbleed .cs-bottom { position: absolute; left: 0; right: 0; bottom: 30px; text-align: center; color: #fff; }
.cs-fullbleed .cs-nm { font-size: 60px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.cs-fullbleed .cs-yr { opacity: .9; }

/* linen */
.cs-linen, .cs-linen-back, .cs-linen-in {
  background:
    repeating-linear-gradient(0deg, rgba(120,90,70,.05) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(120,90,70,.05) 0 1px, transparent 1px 3px),
    linear-gradient(160deg, #f6ece4, #ead9cc);
  color: #a7665c;
}
.face.front.cs-linen { border-radius: 2px 8px 8px 2px; box-shadow: 0 22px 45px rgba(60,25,40,.32), inset 0 0 0 1px rgba(120,80,60,.15); }
.face.back.cs-linen-back { border-radius: 8px 2px 2px 8px; box-shadow: 0 22px 45px rgba(60,25,40,.32), inset 0 0 0 1px rgba(120,80,60,.15); }
/* bìa sau vải lanh: bỏ viền khung/ốp góc/biểu tượng, vẫn giữ dòng ghi chú (vd. ghi công nhạc) */
.cs-linen-back .corner, .cs-linen-back .cross-wrap { display: none; }
.cs-linen-back .cover-frame { border: none; outline: none; box-shadow: none; }
.cs-linen-back .back-note { color: #a7665c; opacity: .75; }
.face.front.cs-linen-in { border-radius: 2px 8px 8px 2px; box-shadow: 0 22px 45px rgba(60,25,40,.32), inset 0 0 0 1px rgba(120,80,60,.15); }
.face.back.cs-linen-in  { border-radius: 8px 2px 2px 8px; box-shadow: 0 22px 45px rgba(60,25,40,.32), inset 0 0 0 1px rgba(120,80,60,.15); }
.cs-linen .cs-k { color: #b9877c; margin-bottom: 22px; }
.cs-linen .cs-win { width: 236px; height: 300px; border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 3px 8px rgba(80,40,30,.45), 0 0 0 6px #efe2d8, 0 0 0 7px rgba(150,100,80,.25); }
.cs-linen .cs-win img { width: 100%; height: 100%; object-fit: cover; }
.cs-linen .cs-nm { font-size: 50px; margin-top: 18px;
  background: linear-gradient(180deg, #e9b9a0, #b77b64 60%, #e6b79f); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.6)); }
.cs-linen .cs-yr { color: #b9877c; margin-top: 0; }

/* polaroid */
.cs-polaroid .cs-k { color: #fff; opacity: .92; margin-bottom: 22px; }
.cs-polaroid .cs-pol { position: relative; width: 262px; background: #fffaf6; padding: 12px 12px 0; transform: rotate(-2deg);
  box-shadow: 0 3px 4px rgba(60,20,35,.18), 0 16px 30px rgba(60,20,35,.3); }
.cs-polaroid .cs-pol img { width: 100%; aspect-ratio: 3 / 3.4; object-fit: cover; }
.cs-polaroid .cs-cap { display: block; text-align: center; font-family: "Dancing Script", cursive; font-weight: 700; font-size: 38px;
  color: #b0596f; padding: 6px 0 10px; line-height: 1.25; }
.cs-polaroid .cs-pol .sticker { position: absolute; top: -22px; right: -20px; width: 62px; height: 62px; transform: rotate(14deg); }
.cs-polaroid .cover-ticket { margin-top: -6px; transform: rotate(4deg) translateX(70px); }

/* magazine */
.cs-magazine { justify-content: flex-start; background: #fbf1ee; }
.cs-magazine .cs-top { position: relative; width: 100%; height: 66%; overflow: hidden; }
.cs-magazine .cs-top img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cs-magazine .cs-top .cs-k { position: absolute; top: 24px; left: 0; right: 0; text-align: center; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.cs-magazine .cs-band { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(#fbf1ee, #f6e2e4); }
.cs-magazine .cs-nm { font-size: 50px; color: #b0596f; }
.cs-magazine .cs-yr { color: #b0596f; }

/* ---------- Vé cổ điển trên bìa (album.ticket): căn giữa dưới tên ---------- */
.cover-ticket {
  order: 3; position: relative; z-index: 3; margin-top: 16px;
  display: flex; align-items: stretch;
  background: #fff6ea; color: #b0596f; font-family: "EB Garamond", serif;
  transform: rotate(-2deg);
  box-shadow: 0 4px 10px rgba(70, 25, 45, .25);
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 6px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 6px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.cover-ticket::before { content: ""; position: absolute; inset: 4px 5px; border: 1px solid rgba(176, 89, 111, .4); pointer-events: none; }
.cover-ticket .tk-body { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 14px 8px 20px; }
.cover-ticket .tk-main { white-space: nowrap; font-weight: 700; font-size: 13px; letter-spacing: .3em; padding-left: .3em; line-height: 1.15; }
.cover-ticket .tk-sub  { font-style: italic; font-size: 11px; letter-spacing: .08em; opacity: .85; margin-top: 1px; }
.cover-ticket .tk-stub {
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px 0 10px; font-size: 9.5px; letter-spacing: .12em; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg);
  border-right: 1.5px dashed rgba(176, 89, 111, .5);
}

