/* === 麻豆傳媒映畫官方 · 官方認證增強層 v1 ===
   純 CSS 繪製，不依賴任何圖片資源。深色 + 鎏金，與站點既有主題一致。 */

#ogTop {
  position: relative;
  z-index: 55;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 1. 官方公告條 ---------- */
#ogBar {
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
  background: linear-gradient(90deg, #150e04 0%, #2c1f0a 48%, #150e04 100%);
  border-bottom: 1px solid rgba(214, 175, 100, 0.3);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.5);
}
#ogBar .ogb-tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 0 12px;
  background: linear-gradient(180deg, #f0d493, #b8892c);
  color: #241a06;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
#ogBar .ogb-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8c2413;
  box-shadow: 0 0 0 0 rgba(140, 36, 19, 0.8);
  animation: ogPulse 1.9s ease-out infinite;
}
@keyframes ogPulse {
  0% { box-shadow: 0 0 0 0 rgba(140, 36, 19, 0.85); }
  70% { box-shadow: 0 0 0 7px rgba(140, 36, 19, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 36, 19, 0); }
}
#ogBar .ogb-view {
  flex: 1 1 auto;
  position: relative;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
#ogBar .ogb-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: ogMar 34s linear infinite;
}
#ogBar .ogb-track > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 58px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: #f2e2ba;
}
#ogBar .ogb-track b {
  color: #f6d98f;
  font-weight: 700;
}
#ogBar .ogb-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(214, 175, 100, 0.55);
}
@keyframes ogMar {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  #ogBar .ogb-track { animation: none; }
}

/* ---------- 2. 官方認證資訊欄 ---------- */
#ogCert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 0;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(22, 16, 7, 0.97), rgba(8, 7, 5, 0.92));
  border-bottom: 1px solid rgba(214, 175, 100, 0.14);
  backdrop-filter: blur(6px);
}
#ogCert .ogc-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  white-space: nowrap;
  font-size: 11.5px;
  line-height: 1.4;
}
#ogCert .ogc-sep {
  width: 1px;
  height: 13px;
  background: linear-gradient(180deg, transparent, rgba(214, 175, 100, 0.34), transparent);
}
#ogCert .ogc-k {
  color: rgba(206, 172, 106, 0.78);
  letter-spacing: 0.12em;
  font-size: 10.5px;
}
#ogCert .ogc-v {
  color: #f0e0b6;
  font-weight: 600;
  letter-spacing: 0.03em;
}
#ogCert .ogc-v.gold { color: #f4d78d; }
#ogCert .ogc-check {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  #ogCert { padding: 7px 8px; gap: 5px 0; }
  #ogCert .ogc-cell { padding: 0 9px; font-size: 10.5px; }
  #ogCert .ogc-k { font-size: 9.5px; letter-spacing: 0.08em; }
  #ogCert .ogc-sep { display: none; }
}

/* ---------- 3. 品牌「官方」徽章（疊在 logo 圓右下角） ---------- */
.og-vb {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #fbeec0, #cfa244 55%, #a67726);
  box-shadow: 0 0 0 1.6px #0a0907, 0 2px 7px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.og-vb svg { width: 9px; height: 9px; display: block; }

/* 品牌名旁的「官方」小標 */
.og-brandtag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 5px 1.5px;
  border: 1px solid rgba(216, 178, 104, 0.55);
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(240, 212, 147, 0.2), rgba(184, 137, 44, 0.1));
  color: #f2d489;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.35;
  vertical-align: 1px;
  white-space: nowrap;
}

/* ---------- 4. 頁腳官方聲明 ---------- */
#ogFoot {
  position: relative;
  margin-top: 0;
  padding: 26px 16px 34px;
  text-align: center;
  border-top: 1px solid rgba(214, 175, 100, 0.18);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(184, 137, 44, 0.09), transparent 62%),
    linear-gradient(180deg, #0a0906, #050504);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  color: #9a8e74;
  font-size: 11.5px;
  line-height: 1.95;
}
#ogFoot .ogf-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #f2e3bd;
}
#ogFoot .ogf-brand .ogf-en {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(214, 175, 100, 0.72);
}
#ogFoot .ogf-rule {
  width: 46px;
  height: 1px;
  margin: 13px auto 15px;
  background: linear-gradient(90deg, transparent, rgba(214, 175, 100, 0.6), transparent);
}
#ogFoot .ogf-note {
  max-width: 620px;
  margin: 0 auto;
  color: #a3977d;
}
#ogFoot .ogf-note b { color: #e8d5a8; font-weight: 600; }
#ogFoot .ogf-warn {
  max-width: 620px;
  margin: 9px auto 0;
  color: #b99a6a;
}
#ogFoot .ogf-copy {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(214, 175, 100, 0.1);
  color: #7e7460;
  font-size: 11px;
  letter-spacing: 0.04em;
}
#ogFoot .ogf-copy span { color: #948a72; }

/* ---------- 5. 頂欄品牌字微調（加了「官方」後保持呼吸感） ---------- */
@media (min-width: 640px) {
  header .wrap > a.flex.shrink-0 > span.hidden.leading-tight > span:first-child {
    letter-spacing: 0.12em;
  }
}
