/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: #111114;
    color: #e0e0e8;
    font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== CSS変数 ===== */
:root {
    --bg:         #111114;
    --bg-card:    #1c1c22;
    --bg-subtle:  #242430;
    --bg-header:  #0e0e12;
    --bg-tagbar:  #15151a;
    --border:     #2e2e3a;
    --text:       #e0e0e8;
    --muted:      #888896;
    --text-muted: #888896;
    --accent:     #6e9fff;
    --danger:     #e05555;
    --tag-bg:     #252535;
}

/* ===== レイアウト ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ===== ヘッダー ===== */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-inner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    max-width: 1100px; margin: 0 auto;
}
.site-logo {
    font-size: 17px; font-weight: 900;
    letter-spacing: .05em; color: var(--accent);
    white-space: nowrap; flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
}
.site-logo-icon { display: block; flex-shrink: 0; }
.site-logo .accent-red { color: var(--danger); }
.search-wrap { flex: 1; }
.search-wrap input {
    width: 100%;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 12px;
    color: var(--text);
    font-size: 13px;
    outline: none;
}
.search-wrap input:focus { border-color: var(--accent); }
.header-nav { display: flex; gap: 20px; font-size: 13px; white-space: nowrap; }
.header-nav a:hover { color: var(--accent); }

/* ===== タグバー（WBS 5-4）===== */
.tag-bar {
    background: var(--bg-tagbar);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
    position: relative;
}
.tag-bar::-webkit-scrollbar { display: none; }
.tag-bar::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 60px; height: 100%;
    background: linear-gradient(to right, transparent, var(--bg-tagbar));
    pointer-events: none;
}
.tag-bar-inner {
    display: flex; gap: 8px; padding: 0 16px;
    white-space: nowrap; align-items: center;
}
.tag-bar-label { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.tag-chip {
    display: inline-block;
    background: var(--tag-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}
.tag-chip:hover, .tag-chip.active {
    border-color: var(--accent);
    color: var(--accent);
}
/* タッチデバイスでhoverを無効化（iOSタップ後に残る問題を修正） */
@media (hover: none) {
    .tag-chip:hover {
        border-color: var(--border);
        color: var(--text);
    }
}

/* ===== セクション ===== */
.section { padding: 32px 0; }
.section-title {
    font-size: 13px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted);
    border-left: 3px solid var(--accent); padding-left: 10px;
    margin-bottom: 16px;
}

/* ===== ヒーローカード ===== */
.hero { padding: 24px 0 0; }
.hero-card {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.hero-embed {
    aspect-ratio: 16/9;
    background: #0a0a10;
    position: relative;
}
.hero-embed iframe { width: 100%; height: 100%; border: none; }
.badge-explicit {
    position: absolute; top: 8px; right: 8px;
    background: #dc2626; color: #fff;
    font-size: 10px; font-weight: 700; padding: 3px 8px;
    border-radius: 4px; pointer-events: none; z-index: 1;
}
.hero-badge-explicit { font-size: 12px; padding: 4px 10px; top: 12px; right: 12px; }
.badge-duration {
    position: absolute; bottom: 6px; right: 6px;
    background: rgba(0,0,0,0.75); color: #fff;
    font-size: 11px; font-weight: 700; padding: 2px 6px;
    border-radius: 3px; pointer-events: none; z-index: 1;
    letter-spacing: 0.02em;
}
.hero-info {
    padding: 20px;
    display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.hero-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-tag {
    background: var(--tag-bg); border: 1px solid var(--border);
    border-radius: 4px; font-size: 11px; padding: 2px 8px;
    color: var(--accent);
}
.hero-category {
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px; font-size: 11px; padding: 2px 8px;
    color: var(--text); font-weight: 600;
}
.hero-title {
    font-size: 18px; font-weight: 700; line-height: 1.4; overflow-wrap: break-word;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-channel { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #bbb; font-weight: 500; }
.hero-comment {
    background: #141420;
    border-left: 3px solid var(--accent);
    padding: 10px 12px;
    font-size: 13px; border-radius: 0 6px 6px 0;
    color: #c8c8d8; font-style: italic;
}
.hero-comment::before {
    content: '管理人: ';
    color: var(--accent); font-style: normal; font-weight: 700; font-size: 11px;
}
.hero-more {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px; color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 6px; padding: 5px 14px;
    align-self: flex-start;
    transition: background .15s;
}
.hero-more:hover { background: rgba(110,159,255,.12); }

/* ===== 動画グリッド（WBS 5-2/5-5）===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
    display: flex; flex-direction: column;
}
.video-card:hover { border-color: var(--accent); }
.card-thumb {
    aspect-ratio: 16/9;
    background: #0a0a10;
    display: block;
    overflow: hidden;
    position: relative;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.card-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.card-tag {
    font-size: 10px; padding: 1px 6px;
    background: var(--tag-bg); border-radius: 3px;
    color: var(--accent);
}
.card-category {
    font-size: 10px; padding: 1px 6px;
    background: rgba(255,255,255,0.12); border-radius: 3px;
    color: var(--text); font-weight: 600;
}
.card-title { font-size: 13px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; }
.card-channel { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.card-channel-icon { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; opacity: .85; }
.card-channel-name { font-size: 12px; color: #bbb; font-weight: 500; }
.card-comment { font-size: 11px; color: #aaaabc; line-height: 1.5; flex: 1; }

/* ===== チャンネルカード（WBS 5-2）===== */
.channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.channel-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s;
    min-width: 0; /* グリッドアイテムのデフォルト min-width: auto を上書きし均等幅を保証 */
}
.channel-card:hover { border-color: var(--accent); }
.channel-card-header { display: flex; align-items: center; gap: 12px; }
.channel-card-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-subtle);
}
.channel-card-info { min-width: 0; }
.channel-card-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-card-handle { font-size: 12px; color: var(--muted); margin-top: 2px; }
.channel-card-count { display: flex; align-items: baseline; gap: 4px; }
.channel-card-count-num { font-size: 28px; font-weight: 900; color: var(--accent); line-height: 1; }
.channel-card-count-label { font-size: 12px; color: var(--muted); }
.channel-card-desc { font-size: 12px; color: #aaaabc; line-height: 1.7; flex: 1; }
.channel-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--border);
}
.channel-card-videos { font-size: 12px; color: var(--accent); font-weight: 700; }
.channel-card-more { font-size: 12px; color: var(--muted); }
.channel-card:hover .channel-card-more { color: var(--accent); }

/* ===== 詳細ページレイアウト ===== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    padding: 24px 0;
}
.detail-embed {
    aspect-ratio: 16/9;
    background: #0a0a10;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}
.detail-embed iframe { width: 100%; height: 100%; border: none; }
.detail-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.detail-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.detail-meta-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.detail-meta-link:hover { opacity: .8; }
.detail-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.detail-tag {
    background: var(--tag-bg); border: 1px solid var(--border);
    border-radius: 4px; padding: 3px 10px; font-size: 12px; color: var(--accent);
    transition: border-color .15s;
}
.detail-tag:hover { border-color: var(--accent); }
.detail-tag--category {
    background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700;
}
.detail-tag--category:hover { opacity: .85; }
.comment-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 16px; margin-bottom: 20px;
}
.comment-box-title { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 8px; letter-spacing: .08em; }
.comment-box p.comment-box-note { font-size: 11px; color: var(--danger); text-align: right; margin: 8px 0 0; }
.comment-box p { font-size: 14px; line-height: 1.8; color: #c8c8d8; }

/* ネタバレアコーディオン */
.spoiler-box { margin-bottom: 20px; }
.spoiler-details { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.spoiler-summary {
    display: flex; align-items: center; gap: 6px;
    padding: 12px 16px; cursor: pointer;
    font-size: 12px; font-weight: 700; color: var(--accent);
    background: var(--bg-card); list-style: none; user-select: none;
    letter-spacing: .08em;
}
.spoiler-summary::-webkit-details-marker { display: none; }
.spoiler-summary::after { content: '▼'; margin-left: auto; font-size: 10px; transition: transform 0.2s; color: var(--text-muted); }
details[open] .spoiler-summary::after { transform: rotate(-180deg); }
.spoiler-icon { color: #f59e0b; }
.spoiler-hint { font-weight: 400; font-size: 11px; color: var(--text-muted); letter-spacing: 0; }
.spoiler-content {
    padding: 16px; font-size: 14px; line-height: 1.8;
    color: #c8c8d8; background: var(--bg);
    border-top: 1px solid var(--border);
}

/* ===== レーダーチャートコンテナ（WBS 5-3）===== */
.radar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 16px; margin-bottom: 20px;
}
.radar-box-title { font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 12px; letter-spacing: .08em; }
.radar-wrap { display: flex; justify-content: center; }
.radar-svg {
    width: 100%;
    max-width: 380px;
    display: block;
    margin: 0 auto 8px;
    overflow: visible;
}
@keyframes radar-in {
    from { opacity: 0; transform: scale(0.2); }
    to   { opacity: 1; transform: scale(1); }
}
.radar-data-group {
    transform-origin: 150px 150px;
    animation: radar-in .7s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes radar-dot-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.7); opacity: 0.6; }
}
.radar-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: radar-dot-pulse 2.8s ease-in-out infinite;
}

/* ===== サイドバー（詳細ページ）===== */
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
    font-size: 12px; color: var(--muted); font-weight: 700;
    letter-spacing: .1em; margin-bottom: 10px;
    border-left: 2px solid var(--accent); padding-left: 8px;
}
.related-card {
    display: block; text-decoration: none;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden; margin-bottom: 10px;
    transition: border-color .15s;
}
.related-card:hover { border-color: var(--accent); }
.related-thumb {
    width: 100%; aspect-ratio: 16/9;
    background: #0a0a10; overflow: hidden;
}
.related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .15s; }
.related-card:hover .related-thumb img { opacity: .85; }
.related-info { padding: 8px 10px 10px; }
.related-title { font-size: 12px; font-weight: 700; line-height: 1.4; margin-bottom: 4px; color: var(--text); }
.related-ch { font-size: 11px; color: var(--muted); }
.channel-link-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: 14px;
}
.channel-link-icon {
    width: 48px; height: 48px; border-radius: 50%;
    margin-bottom: 8px; object-fit: cover;
    background: var(--bg-subtle);
    display: block;
}
.channel-link-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.channel-link-meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.channel-link-btn {
    display: block; text-align: center;
    background: var(--bg-subtle); border: 1px solid var(--border);
    border-radius: 6px; padding: 7px; font-size: 12px;
    transition: border-color .15s, color .15s;
}
.channel-link-btn:hover { border-color: var(--accent); color: var(--accent); }

/* コラボチャンネル（複数チャンネルを1カード内に並べる） */
.collab-channel-list {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden;
}
.collab-channel-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; text-decoration: none; color: var(--text);
    transition: background .15s;
}
.collab-channel-item:not(:last-child) { border-bottom: 1px solid var(--border); }
.collab-channel-item:hover { background: var(--bg-subtle); color: var(--accent); }
.collab-channel-item img {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0; background: var(--bg-subtle);
}
.collab-channel-item-name { font-size: 13px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collab-channel-item-arrow { font-size: 11px; color: var(--muted); flex-shrink: 0; transition: color .15s; }
.collab-channel-item:hover .collab-channel-item-arrow { color: var(--accent); }

/* ===== ページネーション ===== */
.pagination-wrap { display: flex; justify-content: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.pagination-wrap span, .pagination-wrap a {
    background: var(--bg-subtle); border: 1px solid var(--border);
    padding: 6px 14px; border-radius: 6px; font-size: 13px;
}
.pagination-wrap .active span { border-color: var(--accent); color: var(--accent); }
.pagination-wrap a:hover { border-color: var(--accent); color: var(--accent); }
.pagination-wrap [aria-disabled="true"] span { opacity: 0.4; }

/* ===== 空状態 ===== */
.empty-state {
    text-align: center; padding: 60px 16px;
    color: var(--muted); font-size: 14px;
}

/* ===== フッター ===== */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    padding: 24px 0; margin-top: 40px;
    font-size: 12px; color: var(--muted); text-align: center;
}
.site-footer p + p { margin-top: 6px; }
.site-footer a:hover { color: var(--accent); }
.footer-links { margin-top: 12px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a { font-size: 12px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-primary); }

/* ===== 静的ページ（about / privacy）===== */
.page-content { max-width: 720px; margin: 40px auto; }
.page-content-title { font-size: 22px; font-weight: 700; margin-bottom: 32px; }
.page-section { margin-bottom: 32px; }
.page-section h2 { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.page-section p, .page-section li { font-size: 14px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 8px; }
.page-section ul { padding-left: 20px; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .hero-card { grid-template-columns: 1fr; }
    .hero-info { padding: 16px; }
    .detail-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .channel-grid { grid-template-columns: repeat(2, 1fr); }
    .header-nav { display: none; }
    body { padding-bottom: 60px; }
}
@media (max-width: 500px) {
    .video-grid { grid-template-columns: 1fr; }
    .channel-grid { grid-template-columns: 1fr; }
}

/* ===== タグ・カテゴリ一覧ページ ===== */
.page-heading { padding: 28px 0 20px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.page-heading-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.page-heading-sub { font-size: 13px; color: var(--muted); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .category-grid { grid-template-columns: 1fr; } }

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    display: block;
    transition: border-color .15s;
}
.category-card:hover { border-color: var(--accent); }
.category-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.category-icon { font-size: 28px; line-height: 1; flex-shrink: 0; }
.category-name { font-size: 15px; font-weight: 700; color: var(--text); }
.category-count { font-size: 12px; color: var(--accent); font-weight: 600; margin-top: 2px; }
.category-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.category-badge {
    display: inline-block;
    background: var(--accent);
    color: #111;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-item {
    background: var(--tag-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s, color .15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tag-item:hover { border-color: var(--accent); color: var(--accent); }
.tag-item.tag-lg { font-size: 16px; padding: 7px 18px; }
.tag-item.tag-sm { font-size: 11px; padding: 4px 10px; color: var(--muted); }
.tag-count {
    background: var(--bg-subtle);
    border-radius: 10px;
    padding: 1px 6px;
    font-size: 10px;
    color: var(--muted);
}

/* ===== フィルターページヘッダー（カテゴリ・タグ詳細） ===== */
.filter-page-header {
    background: linear-gradient(180deg, #14141e 0%, #111114 100%);
    border-bottom: 1px solid var(--border);
    padding: 24px 0 0;
}
.filter-header-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.filter-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-bottom: 6px;
}
.filter-title { font-size: 24px; font-weight: 900; margin-bottom: 4px; }
.filter-title .filter-tag-mark { color: var(--accent); }
.filter-count { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.filter-description { background: #14141e; border-top: 1px solid var(--border); padding: 16px 0; }
.filter-desc-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.filter-desc-label {
    font-size: 11px; font-weight: 700; letter-spacing: .1em;
    color: var(--accent); text-transform: uppercase; margin-bottom: 6px;
}
.filter-desc-text { font-size: 13px; color: #aaaabc; line-height: 1.8; max-width: 800px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: #555568; }
.breadcrumb-current { color: var(--text); }

/* ===== チャンネル詳細ヘッダー ===== */
.channel-detail-header {
    background: linear-gradient(180deg, #14141e 0%, #111114 100%);
    border-bottom: 1px solid var(--border);
    padding: 24px 0 28px;
}
.channel-detail-inner { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.channel-detail-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.channel-detail-left { display: flex; align-items: flex-start; gap: 20px; flex: 1; min-width: 0; }
.channel-detail-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}
.channel-detail-info { min-width: 0; flex: 1; }
.channel-detail-name { font-size: 26px; font-weight: 900; margin-bottom: 4px; line-height: 1.2; }
.channel-detail-handle { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.channel-detail-stats { display: flex; gap: 28px; margin-bottom: 14px; }
.channel-detail-stat { display: flex; flex-direction: column; gap: 2px; }
.channel-stat-num { font-size: 22px; font-weight: 900; color: var(--text); line-height: 1; }
.channel-stat-label { font-size: 11px; color: var(--muted); }
.channel-detail-api-note { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.channel-detail-desc { font-size: 13px; color: #aaaabc; line-height: 1.8; max-width: 700px; }
.channel-detail-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.btn-youtube {
    display: inline-flex; align-items: center; gap: 6px;
    background: #ff0000; color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 10px 18px; border-radius: 6px;
    text-decoration: none; white-space: nowrap;
    transition: background .2s;
}
.btn-youtube:hover { background: #cc0000; color: #fff; }
.channel-action-sub { font-size: 11px; color: var(--muted); text-align: center; }

/* ===== チャンネル詳細セクションタイトル ===== */
.channel-section-title {
    font-size: 13px; font-weight: 700;
    letter-spacing: .06em; color: var(--muted);
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    margin-bottom: 20px;
}
.channel-section-sep { margin: 0 6px; }

/* ===== コメント分析ボックス（WBS 7-6）===== */
.analysis-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 2px solid rgba(91,200,245,.35);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}
.analysis-box::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(91,200,245,.5), rgba(240,165,0,.4), transparent);
}
.analysis-box-title {
    font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.analysis-box-title::before {
    content: '';
    display: inline-block; width: 18px; height: 2px;
    background: linear-gradient(90deg, #5bc8f5, #f0a500);
    border-radius: 1px;
}

/* 一文要約 */
.analysis-summary {
    font-size: 15px; font-style: italic; line-height: 1.75;
    color: #d4b870;
    margin: 0 0 18px;
    padding: 12px 16px 12px 20px;
    background: linear-gradient(135deg, rgba(240,165,0,.07) 0%, rgba(240,165,0,.03) 100%);
    border-left: 3px solid #f0a500;
    border-radius: 0 6px 6px 0;
    position: relative;
}
.analysis-summary::before {
    content: '\201C';
    position: absolute; top: -4px; left: 4px;
    font-size: 36px; line-height: 1; color: rgba(240,165,0,.25);
    font-style: normal;
}

/* 熱量スコア */
.analysis-score-row {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,.06);
}
.analysis-score-label {
    font-size: 12px; color: var(--muted); white-space: nowrap; letter-spacing: .04em;
}
.analysis-score-bar-wrap {
    flex: 1; height: 8px;
    background: rgba(255,255,255,.08);
    border-radius: 4px; overflow: hidden;
}
.analysis-score-bar {
    height: 100%;
    background: linear-gradient(90deg, #5bc8f5 0%, #8be8a0 50%, #f0a500 100%);
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(240,165,0,.3);
}
.analysis-score-value {
    font-size: 20px; font-weight: 800; color: #f0a500;
    white-space: nowrap; line-height: 1;
    text-shadow: 0 0 12px rgba(240,165,0,.4);
}
.analysis-score-value small {
    font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 2px;
}

/* タイムスタンプ・テキストブロック */
.analysis-block { margin-bottom: 16px; }
.analysis-block:last-child { margin-bottom: 0; }
.analysis-block-title {
    font-size: 12px; font-weight: 700; letter-spacing: .06em;
    color: var(--accent); margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(110,159,255,.2);
    display: flex; align-items: center; gap: 6px;
}
.analysis-block-title::before {
    content: '';
    display: inline-block; width: 3px; height: 12px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
}
.analysis-block p {
    font-size: 13px; line-height: 1.8; color: #b0b0c0; margin: 0;
}

/* タイムスタンプリスト */
.analysis-timestamp-list {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.analysis-timestamp-list li {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 8px 10px;
    border-radius: 5px;
    border-left: 2px solid rgba(91,200,245,.4);
    background: rgba(91,200,245,.04);
    transition: background .15s, border-color .15s;
}
.analysis-timestamp-list li:hover {
    background: rgba(91,200,245,.09);
    border-color: #5bc8f5;
}
.analysis-timestamp-list li span { color: #a0a0b5; font-size: 13px; line-height: 1.6; }
.analysis-timestamp-link {
    color: #5bc8f5; font-weight: 700; white-space: nowrap;
    text-decoration: none; font-size: 13px;
    flex-shrink: 0; padding-top: 1px;
    letter-spacing: .02em;
}
.analysis-timestamp-link:hover { color: #8dd8f8; text-decoration: underline; }

/* スポットライトページ */
.spotlight-intro {
    background: rgba(124,111,205,.08);
    border-left: 3px solid #7c6fcd;
    border-radius: 0 6px 6px 0;
    padding: 14px 18px;
    margin-bottom: 24px;
}
.spotlight-intro p {
    color: #b0b0c0;
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* 同スポット動画サイドバー：チャンネル行・公開日 */
.related-ch-row { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.related-ch-icon { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.related-date { font-size: 10px; color: var(--muted); margin-top: 3px; }
.related-more-link { display: block; text-align: center; font-size: 12px; color: var(--muted); padding: 8px 0; text-decoration: none; border: 1px solid var(--border); border-radius: 6px; transition: color .15s, border-color .15s; margin-top: 4px; }
.related-more-link:hover { color: var(--accent); border-color: var(--accent); }

/* ===== ボトムナビゲーション（モバイルのみ） ===== */
.bottom-nav { display: none; }

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg-header);
        border-top: 1px solid var(--border);
        z-index: 100;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        color: var(--muted);
        font-size: 10px;
        padding: 6px 0;
        -webkit-tap-highlight-color: transparent;
    }
    .bottom-nav-item svg {
        width: 20px;
        height: 20px;
    }
    .bottom-nav-item.active {
        color: var(--accent);
    }
}
