/* Seoul Subway Live (English) — style.css 위에 조금만 */
.en-main { padding-top: 4px; }
.en-search .chip-row { margin-top: 8px; }
.en-sug { margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.en-sug-item { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.en-sug-item:first-child { border-top: 0; }
.en-sug .meta { padding: 10px 12px; margin: 0; }
.en-st h1 { margin: 0; font-size: 24px; }
.en-st > .meta { margin: 4px 0; }
.en-lines { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.en-line { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.en-pop { display: flex; flex-wrap: wrap; gap: 6px; }
.en-pop .chip { text-decoration: none; }
.en-train { cursor: default; }
.en-lang { text-decoration: none; display: inline-flex; align-items: center; }
.en-how p { margin: 6px 0; line-height: 1.6; }
.en-foot { text-align: left; }
.en-route-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.en-route-form input { height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text); min-width: 0; }
.en-route-form #enFrom { grid-column: 1; grid-row: 1; }
.en-route-form .btn.small { grid-column: 2; grid-row: 1 / span 2; margin: 0; height: 44px; }
.en-route-form #enTo { grid-column: 1; grid-row: 2; }
.en-route-form .btn.primary { grid-column: 1 / span 2; grid-row: 3; height: 44px; }
.en-trip { cursor: default; }
.en-trip summary { cursor: pointer; font-size: 15px; }
.en-leg { border-left: 4px solid var(--line); padding: 4px 0 4px 10px; margin: 8px 0 4px; }
.en-leg b { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.en-leg p { margin: 2px 0 0; font-size: 14.5px; }
.en-xfer { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.en-tabs { display: flex; gap: 6px; margin: 4px 0 6px; }
.en-tabs a { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 15px; background: var(--surface-2); }
.en-tabs a.on { color: var(--bg); background: var(--primary); }
.en-line-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.en-line.big { text-decoration: none; font-size: 14px; padding: 8px 12px; }
.en-mode { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.en-mode .chip { text-decoration: none; }
.en-map h3 { margin: 0 0 6px; font-size: 15px; }
.en-stops { list-style: none; margin: 0; padding: 0 0 0 4px; }
.en-stops li { position: relative; padding: 6px 0 6px 24px; min-height: 26px; }
.en-stops li::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 4px; background: var(--lc); }
.en-stops li:first-child::before { top: 16px; }
.en-stops li:last-child::before { bottom: auto; height: 16px; }
.en-stops li::after { content: ""; position: absolute; left: 1px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--lc); }
.en-stops li.has::after { background: var(--lc); }
.en-stop { color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; }
.en-trs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.en-tr { font-size: 12.5px; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--line); background: var(--surface); }
.en-tr.up { border-color: var(--lc); }
.en-tr.down { border-style: dashed; border-color: var(--lc); }
.en-tr.ex b { color: var(--express); }
.en-code { display: inline-block; min-width: 30px; text-align: center; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--lc); border-radius: 999px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }
.en-code-in { margin-left: 6px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.28); font-size: 11.5px; }
/* 노선 화면: 탭·보기 버튼을 그 노선 색으로 */
.en-line-page .en-tabs a.on, .en-line-page .en-mode .chip.on { background: var(--lc); color: var(--lc-fg, #fff); border-color: var(--lc); }
.en-line-page .en-st h1 { color: var(--lc); }
.en-fl { margin-top: 8px; font-size: 14px; }
.en-fl summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.en-fl p { margin: 4px 0; }
.en-share { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.en-share .meta { margin: 0 0 6px; font-size: 12.5px; }
.en-share-row { display: flex; gap: 6px; flex-wrap: wrap; }
.en-share-row select { flex: 1 1 160px; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.en-share .btn.small { margin-top: 0; }
.en-shared .tr-band { margin: -14px -16px 0; padding: 12px 16px; border-radius: 14px 14px 0 0; }
.en-st-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.en-star { flex-shrink: 0; margin-top: 2px; }
.en-star.on { color: #c98a00; border-color: #f2b632; }
.en-cg { margin: 2px 0 4px; font-size: 13.5px; }
.en-cg .cg-pill { margin: 0 2px; }
.en-times { list-style: none; margin: 8px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.en-times li { padding: 2px 0; }
.en-times li.here { color: var(--express); }
.en-times b { display: inline-block; min-width: 46px; }
.en-facil h2 { flex-wrap: wrap; }
.en-facil p { margin: 6px 0; font-size: 14px; line-height: 1.5; }
.en-facil .facil-tag { margin-right: 2px; }
.en-xf { display: flex; gap: 8px; align-items: flex-start; }
.en-xf .xfer-door, .en-xfer .xfer-door { flex-shrink: 0; font-weight: 800; }
.en-live { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: #2e7d32; }

/* 실시간 열차 표 (한국어 "노선 운행"과 같은 모양) */
.en-near summary { color: var(--text); }
.en-near .board { margin-top: 8px; border: 1px solid var(--line); }
.en-board .board-head span { font-size: 13px; }
.en-board .row { min-height: 52px; }
.en-stn { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.15; font-size: 11.5px; font-weight: 700; color: var(--text); text-decoration: none; padding: 2px 3px 2px 6px; word-break: normal; overflow-wrap: break-word; hyphens: auto; letter-spacing: -.1px; }
.en-stn .en-code { margin: 0 0 3px; font-size: 10.5px; min-width: 0; padding: 0 6px; }
.en-stn-en { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.en-stn small { word-break: keep-all; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.en-board .row.en-here { background: var(--surface-2, #8881); box-shadow: inset 4px 0 0 var(--accent, #2563eb); }
.en-board .row.en-here .en-stn { color: var(--accent, #2563eb); }
.en-board .tcard .d { font-size: 12.5px; }
.en-board .tcard .s { font-size: 12px; }
.en-board-note { padding: 8px 12px; margin: 0; }
.en-all-box { margin-top: 10px; }
.en-all-box summary { cursor: pointer; font-weight: 700; font-size: 13px; padding: 6px 0; }
.en-all-box[open] summary { margin-bottom: 4px; }
/* 노선 탭: 한국어 "노선 운행"처럼 검색창 숨기고 4열 노선 버튼 + 바로 운행표 */
.en-tab-line .en-search { display: none; }
.en-line-grid { margin: 0 0 10px; }
.en-line-grid .line-btn { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; font-size: 12.5px; font-weight: 700; line-height: 1.1; padding: 0 3px; height: 40px; }
.en-line-grid .line-btn.on { outline: 3px solid var(--text); outline-offset: -3px; font-weight: 800; }
.en-line-head { margin: 0 2px 8px; }
.en-line-head p { margin: 2px 0; }
#enRouteBox { margin-top: 8px; }
.en-route-in #enRouteOut:not(:empty) { margin-top: 8px; }
.en-search .en-route-form { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
/* 역 머리 줄: 한국어판처럼 "역 이름 · N초 전 정보 ☆ 즐겨찾기" 한 줄 */
.en-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 4px 8px; }
.en-meta-row .meta { margin: 0; min-width: 0; }
.en-meta-row h1 { display: inline; font-size: 15px; font-weight: 800; color: var(--text); margin: 0; }
.en-meta-row .fav-btn.on { color: #c98a00; }
.en-code-h { font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 2px; }
.train-card .tc-foot.en-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.en-share-btn { border: 0; background: none; color: var(--muted); font: inherit; font-size: inherit; padding: 0; cursor: pointer; }
.en-share-btn:hover { color: var(--text); }
.en-meta-row [lang="ko"] { white-space: nowrap; }
/* 영어 노선도 (한국어 "노선도"와 같은 그림) */
.en-s-label { font-size: 10.5px; }
.en-s-label.end { font-size: 11.5px; }
.en-tabs a { font-size: 13.5px; padding: 10px 2px; white-space: nowrap; }
.en-tabs { gap: 5px; }
/* 머리줄: 운영자 ⚙ 버튼이 있어도 "Seoul Subway Live"가 안 잘리게 */
.en-adm { text-decoration: none; }
.en-adm[hidden] { display: none; }
.en-header .head-btns { gap: 5px; }
.en-header .en-lang { padding: 0 10px; }
@media (max-width: 420px) {
  .en-header .brand-name { font-size: 15.5px; }
  .en-header .brand-logo { width: 34px; height: 34px; }
  .en-header .brand { gap: 7px; }
  .en-header .en-lang { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 380px) {
  .en-header .brand-name { font-size: 14.5px; letter-spacing: -.2px; }
  .en-header .brand-logo { width: 30px; height: 30px; }
  .en-header .head-btns { gap: 4px; }
  .en-header .en-lang { padding: 0 6px; font-size: 12.5px; height: 30px; }
}

/* 여행 안내 글 */
.en-guide h2 { margin-top: 0; }
.en-guide-nav { font-size: 13px; color: var(--muted); }
.en-guide-t { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 14px; }
.en-guide-t th, .en-guide-t td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line, rgba(0,0,0,.1)); vertical-align: top; }
.en-guide-t small { color: var(--muted); }
.en-guide-go a { font-weight: 700; text-decoration: none; }
