.badge { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--acc-dark); background: var(--acc-soft); padding: 4px 10px; border-radius: 8px; }
.panel-links { display: flex; gap: 12px; flex-wrap: wrap; }
.rank { position: fixed; top: 330px; left: 12px; z-index: 999; width: 340px; background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.rank-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; } .rank-head b { font-size: 17px; font-weight: 900; } .rank-head span { font-size: 12px; color: var(--muted); }
#rankList { list-style: none; max-height: calc(100vh - 560px); overflow-y: auto; }
#rankList li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
#rankList li:hover { background: var(--acc-soft); }
#rankList .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #7fbf9b; color: #fff; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; }
#rankList .t { flex: 1; min-width: 0; } #rankList .t b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #rankList .t small { color: var(--muted); font-size: 12px; }
#rankList .v { flex: none; font-size: 13px; font-weight: 900; color: var(--acc-dark); }
.rank .random { margin-top: 10px; }
.cat-pill.c-shinkansen { border-color: #d63b3b; color: #b52f2f; } .cat-pill.c-express { border-color: #8b4fc2; color: #6b3aa0; } .cat-pill.c-local { border-color: #2f7d5b; color: #23604a; }
.cat-pill.c-subway { border-color: #2f7fbf; color: #23649a; } .cat-pill.c-tourist { border-color: #7a7a7a; color: #555; }
.cat-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.line-tag { margin-right: auto; font-size: 11px; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: var(--acc); color: #fff; }
.sec { font-size: 16px; font-weight: 900; margin: 14px 0 6px; border-bottom: 1px solid var(--line); padding-bottom: 6px; } .sec span { font-weight: 400; color: var(--muted); font-size: 13px; }
.video-list .v { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.video-list .v:hover { background: var(--acc-soft); } .video-list .v.playing { background: var(--acc-soft); }
.video-list img { width: 112px; height: 63px; object-fit: cover; border-radius: 8px; background: #f1ece5; }
.video-list b { display: block; font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-list .m { font-size: 12px; color: var(--muted); margin-top: 2px; } .video-list .r { color: var(--acc-dark); font-weight: 700; }
.lines-index { max-height: 70vh; overflow-y: auto; columns: 2; column-gap: 24px; font-size: 13px; }
.lines-index h4 { break-after: avoid; margin: 10px 0 4px; font-size: 13px; color: var(--acc-dark); }
.lines-index a { display: block; padding: 3px 0; text-decoration: none; color: var(--ink); } .lines-index a small { color: var(--muted); }
.leaflet-interactive { cursor: pointer; }
@media (max-width: 720px) { .rank { display: none; } .lines-index { columns: 1; } }
