:root { --bg:#101014; --fg:#e8e6e3; --mut:#8a8a93; --acc:#fb355e; --card:#191920; --line:#2a2a33; }
* { box-sizing: border-box; }
body.ph { margin:0; background:var(--bg); color:var(--fg); font:16px/1.6 system-ui,-apple-system,"Noto Sans TC",sans-serif; }
a { color:var(--acc); text-decoration:none; }
a:hover { text-decoration:underline; }
.ph-head { display:flex; gap:20px; align-items:center; max-width:760px; margin:32px auto 8px; padding:0 16px; }
.ph-cover { width:140px; height:140px; border-radius:12px; object-fit:cover; }
.ph-head-text h1 { margin:0 0 4px; font-size:28px; }
.ph-tag { color:var(--mut); margin:0 0 10px; }
.ph-main { max-width:760px; margin:16px auto 48px; padding:0 16px; display:flex; flex-direction:column; gap:14px; }
.ph-ep { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:18px 20px; }
.ph-ep h1, .ph-ep h2 { margin:0 0 6px; font-size:20px; line-height:1.4; }
.ph-ep h2 a { color:var(--fg); }
.ph-meta { color:var(--mut); font-size:14px; margin:0 0 12px; }
audio { width:100%; }
.ph-desc { margin-top:14px; overflow-wrap:anywhere; }
.ph-desc img { max-width:100%; }
.ph-foot { text-align:center; color:var(--mut); padding:24px 0 40px; font-size:14px; }

/* admin */
.ph-admin { max-width:900px; margin:0 auto; padding:24px 16px; }
.ph-admin-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.ph-admin-head h1 { font-size:22px; margin:0; }
.ph-btn { background:var(--card); color:var(--fg); border:1px solid var(--line); border-radius:8px; padding:8px 14px; cursor:pointer; font-size:14px; }
.ph-btn:hover { border-color:var(--acc); }
.ph-btn.ph-on { background:var(--acc); border-color:var(--acc); color:#fff; }
.ph-btn.ph-danger { color:#ff6b6b; }
.ph-card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:22px; display:flex; flex-direction:column; gap:12px; max-width:640px; margin:0 auto; }
.ph-card h1,.ph-card h2 { margin:0; font-size:20px; }
label { display:flex; flex-direction:column; gap:4px; font-size:14px; color:var(--mut); }
input,textarea,select { background:var(--bg); border:1px solid var(--line); color:var(--fg); border-radius:8px; padding:8px 10px; font:inherit; }
input:focus,textarea:focus { outline:1px solid var(--acc); }
.ph-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.ph-check { flex-direction:row; align-items:center; gap:8px; }
.ph-table { width:100%; border-collapse:collapse; background:var(--card); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.ph-table th,.ph-table td { text-align:left; padding:10px 12px; border-bottom:1px solid var(--line); font-size:14px; }
.ph-table th { color:var(--mut); font-weight:500; }
.ph-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ph-err { color:#ff6b6b; min-height:1em; margin:4px 0 0; font-size:14px; }
.ph-progress { height:8px; background:var(--bg); border-radius:4px; overflow:hidden; }
.ph-progress > div { height:100%; width:0; background:var(--acc); transition:width .2s; }
fieldset { border:1px solid var(--line); border-radius:8px; display:flex; flex-direction:column; gap:10px; }
@media (max-width:560px){ .ph-grid{grid-template-columns:1fr} .ph-head{flex-direction:column;text-align:center} }
.ph-preview { background: var(--bg); border: 1px dashed var(--line); border-radius: 8px; padding: 14px; }
.ph-ep-art { display:block; margin:0 auto 14px; width:200px; height:200px; }

/* linktree landing */
.ph-tree { background: linear-gradient(180deg, #14141b 0%, #101014 40%, #0e0e12 100%); }
.ph-tree-main { max-width: 640px; margin: 0 auto; padding: 40px 16px 60px; text-align: center; }
.ph-tree-avatar { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; border: 3px solid var(--line); box-shadow: 0 6px 30px rgba(0,0,0,.45); }
.ph-tree-main h1 { margin: 18px 0 4px; font-size: 26px; }
.ph-tree-bio { color: var(--fg); opacity: .85; margin: 14px auto 0; max-width: 480px; white-space: pre-line; }
.ph-tree-links { display: flex; flex-direction: column; gap: 12px; margin: 26px auto 8px; max-width: 440px; }
.ph-link-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px; color: var(--fg); font-weight: 500; transition: transform .12s ease, border-color .12s ease; }
.ph-link-btn:hover { border-color: var(--acc); transform: translateY(-1px); text-decoration: none; }
.ph-link-icon { font-size: 18px; }
.ph-tree-eps { margin-top: 34px; text-align: left; }
.ph-tree-eps h2 { font-size: 17px; color: var(--mut); margin: 0 0 12px; }
.ph-more-btn { display: block; text-align: center; background: transparent; border: 1px dashed var(--line); border-radius: 999px; padding: 12px; margin-top: 14px; color: var(--fg); }
.ph-more-btn:hover { border-color: var(--acc); text-decoration: none; }
.ph-foot { margin-top: 28px; }

/* admin preview phone */
.ph-phone { width: 390px; max-width: 100%; margin: 12px auto; border: 10px solid #2a2a33; border-radius: 36px; overflow: hidden; height: 720px; background: var(--bg); }
.ph-phone iframe { width: 100%; height: 100%; border: 0; }
.ph-link-row { display: grid; grid-template-columns: 52px 1fr 2fr 64px auto auto; gap: 6px; align-items: center; }
@media (max-width: 620px) { .ph-link-row { grid-template-columns: 44px 1fr 1.4fr; } .ph-link-row .lk-sort, .ph-link-row .lk-save, .ph-link-row .lk-del { grid-column: span 1; } }
.ph-ep-card { display: flex; gap: 14px; align-items: center; }
.ph-ep-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; box-shadow: 0 2px 12px rgba(0,0,0,.35); }
.ph-ep-info { min-width: 0; flex: 1; }
.ph-ep-info h2, .ph-ep-info h3 { margin: 0 0 4px; }
.ph-ep audio { margin-top: 10px; }
.ph-thumb-sm { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; display: block; }
