/* ==========================================================================
   Interview Section (受講生インタビュー)
   「冒険者の記録」= プレイヤー実績を見せるピクセルRPG風レイアウト
   ========================================================================== */

.interview-section {
    margin: 4rem 0;
}

.interview-lead {
    margin-bottom: 2rem;
}

/* ==========================================================================
   Entry (インタビュー1本ぶんのまとまり = カード + 実績 + VOICE)
   2本目以降だけ、前のインタビューとの区切り線を引く
   ========================================================================== */
.interview-entry + .interview-entry {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px dashed var(--color-border);
}

/* ==========================================================================
   Main Card (サムネ + メタ情報の2カラム)
   ========================================================================== */
.interview-card {
    padding: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .interview-card {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }
}

/* ----- Thumbnail ----- */
.interview-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: #0b132b;
    border-bottom: 2px solid var(--color-border);
    overflow: hidden;
    cursor: pointer;
}

@media (min-width: 768px) {
    .interview-thumb {
        /* PCでは右カラムの高さに追従させる */
        aspect-ratio: auto;
        min-height: 320px;
        border-bottom: none;
        border-right: 2px solid var(--color-border);
    }
}

.interview-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* body の image-rendering: pixelated を解除（実写系サムネのため） */
    image-rendering: auto;
    transition: transform 0.35s ease, filter 0.35s ease;
}

@media (min-width: 768px) {
    .interview-thumb img {
        /* 縦に伸びた枠でも動画サムネ全体（上部のタイトル含む）を見せる */
        object-fit: contain;
    }
}

.interview-thumb:hover img,
.interview-thumb:focus-visible img {
    transform: scale(1.04);
    filter: brightness(0.78);
}

.interview-thumb:focus-visible {
    outline: 4px solid var(--color-accent);
    outline-offset: -4px;
}

/* ----- Play button (装飾。クリックは .interview-thumb が受ける) ----- */
.interview-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #f1c40f;
    color: #222;
    /* サムネが常に暗いので、ライト/ダーク問わず固定色 */
    border: 2px solid #222;
    box-shadow: 4px 4px 0 0 #222;
    font-family: 'DotGothic16', sans-serif;
    font-size: 1.1rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.15s, box-shadow 0.15s;
}

.interview-play::after {
    /* パルスリング */
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid #f1c40f;
    animation: interviewPulse 2s ease-out infinite;
}

@keyframes interviewPulse {
    0% {
        transform: scale(0.96);
        opacity: 0.9;
    }

    100% {
        transform: scale(1.22);
        opacity: 0;
    }
}

.interview-thumb:hover .interview-play {
    transform: translate(-50%, -50%) translate(2px, 2px);
    box-shadow: 2px 2px 0 0 #222;
}

/* ----- Duration badge ----- */
.interview-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 2px 8px;
    background-color: rgba(0, 0, 0, 0.82);
    color: #fff;
    border: 2px solid #fff;
    font-size: 0.85rem;
    letter-spacing: 1px;
    z-index: 2;
}

/* ----- 準備中（YouTube ID 未設定時に JS が付与） ----- */
.interview-thumb.is-pending {
    cursor: default;
}

.interview-thumb.is-pending:hover img {
    transform: none;
    filter: none;
}

.interview-thumb.is-pending .interview-play {
    background-color: #999;
    color: #fff;
    border-color: #222;
}

.interview-thumb.is-pending .interview-play::after {
    display: none;
}

/* ==========================================================================
   Meta (右カラム)
   ========================================================================== */
.interview-meta {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .interview-meta {
        padding: 25px;
    }
}

.interview-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 #000;
}

body.light-mode .interview-eyebrow {
    /* 白背景に黄色は読めないため */
    color: #d35400;
    text-shadow: none;
}

.interview-player {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px dashed var(--color-border);
}

.interview-player-name {
    font-size: 1.5rem;
    color: var(--color-main);
    line-height: 1.2;
}

.interview-badge {
    font-size: 0.8rem;
    padding: 3px 10px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--color-border);
    white-space: nowrap;
}

.interview-card h3 {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.interview-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.interview-watch {
    align-self: flex-start;
}

.interview-watch.is-pending,
.interview-watch.is-pending:hover {
    background-color: #999;
    color: #fff;
    cursor: default;
    transform: none;
    box-shadow: 4px 4px 0 0 var(--color-border);
}

/* ==========================================================================
   Status Grid (実績ステータス)
   ========================================================================== */
.interview-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .interview-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.interview-stat {
    margin-bottom: 0;
    text-align: center;
    padding: 18px 12px;
    transition: transform 0.2s;
}

.interview-stat:hover {
    transform: translateY(-5px);
}

.interview-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 2px dashed var(--color-border);
}

.interview-stat-value {
    font-size: 2.2rem;
    line-height: 1.1;
    color: var(--color-main);
}

.interview-stat-value .unit {
    font-size: 1.1rem;
}

.interview-stat-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==========================================================================
   Voice (印象的なコメント)
   ========================================================================== */
.interview-voice {
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.interview-voice-body {
    padding: 20px;
    background-color: var(--bg-secondary);
}

.interview-quote {
    position: relative;
    padding-left: 26px;
    margin-bottom: 18px;
    font-size: 1rem;
}

.interview-quote:last-child {
    margin-bottom: 0;
}

.interview-quote::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 0.8rem;
    color: var(--color-main);
}

.interview-quote strong {
    color: var(--color-main);
}

.interview-quote cite {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-secondary);
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */
.interview-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   Video Modal (YouTube)
   ========================================================================== */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(11, 19, 43, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-modal.active {
    display: flex;
}

.video-modal-inner {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border: 4px solid #fff;
    box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.6);
}

.video-modal-inner iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -52px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #f1c40f;
    color: #222;
    border: 2px solid #222;
    box-shadow: 4px 4px 0 0 #222;
    font-family: 'DotGothic16', sans-serif;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

.video-modal-close:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 #222;
}

@media (max-width: 767px) {
    .video-modal-close {
        top: -48px;
    }
}

body.modal-open {
    overflow: hidden;
}
