/* 宇宙のおもしろリンク集（/links/）・宇宙の動画まとめ（/videos/） */

/* 絞りこみ */
.lk-filter { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.lf-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lf-l { font-size: 13px; color: var(--tx2); min-width: 4em; font-weight: 700; }
.lk-filter .chip { cursor: pointer; border: 0; font-family: inherit; font-size: 14.5px; padding: 6px 12px; }
.lk-filter .chip.on { background: var(--gold); color: #1a1205; box-shadow: none; }
.lk-filter .chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.lf-n { margin-left: auto; font-weight: 700; }
.lk-hint { margin-top: 10px; font-size: 14.5px; }

/* カテゴリの見出し */
.lk-sec { margin-top: 30px; scroll-margin-top: 90px; }
.lk-sec[hidden] { display: none; }
.lk-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lk-h-ic { width: 40px; height: 40px; object-fit: contain; flex: none; }
.lk-filter .chip-ic { width: 22px; height: 22px; object-fit: contain; flex: none; }
.lk-h small { font-size: 14px; color: var(--mut); font-weight: 700; }

/* リンクのカード */
.lk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.lk-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; color: var(--tx); text-decoration: none !important; transition: transform 0.2s, box-shadow 0.2s; min-width: 0; }
.lk-card:hover, .lk-card:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line2), 0 14px 40px rgba(60, 110, 255, 0.28); }
.lk-card[hidden] { display: none; }
.lk-ic { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(99, 140, 255, 0.1); box-shadow: inset 0 0 0 1px var(--line); }
.lk-ic img { width: 42px; height: 42px; object-fit: contain; }
.lk-bd { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.lk-n { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.lk-ext { font-size: 13px; color: var(--cyan); margin-left: 6px; }
.lk-d { font-size: 15px; line-height: 1.75; color: var(--tx2); }
.lk-meta, .vd-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.lk-meta i, .vd-meta i { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--tx2); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.lk-meta .m-ja, .vd-meta .m-ja { background: rgba(93, 255, 176, 0.12); color: var(--green); }
.lk-meta .m-en, .vd-meta .m-en { background: rgba(99, 230, 255, 0.12); color: var(--cyan); }
.lk-meta .m-free { background: rgba(255, 210, 122, 0.14); color: var(--gold); }
.lk-meta .m-part, .lk-meta .m-paid { background: rgba(255, 122, 198, 0.12); color: var(--pink); }
.lk-meta .m-note { white-space: normal; color: var(--mut); }
.lk-host { font-size: 12.5px; color: var(--mut); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }

/* 動画のカード */
.vd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.vd-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.vd-card[hidden] { display: none; }
.vd-ph { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vd-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.vd-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; transition: opacity 0.2s, transform 0.3s; }
.vd-play:hover img, .vd-play:focus-visible img { opacity: 1; transform: scale(1.03); }
.vd-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.vd-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 46px; margin: -23px 0 0 -32px; border-radius: 14px; background: rgba(4, 6, 15, 0.78); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); transition: background 0.2s; }
.vd-btn::after { content: ''; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.vd-play:hover .vd-btn, .vd-play:focus-visible .vd-btn { background: #e1262d; }
.vd-len { position: absolute; right: 8px; bottom: 8px; font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.82); color: #fff; font-variant-numeric: tabular-nums; }
.vd-ph iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vd-t { font-size: 17px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; display: flex; gap: 8px; align-items: flex-start; }
.vd-t > span { min-width: 0; }
.vd-t-ic { width: 30px; height: 30px; object-fit: contain; flex: none; margin-top: -2px; }
.vd-d { font-size: 15px; line-height: 1.75; color: var(--tx2); margin: 0; }
.vd-meta .m-ch { background: rgba(255, 210, 122, 0.14); color: var(--gold); white-space: normal; }
.vd-orig { font-size: 12.5px; color: var(--mut); margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.vd-yt { margin-top: auto; align-self: flex-start; font-size: 14.5px; font-weight: 700; color: var(--cyan); }
.vd-h1s { display: block; font-size: 0.42em; color: var(--tx2); margin-top: 8px; font-family: var(--ff); font-weight: 700; }

/* 関連コーナー */
.lk-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.lk-rel-a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; color: var(--tx); text-decoration: none !important; transition: transform 0.2s; }
.lk-rel-a:hover { transform: translateY(-2px); }
.lk-rel-a > img { width: 44px; height: 44px; object-fit: contain; }
.lk-rel-a small { color: var(--mut); font-size: 13.5px; line-height: 1.6; }
.lk-policy p { line-height: 1.85; }
.lk-policy p + p { margin-top: 10px; }

@media (max-width: 600px) {
  .lk-filter { padding: 12px; }
  .lf-l { width: 100%; }
  .lk-card { padding: 14px; gap: 12px; }
  .lk-ic { width: 44px; height: 44px; border-radius: 13px; }
  .lk-ic img { width: 36px; height: 36px; }
  .lf-n { margin-left: 0; }
}
