/* subtitle track + CC menu for the deck video players (copied from safe-flow.tech assets/css/style.css) */
.video-player video::cue { background: rgba(8, 8, 8, .75); color: #fff; font-family: "Inter", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif; line-height: 1.35; }
.video-player video:lang(zh-Hant)::cue { font-family: "PingFang HK", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
.cc-btn { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px 0 9px; border: 0; border-radius: 10px; background: rgba(20, 17, 15, .62); color: #fff; font: 700 13px/1 Inter, system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity .25s ease, background .15s ease; }
.cc-btn:hover { background: rgba(20, 17, 15, .82); }
.cc-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cc-btn::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; height: 2px; border-radius: 1px; background: var(--accent); transform: scaleX(0); transition: transform .2s ease; }
.cc-btn.is-on::after { transform: scaleX(1); }
.video-player.cc-idle .cc-btn { opacity: 0; }
.video-player.cc-idle:hover .cc-btn, .video-player .cc-btn:focus-visible, .video-player .cc-btn[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .video-player.cc-idle .cc-btn { opacity: .85; } }
.cc-menu { position: absolute; top: 54px; right: 12px; z-index: 4; min-width: 172px; padding: 6px 0; border-radius: 12px; background: rgba(28, 24, 22, .94); color: #fff; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cc-menu[hidden] { display: none; }
.cc-menu-title { padding: 8px 16px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.cc-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; border: 0; background: none; color: inherit; font: 500 14px/1.2 Inter, "PingFang HK", "Noto Sans TC", system-ui, sans-serif; text-align: left; cursor: pointer; }
.cc-menu button::before { content: ""; width: 14px; height: 14px; flex: none; }
.cc-menu button[aria-checked="true"]::before { background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.cc-menu button:hover, .cc-menu button:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
@media (max-width: 600px) {
  .cc-btn { top: 8px; right: 8px; height: 28px; padding: 0 8px 0 7px; font-size: 11px; border-radius: 8px; }
  .cc-btn svg { width: 16px; height: 16px; }
  .cc-menu { top: 42px; right: 8px; min-width: 128px; padding: 4px 0; border-radius: 10px; }
  .cc-menu-title { display: none; }
  .cc-menu button { padding: 6px 12px; font-size: 13px; gap: 8px; }
