@charset "UTF-8";

/*
 * 1220k.com / トップページ専用スタイル
 *
 * index.php に直書きされていた CSS を分離。
 * 共通スタイルは style.css、トップページ固有スタイルはこのファイルで管理する。
 */

/* 共有: シェアボタン */
.top-live-up-share {
    margin-top: 10px;
}

.top-live-up-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.top-live-up-share-btn:hover {
    background-color: #1a1a1a;
}

.top-live-up-share-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}

.top-live-up-share-btn-bluesky,
.top-live-up-share-btn-database {
    margin-top: 6px;
}

.top-live-up-share-btn-bluesky {
    background: #0085ff;
}

.top-live-up-share-btn-database {
    background: #f5c542;
    color: #222;
}

/* その他チャンネル（コンパクト） */
.top-live-up-compact {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: #0f0f0f;
    border-radius: 8px;
    box-sizing: border-box;
    max-width: 420px;
    width: 100%;
}

.top-live-up-compact .thumb {
    width: 88px;
    height: 50px;
    flex: 0 0 88px;
    overflow: hidden;
    border-radius: 6px;
}

.top-live-up-compact .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-live-up-compact .meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.top-live-up-compact .meta .title {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-live-up-compact .meta .label {
    font-size: 12px;
    color: #cfcfcf;
}

.other-channels {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.other-channel {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    box-sizing: border-box;
}

.other-channel i {
    margin-right: 8px;
    font-size: 1.1em;
}

.other-channel[data-type="tiktok"] {
    background: #000;
}

/* プレースホルダ（画像無し時にCSSで代替表示） */
.top-movie-list-wrapp-placeholder {
    width: 100%;
    height: 100%;
    min-height: 88px;
    background: linear-gradient(135deg, #222, #333);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    border-radius: 6px;
    box-sizing: border-box;
}

.top-movie-list-wrapp-placeholder .placeholder-text {
    opacity: 0.95;
    letter-spacing: 1px;
}

/* その他チャンネル */
.other-channels-section {
    position: relative;
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.other-channels-section::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 10px;
    top: 56px;
    z-index: 0;
}

.other-channels-section .section-title {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    padding: 10px 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #101010;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.1;
}

.other-channels-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
    align-items: stretch;
    overflow-x: hidden;
}

.channel-block {
    background: linear-gradient(180deg, #0f1014 0%, #07080a 100%);
    padding: 12px;
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 290px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.channel-block .channel-name {
    font-weight: 800;
    color: #fff;
    font-size: 1.5em;
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding: 7px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    letter-spacing: 0.02em;
}

.channel-block .videos-row {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    width: 100%;
    min-width: 0;
}

.channel-block .video-item {
    flex: 1;
    min-width: 0;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
}

.channel-block .video-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.channel-block .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.channel-block .video-badge {
    position: absolute;
    left: 6px;
    top: 6px;
    background: rgba(0, 0, 0, 0.82);
    color: #fff;
    font-size: 11px;
    padding: 4px 7px;
    border-radius: 999px;
    letter-spacing: 0.02em;
    line-height: 1;
}

.channel-block .video-meta {
    padding: 9px 9px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    min-height: 74px;
}

.channel-block .video-date {
    font-size: 13px;
    color: #ffe08c;
    line-height: 1.25;
    font-weight: 700;
}

.channel-block .video-title {
    font-size: 14px;
    color: #f0f0f0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.channel-block .channel-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.channel-actions .btn {
    flex: 1;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    letter-spacing: 0.02em;
}

.btn-sub {
    background: linear-gradient(135deg, #e83c3c, #b91515);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 12px rgba(232, 60, 60, 0.18);
}

.btn-tiktok {
    background: linear-gradient(135deg, #222, #000);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.18);
}

.btn-sub:hover,
.btn-tiktok:hover {
    filter: brightness(1.08);
}

.channel-block .empty-video {
    opacity: 0.72;
}

.channel-actions-spacer-flex {
    flex: 1;
}

.channel-actions-spacer-gap {
    width: 8px;
}

/* プロフィール内の旧インライン指定 */
.index-award-emphasis {
    font-weight: bold;
}

.index-fan-hashtag-list {
    display: block;
}

.index-fan-hashtag-sensitive {
    color: #feffe3;
}

@media (max-width: 900px) {
    .other-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .top-live-up-compact {
        padding: 6px;
        gap: 8px;
    }

    .top-live-up-compact .thumb {
        width: 88px;
        height: 50px;
        flex: 0 0 88px;
    }

    .top-live-up-compact .meta .title {
        font-size: 13px;
    }

    .other-channels {
        justify-content: center;
    }

    .top-live-up-share-btn {
        padding: 10px;
        font-size: 14px;
    }
}

@media (min-width: 601px) {
    .top-live-up-compact {
        width: auto;
    }

    .other-channels {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .other-channels-grid {
        grid-template-columns: 1fr;
    }

    .other-channels-section {
        padding: 10px;
    }

    .other-channels-section::after {
        left: 8px;
        right: 8px;
        top: 48px;
        bottom: 8px;
    }

    .other-channels-section .section-title {
        font-size: 24px;
        padding: 8px 10px;
    }
}
