/* TMA Times admin and printable paper: dark operator shell around a fixed-size Japanese newspaper. */

.times-admin { max-width: 1440px; }
.times-readonly { color: var(--gold); font: 700 .66rem 'JetBrains Mono', monospace; letter-spacing: .16em; }
.times-controls { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.times-controls h2 { width: 100%; margin: 0; color: var(--gold); font-size: .76rem; letter-spacing: .14em; }
.times-controls label { display: grid; gap: 5px; color: var(--text-muted); font-size: .68rem; letter-spacing: .08em; }
.times-controls input { color-scheme: dark; min-width: 165px; padding: 9px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); }
.times-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.times-status { width: 100%; margin: 0; color: var(--text-dim); font-size: .72rem; }
.times-status.is-error { color: #ff9b96; }
.times-status.is-ok { color: var(--success, #2a8b5a); }
.times-preview-panel { border: 1px solid var(--border); background: #09090d; padding: 14px; overflow: hidden; }
.times-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.times-preview-head h2 { margin: 0; color: var(--text-muted); font-size: .72rem; letter-spacing: .12em; }
.times-format-switch { display: flex; gap: 6px; }
.times-format-switch button { border: 1px solid var(--border); background: transparent; color: var(--text-muted); padding: 6px 10px; cursor: pointer; font-size: .66rem; }
.times-format-switch button.active { border-color: var(--gold); color: var(--gold); }
.times-preview-frame { position: relative; min-height: 440px; overflow: auto; display: grid; place-items: start center; padding: 18px; background: radial-gradient(circle at 50% 20%, #28241b, #060608 70%); }
.times-preview-scaler { transform-origin: top left; }

.times-sheet {
  box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden;
  color: #17130e; background-color: #eee3c5;
  background-image: repeating-linear-gradient(0deg, rgba(72,52,25,.025) 0, rgba(72,52,25,.025) 1px, transparent 1px, transparent 4px);
  border: 1px solid #8e7951; box-shadow: 0 18px 60px rgba(0,0,0,.52);
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
}
.times-sheet[data-format="x"] { width: 1200px; height: 675px; padding: 26px 34px 20px; }
.times-sheet[data-format="portrait"] { width: 1080px; height: 1350px; padding: 46px 50px 34px; }
.times-paper-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; border-top: 7px double #17130e; border-bottom: 3px double #17130e; padding: 8px 0 10px; }
.times-masthead { font-size: 50px; font-weight: 900; line-height: .9; letter-spacing: -.04em; }
.times-edition, .times-paper-date { font: 700 12px 'Noto Sans JP', sans-serif; letter-spacing: .15em; }
.times-edition { color: #875f18; }
.times-paper-date { text-align: right; }
.times-lead-block { text-align: center; border-bottom: 1px solid #796b50; padding: 12px 18px 14px; }
.times-kicker { color: #875f18; font: 900 11px 'Noto Sans JP', sans-serif; letter-spacing: .24em; }
.times-lead-block h2 { margin: 5px 0 4px; font-size: 45px; line-height: 1.15; font-weight: 900; letter-spacing: -.035em; }
.times-lead-block p { max-width: 980px; margin: 0 auto; font: 500 14px/1.65 'Noto Sans JP', sans-serif; }
.times-paper-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.3fr .8fr; gap: 26px; padding-top: 14px; }
.times-main-column, .times-side-column { min-width: 0; }
.times-main-column { display: flex; flex-direction: column; }
.times-side-column { border-left: 1px solid #796b50; padding-left: 24px; }
.times-sheet h3 { margin: 0 0 6px; border-bottom: 3px double #17130e; padding-bottom: 4px; font-size: 15px; letter-spacing: .1em; }
.times-stories { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.times-story { border-bottom: 1px solid #a99a7b; padding: 4px 0; }
.times-story b { display: block; color: #875f18; font: 900 9px 'Noto Sans JP', sans-serif; letter-spacing: .14em; }
.times-story p { margin: 1px 0 0; font-size: 13px; line-height: 1.3; font-weight: 700; }
.times-column-box { margin-top: auto; border: 2px solid #17130e; padding: 6px 10px; background: rgba(255,255,255,.18); }
.times-column-box span { font: 900 9px 'Noto Sans JP', sans-serif; letter-spacing: .12em; }
.times-column-box p { margin: 2px 0 0; font: 500 11px/1.35 'Noto Sans JP', sans-serif; }
.times-ranking { width: 100%; border-collapse: collapse; font: 700 11px 'Noto Sans JP', sans-serif; }
.times-ranking th, .times-ranking td { padding: 4px; border-bottom: 1px solid #a99a7b; text-align: right; }
.times-ranking th:nth-child(2), .times-ranking td:nth-child(2) { text-align: left; }
.times-family-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.times-clash-section { margin-top: 10px; }
.times-clash-item { border-bottom: 1px solid #a99a7b; padding: 3px 0; font: 500 9px/1.25 'Noto Sans JP', sans-serif; }
.times-clash-item b { display: block; font-size: 10px; }
.times-empty { color: #675e4f; font: 500 12px/1.6 'Noto Sans JP', sans-serif; }
/* 勢力図（拠点支配） */
.times-dominance { margin-top: 8px; }
.times-dominance-title { font-size: 9px; letter-spacing: .12em; color: #6b5b2e; margin-bottom: 3px; font-weight: 700; }
.times-dominance-bar { display: flex; height: 11px; border-radius: 3px; overflow: hidden; border: 1px solid rgba(0,0,0,.18); }
.times-dominance-bar span { display: block; }
.times-dominance-legend { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 4px; font-size: 9px; color: #3a3630; }
.times-dominance-legend span { display: inline-flex; align-items: center; gap: 3px; }
/* 今週のMVP（リーダーicon＋名前＋AP） */
.times-mvp-section { margin-top: 10px; }
.times-mvp-item { display: flex; align-items: center; gap: 6px; padding: 3px 0; border-bottom: 1px solid #a99a7b; }
.times-mvp-item:last-child { border-bottom: none; }
.times-mvp-rank { width: 13px; flex-shrink: 0; text-align: center; font: 700 10px 'Noto Sans JP', sans-serif; color: #5a564e; }
.times-mvp-avatar { width: 19px; height: 19px; flex-shrink: 0; border-radius: 50%; border: 2px solid #999; overflow: hidden; background: #d8cba8; display: inline-block; }
.times-mvp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.times-mvp-name { font-size: 11px; color: #2a2620; }
.times-mvp-fam { font-size: 9px; color: #5a564e; }
.times-mvp-pts { margin-left: auto; font-size: 12px; color: #7a2020; font-weight: 700; letter-spacing: .04em; }
.times-paper-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 2px solid #17130e; margin-top: 10px; padding-top: 5px; font: 700 9px 'Noto Sans JP', sans-serif; letter-spacing: .1em; }

.times-sheet[data-format="portrait"] .times-paper-header { padding: 14px 0 16px; }
.times-sheet[data-format="portrait"] .times-masthead { font-size: 70px; }
.times-sheet[data-format="portrait"] .times-lead-block { padding: 24px 18px 28px; }
.times-sheet[data-format="portrait"] .times-lead-block h2 { margin: 10px 0 9px; font-size: 64px; }
.times-sheet[data-format="portrait"] .times-lead-block p { font-size: 19px; }
.times-sheet[data-format="portrait"] .times-paper-body { grid-template-columns: 1.15fr .85fr; gap: 34px; padding-top: 26px; }
.times-sheet[data-format="portrait"] .times-side-column { padding-left: 30px; }
.times-sheet[data-format="portrait"] h3 { font-size: 23px; margin-bottom: 14px; }
.times-sheet[data-format="portrait"] .times-stories { grid-template-columns: 1fr; }
.times-sheet[data-format="portrait"] .times-story { padding: 12px 0; }
.times-sheet[data-format="portrait"] .times-story b { font-size: 13px; }
.times-sheet[data-format="portrait"] .times-story p { font-size: 21px; }
.times-sheet[data-format="portrait"] .times-column-box { padding: 16px 18px; }
.times-sheet[data-format="portrait"] .times-column-box span { font-size: 13px; }
.times-sheet[data-format="portrait"] .times-column-box p { font-size: 18px; }
.times-sheet[data-format="portrait"] .times-ranking { font-size: 16px; }
.times-sheet[data-format="portrait"] .times-ranking th, .times-sheet[data-format="portrait"] .times-ranking td { padding: 10px 4px; }
.times-sheet[data-format="portrait"] .times-clash-section { margin-top: 28px; }
.times-sheet[data-format="portrait"] .times-clash-item { padding: 11px 0; font-size: 15px; }
.times-sheet[data-format="portrait"] .times-clash-item b { font-size: 17px; }
.times-sheet[data-format="portrait"] .times-paper-footer { font-size: 12px; padding-top: 9px; }

@media (max-width: 720px) {
  .times-controls, .times-actions { align-items: stretch; flex-direction: column; }
  .times-controls label, .times-controls input, .times-controls .btn { width: 100%; }
  .times-preview-head { align-items: flex-start; flex-direction: column; }
  .times-preview-frame { min-height: 300px; padding: 8px; }
}
