/* ==========================================================
   ConcertOnly 經典微光 (Classic Refined v2) + 策略 A Sticky 副駕駛
   ========================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.classic-v2 {
  margin: 0;
  background: #f4f7fa;
  color: #1e293b;
  font-family: "Noto Sans TC", -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.classic-v2 img {
  max-width: 100%;
}

/* ----- Header ----- */
.ta-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ta-header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ta-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ta-menu-btn {
  display: none;
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #2b6cb0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.ta-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ta-logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.ta-brand-divider {
  width: 1px;
  height: 32px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.ta-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ta-brand-tagline {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a5f;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.ta-brand-sub {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.ta-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ta-post-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #1e4e8c 0%, #2b6cb0 100%);
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(30, 78, 140, 0.22);
  transition: transform 0.15s, box-shadow 0.15s;
}

.ta-post-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 78, 140, 0.3);
}

.ta-user-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  flex-wrap: wrap;
}

/* 頁首登入／會員細框膠囊（與下方卡片右邊界光學切齊） */
.ta-auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #cbd9eb;
  color: #1e4e8c;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.ta-auth-pill:hover {
  background: #f0f6ff;
  border-color: #1e4e8c;
  box-shadow: 0 2px 8px rgba(30, 78, 140, 0.12);
  text-decoration: none;
}
.ta-auth-pill--user {
  padding: 4px 11px 4px 5px;
  color: #111f30;
}
.ta-g-icon { width: 14px; height: 14px; flex-shrink: 0; }
.ta-auth-av {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.ta-auth-av--txt {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1e4e8c; color: #ffffff; font-size: 11px; font-weight: 700;
}
.ta-auth-name { max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.ta-auth-caret { font-size: 10px; color: #64748b; }
.ta-user-menu { position: relative; }
.ta-user-dropdown {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  min-width: 204px;
  background: #ffffff;
  border: 1px solid #d5e0ee;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  padding: 6px;
  display: none;
  z-index: 60;
}
.ta-user-menu.open .ta-user-dropdown { display: block; }
.ta-user-dropdown a,
.ta-user-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 11px;
  border: none;
  background: transparent;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  cursor: pointer;
}
.ta-user-dropdown a:hover,
.ta-user-dropdown button:hover {
  background: #eff6ff;
  color: #1e4e8c;
}
.ta-user-dd-sep { height: 1px; background: #e2e8f0; margin: 5px 4px; }

.ta-user-bar #toplinks {
  margin: 0;
  padding: 0 !important;
  height: auto !important;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ta-user-bar #toplinks a {
  color: #1e4e8c;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ta-user-bar #toplinks a:hover {
  text-decoration: underline;
}

.ta-user-bar .dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ta-user-bar .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  z-index: 600;
}

.ta-user-bar .dropdown.open .dropdown-menu {
  display: block;
}

.ta-user-bar .dropdown-menu li a {
  display: block;
  padding: 7px 14px;
  color: #1e293b;
  font-size: 13px;
}

.ta-user-bar .dropdown-menu li a:hover {
  background: #ebf4ff;
  text-decoration: none;
}

.ta-user-bar .dropdown-menu li.divider {
  height: 1px;
  background: #e2e8f0;
  margin: 4px 0;
}

/* Mobile Quick Nav Strip */
.ta-mobile-strip {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ta-mobile-pill {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ta-mobile-pill.active {
  background: #2b6cb0;
  color: #ffffff;
  border-color: #2b6cb0;
}

/* ----- Compact Top Search Strip (不佔第一屏，把舞台還給海報) ----- */
.ta-hero-banner-wrap {
  max-width: 1140px;
  width: 100%;
  margin: 12px auto 0;
  padding: 0 20px;
}

.ta-hero-banner {
  position: relative;
  background: #ffffff;
  border: 1px solid #d5dfe9;
  border-bottom: 2px solid #14263d;
  border-radius: 3px;
  padding: 13px 18px;
  color: #14263d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ta-hero-search-col {
  position: relative;
  z-index: 1;
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ta-hero-search-form {
  display: flex;
  gap: 6px;
  background: #ffffff;
  padding: 4px;
  border-radius: 9px;
  border: 1px solid #cbdcf0;
  box-shadow: 0 2px 8px rgba(30, 58, 95, 0.06);
}

.ta-hero-search-form:focus-within {
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.14);
}

.ta-hero-search-form input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 14.5px;
  color: #1e293b;
  font-family: inherit;
}

.ta-hero-search-form input:focus { outline: none; }
.ta-hero-search-form input::placeholder { color: #94a3b8; }

.ta-hero-search-btn {
  appearance: none;
  border: none;
  background: #1e4e8c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.ta-hero-search-btn:hover { background: #163a6b; }

.ta-hero-quick-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}

.ta-quick-chip {
  appearance: none;
  border: 1px solid #cbdcf0;
  background: #ffffff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}

.ta-quick-chip:hover,
.ta-quick-chip.active {
  background: #1e4e8c;
  color: #ffffff;
  border-color: #1e4e8c;
  font-weight: 700;
}

.ta-hero-right-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.ta-hero-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #475569;
}

.ta-hero-metrics strong {
  color: #142c4c;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  margin: 0 2px;
}

.ta-discover-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #1e4e8c;
  background: #ffffff;
  border: 1px solid #cbdcf0;
  padding: 3px 11px;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.15s;
}

.ta-discover-pill:hover {
  background: #1e4e8c;
  border-color: #1e4e8c;
  color: #ffffff;
}

/* ----- Main 2-Column Layout ----- */
.ta-wrap {
  max-width: 1140px;
  width: 100%;
  margin: 16px auto 36px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 262px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

/* ----- Left Sidebar & Sticky Copilot (策略 A) ----- */
.ta-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ta-sticky-copilot {
  position: sticky;
  top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 28px);
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.ta-side-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ta-side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: #1e3a5f;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.ta-side-title .ta-inst-icon { width: 24px; height: 24px; flex-shrink: 0; }
.ta-sec-title .ta-inst-icon  { width: 28px; height: 28px; flex-shrink: 0; }
.ta-medal-svg { width: 20px; height: 26px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

.ta-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ta-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s;
}

.ta-nav-item a:hover,
.ta-nav-item.active a {
  background: #ebf4ff;
  color: #1e4e8c;
  font-weight: 700;
}

.ta-badge-new {
  font-size: 10px;
  font-weight: 700;
  color: #2b6cb0;
  background: #dbeafe;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Sidebar Stats — 經典藍銀紙感「實體音樂會票根」＋ 互動 7 日折線 ＋ 瑞士刻度千萬進度條 */
.ta-ticket {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border: 1px solid #c5d6e8;
  border-radius: 4px;
  margin-bottom: 11px;
  color: #14263d;
  box-shadow: 0 2px 8px rgba(20, 38, 61, 0.05);
}

.ta-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  background: #edf3fa;
  border-bottom: 1px solid #d4e1ef;
  border-radius: 3px 3px 0 0;
}

.ta-ticket-admit {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1e4e8c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ta-stat-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
}
.ta-stat-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 2.5px rgba(16, 185, 129, 0.22);
  animation: taLivePulse 2.6s ease-in-out infinite;
}
@keyframes taLivePulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25); opacity: 1; }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.04); opacity: 0.72; }
}

.ta-ticket-body {
  padding: 10px 12px 9px;
}

.ta-ticket-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.ta-ticket-serial {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ta-stat-total-val {
  font-size: 26px;
  font-weight: 800;
  color: #0f1f33;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 2px 0 7px;
  font-variant-numeric: tabular-nums;
}

.ta-stat-spark {
  position: relative;
  margin: 2px 0 0;
}
.ta-spark-tip {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: #14263d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s ease;
  font-variant-numeric: tabular-nums;
  z-index: 4;
}
.ta-spark-tip.show { opacity: 1; }
.ta-spark-hit { cursor: crosshair; }

/* 7 日趨勢折線進場描線動畫 */
.ta-spark-line {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: taSparkDraw 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}
.ta-spark-area {
  opacity: 0;
  animation: taFadeIn 0.75s ease 0.85s forwards;
}
.ta-spark-dot {
  opacity: 0;
  animation: taFadeIn 0.35s ease 1.35s forwards;
}
@keyframes taSparkDraw { to { stroke-dashoffset: 0; } }
@keyframes taFadeIn { to { opacity: 1; } }

/* 同一個瀏覽器 Session 第二次起不再重複播放票根進場動畫，直接靜態呈現 */
.ta-ticket-static .ta-spark-line { stroke-dashoffset: 0 !important; animation: none !important; }
.ta-ticket-static .ta-spark-area,
.ta-ticket-static .ta-spark-dot { opacity: 1 !important; animation: none !important; }
.ta-ticket-static .ta-stat-mile-fill { transition: none !important; }

.ta-stat-spark-cap {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

/* 顯眼實體票根撕裂虛線 ＋ 左右半圓剪票缺口 */
.ta-ticket-perf {
  position: relative;
  height: 18px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.ta-ticket-perf span {
  display: block;
  width: 100%;
  border-top: 1.5px dashed #b2c6dc;
}
.ta-ticket-perf::before,
.ta-ticket-perf::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #c5d6e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}
.ta-ticket-perf::before { left: -9px; clip-path: inset(0 0 0 46%); }
.ta-ticket-perf::after { right: -9px; clip-path: inset(0 46% 0 0); }

.ta-ticket-stub {
  padding: 4px 12px 11px;
}

.ta-stat-mile-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 5px;
}
.ta-stat-mile-head strong { color: #1e4e8c; font-variant-numeric: tabular-nums; }
.ta-stat-mile-track {
  height: 5px;
  background: #dde7f3;
  border-radius: 1px;
  overflow: hidden;
}
.ta-stat-mile-fill {
  height: 100%;
  background: linear-gradient(90deg, #14263d 0%, #1e4e8c 72%, #2b6cb0 100%);
  border-radius: 1px;
  transition: width 2.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.ta-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94a3b8;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.ta-ticket-barcode {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid #e2eaf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ta-ticket-bars {
  flex: 1;
  height: 11px;
  opacity: 0.42;
  background-image: repeating-linear-gradient(
    to right,
    #14263d 0 2px, transparent 2px 4px,
    #14263d 4px 5px, transparent 5px 8px,
    #14263d 8px 11px, transparent 11px 13px,
    #14263d 13px 14px, transparent 14px 16px,
    #14263d 16px 18px, transparent 18px 21px
  );
}
.ta-ticket-since {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ta-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 4px;
  font-size: 13.5px;
  color: #475569;
  border-bottom: 1px dashed #e2e8f0;
}

.ta-stat-row:last-child { border-bottom: none; }
.ta-stat-row strong { color: #1e293b; font-variant-numeric: tabular-nums; }

/* Sidebar Ranking */
.ta-rank-item {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}
.ta-rank-item:last-of-type { border-bottom: none; }

.ta-rank-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.ta-rank-medal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #1e3a5f;
}

.ta-rank-clicks { font-weight: 700; color: #2b6cb0; font-variant-numeric: tabular-nums; }

.ta-rank-link {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.45;
  margin-bottom: 5px;
}
.ta-rank-link:hover { color: #2b6cb0; }

.ta-rank-bar-track { height: 5px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 4px; }
.ta-rank-bar-fill  { height: 100%; background: linear-gradient(90deg, #4088b8, #2b6cb0); border-radius: 999px; }
.ta-rank-date      { font-size: 11.5px; color: #64748b; }

.ta-more-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  color: #2b6cb0;
  text-decoration: none;
}

/* ----- Sticky Copilot: Mini Calendar ----- */
.ta-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ta-cal-month { font-size: 13.5px; font-weight: 700; color: #1e3a5f; }
.ta-cal-nav { display: flex; gap: 4px; }
.ta-cal-nav button {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.ta-cal-nav button:hover { border-color: #2b6cb0; color: #2b6cb0; }

.ta-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.ta-cal-dow  { font-size: 11px; font-weight: 600; color: #94a3b8; padding: 2px 0 4px; }

.ta-cal-day {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 7px;
  padding: 4px 0 5px;
  font-size: 12px;
  color: #94a3b8;
  position: relative;
  cursor: default;
  font-variant-numeric: tabular-nums;
}
.ta-cal-day.has-events { color: #1e3a5f; font-weight: 700; background: #ebf4ff; cursor: pointer; }
.ta-cal-day.has-events::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2b6cb0;
}
.ta-cal-day.has-events:hover { border-color: #2b6cb0; background: #dbeafe; }
.ta-cal-day.selected { background: #1e4e8c !important; color: #ffffff !important; }
.ta-cal-day.selected::after { background: #fde047; }

.ta-cal-quick { display: flex; gap: 6px; margin-top: 10px; }
.ta-cal-qbtn {
  flex: 1;
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: 7px;
  cursor: pointer;
}
.ta-cal-qbtn.active { background: #2b6cb0; border-color: #2b6cb0; color: #ffffff; }

/* ----- Sticky Copilot: Facet Filters ----- */
.ta-facet-group { margin-bottom: 10px; }
.ta-facet-group:last-child { margin-bottom: 0; }
.ta-facet-label { font-size: 11.5px; font-weight: 700; color: #64748b; margin-bottom: 6px; display: block; }
.ta-facet-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.ta-fchip {
  appearance: none;
  border: 1px solid #d5dee8;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s;
}
.ta-fchip:hover { border-color: #2b6cb0; color: #1e4e8c; }
.ta-fchip.active { background: #1e4e8c; border-color: #1e4e8c; color: #ffffff; font-weight: 600; }
.ta-fchip-cnt { font-size: 10.5px; opacity: 0.72; margin-left: 3px; }

/* ----- Sticky Copilot: My Pocket Schedule ----- */
.ta-pocket-card {
  background: linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
  border: 1px solid #e6d5b8;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(180, 120, 14, 0.07);
}
.ta-pocket-empty { font-size: 12.5px; color: #64748b; line-height: 1.6; margin: 0; }
/* 口袋場次存在哪裡的說明（沒登入：只在這台裝置；Google 登入：存到帳號） */
.ta-pocket-note { font-size: 12.5px; color: #64748b; line-height: 1.65; margin: 10px 0 0; padding-top: 9px; border-top: 1px dashed #e6d5b8; }
.ta-pocket-note a { color: #1e4e8c; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.ta-pocket-note--ok { color: #047857; }
.ta-pocket-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }

.ta-pocket-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  background: #ffffff;
  border: 1px solid #ede5d8;
  border-radius: 8px;
  font-size: 12.5px;
  transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.2s ease;
}
@keyframes taPocketReveal {
  0%   { opacity: 0; transform: translateY(10px); filter: blur(3px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.ta-pocket-item.ta-pocket-enter {
  animation: taPocketReveal 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ta-pocket-item.ta-pocket-leaving {
  opacity: 0;
  transform: translateX(-8px);
}
@keyframes taPocketBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.24); }
  100% { transform: scale(1); }
}
.ta-pocket-bump {
  display: inline-block;
  animation: taPocketBump 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ta-fly-note {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1e4e8c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(30, 78, 140, 0.42), 0 0 0 4px rgba(30, 78, 140, 0.14);
  will-change: transform, opacity;
}
.ta-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #14263d 0%, #1e4e8c 65%, #2b6cb0 100%);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 1400;
  pointer-events: none;
  will-change: transform;
}
.ta-pocket-item-title { font-weight: 600; color: #1e293b; text-decoration: none; line-height: 1.35; display: block; }
.ta-pocket-item-title:hover { color: #2b6cb0; }
.ta-pocket-item-date { font-size: 11px; color: #64748b; margin-top: 2px; }
.ta-pocket-conflict {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
}
.ta-pocket-rm {
  appearance: none;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.ta-pocket-rm:hover { color: #14263d; }

.ta-pocket-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ta-pocket-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e3a5f;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 6px;
  border-radius: 7px;
  cursor: pointer;
}
.ta-pocket-btn:hover { background: #ebf4ff; border-color: #2b6cb0; }
.ta-pocket-btn--primary { background: #1e4e8c; border-color: #1e4e8c; color: #ffffff; }
.ta-pocket-btn--primary:hover { background: #163a6b; }

.ta-host-cta {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fa 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 12.5px;
  color: #1e3a5f;
}
.ta-host-cta strong { display: block; font-size: 13.5px; margin-bottom: 4px; }
.ta-host-cta a {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #2b6cb0;
  padding: 5px 12px;
  border-radius: 6px;
  text-decoration: none;
}

/* ----- Right Main Column ----- */
.ta-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ta-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ta-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #e2e8f0;
}

.ta-sec-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Announcements */
.ta-ann-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ta-ann-row  { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; padding: 6px 8px; border-radius: 8px; }
.ta-ann-row:hover { background: #f8fafc; }
.ta-ann-date { font-size: 12.5px; color: #64748b; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ta-ann-type { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: #e0f2fe; color: #0369a1; white-space: nowrap; }
.ta-ann-type--top { background: #fef3c7; color: #b45309; }
.ta-ann-link { color: #1e293b; text-decoration: none; font-weight: 500; }
.ta-ann-link:hover { color: #2b6cb0; text-decoration: underline; }

/* Venue Archive List (齊整固定日期欄 ＋ 雙層標題/演出單位，拒絕歪斜擠壓) */
.ta-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.ta-archive-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 20px;
  gap: 14px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: background 0.14s;
}
.ta-archive-row:last-child { border-bottom: none; }
.ta-archive-row:hover { background: #f8fafc; }
.ta-archive-date {
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ta-archive-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ta-archive-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e3a5f;
  line-height: 1.42;
}
.ta-archive-row:hover .ta-archive-title { color: #2b6cb0; }
.ta-archive-unit {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.35;
}
.ta-archive-arrow { color: #94a3b8; font-size: 15px; text-align: right; }
.ta-archive-row:hover .ta-archive-arrow { color: #2b6cb0; }
@media (max-width: 600px) {
  .ta-archive-row { grid-template-columns: 1fr; gap: 6px; padding: 11px 8px; }
  .ta-archive-date { width: fit-content; }
  .ta-archive-arrow { display: none; }
}

/* Featured Posters Rail (大圖不裁切 ＋ 左右淡出遮罩 ＋ 慣性拖曳滑動) */
.ta-rail-wrap {
  position: relative;
}
.ta-rail-wrap::before,
.ta-rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 10px;
  width: 44px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ta-rail-wrap::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 15%, rgba(255, 255, 255, 0) 100%);
}
.ta-rail-wrap::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 15%, rgba(255, 255, 255, 0) 100%);
}
.ta-rail-wrap.can-left::before { opacity: 1; }
.ta-rail-wrap.can-right::after { opacity: 1; }

.ta-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding: 6px 2px 12px;
  -webkit-overflow-scrolling: touch;
  align-items: flex-start;
  scrollbar-width: thin;
  cursor: grab;
}
.ta-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
  user-select: none;
}

.ta-rail-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ta-rail-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ta-rail-card:hover .ta-rail-poster {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(30, 78, 140, 0.18);
}

.ta-rail-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
  display: block;
}

.ta-rail-caption {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ta-rail-date { font-size: 11.5px; color: #64748b; font-variant-numeric: tabular-nums; }
.ta-rail-nav { display: flex; gap: 6px; }
.ta-rail-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
}
.ta-rail-btn:hover { background: #ebf4ff; border-color: #2b6cb0; color: #2b6cb0; }

/* Sort Tabs & Active Filters */
.ta-sort-tabs { display: flex; align-items: center; gap: 4px; background: #f1f5f9; padding: 3px; border-radius: 8px; }
.ta-sort-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.ta-sort-btn.active { background: #ffffff; color: #1e4e8c; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }

.ta-active-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12.5px; color: #475569; }
.ta-active-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ebf4ff;
  color: #1e4e8c;
  border: 1px solid #bfdbfe;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Concert List Cards — 270px 大圖海報主軸，完整不裁切 */
.ta-list { display: flex; flex-direction: column; gap: 18px; }

.ta-card {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  align-items: start;
  position: relative;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.ta-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(30, 78, 140, 0.1);
}

.ta-card-thumb {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.09);
  display: block;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.ta-card:hover .ta-card-thumb {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}
.ta-card-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.ta-card:hover .ta-card-thumb img {
  transform: scale(1.014);
}

/* 收藏按鈕微彈跳 Spring 回饋 */
@keyframes taHeartPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.18); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.ta-save-btn.just-saved {
  animation: taHeartPop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 節目單卡片捲動交錯浮現（僅在 JS 掛上 ta-reveal-ready 後啟動） */
.ta-reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.18s, box-shadow 0.18s;
}
.ta-reveal-ready.ta-revealed {
  opacity: 1;
  transform: translateY(0);
}

.ta-card-body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.ta-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.ta-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.42;
}
.ta-card-title a { color: #1e3a5f; text-decoration: none; }
.ta-card-title a:hover { color: #2b6cb0; text-decoration: underline; }

.ta-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13.5px;
  color: #475569;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #edf2f7;
  align-items: center;
}

.ta-tag-free {
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 999px;
}

.ta-upcoming-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ffffff;
  background: #2b6cb0;
}
.ta-upcoming-pill.today { background: #dc2626; }
.ta-upcoming-pill.tomorrow { background: #ea580c; }
.ta-upcoming-pill.this-week { background: #059669; }

.ta-card-desc {
  margin: 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ta-card-readmore {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #2b6cb0;
  text-decoration: none;
}
.ta-card-readmore:hover { text-decoration: underline; }

.ta-save-btn {
  appearance: none;
  border: 1px solid #cfdbe8;
  background: #ffffff;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.ta-save-btn:hover { border-color: #1e4e8c; color: #1e4e8c; background: #f2f6fc; }
.ta-save-btn.saved { background: #e8f0fa; border-color: #93b4db; color: #143666; }

/* Tasteful Typographic Fallback Posters (5 雅緻音樂廳色系) */
.typo-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  max-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
  text-align: left;
}
.typo-poster::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.typo-poster--0 { background: linear-gradient(155deg, #1b365d 0%, #2b547e 100%); color: #f8fafc; }
.typo-poster--1 { background: linear-gradient(155deg, #2d3748 0%, #1a202c 100%); color: #f8fafc; }
.typo-poster--2 { background: linear-gradient(155deg, #4a2533 0%, #2a141d 100%); color: #fdf2f8; }
.typo-poster--3 { background: linear-gradient(155deg, #1f3d36 0%, #132722 100%); color: #ecfdf5; }
.typo-poster--4 { background: linear-gradient(155deg, #3b3252 0%, #221c33 100%); color: #f5f3ff; }
.typo-poster--5 { background: linear-gradient(155deg, #4a3520 0%, #2b1d10 100%); color: #fef3c7; }
.typo-poster--6 { background: linear-gradient(155deg, #163a4a 0%, #0d222d 100%); color: #e0f2fe; }

.typo-poster--mini {
  padding: 9px 8px;
  max-height: none;
  height: 100%;
  border-radius: 6px;
}
.typo-poster--mini::after {
  inset: 4px;
  border-color: rgba(255, 255, 255, 0.22);
}
.typo-poster--mini .typo-poster-kicker {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.typo-poster--mini .typo-poster-title {
  font-size: 11px;
  line-height: 1.32;
  -webkit-line-clamp: 4;
  padding: 4px 0;
}
.typo-poster--mini .typo-poster-meta {
  font-size: 9px;
  padding-top: 4px;
  border-top-color: rgba(255, 255, 255, 0.2);
}

.typo-poster-kicker { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.72; }
.typo-poster-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: auto 0;
  padding: 8px 0;
}
.typo-poster-meta {
  font-size: 11.5px;
  opacity: 0.82;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Pagination */
.ta-pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.ta-page-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.ta-page-btn.active { background: #2b6cb0; border-color: #2b6cb0; color: #ffffff; }
.ta-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Loading Spinner */
.ta-loading { text-align: center; padding: 50px 20px; color: #64748b; }
.ta-spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border: 4px solid #e2e8f0;
  border-top-color: #2b6cb0;
  border-radius: 50%;
  animation: taSpin 0.8s linear infinite;
}
@keyframes taSpin { to { transform: rotate(360deg); } }

/* Mobile Drawer & Floating Copilot FAB */
.ta-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  z-index: 1000;
}

.ta-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: #f4f7fa;
  z-index: 1010;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 0 32px rgba(0, 0, 0, 0.22);
}

.ta-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  font-size: 15px;
}

.ta-drawer-close {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ta-mobile-drawer-body {
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.ta-mobile-fab {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 800;
  appearance: none;
  border: none;
  background: #1e4e8c;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.3);
  cursor: pointer;
  white-space: nowrap;
}

.ta-toast {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  z-index: 1200;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

/* ----- Responsive Breakpoints ----- */
/* ----- Reusable Subpage Components — 方向 C 柏林愛樂瑞士建築排印（去 AI 藍條圓角框） ----- */
.ta-sub-hero {
  position: relative;
  background: #ffffff;
  border: 1px solid #d5dfe9;
  border-bottom: 2px solid #14263d;
  color: #14263d;
  border-radius: 3px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ta-sub-hero h1 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1f33;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}
.ta-sub-hero h1 .ta-inst-icon { width: 28px; height: 28px; }
.ta-sub-hero p { margin: 0; font-size: 13.8px; color: #475569; line-height: 1.7; }

/* 方向 C 建築排印抬頭 ＋ 方向 B 真實 3 張海報扇形展開舞台 */
.ta-arch-hero {
  background: #ffffff;
  border: 1px solid #d5dfe9;
  border-radius: 3px;
  padding: 24px 26px 18px;
}
.ta-arch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 216px auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1.5px solid #14263d;
}
.ta-arch-grid--nofan {
  grid-template-columns: minmax(0, 1fr) auto;
}
.ta-arch-copy h1 {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1f33;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.28;
}
.ta-arch-copy h1 .ta-inst-icon { width: 26px; height: 26px; flex-shrink: 0; }
.ta-arch-sub {
  margin: 0 0 8px;
  font-size: 13.8px;
  color: #334155;
  line-height: 1.65;
}
.ta-arch-meta {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}
.ta-arch-meta strong { color: #14263d; }

/* 方向 B：本專區 3 張真實海報微傾扇形疊放（移入優雅展開） */
.ta-poster-fan {
  position: relative;
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ta-poster-fan-card {
  position: absolute;
  width: 82px;
  aspect-ratio: 2 / 3;
  border-radius: 3px;
  overflow: hidden;
  background: #f1f5f9;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
  transition: transform 0.58s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, box-shadow 0.3s ease;
  display: block;
}
.ta-poster-fan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ta-poster-fan--n3 .ta-poster-fan-card:nth-child(1) { transform: translateX(-44px) rotate(-8deg) scale(0.92); z-index: 1; }
.ta-poster-fan--n3 .ta-poster-fan-card:nth-child(2) { transform: translateY(-3px) scale(1.02); z-index: 3; }
.ta-poster-fan--n3 .ta-poster-fan-card:nth-child(3) { transform: translateX(44px) rotate(8deg) scale(0.92); z-index: 2; }
.ta-poster-fan--n3:hover .ta-poster-fan-card:nth-child(1) { transform: translateX(-60px) translateY(2px) rotate(-12deg) scale(0.96); }
.ta-poster-fan--n3:hover .ta-poster-fan-card:nth-child(2) { transform: translateY(-9px) scale(1.07); box-shadow: 0 14px 24px rgba(15, 23, 42, 0.22); }
.ta-poster-fan--n3:hover .ta-poster-fan-card:nth-child(3) { transform: translateX(60px) translateY(2px) rotate(12deg) scale(0.96); }

.ta-poster-fan--n2 .ta-poster-fan-card:nth-child(1) { transform: translateX(-26px) rotate(-6deg) scale(0.96); z-index: 1; }
.ta-poster-fan--n2 .ta-poster-fan-card:nth-child(2) { transform: translateX(26px) rotate(6deg) scale(1.0); z-index: 2; }
.ta-poster-fan--n2:hover .ta-poster-fan-card:nth-child(1) { transform: translateX(-40px) rotate(-10deg) scale(1.0); }
.ta-poster-fan--n2:hover .ta-poster-fan-card:nth-child(2) { transform: translateX(40px) rotate(10deg) scale(1.04); }

.ta-poster-fan--n1 .ta-poster-fan-card:nth-child(1) { transform: rotate(-3deg); }
.ta-poster-fan--n1:hover .ta-poster-fan-card:nth-child(1) { transform: translateY(-5px) rotate(0deg) scale(1.05); }

.ta-poster-fan-card:hover {
  z-index: 5 !important;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.26);
}

/* 方向 C 建築大字報號 */
.ta-arch-count {
  text-align: right;
  padding-left: 18px;
  border-left: 1px solid #e2e8f0;
  line-height: 1;
  min-width: 82px;
}
.ta-arch-count-val {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1e4e8c;
  font-variant-numeric: tabular-nums;
}
.ta-arch-count-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 5px;
  white-space: nowrap;
}

/* 方向 C 細線專區導覽列 */
.ta-arch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.ta-arch-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}
.ta-arch-tab {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 2px 13px;
  border-right: 1px solid #e2e8f0;
  transition: color 0.15s ease;
}
.ta-arch-tab:first-child { padding-left: 0; }
.ta-arch-tab:last-child { border-right: none; }
.ta-arch-tab:hover { color: #0f1f33; }
.ta-arch-tab.active {
  color: #1e4e8c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.ta-arch-action {
  font-size: 13px;
  font-weight: 600;
  color: #1e4e8c;
  text-decoration: none;
  white-space: nowrap;
}
.ta-arch-action:hover { text-decoration: underline; }

/* 柏林愛樂式・卡片內就地展開快速預覽 */
.ta-card-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ta-card-foot .ta-card-readmore {
  margin-top: 0;
  padding-top: 0;
}
.ta-inline-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #14263d;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.16s ease;
}
.ta-inline-btn:hover { border-color: #14263d; background: #f8fafc; }
.ta-inline-btn[aria-expanded="true"] { background: #14263d; color: #ffffff; border-color: #14263d; }
.ta-inline-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.ta-inline-drawer.open { grid-template-rows: 1fr; }
.ta-inline-drawer-inner { overflow: hidden; }
.ta-inline-box {
  margin-top: 10px;
  padding: 10px 13px;
  background: #f8fafc;
  border-left: 2px solid #1e4e8c;
  font-size: 13px;
  line-height: 1.75;
  color: #334155;
}
.ta-inline-box strong { color: #14263d; }

@media (max-width: 960px) {
  .ta-arch-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .ta-poster-fan {
    grid-column: 1 / -1;
    height: 126px;
    order: 3;
    margin-top: 6px;
  }
}
@media (max-width: 540px) {
  .ta-arch-hero { padding: 18px 16px 14px; }
  .ta-arch-grid { grid-template-columns: 1fr; gap: 12px; }
  .ta-arch-count {
    text-align: left;
    padding-left: 0;
    border-left: none;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .ta-arch-count-val { font-size: 32px; }
}
/* 3 張海報進場自然開扇 */
.ta-poster-fan.ta-fan-intro .ta-poster-fan-card {
  transform: translateX(0) translateY(8px) rotate(0deg) scale(0.9) !important;
  opacity: 0;
}
.ta-poster-fan-card {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ta-poster-fan-card, .ta-inline-drawer, .ta-stat-mile-fill, .ta-card-thumb, .ta-card-thumb img, .ta-reveal-ready, .ta-pocket-item {
    transition: none !important;
    animation: none !important;
  }
  .ta-spark-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .ta-spark-area, .ta-spark-dot { opacity: 1 !important; animation: none !important; }
  .ta-stat-live i { animation: none !important; }
}

.ta-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.ta-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #2b6cb0;
  border-radius: 10px;
  padding: 12px 14px;
}
.ta-kpi-label { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.ta-kpi-val { font-size: 22px; font-weight: 700; color: #1e3a5f; font-variant-numeric: tabular-nums; }

.ta-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}
.ta-field { display: flex; flex-direction: column; gap: 5px; }
.ta-field label { font-size: 12.5px; font-weight: 700; color: #334155; }
.ta-input, .ta-select, .ta-textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ta-input:focus, .ta-select:focus, .ta-textarea:focus {
  outline: none;
  border-color: #2b6cb0;
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.14);
}
.ta-textarea { min-height: 150px; resize: vertical; line-height: 1.65; }

.ta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.ta-btn:hover { border-color: #2b6cb0; color: #1e4e8c; background: #f8fafc; }
.ta-btn--primary { background: #1e4e8c; border-color: #1e4e8c; color: #ffffff; }
.ta-btn--primary:hover { background: #163a6b; color: #ffffff; }

.ta-city-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ta-city-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d5dee8;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
}
.ta-city-chip:hover { border-color: #2b6cb0; color: #1e4e8c; }
.ta-city-chip.active { background: #1e4e8c; border-color: #1e4e8c; color: #ffffff; font-weight: 600; }

.ta-rank-row-card {
  display: grid;
  grid-template-columns: 64px 92px minmax(0, 1fr) 128px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ta-rank-row-card:hover { border-color: #93c5fd; box-shadow: 0 6px 18px rgba(30, 78, 140, 0.08); }
.ta-rank-badge-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; color: #1e3a5f; font-size: 16px; }
.ta-rank-thumb { width: 92px; aspect-ratio: 2/3; border-radius: 7px; overflow: hidden; background: #f8fafc; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; }
.ta-rank-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ta-rank-clicks-col { text-align: right; }
.ta-rank-clicks-big { font-size: 20px; font-weight: 800; color: #1e4e8c; font-variant-numeric: tabular-nums; }

.ta-news-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
  background: #ffffff;
  scroll-margin-top: 20px;
}
.ta-news-card h3 { margin: 0 0 8px; font-size: 17.5px; color: #1e3a5f; line-height: 1.45; }
.ta-news-meta { font-size: 12.5px; color: #64748b; margin-bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; }
.ta-news-body { font-size: 14.5px; color: #334155; line-height: 1.8; word-break: break-word; }
.ta-news-img { display: block; max-height: 280px; width: auto; border-radius: 8px; margin: 0 0 14px; border: 1px solid #e2e8f0; }

.ta-timeline { display: flex; flex-direction: column; gap: 14px; border-left: 3px solid #bfdbfe; padding-left: 18px; margin-left: 6px; }
.ta-tl-item { position: relative; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 15px 18px; }
.ta-tl-item::before { content: ""; position: absolute; left: -26px; top: 18px; width: 11px; height: 11px; border-radius: 50%; background: #2b6cb0; border: 2px solid #ffffff; box-shadow: 0 0 0 2px #bfdbfe; }
.ta-tl-date { display: inline-block; font-size: 12px; font-weight: 700; color: #1e4e8c; background: #dbeafe; padding: 2px 10px; border-radius: 999px; margin-bottom: 6px; }
.ta-tl-title { margin: 4px 0 8px; font-size: 16px; font-weight: 700; color: #1e293b; }
.ta-tl-body { font-size: 14px; color: #475569; line-height: 1.75; }
.ta-tl-body ul { margin: 6px 0 0; padding-left: 20px; }

@media (max-width: 960px) {
  .ta-header-inner { padding: 10px 14px; }
  /* 寬度不夠時 logo 等比例縮小，不讓右邊按鈕蓋住 */
  .ta-logo-link { flex-shrink: 1; min-width: 0; }
  .ta-logo-img { height: auto; width: auto; max-width: 100%; max-height: 50px; }
  .ta-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .ta-brand-divider, .ta-brand-copy { display: none; }
  .ta-mobile-strip { display: flex; }
  .ta-hero-banner-wrap { padding: 0 14px; margin-top: 10px; }
  .ta-hero-banner { padding: 11px 12px; gap: 10px; }
  .ta-hero-right-meta { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .ta-wrap { grid-template-columns: 1fr; padding: 0 14px; margin-top: 12px; }
  .ta-sidebar { display: none; }
  .ta-mobile-fab { display: inline-flex; align-items: center; gap: 6px; }
  .ta-section { padding: 15px; }
  .ta-rail-card { flex: 0 0 168px; }
  .ta-card { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .ta-card-thumb { max-width: 360px; margin: 0 auto; }
  .ta-card-thumb .typo-poster { max-height: 240px; }
  .ta-rank-row-card { grid-template-columns: 44px 72px minmax(0, 1fr); }
  .ta-rank-clicks-col { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid #f1f5f9; }
}

@media (max-width: 540px) {
  /* 手機頁首：右邊按鈕縮短字樣，讓 logo 保持原本大小 */
  .ta-header-inner { padding: 10px 14px; gap: 10px; }
  .ta-brand-group { gap: 10px; }
  .ta-logo-img { max-height: 38px; }
  .ta-header-right { gap: 8px; }
  .ta-post-cta { padding: 6px 10px; font-size: 12px; }
  .ta-cta-long, .ta-auth-long { display: none; }
  /* 已登入：有頭像就只留頭像；舊會員沒有頭像，名字縮短 */
  .ta-auth-av ~ .ta-auth-name { display: none; }
  .ta-auth-name { max-width: 48px; }
  .ta-hero-search-btn { padding: 7px 14px; font-size: 13px; }
  .ta-ann-row { flex-wrap: wrap; gap: 4px 8px; }
  .ta-card-title { font-size: 16.5px; }
}
