:root {
    --pachi-bg-main: #0d0e15;
    --pachi-bg-card: #161824;
    --pachi-text-main: #ffffff;
    --pachi-text-sub: #a0a5b5;
    --pachi-border: #242736;
    --pachi-neon: #39ff14;
    --pachi-active-card-bg: #1c2035;
    --premium-gold: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa7c11 100%);
    --event-teal: #4FC3F7;
}

    /* Cocoon標準の「おすすめ記事カルーセル」（#carousel）は、初期表示では
       スライド全部が縦に並んだ状態でHTMLが届き、JS（slick.js）が実行されて
       初めて横スクロール1段のカルーセルに畳まれる。畳まれる瞬間に高さが
       大きく縮み、その下にあるコンテンツ（配信者詳細ページのアイコン等）が
       ガクッと上に詰まって見えるのが「ちらつき・ガタつき」の実体だった。
       初期化前（.loadedクラスが付く前）の#carouselにあらかじめ、畳まれた
       後の実測高さに近いmin-heightを確保しておくことで、この縮みを防ぐ。
       高さは画面幅でカード折り返しが変わるため、実測に合わせて数段階に分ける。 */
    /* 高さを確保しただけだと、中身（カード）が描画されるまでの間、
       背景色と同化した「何もない黒い空白」に見えてしまい、それはそれで
       壊れて見える。カード状のプレースホルダーを薄く敷いておき、
       「これから読み込む場所」だと視覚的にわかるようにする。 */
    #carousel:not(.loaded) {
        min-height: 198px;
        background:
            linear-gradient(90deg, var(--pachi-bg-card) 0%, var(--pachi-bg-card) 31%, transparent 31%, transparent 33%,
                var(--pachi-bg-card) 33%, var(--pachi-bg-card) 64%, transparent 64%, transparent 66%,
                var(--pachi-bg-card) 66%, var(--pachi-bg-card) 97%, transparent 97%);
        border-radius: 10px;
    }
    @media screen and (min-width: 768px) {
        #carousel:not(.loaded) {
            min-height: 229px;
        }
    }
    @media screen and (min-width: 1024px) {
        #carousel:not(.loaded) {
            min-height: 256px;
        }
    }

    .live-dot {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ef4444;
        vertical-align: middle;
        margin-right: 2px;
    }

    .pachi-container .streamer-card {
        background-color: var(--pachi-bg-card) !important;
        color: var(--pachi-text-main) !important;
        border-color: #383d54 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
    }
    .pachi-container .streamer-card:hover {
        transform: translateY(-4px) !important;
        border-color: var(--pachi-neon) !important;
        box-shadow: 0 10px 25px rgba(57, 255, 20, 0.25) !important;
    }

    .pachi-container .streamer-card.is-filtered-active {
        background-color: var(--pachi-active-card-bg) !important;
        border-left: 4px solid #10b98180 !important;
    }

    .premium-pickup-card {
        border: 2px solid transparent !important;
        background-image: linear-gradient(var(--pachi-bg-card), var(--pachi-bg-card)), var(--premium-gold) !important;
        background-origin: border-box !important;
        background-clip: padding-box, border-box !important;
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.1) !important;
        flex-direction: column !important;
    }
    .premium-pickup-card:hover {
        box-shadow: 0 12px 35px rgba(212, 175, 55, 0.35) !important;
        transform: translateY(-4px) !important;
    }

    .premium-badge {
        background: var(--premium-gold) !important;
        color: #111 !important;
        font-weight: 900 !important;
        padding: 4px 10px !important;
        font-size: 11px !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        animation: premium-glow 2s infinite alternate;
    }
    @keyframes premium-glow {
        0% { filter: brightness(0.9); }
        100% { filter: brightness(1.2); }
    }
    .premium-viewer-badge {
        background: rgba(220, 38, 38, 0.9) !important;
        color: #fff !important;
        font-size: 13px !important;
    }
    .premium-overlay { font-size: 14px !important; background: rgba(0,0,0,0.4) !important; }

    .event-card {
        border: 2px solid rgba(79, 195, 247, 0.4) !important;
        box-shadow: 0 8px 24px rgba(79, 195, 247, 0.12) !important;
    }
    .event-card:hover {
        box-shadow: 0 12px 30px rgba(79, 195, 247, 0.25) !important;
        transform: translateY(-4px) !important;
    }
    .event-badge {
        background: var(--event-teal) !important;
        color: #0d0e15 !important;
        font-weight: 900 !important;
        animation: none !important;
    }
    .shorts-badge.style-official { background: rgba(79, 195, 247, 0.15); color: var(--event-teal); border-color: rgba(79, 195, 247, 0.4); }
    .premium-content { padding: 16px !important; display: flex !important; flex-direction: column !important; width: 100% !important; box-sizing: border-box !important; }
    .premium-title { font-size: 15px !important; -webkit-line-clamp: 2 !important; height: auto !important; margin-top: 10px !important; font-weight: 800 !important; color: var(--pachi-text-main) !important; display: -webkit-box !important; -webkit-box-orient: vertical !important; overflow: hidden !important; }

    .card-content-link, .card-content-link:hover, .card-content-link:focus {
        color: inherit !important;
        text-decoration: none !important;
        border-bottom: none !important;
    }

    .pachi-container {
        background-color: var(--pachi-bg-main) !important; color: var(--pachi-text-main); padding: 0 16px; border-radius: 12px;
    }

    .pachi-header-row { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 16px; width: 100%; }

    .pachi-stat-cards {
        display: flex;
        gap: 12px;
        margin-bottom: 20px;
    }
    .pachi-stat-card {
        flex: 1;
        position: relative;
        background: linear-gradient(135deg, #161824 0%, #0d0e15 100%);
        border: 1px solid var(--pachi-border);
        border-radius: 8px;
        padding: 10px 12px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    }
    .pachi-stat-card .stat-label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        font-size: 12px;
        font-weight: bold;
        color: var(--pachi-text-sub);
        margin-bottom: 2px;
    }
    .pachi-stat-card .stat-value {
        display: block;
        font-size: 36px;
        font-weight: 900;
        line-height: 1.15;
        color: var(--pachi-neon);
    }
    .pachi-stat-card .stat-value small {
        font-size: 16px;
        font-weight: bold;
        margin-left: 2px;
    }
    .pachi-stat-card .stat-label i {
        color: var(--pachi-neon);
        font-size: 12px;
    }
    .pachi-stat-card .stat-live-dot {
        display: inline-block;
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ef4444;
        animation: live-badge-blink 1.8s ease-in-out infinite;
    }

    @media screen and (max-width: 480px) {
        .pachi-stat-card .stat-value { font-size: 28px; }
        .pachi-stat-card .stat-label { font-size: 11px; }
    }

    /* 「パチ配信チェッカーとは」常時表示セクション */
    .pachi-about-section {
        background: linear-gradient(135deg, #161824 0%, #0d0e15 100%);
        border: 1px solid var(--pachi-border);
        border-radius: 8px;
        padding: 16px 18px;
        margin-top: 24px;
    }
    .pachi-about-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 800;
        margin: 0 0 10px !important;
        color: var(--pachi-text-main);
    }
    .pachi-about-title i { color: var(--pachi-neon); }
    .pachi-about-body p {
        font-size: 13px;
        line-height: 1.8;
        color: var(--pachi-text-sub);
        margin: 0 0 10px;
    }
    .pachi-about-body p:last-child { margin-bottom: 0; }
    .pachi-about-tagline {
        text-align: center;
        color: var(--pachi-text-main) !important;
        font-weight: 700;
        line-height: 1.9 !important;
        padding-top: 4px;
    }

    @media screen and (max-width: 480px) {
        .pachi-about-section { padding: 14px 14px; }
        .pachi-about-title { font-size: 14px; }
        .pachi-about-body p { font-size: 12.5px; line-height: 1.75; }
    }

    .pachi-ranking-cta {
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(22, 24, 36, 0.4) 100%);
        border: 1px solid rgba(239, 68, 68, 0.35);
        border-radius: 8px;
        padding: 12px 16px;
        margin-bottom: 20px;
        text-decoration: none !important;
        border-bottom: none !important;
        transition: border-color 0.2s ease, transform 0.2s ease;
    }
    .pachi-ranking-cta:hover {
        border-color: #ef4444;
        transform: translateY(-1px);
    }
    .pachi-ranking-cta__icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(239, 68, 68, 0.15);
        color: #ef4444;
        font-size: 16px;
    }
    .pachi-ranking-cta__text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        color: var(--pachi-text-main);
        min-width: 0;
    }
    .pachi-ranking-cta__text strong {
        font-size: 13px;
        font-weight: 800;
    }
    .pachi-ranking-cta__text span {
        font-size: 11px;
        color: var(--pachi-text-sub);
    }
    .pachi-ranking-cta__arrow {
        margin-left: auto;
        color: #ef4444;
        font-size: 14px;
    }

    .pachi-news-cta {
        display: flex;
        align-items: center;
        gap: 12px;
        background: linear-gradient(90deg, rgba(74, 158, 255, 0.12) 0%, rgba(22, 24, 36, 0.4) 100%);
        border: 1px solid rgba(74, 158, 255, 0.35);
        border-radius: 8px;
        padding: 12px 16px;
        margin: 24px 0;
        text-decoration: none !important;
        border-bottom: none !important;
        transition: border-color 0.2s ease, transform 0.2s ease;
    }
    .pachi-news-cta:hover {
        border-color: #4a9eff;
        transform: translateY(-1px);
    }
    .pachi-news-cta__icon {
        flex-shrink: 0;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(74, 158, 255, 0.15);
        color: #4a9eff;
        font-size: 15px;
    }
    .pachi-news-cta__text {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 2px;
        color: var(--pachi-text-main);
        min-width: 0;
    }
    .pachi-news-cta__text strong {
        font-size: 13px;
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .pachi-news-cta__text span {
        font-size: 11px;
        color: var(--pachi-text-sub);
    }
    .pachi-news-cta__arrow {
        margin-left: auto;
        flex-shrink: 0;
        color: #4a9eff;
        font-size: 14px;
    }

    .pachi-quick-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 16px;
    }
    .pachi-quick-nav::-webkit-scrollbar { display: none; }
    .pachi-quick-nav-item {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: var(--pachi-bg-card);
        color: var(--pachi-text-sub);
        border: 1px solid var(--pachi-border);
        padding: 7px 14px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
        white-space: nowrap;
        cursor: pointer;
        text-decoration: none !important;
        border-bottom: none !important;
        transition: all 0.2s;
        outline: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-appearance: none;
        appearance: none;
    }
    .pachi-quick-nav-item:hover {
        border-color: var(--pachi-neon);
        color: var(--pachi-text-main);
    }
    .pachi-quick-nav-item:focus-visible {
        border-color: var(--pachi-neon);
        color: var(--pachi-text-main);
        box-shadow: 0 0 0 2px rgba(57, 255, 20, 0.4);
    }
    .pachi-quick-nav-item i { color: var(--pachi-neon); font-size: 12px; }

    @media screen and (max-width: 767px) {
        .pachi-ranking-cta__text span { display: none; }
    }

    .pachi-container h3 {
        background: #161824 !important; color: #ffffff !important; padding: 10px 16px !important; border-radius: 6px !important; font-size: 14px !important; font-weight: 700 !important; margin-top: 32px !important; margin-bottom: 16px !important; box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important; line-height: 1.5 !important;
    }
    .pachi-container h3.has-filter { color: var(--pachi-neon) !important; }

    /* 「稼働中の生放送」見出し行 */
    .pachi-live-section-header { margin-bottom: 16px; }
    .pachi-live-section-header h3 {
        margin-top: 32px !important;
        margin-bottom: 0 !important;
    }

    /* 機種タグの下に配置する並び替えセレクト（左寄せ） */
    .pachi-sort-control {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--pachi-text-sub);
        font-size: 12px;
        margin: 0 0 20px;
    }
    .pachi-sort-control i { color: var(--pachi-neon); }

    .pachi-sort-select {
        appearance: auto;
        background: var(--pachi-bg-card);
        color: var(--pachi-text-main);
        border: 1px solid var(--pachi-border);
        border-radius: 6px;
        padding: 6px 8px;
        font-size: 12px;
        max-width: 100%;
    }
    .pachi-sort-select:focus { outline: 1px solid var(--pachi-neon); }

    @media screen and (max-width: 480px) {
        .pachi-sort-control { margin-bottom: 16px; }
        .pachi-sort-select { font-size: 11px; padding: 5px 6px; }
    }

    .machine-tabs-wrapper { position: relative; margin-bottom: 24px; }
    .machine-tabs-container { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--pachi-border); }
    .machine-tab { flex-shrink: 0; }
    .machine-tabs-fade { display: none; }

    /* SP（767px以下）のみ機種タブを横スクロールにする。PCは従来通り折り返し表示。 */
    @media screen and (max-width: 767px) {
        .machine-tabs-container {
            flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
        }
        .machine-tabs-container::-webkit-scrollbar { display: none; }
        .machine-tabs-fade {
            position: absolute; top: 0; right: 0; bottom: 12px; width: 36px;
            background: linear-gradient(to right, transparent, var(--pachi-bg-main));
            pointer-events: none; opacity: 1; transition: opacity 0.2s ease;
            display: flex; align-items: center; justify-content: flex-end;
        }
        .machine-tabs-fade__icon { font-size: 11px; color: var(--pachi-text-sub); margin-right: 2px; }
        .machine-tabs-wrapper.is-at-end .machine-tabs-fade { opacity: 0; }
    }
    .machine-tab { background: var(--pachi-bg-card); color: var(--pachi-text-sub); border: 1px solid var(--pachi-border); padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
    .machine-tab:hover { border-color: #00f2fe; color: var(--pachi-text-main); }
    .machine-tab.active { background: #10121d !important; color: var(--pachi-neon) !important; border-color: var(--pachi-neon) !important; box-shadow: 0 0 10px rgba(57, 255, 20, 0.4); }

    .machine-tab--favorites { color: #f3c94d; border-color: rgba(243, 201, 77, 0.4); }
    .machine-tab--favorites i { color: #f3c94d; }
    .machine-tab--favorites:hover { border-color: #f3c94d; color: #f3c94d; }
    .machine-tab--favorites.active { background: #241d0a !important; color: #f3c94d !important; border-color: #f3c94d !important; box-shadow: 0 0 10px rgba(243, 201, 77, 0.4); }
    .machine-tab--favorites.active i { color: #f3c94d !important; }

    .pachi-pickup-wrapper { max-width: 100%; }
    .streamer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }

    @media screen and (max-width: 1100px) {
        .streamer-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media screen and (max-width: 900px) and (min-width: 768px) {
        .streamer-grid { grid-template-columns: repeat(2, 1fr); }
    }

    .streamer-card {
        border: 1px solid var(--pachi-border) !important; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease !important;
    }

    .card-thumbnail-wrapper {
        position: relative; width: 100%; background: #000; cursor: pointer;
    }
    /* サムネ本体・各種バッジ（LIVE/お気に入り/再生アイコン等）はこのフレームを
       基準に配置する。.card-thumbnail-wrapper自体をスマホで縦に伸ばしても
       （下部の余白調整用）、フレームは常にサムネ画像と同じ16:9比率を保つため、
       バッジがサムネから浮いて見えることがない */
    .thumb-frame {
        position: relative; width: 100%; padding-top: 56.25%;
    }
    .thumb-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

    .pachi-play-overlay {
        position: absolute; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 12px; font-weight: bold;
        display: flex; justify-content: center; align-items: center;
        opacity: 0; transition: opacity 0.2s ease;
    }
    .card-thumbnail-wrapper:hover .pachi-play-overlay { opacity: 1; }

    /* スマホはhoverが効かず「タップで再生」の案内が誰の目にも触れないため、
       常時表示の再生アイコンバッジをサムネ隅に置いて直感的にわかるようにする。
       プレビュー再生の対象がないカード（ライブ予定カード等、
       .pachi-js-play-trigger を持たない）には表示しない */
    .pachi-js-play-trigger .thumb-frame::after {
        content: "\f04b";
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome;
        font-weight: 900;
        position: absolute; bottom: 6px; right: 6px; z-index: 2;
        width: 26px; height: 26px; border-radius: 50%;
        background: rgba(0, 0, 0, 0.65); color: #fff;
        display: flex; align-items: center; justify-content: center;
        font-size: 11px; padding-left: 2px; box-sizing: border-box;
        pointer-events: none;
    }

    .pachi-embedded-player { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

    .card-thumbnail-wrapper .pachi-embedded-player {
        pointer-events: none !important;
    }

    .pachi-favorite-btn {
        position: absolute; top: 6px; right: 6px; z-index: 3; margin: 0;
        width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer;
        background: rgba(0, 0, 0, 0.65); color: rgba(255, 255, 255, 0.75);
        display: flex; align-items: center; justify-content: center; line-height: 1;
        font-size: 12px; padding: 0; transition: color 0.15s ease, transform 0.15s ease;
        transform: none; appearance: none; -webkit-appearance: none;
    }
    .pachi-favorite-btn i {
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
        font-weight: 900 !important; font-style: normal !important;
        display: inline-block; transform: none; line-height: 1;
    }
    .pachi-favorite-btn:hover { transform: scale(1.1); }
    .pachi-favorite-btn.is-active { color: #f3c94d; }

    .pachi-favorite-btn--with-label {
        position: static; display: inline-flex; gap: 6px; margin-left: 8px;
        width: auto; height: 30px; padding: 0 12px !important; border-radius: 15px;
        background: var(--pachi-bg-card, #161824);
        border: 1px solid var(--pachi-border, #242736); vertical-align: middle;
        font-size: 12px !important;
    }
    .pachi-favorite-btn--with-label:hover { transform: none; border-color: #f3c94d; }
    .pachi-favorite-btn--with-label.is-active { border-color: #f3c94d; }
    .pachi-favorite-btn__label { font-weight: 700; color: var(--pachi-text-main); }
    .pachi-favorite-btn--with-label.is-active .pachi-favorite-btn__label { color: #f3c94d; }

    .pachi-toast {
        position: fixed; left: 50%; bottom: 24px; z-index: 20000;
        transform: translate(-50%, 20px); opacity: 0;
        background: #1a1c28; color: var(--pachi-text-main);
        border: 1px solid #f3c94d; border-radius: 20px;
        padding: 10px 18px; font-size: 13px; font-weight: 700;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
        max-width: 88vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .pachi-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

    .pachi-install-banner {
        position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 19000;
        display: flex; align-items: center; gap: 10px;
        background: var(--pachi-bg-card); border: 1px solid var(--pachi-neon);
        border-radius: 12px; padding: 12px 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }
    .pachi-install-banner[hidden] { display: none; }
    .pachi-install-banner__text { flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: var(--pachi-text-main); line-height: 1.5; }
    .pachi-install-banner__action {
        flex-shrink: 0; background: var(--pachi-neon); color: #0d0e15; border: none;
        border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 800; cursor: pointer;
    }
    .pachi-install-banner__close {
        flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: none;
        background: var(--pachi-bg-main); color: var(--pachi-text-sub); cursor: pointer;
    }
    .pachi-install-banner__close i {
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
        font-weight: 900 !important;
    }

    @media screen and (min-width: 1024px) {
        .pachi-install-banner { left: auto; right: 20px; bottom: 20px; width: min(360px, 90vw); }
    }

    .live-badge, .archive-badge, .upcoming-badge { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 900; padding: 2px 6px; border-radius: 4px; color: #fff; z-index: 2; }
    .live-badge { background: #ef4444; animation: live-badge-blink 1.8s ease-in-out infinite; }
    .archive-badge { background: #718096; }
    .upcoming-badge { background: #ffb84d; color: #2a1c00; }

    .upcoming-time-badge {
        display: inline-flex; align-items: center; gap: 4px;
        font-size: 12px; font-weight: bold; color: #ffb84d;
    }

    @keyframes live-badge-blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    .viewer-badge {
        position: absolute; bottom: 6px; left: 6px; z-index: 2;
        background: rgba(0,0,0,0.75); color: var(--pachi-neon) !important; font-size: 12px; font-weight: bold; padding: 4px 8px; border-radius: 5px; border: 1px solid rgba(57, 255, 20, 0.2);
    }

    .card-content { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; background: transparent !important; }
    .streamer-profile { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--pachi-border); }
    .streamer-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--pachi-border); }
    .streamer-info-meta { display: flex; flex-direction: column; line-height: 1.2; }
    .streamer-name { font-size: 13px; font-weight: bold; color: var(--pachi-text-main); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .clickable-streamer-profile { cursor: pointer; border-radius: 6px; transition: background-color 0.2s ease; }
    .clickable-streamer-profile:hover { background-color: rgba(255, 255, 255, 0.04); }
    .clickable-streamer-profile:hover .streamer-name { color: var(--pachi-neon); }

    .shorts-badge { display: inline-block; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 3px; width: fit-content; margin-top: 3px; border: 1px solid transparent; }
    .shorts-badge.style-shorts { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border-color: rgba(252, 165, 165, 0.4); }
    .shorts-badge.style-normal { background: rgba(160, 165, 181, 0.15); color: var(--pachi-text-sub); border-color: var(--pachi-border); }

    .machine-tag {
        align-self: flex-start; background: var(--pachi-bg-main) !important; color: var(--pachi-text-sub) !important;
        font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--pachi-border); margin-top: 8px; cursor: pointer !important; transition: all 0.2s;
    }
    .machine-tag:hover { border-color: var(--pachi-neon) !important; color: var(--pachi-text-main) !important; }

    .live-stats-row { display: flex; justify-content: flex-start; align-items: center; gap: 14px; font-size: 10px; font-weight: bold; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--pachi-border); }
    .stat-good { color: #fbbf24; }
    .stat-time { color: #ff5a5a; }

    .live-title {
        font-size: 12px; font-weight: bold; color: var(--pachi-text-main); line-height: 1.4; margin-top: 8px;
        display: -webkit-box; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical; overflow: hidden; height: 2.8em !important;
    }
    .archive-card .live-title { color: var(--pachi-text-sub); }

    /* アイコン共通調整（見やすさ・意味に応じた色分け） */
    .pachi-container h3 i,
    .machine-tab i,
    .machine-tag i,
    .live-badge i,
    .archive-badge i,
    .viewer-badge i,
    .stat-good i,
    .pachi-play-overlay i,
    .accordion-trigger-btn i {
        margin-right: 4px;
        font-size: 1.15em;
        vertical-align: -1px;
    }

    .machine-tab.active i,
    .machine-tag i,
    .pachi-container h3.has-filter i {
        color: var(--pachi-neon);
    }

    .premium-badge i { color: #fff3c4; }
    .viewer-badge i, .premium-viewer-badge i { color: #ff6b6b; }
    .stat-good i { color: #fbbf24; }
    .archive-badge i { color: #e2e6f1; }
    .accordion-trigger-btn i { color: var(--pachi-text-sub); }

    /* PC版ヘッダー。ロゴ・グロナビ・検索バーを1行にまとめ、
       SPと同様にposition:fixedで常時表示する（JS側でグロナビと検索バーを
       #header-inへ移設する。global-nav/init.php参照）。 */
    @media screen and (min-width: 1024px) {
        #header-container,
        #header-container-in,
        #header {
            height: auto !important;
            min-height: 0 !important;
            width: 100% !important;
            margin: 0 !important;
        }

        #header-in {
            display: flex !important;
            flex-direction: row !important;
            /* ロゴとグロナビの高さが違っても下端が揃うように */
            align-items: flex-end !important;
            justify-content: flex-start !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
            height: auto !important;
            min-height: 0 !important;
            margin: 0 !important;
            padding-top: 12px !important;
            padding-bottom: 12px !important;
            padding-left: 24px;
            padding-right: 24px;
            box-sizing: border-box !important;
            gap: 20px;
            /* 左右の余白はJS（global-nav/init.php）が実測してinline styleで
               設定する。本文エリア（.content-in）と同じ幅・左右位置に揃える
               ため、ここで!importantを付けるとJSのinline styleを上書きして
               しまうので、padding-left/rightはCSS側では指定しない。 */
        }

        .logo.logo-header {
            margin: 0 !important;
            text-align: left !important;
            min-width: 0;
            flex: 0 0 auto;
        }

        .site-logo-image.header-site-logo-image {
            height: 64px !important;
            width: auto !important;
            max-width: 100% !important;
            transition: height 0.2s ease;
        }

        /* スクロールしてヘッダーが常時表示のままだと大きいロゴが画面を
           圧迫するため、少しスクロールしたらグロナビの文字サイズに近い
           高さまでロゴを縮める（JS側はglobal-nav/init.phpでbodyに
           pachi-header-compactクラスを付与） */
        body.pachi-header-compact .site-logo-image.header-site-logo-image {
            height: 28px !important;
        }

        /* ロゴだけでなくグロナビも一緒に縮めないと不揃いに見えるため、
           スクロール時はグロナビの文字サイズ・余白も小さくする */
        .menu-top.menu-header.menu-pc .menu-item > a {
            transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease,
                font-size 0.2s ease, padding 0.2s ease;
        }
        body.pachi-header-compact .menu-top.menu-header.menu-pc .menu-item > a {
            font-size: 14px !important;
            padding: 6px 10px !important;
        }

        /* 元の位置（グロナビ単体の行）は中身をJSで#header-inへ移設した後に
           空の帯として残らないよう、JS側で非表示にする */
        #navi, #navi-in {
            background: var(--pachi-bg-main) !important;
        }

        #header-in .menu-top.menu-header.menu-pc {
            display: flex !important;
            list-style: none !important;
            gap: 6px;
            margin: 0 !important;
            padding: 0 !important;
            /* ヘッダー幅がぎりぎりだとメニューが縮んで文字が2行に折り返って
               しまうことがあったため、縮めずに自然な幅を保つ */
            flex: 0 0 auto;
            white-space: nowrap;
        }
        #header-in .menu-top.menu-header.menu-pc .menu-item {
            list-style: none !important;
        }
        .menu-top.menu-header.menu-pc .menu-item {
            height: auto !important;
        }
        .menu-top.menu-header.menu-pc .menu-item > a {
            /* Cocoon標準はアイコン画像付きメニュー用に縦長のボックスを
               確保する作りになっており、アイコン未設定でも空白ができて
               ヘッダーの行の高さが不必要に大きくなってしまう。
               1行のシンプルなテキストリンクとして表示し直す。 */
            display: flex !important;
            align-items: center !important;
            height: auto !important;
            color: var(--pachi-text-main) !important;
            font-weight: 700 !important;
            padding: 10px 14px !important;
            white-space: nowrap !important;
            text-decoration: none !important;
            border-radius: 8px;
            transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
        }
        .menu-top.menu-header.menu-pc .menu-item > a .caption-wrap,
        .menu-top.menu-header.menu-pc .menu-item > a .item-label {
            display: block !important;
            height: auto !important;
            white-space: nowrap !important;
            text-decoration: none !important;
        }
        .menu-top.menu-header.menu-pc .menu-item > a:hover {
            color: var(--pachi-neon) !important;
            background: rgba(57, 255, 20, 0.08);
            transform: translateY(-2px);
        }
        .menu-top.menu-header.menu-pc .current_page_item > a,
        .menu-top.menu-header.menu-pc .current-menu-item > a {
            color: var(--pachi-neon) !important;
            background: rgba(57, 255, 20, 0.12);
        }

        /* ヘッダー右端に常時表示する検索バー（SPのようなアイコン開閉式ではなく、
           PCは横幅に余裕があるので入力欄をそのまま置く） */
        #header-in .pachi-header-search-bar {
            display: flex !important;
            margin: 0 0 0 auto !important;
            padding: 0 !important;
            background: transparent !important;
            border-bottom: none !important;
            flex: 0 0 auto;
        }
        #header-in .pachi-header-search-bar .search-edit {
            width: 200px !important;
            flex: 0 0 200px;
            height: 36px;
        }
        #header-in #pachiHeaderSearchSubmit.search-submit {
            width: 36px !important;
            height: 36px;
        }
    }

    /* Cocoon標準のモバイルメニューボタン行（常時表示のアイコン列）は
       独自のハンバーガーメニューに置き換えるため非表示にする */
    @media screen and (max-width: 1023px) {
        .mobile-header-menu-buttons,
        .mobile-menu-buttons {
            display: none !important;
        }
    }

    .pachi-mobile-nav-toggle,
    .pachi-header-search-toggle {
        display: none;
        position: static;
        width: 36px; height: 36px; border-radius: 50%;
        background: var(--pachi-bg-card); border: 1px solid var(--pachi-border);
        color: var(--pachi-text-main); font-size: 16px; cursor: pointer;
        align-items: center; justify-content: center;
        box-shadow: 0 2px 8px rgba(0,0,0,0.4);
        flex-shrink: 0;
    }
    @media screen and (max-width: 1023px) {
        .pachi-mobile-nav-toggle,
        .pachi-header-search-toggle { display: flex; }
    }

    /* ヘッダー行: ロゴを左寄せにして縮小し、検索・ハンバーガーを
       同じ行の右端にまとめる。#header-in はCocoon標準の要素。 */
    @media screen and (max-width: 1023px) {
        #header-container,
        #header-container-in,
        #header {
            height: auto !important;
            min-height: 0 !important;
            width: 100% !important;
            margin: 0 !important;
        }

        #header-in {
            display: flex !important;
            flex-direction: row !important;
            align-items: center !important;
            justify-content: flex-start !important;
            flex-wrap: nowrap !important;
            width: 100% !important;
            padding: 14px 20px 14px 15px !important;
            box-sizing: border-box !important;
        }

        .logo.logo-header {
            margin: 0 !important;
            text-align: left !important;
            min-width: 0;
            flex: 0 1 auto;
        }

        .site-logo-image.header-site-logo-image {
            height: 32px !important;
            width: auto !important;
            max-width: 100% !important;
        }
    }

    /* ヘッダーをposition:fixedで常時固定表示する。SPでは下スクロール中に
       隠し上スクロールで再表示する制御が入るが（body.pachi-header-hidden、
       JS側は global-nav/init.php）、PCは画面に余裕があるため常時表示のまま。
       固定表示の分、bodyにヘッダーの実測高さ（--pachi-header-height、
       JSがSP/PCどちらの幅でも同期する）だけpadding-topを確保する。 */
    #header-container {
        position: fixed !important;
        top: 0; left: 0; right: 0;
        width: 100%;
        z-index: 10060;
        transition: transform 0.25s ease;
    }

    body.pachi-header-hidden #header-container {
        transform: translateY(-100%);
    }

    /* フォールバック値（JSがヘッダー実測高さを反映する前の初期値）が
       実際のヘッダー高さと乖離していると、ページ読み込み直後にJSが
       補正した瞬間、本文が数十pxガクッと動いて見える（特にヘッダー
       直下にあるコンテンツ、配信者詳細ページのアイコン等で顕著）。
       実際の高さに近い値をあらかじめ入れておき、補正の必要をほぼ
       無くすことでこのガタつきを防ぐ。 */
    body {
        padding-top: var(--pachi-header-height, 68px);
    }

    @media screen and (min-width: 1024px) {
        body {
            padding-top: var(--pachi-header-height, 84px);
        }
    }

    .pachi-header-actions {
        display: flex;
        align-items: center;
        gap: 20px;
        flex-shrink: 0;
        margin-left: auto;
    }

    /* ヘッダー直下に開閉する検索バー */
    .pachi-header-search-bar {
        display: none;
        align-items: center;
        gap: 8px;
        padding: 10px 16px;
        background: var(--pachi-bg-card);
        border-bottom: 1px solid var(--pachi-border);
        box-sizing: border-box;
    }
    .pachi-header-search-bar.is-open {
        display: flex;
    }
    .pachi-header-search-bar .search-edit {
        flex: 1 1 auto; min-width: 0; width: auto !important;
        height: 40px; box-sizing: border-box;
        background: var(--pachi-bg-main); border: 1px solid var(--pachi-border);
        border-radius: 8px; color: var(--pachi-text-main); padding: 0 12px;
        margin: 0 !important;
        /* iOSのSafariはinputのfont-sizeが16px未満だとフォーカス時に
           自動でズームインしてしまうため、16px以上を明示して防ぐ */
        font-size: 16px !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    .pachi-header-search-bar .search-edit::placeholder { color: var(--pachi-text-sub); }
    #pachiHeaderSearchSubmit.search-submit {
        position: static !important;
        top: auto !important; right: auto !important; left: auto !important; bottom: auto !important;
        flex: 0 0 40px; width: 40px !important; height: 40px;
        box-sizing: border-box; margin: 0 !important;
        background: var(--pachi-bg-main); border: 1px solid var(--pachi-border);
        border-radius: 8px; color: var(--pachi-text-main); cursor: pointer;
    }
    .pachi-header-search-bar .search-submit i {
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
        font-weight: 900 !important;
    }
    .pachi-header-search-toggle i {
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
        font-weight: 900 !important;
    }

    .pachi-mobile-nav-overlay {
        display: none;
        position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10060;
    }
    .pachi-mobile-nav-overlay.is-open { display: block; }

    .pachi-mobile-nav-panel {
        position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 300px);
        background: var(--pachi-bg-card); border-left: 1px solid var(--pachi-border);
        z-index: 10070; transform: translateX(100%); transition: transform .25s ease;
        padding: 60px 20px 20px; box-sizing: border-box; overflow-y: auto;
    }
    .pachi-mobile-nav-panel.is-open { transform: translateX(0); }

    .pachi-mobile-nav-close {
        position: absolute; top: 14px; right: 20px;
        width: 36px; height: 36px; border-radius: 50%;
        background: var(--pachi-bg-main); border: 1px solid var(--pachi-border);
        color: var(--pachi-text-main); font-size: 16px; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
    }

    .pachi-mobile-nav-search {
        display: flex; align-items: stretch; gap: 6px;
        margin-bottom: 20px; position: relative;
    }
    .pachi-mobile-nav-search .search-edit {
        flex: 1; min-width: 0; background: var(--pachi-bg-main);
        border: 1px solid var(--pachi-border); border-radius: 8px;
        padding: 10px 12px; color: var(--pachi-text-main);
        /* iOSのSafariはinputのfont-sizeが16px未満だとフォーカス時に
           自動でズームインしてしまうため、16px以上を明示して防ぐ */
        font-size: 16px;
    }
    .pachi-mobile-nav-search .search-edit::placeholder { color: var(--pachi-text-sub); }
    .pachi-mobile-nav-search .search-submit {
        flex-shrink: 0; width: 40px;
        background: var(--pachi-bg-main); border: 1px solid var(--pachi-border);
        border-radius: 8px; color: var(--pachi-text-main); cursor: pointer;
    }
    .pachi-mobile-nav-search .search-submit i {
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
        font-weight: 900 !important;
    }

    .pachi-mobile-nav-panel ul {
        list-style: none; margin: 0; padding: 0;
        display: flex; flex-direction: column; gap: 4px;
    }
    .pachi-mobile-nav-panel a {
        display: flex; align-items: center; gap: 10px;
        padding: 14px 10px; border-radius: 8px;
        color: var(--pachi-text-main); text-decoration: none; font-weight: 700; font-size: 15px;
    }
    .pachi-mobile-nav-panel a:hover,
    .pachi-mobile-nav-panel a:active { background: var(--pachi-bg-main); color: var(--pachi-neon); }
    .pachi-mobile-nav-toggle i,
    .pachi-mobile-nav-close i {
        /* Cocoon側の日本語フォント指定がFont Awesomeの指定より後勝ちし、
           アイコンが表示されない/文字化けする問題への対処 */
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
        font-weight: 900 !important;
    }

    .pachi-live-list-active .entry-title,
    .pachi-machine-index-active .entry-title {
        display: none !important;
    }

    html,
    body,
    #content,
    .main,
    .article,
    #container,
    #header,
    .header,
    .header-container,
    #footer,
    .footer,
    .footer-container {
        background-color: #0d0e15 !important; color: #ffffff !important; border-color: #242736 !important;
    }

    .header-right-actions { display: flex; align-items: center; gap: 12px; }
    .header-sns-btn {
        display: flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: 50%;
        background: var(--pachi-bg-card);
        border: 1px solid var(--pachi-border);
        cursor: pointer; transition: all 0.25s ease; padding: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    }
    .header-right-actions .icon-svg { width: 18px; height: 18px; fill: var(--pachi-text-sub); stroke: transparent; transition: all 0.25s ease; }

    .header-sns-btn.x-tw:hover { border-color: var(--pachi-text-main); }
    .header-sns-btn.x-tw:hover .icon-svg { fill: var(--pachi-text-main); }
    .header-sns-btn.line:hover { background: rgba(6, 199, 85, 0.05); border-color: #06C755; }
    .header-sns-btn.line:hover .icon-svg { fill: #06C755; }

    .pachi-more-item { display: none; }
    .pachi-more-item.is-revealed,
    .pachi-more-item.is-filter-revealed,
    .pachi-more-item.is-sort-revealed { display: block; }

    .pachi-more-trigger-inline {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        width: 100%; background: var(--pachi-bg-card); color: var(--pachi-text-main);
        border: 1px solid var(--pachi-border); border-radius: 10px;
        padding: 16px; font-size: 15px; font-weight: 700; cursor: pointer;
        margin-top: -6px; margin-bottom: 32px;
        transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    }
    /* display:flex の指定がブラウザ標準のhidden属性より詳細度が同点で後勝ちしてしまい、
       hidden属性を付けても表示され続けてしまう問題への対処 */
    .pachi-more-trigger-inline[hidden] { display: none !important; }
    .pachi-more-trigger-inline:hover { color: var(--pachi-neon); border-color: var(--pachi-neon); background: var(--pachi-bg-main); }
    .pachi-more-trigger-inline i { font-size: 1.2em; animation: pachi-more-bounce 1.4s ease-in-out infinite; }
    @keyframes pachi-more-bounce {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(3px); }
    }

    .machine-index-grid {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 10px;
    }
    .machine-index-item {
        display: flex; flex-direction: column; gap: 6px;
        background: var(--pachi-bg-card); border: 1px solid var(--pachi-border);
        border-radius: 8px; padding: 12px 14px; text-decoration: none;
        color: var(--pachi-text-main); font-size: 13px; font-weight: 700;
        transition: border-color 0.2s ease, color 0.2s ease;
    }
    .machine-index-item:hover { border-color: var(--pachi-neon); color: var(--pachi-neon); }
    .machine-index-item i { color: var(--pachi-neon); flex-shrink: 0; }
    .machine-index-item__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .machine-index-item__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .machine-index-item__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
    .machine-index-item__count { font-size: 11px; font-weight: 600; color: var(--pachi-text-sub); flex-shrink: 0; }
    .machine-index-item__arrow { font-size: 11px !important; color: var(--pachi-text-sub) !important; }
    .machine-index-item:hover .machine-index-item__arrow { color: var(--pachi-neon) !important; }

    .machine-index-item.is-live-now {
        border-color: rgba(239, 68, 68, 0.5);
        background: rgba(239, 68, 68, 0.06);
    }
    .machine-index-item__live-badge {
        display: flex; align-items: center; gap: 4px; flex-shrink: 0;
        font-size: 10px; font-weight: 800; color: #ef4444;
        background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4);
        padding: 2px 6px; border-radius: 10px;
    }
    .machine-index-item__live-badge .live-dot { animation: pachi-slow-blink 3s ease-in-out infinite; }
    @keyframes pachi-slow-blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.35; }
    }

    .news-index-category-tabs {
        display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding-bottom: 12px;
        border-bottom: 1px solid var(--pachi-border);
    }
    .news-index-category-tabs .machine-tab {
        text-decoration: none !important;
        border-bottom: none !important;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .news-index-grid {
        display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
    .news-index-card {
        display: flex; flex-direction: column;
        background: var(--pachi-bg-card); border: 1px solid var(--pachi-border);
        border-radius: 10px; overflow: hidden; text-decoration: none;
        color: var(--pachi-text-main);
        transition: border-color 0.2s ease;
    }
    .news-index-card:hover { border-color: var(--pachi-neon); }
    .news-index-card__thumb {
        width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
        background: var(--pachi-bg-main); flex-shrink: 0;
    }
    .news-index-card__thumb--placeholder {
        display: flex; align-items: center; justify-content: center;
        color: var(--pachi-text-sub); font-size: 28px;
    }
    .news-index-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px; }
    .news-index-card__meta { display: flex; align-items: center; gap: 8px; }
    .news-index-card__category {
        font-size: 10px; font-weight: 800; color: #0d0e15;
        background: var(--pachi-neon); padding: 2px 8px; border-radius: 10px;
    }
    .news-index-card__date { font-size: 11px; color: var(--pachi-text-sub); }
    .news-index-card__title {
        font-size: 14px; font-weight: 700; line-height: 1.5;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .news-index-card:hover .news-index-card__title { color: var(--pachi-neon); }
    .news-index-card__excerpt {
        font-size: 12px; color: var(--pachi-text-sub); line-height: 1.5;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }

    .news-index-pagination {
        display: flex; align-items: center; justify-content: center; gap: 20px;
        margin-top: 32px;
    }
    .news-index-pagination__link {
        color: var(--pachi-text-main); font-size: 13px; font-weight: 700;
        text-decoration: none; padding: 8px 14px; border: 1px solid var(--pachi-border);
        border-radius: 8px; transition: border-color 0.2s ease, color 0.2s ease;
    }
    .news-index-pagination__link:hover { border-color: var(--pachi-neon); color: var(--pachi-neon); }
    .news-index-pagination__status { font-size: 12px; color: var(--pachi-text-sub); }

    .pachi-search-suggestions {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
        background: var(--pachi-bg-card); border: 1px solid var(--pachi-border);
        border-radius: 8px; overflow: hidden; z-index: 100;
        box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    }
    .pachi-search-suggestions.is-open { display: block; }
    .pachi-search-suggestions__item {
        display: flex; align-items: center; gap: 8px;
        padding: 10px 12px; font-size: 13px; font-weight: 600;
        color: var(--pachi-text-main); text-decoration: none;
        border-bottom: 1px solid var(--pachi-border);
    }
    .pachi-search-suggestions__item:last-child { border-bottom: none; }
    .pachi-search-suggestions__item:hover { background: var(--pachi-bg-main); color: var(--pachi-neon); }
    .pachi-search-suggestions__item i { color: var(--pachi-neon); flex-shrink: 0; }

    .pachi-machine-date-group { margin-bottom: 28px; }
    .pachi-machine-date-group:last-child { margin-bottom: 0; }
    .pachi-machine-date-heading {
        display: flex; align-items: center; gap: 8px;
        font-size: 14px; font-weight: 700; color: var(--pachi-text-main);
        margin: 0 0 12px; padding-left: 10px;
        border-left: 3px solid var(--pachi-neon);
    }

    .archive-highlight {
        display: flex; flex-direction: column; gap: 3px;
        margin-top: 6px;
    }
    .archive-highlight:empty { display: none; }
    .archive-highlight-line {
        display: flex; align-items: center; gap: 5px;
        font-size: 10px; font-weight: 700; color: #ffb020;
    }
    .archive-highlight-line i {
        color: #ff6b6b;
        /* Cocoon側の日本語フォント指定がFont Awesomeの指定より後勝ちし、
           アイコンが文字化けした四角表示になってしまう問題への対処 */
        font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important;
        font-weight: 900 !important;
    }
    .archive-highlight-like { color: #fbbf24; }
    .archive-highlight-like i { color: #fbbf24; }

    .pachi-accordion-section { margin-top: 24px; border: 1px solid var(--pachi-border); border-radius: 8px; overflow: hidden; }
    .accordion-trigger-btn {
        width: 100%; background: var(--pachi-bg-card); color: var(--pachi-text-main); padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 700; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    }
    .accordion-content-block { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: var(--pachi-bg-main); padding: 0 16px; }
    .accordion-content-block.open { max-height: 800px; padding: 16px; overflow-y: auto; }
    .pachi-guide-section { margin-top: 12px; margin-bottom: 16px; }
    .pachi-guide-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
    .pachi-guide-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; color: var(--pachi-text-sub); }
    .pachi-guide-list li i { margin-top: 3px; color: var(--pachi-neon); flex-shrink: 0; }
    .pachi-guide-list li strong { color: var(--pachi-text-main); }

    .offline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
    .offline-item { background: var(--pachi-bg-card); border: 1px solid var(--pachi-border); padding: 8px; border-radius: 6px; display: flex; align-items: center; gap: 8px; }
    .offline-avatar { width: 24px; height: 24px; border-radius: 50%; filter: grayscale(80%); }
    .offline-info { display: flex; flex-direction: column; line-height: 1.2; }
    .offline-name { font-size: 11px; font-weight: bold; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .offline-status-dot { font-size: 9px; color: var(--pachi-text-sub); }

    @media screen and (max-width: 767px) {
        .streamer-grid { grid-template-columns: 1fr !important; gap: 14px !important; }

        .streamer-card:not(.premium-pickup-card) {
            flex-direction: row !important;
            align-items: stretch;
            height: auto;
            min-height: 95px;
        }
        .streamer-card:not(.premium-pickup-card) .card-thumbnail-wrapper {
            width: 42% !important;
            flex-shrink: 0;
            align-self: stretch;
            background: var(--pachi-bg-card);
        }
        .streamer-card:not(.premium-pickup-card) .card-content {
            width: 58% !important;
            padding: 6px 8px !important;
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            gap: 2px;
        }

        .premium-pickup-card {
            flex-direction: column !important;
            height: auto !important;
        }
        .premium-pickup-card .card-thumbnail-wrapper {
            width: 100% !important;
        }
        .premium-pickup-card .premium-content {
            width: 100% !important;
            padding: 12px !important;
            display: flex !important;
            flex-direction: column !important;
        }
        .premium-pickup-card .premium-title {
            font-size: 14px !important;
            margin-top: 6px !important;
            display: -webkit-box !important;
            height: auto !important;
            max-height: 2.8em !important;
            margin: 6px 15px;
        }
        .premium-pickup-card .streamer-avatar {
            width: 28px !important;
            height: 28px !important;
        }
        .premium-pickup-card .streamer-name {
            font-size: 13px !important;
            color: var(--pachi-text-main) !important;
            max-width: 140px !important;
        }

        .streamer-card:not(.premium-pickup-card) .streamer-avatar { width: 20px !important; height: 20px !important; }
        .streamer-card:not(.premium-pickup-card) .streamer-name { font-size: 11px !important; color: var(--pachi-text-sub); max-width: 110px !important; }
        .streamer-card:not(.premium-pickup-card) .live-title {
            font-size: 12px !important; font-weight: bold !important; margin-top: 4px !important; line-height: 1.3 !important; height: auto !important; max-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical; overflow: hidden;
        }

        .live-badge, .archive-badge, .upcoming-badge { top: 6px; left: 6px; font-size: 8px !important; padding: 1px 3px; }
        .upcoming-time-badge { font-size: 10px !important; }
        .viewer-badge { bottom: 6px; left: 6px; font-size: 9px !important; padding: 1px 4px; }
        .pachi-js-play-trigger .thumb-frame::after { width: 20px; height: 20px; font-size: 9px; bottom: 6px; right: 6px; }
        .pachi-play-overlay { font-size: 9px; }

        .shorts-badge { font-size: 8px !important; padding: 0px 4px; }
        .machine-tag { font-size: 9px !important; padding: 1px 5px !important; margin-top: 2px !important; display: inline-block; width: fit-content; }
        .live-stats-row { margin-top: 2px !important; font-size: 9px !important; }

        /* 機種タグと高評価・経過時間を同じ行に並べ、配信者行の余白も詰めて
           サムネ（16:9）とテキスト側の高さの差を縮める */
        .streamer-card:not(.premium-pickup-card) .tag-stats-row {
            display: flex !important; align-items: center; justify-content: space-between; gap: 6px;
        }
        .streamer-card:not(.premium-pickup-card) .tag-stats-row .machine-tag { margin-top: 0 !important; }
        .streamer-card:not(.premium-pickup-card) .tag-stats-row .live-stats-row {
            margin-top: 0 !important; display: flex; gap: 6px; flex-shrink: 0;
        }
        .streamer-card:not(.premium-pickup-card) .streamer-profile { margin-top: 4px !important; }

        .machine-tabs-container { gap: 6px !important; overflow-x: auto; white-space: nowrap; padding-bottom: 8px !important; -webkit-overflow-scrolling: touch; }
        .machine-tab { padding: 6px 12px !important; font-size: 11px !important; border-radius: 15px !important; }
        .machine-tab.active { background: #242736 !important; color: var(--pachi-neon) !important; border-color: var(--pachi-neon) !important; font-weight: 900 !important; box-shadow: 0 0 12px rgba(57, 255, 20, 0.6) !important; }

        .offline-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    }

/* ==========================
   カードアクションシート（SPのみ）
   タイトル・余白タップ時に選択肢を出す下からのシート
   ========================== */

.card-action-sheet {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
}

.card-action-sheet.is-open {
    display: block;
}

.card-action-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    transition: opacity .2s ease;
}

.card-action-sheet.is-open .card-action-sheet__backdrop {
    opacity: 1;
}

.card-action-sheet__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(88vw, 340px);
    max-height: min(70vh, 232px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--pachi-bg-card);
    border: 1px solid var(--pachi-border);
    border-radius: 16px;
    padding: 8px 16px 16px;
    box-sizing: border-box;
    transform: translate(-50%, -50%) scale(.94);
    opacity: 0;
    transition: transform .2s ease, opacity .2s ease;
}

.card-action-sheet.is-open .card-action-sheet__panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.card-action-sheet__handle {
    display: none;
}

.card-action-sheet__close {
    appearance: none;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--pachi-bg-main);
    color: var(--pachi-text-sub);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-action-sheet__title {
    font-size: 13px;
    font-weight: bold;
    color: var(--pachi-text-sub);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 16px 32px 10px 4px;
    border-bottom: 1px solid var(--pachi-border);
    margin-bottom: 6px;
}

.card-action-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.card-action-sheet__item {
    appearance: none;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    border-bottom: 1px solid var(--pachi-border);
    color: var(--pachi-text-main);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    padding: 14px 4px;
    cursor: pointer;
}

.card-action-sheet__list li:last-child .card-action-sheet__item {
    border-bottom: none;
}

.card-action-sheet__item i {
    width: 20px;
    text-align: center;
    color: var(--pachi-text-sub);
}

.card-action-sheet__item[data-action="favorite"].is-active i,
.card-action-sheet__item[data-action="favorite"].is-active span {
    color: var(--pachi-neon);
}

/* 「YouTubeで開く」だけ視覚的に少し弱め、意図的にスクロール先へ配置する */
.card-action-sheet__item-wrap--youtube {
    margin-top: 4px;
}

.card-action-sheet__item--youtube {
    color: var(--pachi-text-sub);
    font-weight: 400;
    font-size: 13px;
}

.card-action-sheet__item--youtube i {
    color: var(--pachi-text-sub);
}

/* PCではこのシートは使わない（タイトルタップは従来通りYouTubeへ） */
@media screen and (min-width: 768px) {
    .card-action-sheet {
        display: none !important;
    }
}
