        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            background: #000;
            color: #fff;
        }

        /* ===== ビュー切り替え ===== */
        .view { display: none; }
        .view.active { display: block; }

        /* サムネイルビュー時はbodyのスクロールを有効に */
        body.thumbnail-view-active {
            overflow: auto;
        }

        /* プレイヤービュー時はbodyのスクロールを無効に */
        body.player-view-active {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        /* ===== サムネイルビューのスタイル ===== */

        /* ヘッダー */
        #thumbnail-view header {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(10px);
            padding: 10px 15px;
            z-index: 1000;
            border-bottom: 1px solid #333;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        #thumbnail-view h1 {
            font-size: 24px;
            font-weight: bold;
            color: #fff;
        }

        /* ヘッダータブ（お気に入り/アーカイブ） */
        .header-tabs {
            display: flex;
            gap: 8px;
        }

        .header-tab {
            padding: 8px 12px;
            background: transparent;
            border: 1px solid #333;
            border-radius: 16px;
            color: #888;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .header-tab:hover {
            color: #fff;
            border-color: #666;
        }

        .header-tab.favorites-tab {
            background: rgba(255, 215, 0, 0.1);
            border-color: rgba(255, 215, 0, 0.3);
        }

        .header-tab.favorites-tab:hover,
        .header-tab.favorites-tab.active {
            color: #FFD700;
            background: rgba(255, 215, 0, 0.2);
        }

        .header-tab.archive-tab {
            background: rgba(29, 155, 240, 0.1);
            border-color: rgba(29, 155, 240, 0.3);
        }

        .header-tab.archive-tab:hover {
            color: #1d9bf0;
            background: rgba(29, 155, 240, 0.2);
        }

        /* タブナビゲーション */
        .tab-nav {
            position: fixed;
            top: 50px;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #333;
            z-index: 999;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-x;
        }

        .tab-container {
            display: flex;
            max-width: 1200px;
            margin: 0 auto;
        }

        .tab {
            flex: 1 1 0%;
            padding: 12px 12px;
            background: transparent;
            border: none;
            color: #888;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            position: relative;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: all 0.2s;
            min-width: 0;
            text-align: center;
        }

        @media (max-width: 390px) {
            .tab {
                padding: 10px 8px;
                font-size: 12px;
                min-width: 0;
            }
        }

        .tab:hover { color: #ccc; }
        .tab.active { color: #fff; }

        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 2px;
            background: #1d9bf0;
        }

        .tab.favorites-tab {
            background: rgba(255, 215, 0, 0.1);
            border-left: 1px solid #333;
            margin-left: 10px;
        }

        .tab.favorites-tab:hover {
            background: rgba(255, 215, 0, 0.2);
            color: #FFD700;
        }

        .tab.favorites-tab.active {
            color: #FFD700;
        }

        .tab.favorites-tab.active::after {
            background: #FFD700;
        }

        /* グリッドレイアウト */
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 4px;
            padding: 100px 4px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        @media (min-width: 768px) {
            .video-grid {
                grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
                gap: 8px;
                padding: 100px 8px 20px;
            }
        }

        /* ビデオアイテム */
        .video-thumbnail-item {
            position: relative;
            background: #111;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            aspect-ratio: 9 / 16;
            opacity: 0;
            transform: translateY(8px);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .video-thumbnail-item.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .video-thumbnail-item.visible:hover {
            transform: scale(1.03);
            z-index: 10;
        }


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

        /* お気に入りアイコン */
        .favorite-icon {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            background: rgba(0, 0, 0, 0.7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 20;
        }

        .favorite-icon:hover {
            background: rgba(255, 215, 0, 0.8);
            transform: scale(1.1);
        }

        .favorite-icon svg {
            width: 16px;
            height: 16px;
            fill: white;
            transition: fill 0.2s;
        }

        .favorite-icon.active svg { fill: #FFD700; }
        .favorite-icon.active { background: rgba(255, 215, 0, 0.3); }

        /* ローディング */
        .loading-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 80vh;
            min-height: 80dvh;
            color: #666;
            grid-column: 1 / -1;
        }

        .spinner {
            display: inline-block;
            width: 40px;
            height: 40px;
            border: 3px solid #333;
            border-top-color: #1d9bf0;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* ローディングコンテナ用ラビット */
        .loading-container .rabbit-emoji {
            font-size: 48px;
            animation: rabbit-bounce 0.6s ease-in-out infinite;
            line-height: 1;
        }

        .loading-container .rabbit-shadow {
            width: 36px;
            height: 8px;
            background: rgba(100, 100, 100, 0.3);
            border-radius: 50%;
            margin: 0 auto;
            animation: shadow-pulse 0.6s ease-in-out infinite;
        }

        .loading-container .loading-text {
            color: #666;
            margin-top: 8px;
        }

        /* インフィニットスクロール */
        .load-more {
            text-align: center;
            padding: 30px;
            min-height: 80px;
        }

        .load-more .loading-rabbit { display: none; }

        .load-more .loading-rabbit .rabbit-emoji {
            font-size: 36px;
            animation: rabbit-bounce 0.6s ease-in-out infinite;
            line-height: 1;
        }

        .load-more .loading-rabbit .rabbit-shadow {
            width: 28px;
            height: 6px;
            background: rgba(100, 100, 100, 0.3);
            border-radius: 50%;
            margin: 4px auto 0;
            animation: shadow-pulse 0.6s ease-in-out infinite;
        }

        /* お気に入りフィードバックメッセージ */
        .favorite-feedback {
            position: fixed;
            bottom: 100px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 12px 24px;
            border-radius: 8px;
            font-size: 14px;
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
            pointer-events: none;
            text-align: center;
            white-space: pre-line;
        }

        .favorite-feedback.show { opacity: 1; }

        /* ===== プレイヤービューのスタイル ===== */

        #player-view {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #000;
            z-index: 2000;
        }

        /* ビデオコンテナ */
        .video-container {
            position: absolute;
            width: 100%;
            height: 100%;
            overflow-y: scroll;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: y mandatory;
            scroll-behavior: auto;
            /* スクロールバー非表示 */
            scrollbar-width: none;           /* Firefox */
            -ms-overflow-style: none;        /* IE/Edge */
        }

        /* WebKit系ブラウザ用スクロールバー非表示 */
        .video-container::-webkit-scrollbar {
            display: none;
        }

        /* 各動画アイテム */
        .video-item {
            position: relative;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            scroll-snap-align: start;
            scroll-snap-stop: always;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #000;
            overflow: hidden;
        }

        .video-item video {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: #000;
        }

        /* シークバー（タッチ領域） */
        .seek-bar {
            position: absolute;
            bottom: 25px;
            left: 20px;
            right: 20px;
            height: 54px;
            cursor: pointer;
            z-index: 100;
        }

        /* 背景バー（灰色・動画全長を表す） */
        .seek-bar::before {
            content: '';
            position: absolute;
            top: 25px;
            left: 0;
            right: 0;
            height: 4px;
            background: rgba(80, 80, 80, 0.7);
            border-radius: 2px;
            pointer-events: none;
            transition: height 0.2s, top 0.2s;
        }

        /* プログレスバー（青・再生済み部分） */
        .seek-progress {
            position: absolute;
            top: 25px;
            left: 0;
            height: 4px;
            background: #1DA1F2;
            border-radius: 2px;
            pointer-events: none;
            z-index: 1;
            transition: height 0.2s, top 0.2s;
        }

        /* ホバー時の拡大 */
        .seek-bar:hover::before,
        .seek-bar:active::before {
            height: 6px;
            top: 24px;
        }

        .seek-bar:hover .seek-progress,
        .seek-bar:active .seek-progress {
            height: 6px;
            top: 24px;
        }

        @media (max-width: 768px) {
            .seek-bar {
                bottom: max(25px, calc(env(safe-area-inset-bottom) + 5px));
                right: 20px;
                height: 64px;
            }
            .seek-bar::before {
                top: 30px;
            }
            .seek-progress {
                top: 30px;
            }
        }

        /* プレイヤーヘッダー */
        .player-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
            display: flex;
            align-items: center;
            padding: 0 20px;
            z-index: 200;
            justify-content: space-between;
        }

        .player-header-left {
            display: flex;
            align-items: center;
        }

        .back-button {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 10px;
            margin-right: 15px;
        }

        .site-title {
            font-size: 24px;
            font-weight: bold;
            color: #fff;
        }

        /* コントロールボタン共通スタイル */
        .player-control-btn {
            position: fixed;
            width: 48px;
            height: 48px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            z-index: 2100;
            z-index: 300;
            border: none;
            outline: none;
        }

        .player-control-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: scale(1.1);
        }

        .player-control-btn svg {
            width: 24px;
            height: 24px;
            fill: white;
        }

        /* ミュートボタン */
        .mute-button {
            top: 180px;
            left: 20px;
        }

        /* ミュートヒント（ミュート中に表示） */
        .mute-hint {
            position: fixed;
            top: 235px;
            left: 15px;
            background: rgba(0, 0, 0, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            padding: 8px 16px;
            display: flex;
            align-items: center;
            gap: 8px;
            z-index: 3001;  /* player-view(2000)より上 */
            opacity: 0;
            transform: translateX(-20px);
            transition: opacity 0.3s, transform 0.3s;
            pointer-events: none;
        }

        .mute-hint.visible {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
            cursor: pointer;
            animation: pulse-hint 2s infinite;
        }

        @keyframes pulse-hint {
            0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
            50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
        }

        .mute-hint-icon {
            font-size: 16px;
        }

        .mute-hint-text {
            font-size: 13px;
            color: #fff;
            white-space: nowrap;
        }

        /* 読み込み遅延メッセージ */
        .loading-delay-message {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: rgba(255, 255, 255, 0.95);
            z-index: 60;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s, visibility 0.3s;
            pointer-events: none;
        }

        .loading-delay-message.visible {
            opacity: 1;
            visibility: visible;
        }

        /* プログレスバーコンテナ */
        .delay-progress {
            width: 200px;
            height: 4px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 16px;
        }

        /* プログレスバー（左から右へ） */
        .delay-progress-bar {
            width: 30%;
            height: 100%;
            background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.9));
            border-radius: 2px;
            animation: progress-slide 1.5s ease-in-out infinite;
        }

        @keyframes progress-slide {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(400%); }
        }

        .delay-text {
            font-size: 14px;
            line-height: 1.6;
            background: rgba(0, 0, 0, 0.75);
            padding: 16px 24px;
            border-radius: 16px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* スワイプヒント - ミニマル＆エレガント */
        .swipe-hint {
            position: fixed;
            bottom: 120px;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            z-index: 3000;  /* player-view(2000)より上 */
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.5s, visibility 0.5s;
            pointer-events: none;
        }

        .swipe-hint.visible {
            opacity: 1;
            visibility: visible;
            animation: pulse-glow 2s infinite;  /* ピカピカ光る */
        }

        /* 下矢印 */
        .swipe-arrow {
            font-size: 28px;
            color: rgba(255, 255, 255, 0.95);
            margin-top: 8px;
            animation: arrow-bounce 1.5s ease-in-out infinite;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
            text-align: center;
        }

        /* 矢印のバウンスアニメーション */
        @keyframes arrow-bounce {
            0%, 100% {
                transform: translateY(0);
                opacity: 1;
            }
            50% {
                transform: translateY(10px);
                opacity: 0.6;
            }
        }

        /* テキスト部分 */
        .swipe-hint-text {
            font-family: 'Yomogi', cursive;  /* かわいいフォント */
            font-size: 14px;
            color: rgba(255, 255, 255, 0.95);
            background: rgba(0, 0, 0, 0.6);
            padding: 10px 20px;
            border-radius: 25px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            margin: 0;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

        /* ピカピカ光るエフェクト */
        @keyframes pulse-glow {
            0%, 100% {
                filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0.4));
            }
            50% {
                filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
            }
        }

        /* レスポンシブ対応 - iPhone SE・小さいスマホ */
        @media (max-width: 375px) {
            .swipe-hint {
                bottom: 100px;
            }
            .swipe-hand {
                font-size: 28px;
            }
            .swipe-hint-text {
                font-size: 12px;
                padding: 8px 14px;
            }
        }

        /* レスポンシブ対応 - タブレット・PC */
        @media (min-width: 768px) {
            .swipe-hint {
                bottom: 150px;
            }
            .swipe-hand {
                font-size: 40px;
            }
            .swipe-hint-text {
                font-size: 16px;
                padding: 12px 24px;
            }
        }

        /* 速度ボタン */
        .speed-button {
            bottom: 80px;
            left: 20px;
            font-size: 14px;
            font-weight: bold;
            color: white;
            user-select: none;
        }

        /* 速度メニュー */
        .speed-menu {
            position: fixed;
            bottom: 140px;
            left: 20px;
            background: rgba(0, 0, 0, 0.9);
            border-radius: 8px;
            padding: 8px;
            display: none;
            flex-direction: column;
            gap: 4px;
            z-index: 400;
        }

        .speed-menu.visible { display: flex; }

        .speed-option {
            padding: 8px 16px;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            text-align: center;
            border: none;
            outline: none;
        }

        .speed-option:hover { background: rgba(255, 255, 255, 0.2); }
        .speed-option.active { background: #1DA1F2; }

        /* お気に入りボタン（左上、ヘッダーの下） */
        .favorite-button {
            top: 70px;
            left: 20px;
        }

        .favorite-button.active svg {
            fill: #FFD700;
        }

        /* コメントボタン（右下、シークバーの上） */
        .comment-button {
            bottom: 80px;
            right: 20px;
            flex-direction: column;
            gap: 2px;
        }

        .comment-count {
            font-size: 10px;
            color: white;
        }

        /* PiPボタン（右上、お気に入りと同じ高さ） */
        .pip-button {
            top: 70px;
            right: 20px;
        }

        /* UI非表示ボタン（左上、お気に入りの下） */
        .hide-toggle-icon {
            top: 125px;
            left: 20px;
        }

        /* 右下コーナーロゴ（UI非表示時に表示） */
        .corner-logo {
            position: fixed;
            bottom: 20px;
            right: 20px;
            font-size: 16px;
            font-weight: bold;
            color: rgba(255, 255, 255, 0.4);
            z-index: 300;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
            font-family: 'Yomogi', cursive;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .corner-logo.visible {
            opacity: 1;
        }

        @supports (padding: env(safe-area-inset-bottom)) {
            .corner-logo {
                bottom: calc(20px + env(safe-area-inset-bottom));
                right: calc(20px + env(safe-area-inset-right));
            }
        }

        /* UI非表示時のスタイル */
        .ui-hidden {
            opacity: 0 !important;
            pointer-events: none !important;
        }

        /* UI非表示時に薄く残すスタイル（hideButton用） */
        .ui-dimmed {
            opacity: 0 !important;
        }

        /* 削除された動画のオーバーレイ */
        .deleted-video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
        }

        .deleted-message {
            text-align: center;
            color: #fff;
        }

        .deleted-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 16px;
        }

        .deleted-message p {
            margin: 8px 0;
            font-size: 18px;
        }

        .deleted-hint {
            color: #888;
            font-size: 14px !important;
        }

        /* コメントパネル（Bottom Sheet） */
        .comment-panel {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60vh;
            background: #1a1a1a;
            border-radius: 16px 16px 0 0;
            z-index: 500;
            transform: translateY(100%);
            transition: transform 0.3s ease-out;
        }

        .comment-panel.visible {
            transform: translateY(0);
        }

        .comment-panel-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 499;
            display: none;
        }

        .comment-panel.visible + .comment-panel-backdrop,
        .comment-panel-backdrop.visible {
            display: block;
        }

        .comment-panel-content {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .comment-panel-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid #333;
        }

        .comment-panel-header h3 {
            font-size: 16px;
            color: #fff;
        }

        .comment-panel-handle {
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 4px;
            background: #666;
            border-radius: 2px;
            cursor: grab;
            /* タッチ領域拡大 */
            padding: 12px 30px;
            background-clip: content-box;
            -webkit-tap-highlight-color: transparent;
        }

        .comment-panel-handle:active {
            cursor: grabbing;
            background-color: #888;
        }

        .comment-panel-close {
            background: none;
            border: none;
            color: #888;
            font-size: 24px;
            cursor: pointer;
        }

        .comment-list {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            max-height: calc(60vh - 140px);
            -webkit-overflow-scrolling: touch;
        }

        .comment-item {
            padding: 12px 0;
            border-bottom: 1px solid #333;
        }

        /* ネストの深さに応じたインデント */
        .comment-item[data-depth="1"] { margin-left: 24px; }
        .comment-item[data-depth="2"] { margin-left: 48px; }
        .comment-item[data-depth="3"] { margin-left: 72px; }
        .comment-item[data-depth="4"] { margin-left: 96px; }
        .comment-item[data-depth="5"] { margin-left: 120px; }

        .comment-item[data-depth]:not([data-depth="0"]) {
            padding-left: 12px;
            border-left: 2px solid #444;
            margin-top: 8px;
            border-bottom: none;
        }

        /* スマホ用 */
        @media (max-width: 480px) {
            .comment-item[data-depth="1"] { margin-left: 16px; }
            .comment-item[data-depth="2"] { margin-left: 32px; }
            .comment-item[data-depth="3"] { margin-left: 48px; }
            .comment-item[data-depth="4"] { margin-left: 64px; }
            .comment-item[data-depth="5"] { margin-left: 80px; }
        }

        .comment-author {
            font-weight: bold;
            color: #1DA1F2;
            margin-bottom: 4px;
        }

        .comment-text {
            color: #ccc;
            font-size: 14px;
            line-height: 1.4;
            word-break: break-word;
        }

        .comment-time {
            color: #666;
            font-size: 12px;
            margin-top: 4px;
        }

        .comment-actions {
            display: flex;
            gap: 16px;
            margin-top: 8px;
            align-items: center;
        }

        .comment-like-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            font-size: 12px;
            padding: 4px 8px;
            transition: color 0.2s;
        }

        .comment-like-btn:hover {
            color: #f91880;
        }

        .comment-like-btn.liked {
            color: #f91880;
        }

        .comment-like-btn svg {
            width: 16px;
            height: 16px;
        }

        /* 低評価ボタン */
        .comment-dislike-btn {
            display: flex;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            font-size: 12px;
            padding: 4px 8px;
            transition: color 0.2s;
        }

        .comment-dislike-btn:hover {
            color: #6b9fff;
        }

        .comment-dislike-btn.disliked {
            color: #6b9fff;
        }

        .comment-dislike-btn svg {
            width: 16px;
            height: 16px;
        }

        /* 返信ボタン */
        .reply-btn {
            background: none;
            border: none;
            color: #666;
            font-size: 12px;
            cursor: pointer;
            padding: 4px 8px;
            transition: color 0.2s;
        }

        .reply-btn:hover {
            color: #1DA1F2;
        }

        /* 返信コメント */
        .comment-reply {
            margin-left: 32px;
            padding-left: 12px;
            border-left: 2px solid #444;
            margin-top: 8px;
        }

        .replies-container {
            margin-top: 8px;
        }

        /* 返信入力エリア */
        .reply-input-area {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            padding: 8px;
            background: #2a2a2a;
            border-radius: 8px;
        }

        .reply-input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #444;
            border-radius: 16px;
            background: #1a1a1a;
            color: white;
            font-size: 14px;
            outline: none;
        }

        .reply-input:focus {
            border-color: #1DA1F2;
        }

        .reply-send-btn {
            padding: 8px 16px;
            border: none;
            border-radius: 16px;
            background: #1DA1F2;
            color: white;
            font-size: 12px;
            cursor: pointer;
        }

        .reply-send-btn:disabled {
            background: #444;
            cursor: not-allowed;
        }

        .reply-cancel-btn {
            padding: 8px 12px;
            border: none;
            border-radius: 16px;
            background: #444;
            color: #888;
            font-size: 12px;
            cursor: pointer;
        }

        .reply-cancel-btn:hover {
            background: #555;
        }

        /* URL リンク表示 */
        .comment-link {
            color: #1DA1F2;
            font-size: 11px;
        }

        /* コメント入力エリア */
        .comment-input-area {
            display: flex;
            padding: 12px 16px;
            gap: 8px;
            border-top: 1px solid #333;
            background: #1a1a1a;
            /* 通常時は相対配置、キーボード時はJSでfixedに変更 */
            position: relative;
            z-index: 100;
            /* iPhoneセーフエリア対応 */
            padding-bottom: max(12px, env(safe-area-inset-bottom));
        }

        /* キーボード表示時（position: fixed に変更される） */
        .comment-input-area.keyboard-visible {
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
            z-index: 9999;
        }

        #commentInput {
            flex: 1;
            padding: 10px 14px;
            border: 1px solid #444;
            border-radius: 20px;
            background: #2a2a2a;
            color: white;
            font-size: 14px;
            outline: none;
        }

        #commentInput:focus {
            border-color: #1DA1F2;
        }

        #commentInput::placeholder {
            color: #888;
        }

        .comment-send-btn {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 50%;
            background: #1DA1F2;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
        }

        .comment-send-btn:hover {
            background: #1a91da;
        }

        .comment-send-btn:disabled {
            background: #444;
            cursor: not-allowed;
        }

        .comment-send-btn svg {
            width: 20px;
            height: 20px;
        }

        /* 再生ボタンオーバーレイ */
        .play-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80px;
            height: 80px;
            background: rgba(0, 0, 0, 0.6);
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 60;
        }

        .play-overlay.visible { display: flex; }

        .play-overlay svg {
            width: 40px;
            height: 40px;
            fill: white;
            margin-left: 5px;
        }

        /* ローディング（ウサギぴょこぴょこ） */
        .player-loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            z-index: 50;
        }

        .player-loading-spinner .rabbit-emoji {
            font-size: 48px;
            animation: rabbit-bounce 0.6s ease-in-out infinite;
            line-height: 1;
        }

        .player-loading-spinner .rabbit-shadow {
            width: 36px;
            height: 8px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            animation: shadow-pulse 0.6s ease-in-out infinite;
        }

        .player-loading-spinner .loading-text {
            color: white;
            font-size: 14px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.8);
            margin: 4px 0 0;
        }

        @keyframes rabbit-bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }

        @keyframes shadow-pulse {
            0%, 100% { transform: scaleX(1); opacity: 0.3; }
            50% { transform: scaleX(0.5); opacity: 0.1; }
        }

        /* 動画情報 */
        .video-info {
            position: absolute;
            bottom: 80px;
            left: 20px;
            right: 60px;
            z-index: 100;
        }

        @media (max-width: 768px) {
            .video-info {
                bottom: max(80px, calc(env(safe-area-inset-bottom) + 50px));
            }
        }

        .video-title {
            font-size: 14px;
            margin-bottom: 5px;
            text-shadow: 0 1px 3px rgba(0,0,0,0.8);
        }

        /* 時間表示 */
        .time-display {
            position: absolute;
            bottom: 5px;
            left: 20px;
            color: white;
            font-size: 12px;
            text-shadow: 0 1px 2px rgba(0,0,0,0.8);
            z-index: 100;
            pointer-events: none;
        }

        /* シークインジケーター */
        .seek-indicator {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 36px;
            font-weight: bold;
            color: white;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.9);
            opacity: 0;
            transition: opacity 0.15s ease-out;
            z-index: 65;
            pointer-events: none;
        }

        .seek-indicator.left { left: 15%; }
        .seek-indicator.right { right: 15%; }

        .seek-indicator.show {
            opacity: 1;
            animation: seekPulse 0.4s ease-out;
        }

        @keyframes seekPulse {
            0% { transform: translateY(-50%) scale(1); }
            50% { transform: translateY(-50%) scale(1.3); }
            100% { transform: translateY(-50%) scale(1); opacity: 0; }
        }

        /* レスポンシブ対応（プレイヤーボタン） */
        @media (max-width: 375px) {
            .favorite-button { top: 65px; left: 12px; width: 40px; height: 40px; }
            .hide-toggle-icon { top: 115px; left: 12px; width: 40px; height: 40px; }
            .mute-button { top: 165px; left: 12px; width: 40px; height: 40px; }
            .comment-button { bottom: 75px; right: 12px; width: 40px; height: 40px; }
            .pip-button { top: 65px; right: 12px; width: 40px; height: 40px; }
            .speed-button { left: 12px; bottom: 70px; width: 40px; height: 40px; }
            .speed-menu { left: 12px; bottom: 120px; }
        }

        @media (min-width: 768px) {
            .mute-button { left: 30px; }
            .speed-button { left: 30px; }
            .speed-menu { left: 30px; }
        }

        /* 返信トグルボタン（折りたたみ/展開） */
        .reply-toggle-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            background: none;
            border: none;
            color: #888;
            cursor: pointer;
            font-size: 12px;
            padding: 6px 0;
            margin-top: 4px;
        }

        .reply-toggle-btn:hover {
            color: #1DA1F2;
        }

        .reply-toggle-arrow {
            font-size: 10px;
            transition: transform 0.15s ease;
        }

        .reply-toggle-count {
            color: #666;
        }

        .reply-toggle-btn:hover .reply-toggle-count {
            color: #888;
        }

        /* ===== リトライオーバーレイ ===== */
        .retry-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
        }

        .retry-message {
            text-align: center;
            color: white;
        }

        .retry-spinner {
            font-size: 48px;
            display: block;
            animation: spin 1s linear infinite;
        }

        /* きれいなCSSスピナー */
        .retry-spinner-css {
            width: 40px;
            height: 40px;
            margin: 0 auto 16px;
            border: 3px solid rgba(255, 255, 255, 0.2);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .retry-text {
            margin-top: 16px;
            font-size: 16px;
        }

        /* ===== トースト通知 ===== */
        .skip-toast {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.85);
            color: #fff;
            padding: 16px 24px;
            border-radius: 12px;
            z-index: 10000;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            opacity: 0;
            animation: toastFadeInOut 2s ease-in-out forwards;
            pointer-events: none;
        }

        .skip-toast-icon {
            font-size: 24px;
        }

        .skip-toast-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .skip-toast-title {
            font-weight: 600;
        }

        .skip-toast-subtitle {
            font-size: 12px;
            color: #aaa;
        }

        @keyframes toastFadeInOut {
            0% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
            15% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
        }
