/* ============================================================================
   play.css — 玩家入口（play，D-3）的樣式（2026-09-28，第 87 輪 P9 前端）
   配色沿用 ~/.claude/shared/common-styles.md：米色底 #f5f0e8、卡片白底、金棕 #d4a574 強調、主文字 #374151。
   ============================================================================ */
:root {
    --bg: #f5f0e8;
    --card: #ffffff;
    --accent: #d4a574;
    --text: #374151;
    --muted: #9ca3af;
    --line: #e5e7eb;
    --danger: #b91c1c;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans TC", sans-serif; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

.pl-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px;
    background: var(--card); border-bottom: 2px solid var(--accent); position: sticky; top: 0; z-index: 5; }
.pl-brand { font-size: 20px; font-weight: 700; letter-spacing: 3px; }
.pl-nav { display: flex; gap: 18px; align-items: center; }
.pl-nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.pl-user { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.pl-user strong { color: var(--text); }

.pl-main { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }
.pl-main h1 { font-size: 24px; font-weight: 700; letter-spacing: 4px; text-align: center; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.pl-main h2 { font-size: 18px; font-weight: 600; border-left: 4px solid var(--accent); padding-left: 10px; margin: 28px 0 12px; }
.pl-msg { color: var(--muted); text-align: center; padding: 30px 0; }
.pl-err { color: var(--danger); background: #fff5f5; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 14px; margin: 12px 0; }

.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pl-card { position: relative; background: var(--card); border-radius: 12px; overflow: hidden; cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06); transition: transform .12s; }
.pl-card:hover { transform: translateY(-2px); }
.pl-cover { height: 130px; background: linear-gradient(135deg, #e9dcc9, #d4a574); background-size: cover; background-position: center; }
.pl-card-body { padding: 12px 14px 14px; }
.pl-card-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-badge { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #f3e9db; color: #8a5a1e; margin-right: 6px; }
.pl-badge.adult { background: #fde2e2; color: var(--danger); }
.pl-mask { position: absolute; inset: 0; background: rgba(60, 50, 40, .88); color: #fff; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px; padding: 12px; text-align: center; font-size: 13px; }

.pl-detail { background: var(--card); border-radius: 12px; padding: 28px; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); position: relative; }
.pl-detail .pl-cover { height: 220px; border-radius: 8px; margin-bottom: 18px; }
.pl-detail-title { font-size: 22px; font-weight: 700; margin: 0 0 8px; }
.pl-meta { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.pl-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.pl-btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 8px; padding: 9px 18px; font-size: 14px; cursor: pointer; }
.pl-btn:hover { filter: brightness(.95); }
.pl-btn.secondary { background: var(--card); color: var(--text); border-color: var(--line); }
.pl-btn.secondary.on { border-color: var(--accent); color: var(--accent); }
.pl-btn:disabled { opacity: .5; cursor: not-allowed; }

.pl-form { background: var(--card); border-radius: 12px; padding: 28px; max-width: 460px; margin: 0 auto; box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.pl-form label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.pl-form input { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.pl-form .pl-btn { margin-top: 16px; width: 100%; }
.pl-note { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.6; }

.pl-list { list-style: none; padding: 0; margin: 0; background: var(--card); border-radius: 12px; overflow: hidden; }
.pl-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pl-list li:last-child { border-bottom: 0; }
.pl-list .t { font-size: 12px; color: var(--muted); }

.pl-foot { text-align: center; font-size: 12px; color: #6b7280; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 40px; }
