/* AppleCMS current-version compatibility layer. */
html { scroll-padding-top: 74px; }
#header.header { position: fixed !important; top: 0; right: 0; left: 0; z-index: 999 !important; }
.footer-tags-wrap { padding-top: 14px; line-height: 1.9; }
.footer-tags-wrap a { display: inline-block; margin: 0 12px 4px 0; color: #777; }
.footer-links a { margin: 0 10px; }
.verify-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.verify-row .verify-input { width: 140px; height: 37px; box-sizing: border-box; }
.verify-row .mac_verify_img { width: 100px; height: 37px; object-fit: cover; cursor: pointer; }
.comment-panel { margin-bottom: 15px; }
.comment-panel .comment-shell { padding: 18px; }
.comment-panel .comment-title { margin: 0 0 14px; font-size: 20px; }
.comment-panel .mac_comment:empty { min-height: 80px; }
.comment-item-list .floor { counter-increment: none; }
.resource-box .episodes-list { max-height: 360px; overflow-y: auto; overscroll-behavior: contain; }
.play_area, .play_area iframe, .play_area video, .play_area #MacPlayer { max-width: 100%; }
.info-wrap p span { display: inline-block; max-width: calc(100% - 58px); overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis; }
body.history-open { overflow: hidden; }
.recent-history-toggle { position: fixed; right: 18px; bottom: 86px; z-index: 1000; width: 58px; height: 58px; display: grid; place-content: center; padding: 0; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #1e88e5; box-shadow: 0 8px 25px rgba(0,0,0,.25); line-height: 1.05; text-align: center; }
.recent-history-toggle span { font-size: 15px; }.recent-history-toggle b { font-size: 12px; }
.recent-history-overlay[hidden] { display: none; }
.recent-history-overlay { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 16px; opacity: 0; background: rgba(0,0,0,.56); transition: opacity .18s ease; }
.recent-history-overlay.open { opacity: 1; }
.recent-history-dialog { width: min(430px,100%); max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 22px 65px rgba(0,0,0,.3); transform: translateY(16px); transition: transform .18s ease; }
.recent-history-overlay.open .recent-history-dialog { transform: none; }
.recent-history-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #eee; }
.recent-history-dialog h3 { margin: 0; font-size: 18px; }
.recent-history-close { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; font-size: 26px; }
.recent-history-list { counter-reset: recent; margin: 0; padding: 5px 16px; overflow-y: auto; list-style: none; }
.recent-history-list li { counter-increment: recent; display: grid; grid-template-columns: 24px minmax(0,1fr) 70px; align-items: center; gap: 10px; min-height: 52px; border-bottom: 1px solid #eee; }
.recent-history-list li::before { content: counter(recent); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #8b95a1; font-size: 11px; font-weight: 700; }
.recent-history-list li:nth-child(-n+3)::before { background: #1e88e5; }
.recent-history-list a { min-width: 0; overflow: hidden; color: #333; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.recent-history-list .recent-visit-t { color: #888; font-size: 11px; text-align: right; white-space: nowrap; }
.recent-history-list .recent-visit-empty { grid-template-columns: 1fr; place-items: center; min-height: 100px; color: #888; }
.recent-history-list .recent-visit-empty::before { display: none; }
@media (max-width: 767px) {
  body { margin-top: 62px !important; }
  #header.header { min-height: 62px; }
  .header .search-container { display: block !important; }
  .resource-box .episodes-list { max-height: 300px; }
  .play-container { width: 100% !important; padding-right: 0 !important; padding-left: 0 !important; overflow: hidden; }
  .play-container .play_area.embed-responsive { box-sizing: content-box !important; width: 100% !important; height: 0 !important; padding-bottom: calc(56.25% + 25px) !important; overflow: hidden !important; }
  .play-container .play_area > iframe, .play-container .play_area > video, .play-container .play_area > #MacPlayer, .play-container .play_area > .MacPlayer { position: absolute !important; top: 0; left: 0; width: 100% !important; height: calc(100% - 25px) !important; }
  .recent-history-toggle { right: 10px; bottom: 76px; width: 54px; height: 54px; }
  .comment-panel .comment-shell { padding: 14px; }
}
