/* ============================================================
   移動するUFO目撃情報 詳細（design/conts_move_detail.png 準拠）
   スコープ: body.ufo-top   .md-*
   枠組み（.bbs-layout / .sd-article / .sd-vote / .sd-comment / .sd-rank 等）は
   体験談詳細と共用し、ここでは詳細ページ固有のパーツだけを定義する。
   ============================================================ */

/* ---------- 見出し（バッジ＋タイトル＋メタ） ---------- */
.md-head {
    padding: 26px 26px 0;
}

.md-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 3px;
    background: #ff8a1e;
    color: #12160f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ---------- メイン映像 ---------- */
.md-stage {
    position: relative;
    margin: 20px 26px 0;
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #060911;
    overflow: hidden;
}

.md-player {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    line-height: 0;
}

.md-player__poster {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.md-player__frame {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

/* 再生ボタン */
.md-player__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 138, 30, .92);
    color: #12160f;
    font-size: 26px;
    line-height: 1;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .5);
    transition: transform .2s, background .2s;
}

.md-player__play i {
    margin-left: 4px;
}

.md-player:hover .md-player__play {
    transform: translate(-50%, -50%) scale(1.08);
    background: #ff8a1e;
}

/* ---------- サムネイル帯 ---------- */
.md-thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 14px 26px 0;
}

.md-thumb {
    display: block;
    padding: 0;
    border: 2px solid #22304a;
    border-radius: 6px;
    background: #060911;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
    transition: border-color .2s, transform .2s;
}

.md-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.md-thumb:hover {
    border-color: #ff8a1e;
    transform: translateY(-2px);
}

.md-thumb.is-active {
    border-color: #ff8a1e;
}

/* ---------- セクション（目撃した状況 / 体験談 / 写真・動画） ---------- */
.md-block {
    margin: 26px 26px 0;
}

.md-block:last-child {
    margin-bottom: 26px;
}

/* 目撃した状況の表 */
.md-spec {
    margin: 0;
    padding: 20px 24px;
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0e1420;
}

.md-spec__row {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 10px;
    padding: 7px 0;
    font-size: 14px;
    line-height: 1.7;
}

.md-spec__row + .md-spec__row {
    border-top: 1px solid rgba(26, 36, 52, .7);
}

.md-spec dt {
    margin: 0;
    color: #8d99ab;
    font-weight: 400;
}

.md-spec dd {
    margin: 0;
    color: #e6ecf4;
    word-break: break-word;
}

.md-spec dd a {
    color: #ff9f45;
    text-decoration: underline;
    word-break: break-all;
}

/* 体験談本文 */
.md-note {
    padding: 24px 26px;
    border: 1px solid #1a2434;
    border-radius: 8px;
    background: #0e1420;
    font-size: 15px;
    line-height: 2;
    color: #d8e0ea;
    word-break: break-word;
}

.md-note p {
    margin: 0 0 20px;
}

.md-note p:last-child {
    margin-bottom: 0;
}

.md-note a {
    color: #ff9f45;
    text-decoration: underline;
    word-break: break-all;
}

.md-note img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

/* 撮影した写真・動画 */
.md-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.md-gallery__item {
    display: block;
    border: 1px solid #22304a;
    border-radius: 6px;
    background: #060911;
    overflow: hidden;
    line-height: 0;
    transition: border-color .2s, transform .2s;
}

.md-gallery__item img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.md-gallery__item:hover {
    border-color: #ff8a1e;
    transform: translateY(-2px);
}

.md-gallery__foot {
    margin-top: 18px;
    text-align: center;
}

.md-morebtn {
    display: inline-block;
    padding: 11px 30px;
    border: 1px solid #ff8a1e;
    border-radius: 5px;
    background: linear-gradient(180deg, rgba(255, 138, 30, .18) 0%, rgba(255, 138, 30, .08) 100%);
    color: #ffb066;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}

.md-morebtn:hover {
    background: #ff8a1e;
    color: #12160f;
}

/* ---------- シェア ---------- */
.md-share {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
    padding: 18px 26px;
    border: 1px solid #1a2434;
    border-radius: 10px;
    background: #0b1019;
}

.md-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 10px;
    border: 1px solid #2a3648;
    border-radius: 5px;
    background: #0f1724;
    color: #c2ccda;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
}

.md-share__btn i {
    font-size: 15px;
}

.md-share__btn:hover {
    border-color: #ff8a1e;
    color: #ffb066;
}

.md-share__btn--x i { color: #fff; }
.md-share__btn--fb i { color: #4f8ef7; }
.md-share__btn--line i { color: #4bc764; }

.md-share__btn--copy.is-copied {
    border-color: #ff8a1e;
    background: #ff8a1e;
    color: #12160f;
}

.md-share__btn--copy.is-copied i {
    color: #12160f;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1080px) {
    .md-share { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .md-head { padding: 22px 18px 0; }
    .md-stage { margin: 16px 18px 0; }
    .md-thumbs { margin: 12px 18px 0; gap: 10px; }
    .md-block { margin: 22px 18px 0; }
    .md-block:last-child { margin-bottom: 22px; }
    .md-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md-spec__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .md-share { padding: 16px 18px; }
    .md-player__play { width: 56px; height: 56px; font-size: 20px; }
}

@media (max-width: 560px) {
    .md-thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md-share { grid-template-columns: minmax(0, 1fr); }
}

