/* 創辦人個人頁 /authors/reno-du（YouTube 頻道頁結構、RenoLab 視覺語言）。
   頂欄／選單／頁尾樣式由 articles-index.css、site-menu.css、site-footer.css 提供；
   文章卡 .public-article / .public-thumb 沿用 articles-index.css。 */
:root { --rp-brand: #ec633e; --rp-brand-dark: #bd4b25; --rp-ink: #303033; --rp-muted: #77777d; --rp-line: #f0e6e0; --rp-nav-h: 48px; --rp-tabs-h: 46px; }
.rp-page { width: min(100%, 1200px); margin: 0 auto; padding: 14px 18px 64px; color: var(--rp-ink); }
.rp-page *, .rp-page *::before, .rp-page *::after { box-sizing: border-box; }
.rp-page h1, .rp-page h2, .rp-page h3, .rp-page p, .rp-page ul, .rp-page ol { margin: 0; padding: 0; }
.rp-page ul, .rp-page ol { list-style: none; }
.rp-page a { color: inherit; text-decoration: none; }

/* ── 頻道頭 ── */
.rp-banner { position: relative; height: 160px; overflow: hidden; border-radius: 14px; background: linear-gradient(115deg, #0e1424 0%, #17223d 52%, #3a2c3c 74%, #a9482d 100%); }
.rp-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 100%, rgba(236, 99, 62, .42), transparent 70%); }
.rp-banner-mark { position: absolute; z-index: 1; left: 20px; bottom: 6px; color: rgba(255, 255, 255, .09); font-size: 64px; font-weight: 950; line-height: 1; letter-spacing: .06em; user-select: none; }
.rp-head { display: flex; align-items: flex-start; gap: 20px; padding: 0 4px; }
.rp-avatar { position: relative; z-index: 2; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 96px; height: 96px; margin: -48px 0 0 16px; overflow: hidden; color: #fff; font-size: 42px; font-weight: 950; background: var(--rp-brand); border: 4px solid #fff; border-radius: 999px; box-shadow: 0 6px 18px rgba(48, 48, 51, .16); }
.rp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rp-id { min-width: 0; padding-top: 14px; }
.rp-id h1 { color: #202023; font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.2; letter-spacing: 0; }
.rp-name-en { margin-left: 6px; color: var(--rp-muted); font-size: .66em; font-weight: 800; white-space: nowrap; }
.rp-role { margin-top: 5px; color: #8b8584; font-size: 14px; font-weight: 700; line-height: 1.4; }
.rp-intro { max-width: 760px; margin-top: 14px; color: #55555b; font-size: 15px; font-weight: 560; line-height: 1.75; }
.rp-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rp-stats a { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 13px; color: var(--rp-brand-dark); font-size: 13px; font-weight: 850; line-height: 1.2; border: 1px solid #f3d2c3; border-radius: 999px; background: #fff7f2; }
.rp-stats a:hover { border-color: var(--rp-brand); }
.rp-wall { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 16px; }
.rp-wall-label { color: #a39b98; font-size: 12px; font-weight: 850; }
.rp-wall ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rp-wall li { color: #9a9390; font-size: 12.5px; font-weight: 750; letter-spacing: .02em; }

/* ── 分頁籤（黏在頂欄下方） ── */
.rp-tabs { position: sticky; top: var(--rp-nav-h); z-index: 7; margin: 22px -18px 0; padding: 0 18px; background: #fff; border-bottom: 1px solid var(--rp-line); }
.rp-tabs-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rp-tabs-inner::-webkit-scrollbar { display: none; }
.rp-tab { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; height: var(--rp-tabs-h); padding: 0 14px; color: #77777d; font-size: 14px; font-weight: 850; white-space: nowrap; }
.rp-tab:hover { color: var(--rp-ink); }
.rp-tab.is-active { color: var(--rp-brand-dark); }
.rp-tab.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--rp-brand); }
.rp-tab:focus-visible { outline: 3px solid rgba(236, 99, 62, .28); outline-offset: -3px; border-radius: 8px; }

/* ── 各區 ── */
.rp-section { scroll-margin-top: calc(var(--rp-nav-h) + var(--rp-tabs-h) + 12px); padding-top: 34px; }
.rp-section > h2 { margin-bottom: 16px; color: #202023; font-size: 22px; font-weight: 900; line-height: 1.25; letter-spacing: 0; }
.rp-section-note { margin: -8px 0 16px; color: var(--rp-muted); font-size: 13px; font-weight: 600; }

/* 影片縮圖與卡片（YouTube 式） */
.rp-vcard { display: grid; gap: 8px; align-content: start; min-width: 0; color: var(--rp-ink); }
.rp-vcard[hidden] { display: none; }
.rp-vthumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #1b2236; }
.rp-vthumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.rp-vbadge { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 3px 8px; overflow: hidden; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; border-radius: 6px; background: rgba(14, 20, 36, .78); }
.rp-play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 54px; height: 54px; margin: -27px 0 0 -27px; color: #fff; border-radius: 999px; background: rgba(236, 99, 62, .94); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease; }
.rp-play::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.rp-vcard:hover .rp-vthumb img, .rp-vcard:focus-visible .rp-vthumb img { transform: scale(1.05); }
.rp-vcard:hover .rp-play, .rp-vcard:focus-visible .rp-play { opacity: 1; transform: scale(1); }
.rp-vcard:focus-visible { outline: 3px solid rgba(236, 99, 62, .35); outline-offset: 4px; border-radius: 12px; }
.rp-vtitle { display: -webkit-box; overflow: hidden; color: #26262a; font-size: 16px; font-weight: 800; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.rp-vcard:hover .rp-vtitle { color: var(--rp-brand-dark); }
.rp-vmeta { color: #8b8584; font-size: 12.5px; font-weight: 650; line-height: 1.4; }
@media (hover: none) { .rp-play { opacity: .92; transform: scale(.8); } }


/* 影片格與篩選 */
.rp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.rp-chip { min-height: 34px; padding: 6px 14px; color: #55555b; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; border: 1px solid #ebe3df; border-radius: 999px; background: #f6f3f1; }
.rp-chip:hover { border-color: var(--rp-brand); }
.rp-chip.is-active { color: #fff; border-color: #202023; background: #202023; }
.rp-chip:focus-visible { outline: 3px solid rgba(236, 99, 62, .3); outline-offset: 2px; }
.rp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }

/* 演講色塊縮圖 */
.rp-talkthumb { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; color: #fff; background: linear-gradient(120deg, #0e1424 0%, #1d2a4a 60%, #a9482d 130%); }
.rp-talkthumb.v1 { background: linear-gradient(120deg, #1b1424 0%, #3a2a4a 55%, #d85d3a 135%); }
.rp-talkthumb.v2 { background: linear-gradient(120deg, #ec633e 0%, #bd4b25 55%, #2a1d33 140%); }
.rp-talk-host { font-size: clamp(20px, 2.2vw, 26px); font-weight: 950; line-height: 1.2; letter-spacing: .01em; }
.rp-talk-label { align-self: flex-start; padding: 3px 8px; font-size: 11.5px; font-weight: 800; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.rp-talkthumb::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 140px; height: 140px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.rp-talk-host, .rp-talk-label { position: relative; z-index: 1; }
.rp-talk:hover .rp-talkthumb { filter: brightness(1.08); }

/* 媒體報導 */
.rp-cover { display: grid; gap: 6px; margin-bottom: 14px; padding: 22px 24px; color: #fff; border-radius: 14px; background: linear-gradient(115deg, #0e1424 0%, #1d2a4a 55%, #b24f30 120%); }
.rp-cover-media { color: #ffc9b6; font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.rp-cover-title { font-size: clamp(20px, 2.6vw, 28px); font-weight: 950; line-height: 1.3; }
.rp-cover-date { color: rgba(255, 255, 255, .72); font-size: 13px; font-weight: 700; }
.rp-press { border-top: 1px solid var(--rp-line); }
.rp-press-item { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto auto; gap: 6px 16px; align-items: baseline; padding: 14px 4px; border-bottom: 1px solid var(--rp-line); }
.rp-press-media { color: #202023; font-size: 14px; font-weight: 900; }
.rp-press-title { color: #4a4a50; font-size: 15px; font-weight: 650; line-height: 1.5; }
.rp-press-date { color: #9a9390; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.rp-press-go { color: var(--rp-brand-dark); font-size: 13px; font-weight: 850; white-space: nowrap; }
a.rp-press-item:hover { background: #fffaf7; }
a.rp-press-item:hover .rp-press-title { color: var(--rp-brand-dark); }
a.rp-press-item:focus-visible { outline: 3px solid rgba(236, 99, 62, .3); outline-offset: -3px; }

/* 經歷時間軸（由新到舊） */
.rp-timeline { position: relative; display: grid; gap: 0; }
.rp-timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 0 0 26px; }
.rp-year { position: relative; color: var(--rp-brand); font-size: 30px; font-weight: 950; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.rp-timeline li::before { content: ""; position: absolute; left: 111px; top: 8px; bottom: -8px; width: 2px; background: #f0dcd2; }
.rp-timeline li:last-child::before { display: none; }
.rp-timeline li::after { content: ""; position: absolute; left: 106px; top: 8px; width: 12px; height: 12px; border: 3px solid #fff; border-radius: 999px; background: var(--rp-brand); box-shadow: 0 0 0 1px #f0c3b0; }
.rp-timeline li { position: relative; }
.rp-timeline .rp-events { display: grid; gap: 7px; padding-left: 22px; }
.rp-events li { display: block; padding: 0; color: #3d3d42; font-size: 15px; font-weight: 600; line-height: 1.6; }
.rp-events li::before, .rp-events li::after { display: none; }

/* 審稿文章 */
.rp-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 28px; border-top: 1px solid #f3eeee; padding-top: 12px; }
.rp-more { display: inline-flex; margin-top: 14px; color: var(--rp-brand-dark); font-size: 14px; font-weight: 900; }
.rp-more:hover { text-decoration: underline; }

/* 聯絡 */
.rp-contact { margin-top: 44px; padding: 22px 24px; border: 1px solid #f3d2c3; border-radius: 14px; background: #fff7f2; }
.rp-contact h2 { color: #202023; font-size: 18px; font-weight: 900; }
.rp-contact p { margin-top: 6px; color: #55555b; font-size: 14px; font-weight: 600; line-height: 1.7; }
.rp-contact a { color: var(--rp-brand-dark); font-weight: 900; word-break: break-all; }
.rp-contact a:hover { text-decoration: underline; }

/* ── 燈箱 ── */
html.rp-lock, html.rp-lock body { overflow: hidden; }
.rp-lightbox[hidden], .rp-filters[hidden] { display: none; }
.rp-lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 10, 18, .88); }
.rp-lb-inner { position: relative; display: grid; gap: 12px; width: min(100%, 1040px); }
.rp-lb-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #000; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.rp-lb-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rp-lb-close { justify-self: end; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #fff; font: inherit; font-size: 24px; line-height: 1; cursor: pointer; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .12); }
.rp-lb-close:hover { background: rgba(255, 255, 255, .24); }
.rp-lb-close:focus-visible, .rp-lb-yt:focus-visible { outline: 3px solid #ffb59d; outline-offset: 3px; }
.rp-lb-yt { justify-self: center; color: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rp-lb-yt:hover { color: #fff; }

/* ── 平板 ── */
@media (max-width: 960px) {
  .rp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── 手機 ── */
@media (max-width: 640px) {
  :root { --rp-nav-h: 46px; --rp-tabs-h: 44px; }
  .rp-page { padding: 10px 16px 56px; }
  .rp-banner { height: 110px; border-radius: 12px; }
  .rp-banner-mark { left: 14px; font-size: 42px; }
  .rp-head { gap: 14px; padding: 0; }
  .rp-avatar { width: 72px; height: 72px; margin: -36px 0 0 10px; font-size: 32px; border-width: 3px; }
  .rp-id { padding-top: 10px; }
  .rp-id h1 { font-size: 22px; }
  .rp-role { font-size: 13px; }
  .rp-intro { margin-top: 14px; font-size: 14.5px; }
  .rp-stats a { min-height: 30px; padding: 5px 11px; font-size: 12.5px; }
  .rp-tabs { margin: 18px -16px 0; padding: 0 12px; }
  .rp-tab { padding: 0 12px; font-size: 14px; }
  .rp-section { padding-top: 28px; }
  .rp-section > h2 { font-size: 20px; }
  .rp-grid { grid-template-columns: 1fr; gap: 24px; }
  .rp-press-item { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 13px 2px; }
  .rp-press-media { grid-column: 1; }
  .rp-press-date { grid-column: 2; grid-row: 1; }
  .rp-press-title { grid-column: 1; }
  .rp-press-go { grid-column: 2; grid-row: 2; }
  .rp-cover { padding: 18px 18px; }
  .rp-timeline li { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; }
  .rp-year { font-size: 22px; }
  .rp-timeline li::before { left: 69px; }
  .rp-timeline li::after { left: 64px; }
  .rp-timeline .rp-events { padding-left: 16px; }
  .rp-events li { font-size: 14.5px; }
  .rp-articles { grid-template-columns: 1fr; }
  .rp-contact { padding: 18px; }
  .rp-lightbox { padding: 12px; }
  /* 2026-10-29 Reno：手機一屏要看到約 8 支影片 → 兩欄小卡（縮圖＋兩行標題＋單行來源） */
  .rp-grid.rp-grid-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .rp-grid-videos .rp-vcard { gap: 4px; }
  .rp-grid-videos .rp-vthumb { border-radius: 8px; }
  .rp-grid-videos .rp-vbadge { left: 4px; bottom: 4px; max-width: calc(100% - 8px); padding: 1px 5px; font-size: 10px; border-radius: 4px; }
  .rp-grid-videos .rp-play { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .rp-grid-videos .rp-vtitle { font-size: 12.5px; font-weight: 750; line-height: 1.3; }
  .rp-grid-videos .rp-vmeta { overflow: hidden; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
  .rp-filters { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-vthumb img, .rp-play { transition: none; }
}
