/* 纪录片：打开先看今天这一集，下面是全部影片。给家长看的说明收在页面最后。逻辑都在 assets/documentary.js。 */
.doc-shell { width: 100%; max-width: 1080px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) clamp(16px, 3vw, 32px) 28px !important; }
.doc-head h1 { margin: 0; color: #2b2721; font: 400 clamp(32px, 6vw, 42px)/1.25 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif; }
.doc-head p { margin: 0; color: #5f584a; font-size: 16px; }

/* 今天这一集 */
.doc-today { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0; padding: 16px 18px; background: #fffdf7; border: 1px solid #e9e0cc; border-radius: 26px; box-shadow: 0 1px 2px rgba(74, 58, 28, .06), 0 6px 18px rgba(74, 58, 28, .07); }
.doc-today-copy { flex: 1 1 240px; min-width: 0; display: grid; gap: 2px; }
.doc-today-copy small { color: #a33019; font-size: 14px; font-weight: 700; }
.doc-today-copy b { color: #2b2721; font: 400 24px/1.3 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif; overflow-wrap: anywhere; }
.doc-today-copy span { color: #5f584a; font-size: 14px; line-height: 1.5; }
#watchRecommended { flex: none; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: #c43d26; color: #fff; font: 600 17px/1 inherit; font-family: inherit; box-shadow: 0 6px 16px rgba(196, 61, 38, .28); cursor: pointer; }
#watchRecommended:hover { background: #a33019; }
#watchRecommended[disabled] { opacity: .45; cursor: default; }

/* 放映区 */
.doc-player-section { margin: 0 0 16px !important; padding: 16px !important; background: #fffdf7 !important; border: 1px solid #e9e0cc !important; border-radius: 26px !important; box-shadow: none !important; }
.doc-player-heading h2 { color: #2b2721 !important; font: 400 26px/1.3 "Star Kai", "Kaiti SC", "STKaiti", "KaiTi", serif !important; letter-spacing: 0 !important; }
.doc-player-heading span, .doc-player-heading p { color: #5f584a !important; }
#closePlayer { min-height: 44px; padding: 0 14px; border: 0 !important; border-radius: 999px; background: #f3ebd9 !important; color: #2b2721 !important; font-weight: 600; box-shadow: none !important; }
.doc-episode-picker { background: #fbf6ea !important; border-color: #e9e0cc !important; }
.doc-episode-picker label, .doc-episode-picker span { color: #5f584a !important; }
.doc-episode-picker select { min-height: 44px; height: 44px !important; border: 1.5px solid #d9cdb2 !important; color: #2b2721 !important; }
.doc-episode-nav button { min-height: 44px; border: 0 !important; border-radius: 999px !important; background: #f3ebd9 !important; color: #2b2721 !important; box-shadow: none !important; font-weight: 600; }
.doc-embed-help { color: #5f584a !important; background: transparent !important; border: 0 !important; }
.doc-embed-help a, .doc-player-actions a, .doc-player-meta a { color: #2e6ab1 !important; }
#reloadEmbed { min-height: 44px; border: 0 !important; border-radius: 999px !important; background: #f3ebd9 !important; color: #2b2721 !important; box-shadow: none !important; }
.doc-watch-guide { background: #fbf6ea !important; border-color: #e9e0cc !important; border-radius: 18px !important; }
.doc-guide-label { background: #fbe6dd !important; color: #a33019 !important; border: 0 !important; }
.doc-watch-guide h3 { color: #2b2721 !important; font-weight: 600 !important; letter-spacing: 0 !important; }
.doc-watch-guide > p { color: #5f584a !important; }
.doc-player-meta span, .doc-player-meta a { background: #fffdf7 !important; border: 1px solid #e9e0cc !important; color: #5f584a !important; box-shadow: none !important; }
.doc-watch-guide .doc-content-note { border-left-color: #b56d06 !important; background: #fbefd2 !important; color: #5f584a !important; }
.doc-player-actions button { min-height: 52px; border-radius: 999px !important; background: #c43d26 !important; box-shadow: 0 6px 16px rgba(196, 61, 38, .28) !important; }
.doc-player-actions button.is-watched { background: #e3f0dc !important; color: #2f6239 !important; box-shadow: none !important; }
.doc-player-actions a { min-height: 44px; border: 0 !important; border-radius: 999px !important; background: #f3ebd9 !important; color: #2b2721 !important; }
.doc-reader-button { min-height: 44px; border: 0 !important; border-radius: 999px !important; background: #fffdf7 !important; color: #5f584a !important; box-shadow: none !important; }
.doc-talk-guide { background: #fffdf7 !important; border-color: #e9e0cc !important; box-shadow: none !important; }
.doc-talk-guide h4 { color: #2b2721 !important; }
.doc-talk-prompts button { min-height: 44px; border: 1.5px solid #e9e0cc !important; background: #fbf6ea !important; color: #2b2721 !important; box-shadow: none !important; }

/* 片库 */
.doc-library { margin-top: 0 !important; }
.doc-section-heading { display: block !important; margin-bottom: 10px !important; }
.doc-section-heading h2 { margin: 0 !important; }
.doc-toolbar { padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; }
.doc-topic-filters { flex-wrap: nowrap !important; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.doc-topic-filters button { flex: none; min-height: 44px; padding: 0 14px !important; border: 0 !important; border-radius: 999px !important; background: #f3ebd9 !important; color: #5f584a !important; font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; transform: none !important; }
.doc-topic-filters button.active { background: #fbe6dd !important; color: #a33019 !important; box-shadow: none !important; }
.doc-more-filters { margin-top: 6px; }
.doc-more-filters > summary { min-height: 44px; padding: 10px 2px; color: #2e6ab1; font-size: 15px; font-weight: 600; cursor: pointer; }
.doc-filter-row { margin-top: 2px !important; }
.doc-filter-row label { background: #fffdf7 !important; border-color: #e9e0cc !important; color: #5f584a !important; min-height: 52px !important; font-size: 14px !important; }
.doc-filter-row input, .doc-filter-row select { height: 40px !important; background: #fbf6ea !important; color: #2b2721 !important; font-size: 16px !important; }
#matchCount { color: #8a826f !important; font-size: 14px !important; }
.doc-card { border: 1px solid #e9e0cc !important; border-radius: 18px !important; background: #fffdf7 !important; box-shadow: none !important; transform: none !important; }
.doc-card:hover { box-shadow: 0 1px 2px rgba(74, 58, 28, .06), 0 6px 18px rgba(74, 58, 28, .07) !important; }
.doc-card.is-active { border-color: #c43d26 !important; box-shadow: inset 0 0 0 1px #c43d26 !important; }
.doc-card-copy h3, .doc-card-copy b { color: #2b2721 !important; letter-spacing: 0 !important; }
.doc-empty { background: #fffdf7 !important; border-color: #e9e0cc !important; }
.doc-empty button { min-height: 48px; border-radius: 999px !important; background: #c43d26 !important; color: #fff !important; border: 0 !important; box-shadow: none !important; }

/* 给家长看 */
.doc-notes { margin-top: 18px; padding: 0 18px; background: #fffdf7; border: 1px solid #e9e0cc; border-radius: 18px; }
.doc-notes > summary { min-height: 52px; padding: 14px 0; color: #5f584a; font-size: 15px; font-weight: 600; cursor: pointer; }
.doc-notes-body { display: grid; gap: 10px; padding-bottom: 16px; color: #5f584a; font-size: 14px; line-height: 1.6; }
.doc-notes-body b { color: #2b2721; }
.doc-notes-body p { margin: 0; }
.doc-notes-body a { color: #2e6ab1; font-weight: 600; }

@media (max-width: 720px) {
  .doc-today { padding: 14px 16px; }
  #watchRecommended { width: 100%; }
  .doc-player-section { padding: 12px !important; }
  .doc-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 10px !important; }
  .doc-card { display: grid !important; grid-template-columns: 104px minmax(0, 1fr); }
  .doc-card-cover { height: auto !important; min-height: 132px; }
  .doc-card-topic { display: none !important; }
  .doc-card-mark { font-size: 32px !important; }
  .doc-card-icon { left: 10px !important; top: 10px !important; font-size: 26px !important; }
}
