/* ==========================================================
   24時間以内の最新動画セクション（inc/recent-videos/）

   カード本体の見た目（.streamer-card / .thumb-frame / .live-title /
   .streamer-profile など）と、スマホ幅でのサムネ左・文字右の横並びレイアウトは、
   既存の pachi-live-list.css のものをそのまま使う。
   ここには、この機能に固有の差分だけを書く。
   ========================================================== */

.pachi-recent-videos {
    margin-bottom: 24px;
}

/* 見出し。既存のセクション見出し（稼働中・アーカイブ・予定）と同じ形で、
   左の線の色だけを変えて区別する */
.pachi-container .pachi-recent-videos__title {
    border-left: 4px solid #b388ff;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

.pachi-container .pachi-recent-videos__title i {
    color: #b388ff;
}

.pachi-recent-videos__note {
    margin: 0 0 14px;
    padding: 0 4px;
    font-size: 11px;
    line-height: 1.6;
    color: var(--pachi-text-sub);
}

.pachi-recent-videos__empty {
    margin: 0 0 8px;
    padding: 16px 10px;
    font-size: 12px;
    color: var(--pachi-text-sub);
}

/* サムネ左上の「新着」バッジ（既存の .live-badge 等と同じ位置・大きさ） */
.recent-video-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    color: #1a0b3d;
    background: #b388ff;
}

.recent-video-badge i {
    margin-right: 3px;
}

/* サムネ左下の再生時間（既存の .viewer-badge と同じ位置） */
.recent-video-duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
}

/* 本文側 */
.recent-video-content {
    gap: 0;
}

.recent-video-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recent-video-time {
    font-size: 11px;
    font-weight: 700;
    color: #b388ff;
}

.recent-video-time i {
    margin-right: 3px;
}

/* スマホ（既存カードと同じ767px以下）：サムネ左・文字右の横並びになるため、
   バッジ・再生時間・公開時刻の文字を小さくして、サムネとの高さのバランスを取る */
@media screen and (max-width: 767px) {

    .pachi-recent-videos__note {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .recent-video-badge {
        font-size: 8px;
        padding: 1px 3px;
    }

    .recent-video-duration {
        font-size: 9px;
        padding: 1px 4px;
    }

    .recent-video-time {
        font-size: 10px;
    }
}

/* ==========================================================
   ショート動画（縦長の小さなカード）と「横動画／ショート」の切り替え
   ========================================================== */

.pachi-recent-videos__kinds {
    display: flex;
    gap: 8px;
    margin: 0 4px 14px;
}

.pachi-recent-videos__kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pachi-text-sub);
    background: transparent;
    border: 1px solid var(--pachi-border);
    border-radius: 999px;
    cursor: pointer;
}

.pachi-recent-videos__kind span {
    font-size: 11px;
    font-weight: 400;
    opacity: .8;
}

.pachi-recent-videos__kind.is-active {
    color: #1a0b3d;
    background: #b388ff;
    border-color: #b388ff;
}

.pachi-recent-videos__pane[hidden] {
    display: none;
}

.pachi-recent-videos__pane--shorts .streamer-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.recent-short-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pachi-border);
    border-radius: 10px;
    background: var(--pachi-bg-card, rgba(255, 255, 255, .03));
}

.recent-short-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.recent-short-thumb.pachi-js-play-trigger {
    cursor: pointer;
}

.recent-short-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-short-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 900;
    color: #1a0b3d;
    background: #b388ff;
    border-radius: 4px;
}

.recent-short-duration {
    position: absolute;
    bottom: 6px;
    left: 6px;
    z-index: 2;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .75);
    border-radius: 4px;
}

.recent-short-play {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 11px;
    color: #fff;
    background: rgba(0, 0, 0, .6);
    border-radius: 50%;
}

.recent-short-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px 10px;
    color: inherit;
    text-decoration: none;
}

.recent-short-time {
    font-size: 10px;
    font-weight: 700;
    color: #b388ff;
}

.recent-short-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.5;
    color: #fff;
}

.recent-short-streamer {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.recent-short-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.recent-short-name {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    color: var(--pachi-text-sub);
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media screen and (max-width: 767px) {

    .pachi-container .pachi-recent-videos__pane--shorts .streamer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .recent-short-badge {
        font-size: 8px;
        padding: 1px 4px;
    }

    .recent-short-title {
        font-size: 11px;
    }
}

/* サブチャンネル（動画用）の動画の印 */
.recent-sub-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    color: #b388ff;
    border: 1px solid rgba(179, 136, 255, .6);
    border-radius: 999px;
    white-space: nowrap;
}
