/* マイページのアルバムの半券（album/paper-ticket.js）。色は評価の共有カード（functions/src/rating-card.ts）と同じ紙の色。
   画像のない作品の絵柄は album.css の .ticket-art を使うので、album.css も読み込む。 */
.pt { --paper: #fff7e8; --ink: #2c241a; --gold: #b0965f; --sub: #6f5f45; --line: #d7c7a8;
  position: relative; display: flex; color: var(--ink); text-decoration: none; border-radius: 14px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .18)); font-feature-settings: "palt"; }
a.pt { cursor: pointer; }
a.pt:hover { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .28)); transform: translateY(-1px); }
.pt-main { flex: 1; min-width: 0; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--paper); border-radius: 14px 0 0 14px;
  -webkit-mask: radial-gradient(circle 12px at 100% 0, #0000 98%, #000) top right/100% 51% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) bottom right/100% 51% no-repeat; }
.pt-stub { width: 200px; flex: none; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 14px; background: var(--paper); border-radius: 0 14px 14px 0; border-left: 3px dashed var(--line);
  -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) top left/100% 51% no-repeat, radial-gradient(circle 12px at 0 100%, #0000 98%, #000) bottom left/100% 51% no-repeat; }
/* テープで留めた写真 */
.pt-photo { position: relative; flex: none; width: 128px; height: 72px; margin-top: 6px; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transform: rotate(-2deg); background: #2a2420; }
.pt-photo::before { content: ''; position: absolute; left: 50%; top: -6px; width: 44px; height: 12px; margin-left: -22px; background: rgba(255, 255, 255, .55); transform: rotate(-4deg); z-index: 2; }
.pt-image, .pt-photo .ticket-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
/* album.css は狭い幅で絵柄を大きくするが、写真の窓の中では小さいまま。 */
.pt-photo .ticket-art { padding: 8px 9px; aspect-ratio: auto; }
.pt-photo .ticket-art-service { font-size: 10px; }
.pt-photo .ticket-art-title { font-size: 11px; -webkit-line-clamp: 2; }
.pt-image[hidden], .pt-photo .ticket-art[hidden] { display: none; }
.pt-play { position: absolute; right: 4px; bottom: 4px; z-index: 2; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 9px; font-weight: 700; }
.pt-body { min-width: 0; flex: 1; display: grid; gap: 6px; }
.pt-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pt-admit { font-weight: 800; font-size: 10px; letter-spacing: .3em; color: var(--gold); }
.pt-service { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #666; color: #fff; font-size: 11px; font-weight: 800; }
.pt-service--youtube { background: #e00000; }
.pt-service--netflix { background: #e50914; }
.pt-service--amazon_prime { background: #1f9fd6; }
.pt-service--disney_plus { background: #3d6ee0; }
.pt-title { margin: 0; font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pt-info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.85rem; font-weight: 700; color: var(--sub); }
.pt-info b { display: block; font-size: 9px; letter-spacing: .2em; color: var(--gold); }
/* 作品評価・一緒に見るおすすめ度の2段（docs/design/album-ticket/mypage-ticket-stub.html の B） */
.pt-block { display: grid; gap: 2px; }
.pt-block + .pt-block { padding-top: 8px; border-top: 1px solid #eadcc1; }
.pt-block-label { font-size: 11px; font-weight: 800; color: var(--sub); }
.pt-block-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pt-block-num { font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--ink); }
.pt-block-count { font-size: 10px; color: #8a7a5a; white-space: nowrap; }
.pt-block-none { font-size: 10px; color: #8a7a5a; }
.pt-block-you { display: flex; align-items: baseline; gap: 6px; font-size: 10px; color: #8a7a5a; }
.pt-block-you-num { font-size: 11px; font-weight: 800; color: var(--ink); }
.pt-block-you .pt-stars { font-size: 9px; }
.pt-stars { position: relative; display: inline-block; font-size: 12px; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.pt-stars::before { content: "★★★★★"; color: #e0d3b9; }
.pt-stars i { position: absolute; left: 0; top: 0; overflow: hidden; font-style: normal; color: #d08c07; }
.pt-stars i::before { content: "★★★★★"; }

@media (max-width: 640px) {
  .pt { flex-direction: column; }
  .pt-main { flex-direction: column; align-items: stretch; gap: 10px; padding: 0 0 12px; border-radius: 14px 14px 0 0;
    -webkit-mask: radial-gradient(circle 12px at 0 100%, #0000 98%, #000) bottom left/51% 100% no-repeat, radial-gradient(circle 12px at 100% 100%, #0000 98%, #000) bottom right/51% 100% no-repeat; }
  .pt-photo { width: auto; height: 118px; margin: 0; border-radius: 14px 14px 0 0; box-shadow: none; transform: none; }
  .pt-photo .ticket-art { padding: 14px 16px; }
  .pt-photo .ticket-art-service { font-size: 13px; }
  .pt-photo .ticket-art-title { font-size: 18px; }
  .pt-photo::before { display: none; }
  .pt-body { padding: 0 14px; }
  .pt-title { font-size: 1rem; }
  .pt-stub { width: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; border-left: 0; border-top: 3px dashed var(--line); border-radius: 0 0 14px 14px;
    -webkit-mask: radial-gradient(circle 12px at 0 0, #0000 98%, #000) top left/51% 100% no-repeat, radial-gradient(circle 12px at 100% 0, #0000 98%, #000) top right/51% 100% no-repeat; }
  .pt-block + .pt-block { padding-top: 0; border-top: 0; }
}
