/* 認識師傅團隊 page (/hk/team, Eddie 2026-10-27, #36132), repair and cleaning on one page. Built on v2.css
 * and db.css; this file only adds the back button, the filter chips, the cleaning brand tag, the company
 * line, the hero photo, the players, the photo album and its viewer (js/team.js). */

/* the filter hides with [hidden]; the grid/flex rules below would otherwise show it again */
.in-team-page [data-type][hidden], .in-team-page [data-team-section][hidden] { display: none !important; }

.tm-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 14px 8px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; }
.tm-back::before { content: ""; width: 9px; height: 9px; border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: rotate(45deg); }

.tm-filter { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tm-filter a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-weight: 800; text-decoration: none; }
.tm-filter a[aria-current="true"] { background: var(--cyan); border-color: var(--cyan); color: #04121a; }

.top .logo .tm-brand { margin-left: 8px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; font-weight: 800; white-space: nowrap; }

.tm-who { margin-top: 18px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.tm-shot { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--bg-2); }
.tm-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* one hero still at a time: with no filter the repair one stands for both */
body[data-team-type="all"] .tm-shot[data-type="cleaning"] { display: none; }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #0d2a24, #1b1440) center / cover no-repeat; }
.yt button, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt button { display: grid; place-items: center; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.55)); color: var(--ink); cursor: pointer; }
.yt button span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 99px; background: rgba(6, 10, 19, 0.8); border: 1px solid rgba(255, 255, 255, 0.3); font-weight: 800; }
.yt button span::before { content: ""; border-left: 14px solid var(--cyan); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.tm-main { margin-top: 22px; }

.tm-players { margin-top: 22px; display: grid; gap: 18px; }
.tm-player { margin: 0; display: grid; gap: 10px; }
.tm-player figcaption { font-weight: 800; font-size: 17px; }

/* album blocks (Eddie 2026-10-28): 上門現場 / 工場培訓 / 細節, each a label in the site's cyan, a line, a big lead photo */
.tm-group { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.tm-group:first-of-type { margin-top: 8px; }
.tm-group h3 { margin: 0; font: 700 14px/1 var(--mono); letter-spacing: 0.16em; color: var(--cyan); }
.tm-group > p { margin: 8px 0 0; color: var(--ink-2); }
.tm-album { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tm-album li:first-child { grid-column: span 2; }
.tm-album a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--bg-2); }
.tm-album li:first-child a { aspect-ratio: 4 / 3; }
.tm-album img { display: block; width: 100%; height: 100%; object-fit: cover; }

.tm-view { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(3, 6, 12, 0.94); color: var(--ink); }
.tm-view[open] { display: grid; grid-template-rows: 1fr auto; }
.tm-view img { width: 100%; height: 100%; object-fit: contain; min-height: 0; }
.tm-view-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--pad) calc(12px + var(--safe-b)); }
.tm-view-bar button { min-width: 64px; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); color: var(--ink); font-weight: 800; }

@media (min-width: 900px) {
  .phero.tm-hero { grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; }
  .tm-players { grid-template-columns: repeat(3, 1fr); }
  .tm-album { grid-template-columns: repeat(4, 1fr); }
  .tm-album li:first-child { grid-row: span 2; }
  .tm-album li:first-child a { aspect-ratio: auto; height: 100%; }
  .tm-main { max-width: 880px; }
}
