/* ==========================================================
   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é trên bìa (album.ticket): thân vé + cuống vé, khuyết tròn ở đường xé ---------- */
.cover-ticket {
  --tk-ink: var(--cs-ink, #a9566b); --tk-paper: #fffaf2; --tk-stub: 62px;
  order: 3; position: relative; z-index: 3; margin-top: 16px;
  display: flex; align-items: stretch; min-height: 50px;
  background: var(--tk-paper); color: var(--tk-ink); font-family: "EB Garamond", Georgia, serif;
  border-radius: 3px; transform: rotate(-1.5deg);
  filter: drop-shadow(0 3px 5px rgba(60, 25, 40, .22));
  -webkit-mask: radial-gradient(circle 6px at calc(100% - var(--tk-stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 6px at calc(100% - var(--tk-stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 6px at calc(100% - var(--tk-stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle 6px at calc(100% - var(--tk-stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.cover-ticket::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; right: calc(var(--tk-stub) + 5px);
  border: 1px solid color-mix(in srgb, var(--tk-ink) 32%, transparent); border-radius: 2px; pointer-events: none; }
.cover-ticket .tk-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 9px 18px 9px 20px; }
.cover-ticket .tk-main { white-space: nowrap; font-weight: 600; font-size: 12px; letter-spacing: .34em; padding-left: .34em; line-height: 1.1; }
.cover-ticket .tk-sub  { font-style: italic; font-size: 13px; letter-spacing: .04em; opacity: .8; white-space: nowrap; }
.cover-ticket .tk-stub {
  flex: none; width: var(--tk-stub); display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 10px; letter-spacing: .14em; white-space: nowrap; line-height: 1.25; opacity: .9;
  background: radial-gradient(circle, color-mix(in srgb, var(--tk-ink) 55%, transparent) 1.1px, transparent 1.4px) left center / 3px 6px repeat-y;
}
.cover-ticket .tk-stub small { font-size: 8.5px; letter-spacing: .12em; opacity: .7; }
.cover-ticket .tk-stub b { font-weight: 600; font-size: 11px; }
/* Kiểu vé */
.cover-ticket.tk-elegant { --tk-paper: #fffdf7; --tk-ink: #9a7638; }
.cover-ticket.tk-elegant::before { border: 3px double color-mix(in srgb, var(--tk-ink) 45%, transparent); }
.cover-ticket.tk-elegant .tk-main { font-family: "Playfair Display", Georgia, serif; font-weight: 500; letter-spacing: .26em; }
.cover-ticket.tk-boarding { --tk-paper: #ffffff; --tk-stub: 70px; }
.cover-ticket.tk-boarding .tk-body { align-items: flex-start; padding-left: 16px; }
.cover-ticket.tk-boarding .tk-main::before { content: "✈"; margin-right: 8px; letter-spacing: 0; font-size: 13px; }
.cover-ticket.tk-boarding::before { border-style: dashed; }
.cover-ticket.tk-boarding::after { content: ""; position: absolute; left: 0; right: var(--tk-stub); top: 0; height: 5px; background: var(--tk-ink); opacity: .85; }
.cover-ticket.tk-festive { --tk-paper: #f4d47c; --tk-ink: #8a1c1c;
  background: linear-gradient(135deg, #fbe7a6, #e9bf5c 55%, #f7dc8e); }
.cover-ticket.tk-festive .tk-main { letter-spacing: .22em; font-size: 12.5px; }
.cover-ticket.tk-festive .tk-sub { opacity: .95; }
.cover-ticket.tk-party { --tk-paper: #ffffff; border-radius: 10px;
  background-image: radial-gradient(circle, #ff8fab 0 1.6px, transparent 2px), radial-gradient(circle, #7fc8f8 0 1.6px, transparent 2px), radial-gradient(circle, #ffd166 0 1.6px, transparent 2px);
  background-size: 22px 18px, 26px 22px, 30px 26px; background-position: 0 0, 9px 7px, 15px 3px; }
.cover-ticket.tk-party::before { border-radius: 7px; border-width: 1.5px; }
.cover-ticket.tk-party .tk-main, .cover-ticket.tk-party .tk-sub { background: rgba(255,255,255,.85); padding: 0 6px; border-radius: 4px; }
.cover-ticket.tk-retro { --tk-paper: #2a211b; --tk-ink: #ecd7b0; }
.cover-ticket.tk-retro .tk-main { letter-spacing: .3em; }

.cs-polaroid .cs-yr { color: #fff; opacity: .9; margin-top: 20px; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
