* {
    box-sizing: border-box;
}

body {
    margin: 0;

    background: #111111;
    color: #eeeeee;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* =========================
   Header
========================= */

.header {
    border-bottom: 1px solid #292929;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;

    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;
}

.logo {
    color: #ffffff;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 2px;

    text-decoration: none;
}

.header nav a {
    color: #999999;

    text-decoration: none;

    font-size: 14px;
}

.header nav a:hover {
    color: #ffffff;
}


/* =========================
   Hero
========================= */

.hero {
    border-bottom: 1px solid #292929;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;

    padding: 100px 24px 90px;
}

.hero-label {
    margin: 0 0 20px;

    color: #888888;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 3px;
}

.hero h1 {
    margin: 0;

    max-width: 700px;

    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-description {
    margin-top: 24px;

    color: #999999;

    font-size: 16px;
}


/* =========================
   Search
========================= */

.search-box {
    display: flex;

    max-width: 600px;

    margin-top: 40px;

    background: #1b1b1b;

    border: 1px solid #333333;
    border-radius: 8px;

    overflow: hidden;
}

.search-box input {
    flex: 1;

    min-width: 0;

    padding: 17px 18px;

    border: none;
    outline: none;

    background: transparent;

    color: #ffffff;

    font-size: 15px;
}

.search-box input::placeholder {
    color: #666666;
}

.search-box button {
    padding: 0 24px;

    border: none;

    background: #eeeeee;
    color: #111111;

    font-weight: 600;

    cursor: pointer;
}

.search-box button:hover {
    background: #ffffff;
}

.search-type {
    /* サイズ */
    width: 100px;
    height: auto;

    /* 文字 */
    font-size: 14px;
    font-weight: 600;

    /* 色 */
    color: #333;
    background-color: #f7f7f7;

    /* 枠線 */
    border: none;
    border-right: 1px solid #ddd;

    /* 余白 */
    padding: 0 12px;

    /* カーソル */
    cursor: pointer;

    /* ブラウザ標準の見た目を少し消す */
    outline: none;
}

/* フォーカスしたとき */
.search-type:focus {
    background-color: #eee;
}

/* 選択肢 */
.search-type option {
    background-color: white;
    color: #333;
    font-size: 14px;
}


/* =========================
   Creators
========================= */

.creators {
    max-width: 1200px;

    margin: 0 auto;

    padding: 70px 24px 100px;
}

.section-header {
    display: flex;

    align-items: end;
    justify-content: space-between;

    margin-bottom: 30px;
}

.section-label {
    margin: 0 0 8px;

    color: #777777;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 2px;
}

.section-header h2 {
    margin: 0;

    font-size: 28px;
}

.creator-count {
    margin: 0;

    color: #777777;

    font-size: 13px;
}


/* =========================
   Creator Grid
========================= */

.creator-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}


/* =========================
   Creator Card
========================= */

.creator-card {
    display: block;

    background: #191919;

    border: 1px solid #292929;
    border-radius: 10px;

    overflow: hidden;

    color: inherit;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.creator-card:hover {
    transform: translateY(-4px);

    border-color: #555555;

    background: #202020;
}

.thumbnail-wrapper {
    width: 100%;

    aspect-ratio: 1 / 1;

    background: #222222;

    overflow: hidden;
}

.creator-thumbnail {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.3s ease;
}

.creator-card:hover .creator-thumbnail {
    transform: scale(1.04);
}

.creator-info {
    padding: 18px;
}

.creator-info h3 {
    margin: 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creator-info p {
    margin: 8px 0 0;

    color: #777777;

    font-size: 13px;
}


/* =========================
   Empty
========================= */

.empty {
    color: #777777;
}


/* =========================
   Footer
========================= */

.footer {
    border-top: 1px solid #292929;

    padding: 30px 24px;

    text-align: center;

    color: #555555;

    font-size: 12px;
}


/* =========================
   Responsive
========================= */

@media (max-width: 900px) {

    .creator-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 44px;
    }
}


@media (max-width: 600px) {

    .hero-inner {
        padding: 70px 20px 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .creators {
        padding: 50px 20px 70px;
    }

    .creator-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 12px;
    }

    .creator-info {
        padding: 13px;
    }

    .creator-info h3 {
        font-size: 14px;
    }

    .search-box button {
        padding: 0 16px;
    }
}


/* =================================
   Channel Page
================================= */

.channel-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

.channel-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.channel-thumbnail {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-information h1 {
    margin: 8px 0 12px;
    font-size: 36px;
    letter-spacing: -0.5px;
}

.subscriber-count {
    margin: 0;
    color: #999999;
    font-size: 15px;
}

.channel-description-wrapper {
    max-width: 800px;
    margin: 40px 0 0;
}

.channel-description {
    margin: 0;
    color: #aaaaaa;
    line-height: 1.8;
    white-space: pre-line;
}

/* 概要欄の省略表示（4行まで） */
.channel-description.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
}

.description-toggle {
    margin-top: 10px;
    padding: 0;

    background: none;
    border: none;

    color: #ffffff;

    font: inherit;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.description-toggle:hover {
    text-decoration: underline;
}


/* Videos */

.channel-videos {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 100px;
}

.video-count {
    color: #777777;
    font-size: 14px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 20px;
}

.video-card {
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-4px);
}

.video-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #222222;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.03);
}

.video-information {
    padding-top: 12px;
}

.video-information h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.video-information p {
    margin: 8px 0 0;
    color: #777777;
    font-size: 13px;
}


/* Mobile */

@media (max-width: 700px) {

    .channel-hero {
        padding-top: 50px;
    }

    .channel-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .channel-thumbnail {
        width: 110px;
        height: 110px;
    }

    .channel-information h1 {
        font-size: 28px;
    }

    .channel-description {
        text-align: left;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

}

/* =========================
   最新動画
========================= */

.latest-videos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px 100px;
}

.latest-videos h2 {
    margin: 0 0 30px;
    font-size: 28px;
    color: #ffffff;
}


/* 動画一覧 */

.latest-video-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}


/* 動画カード */

.latest-video-card {
    display: block;

    background: #191919;
    border: 1px solid #292929;
    border-radius: 10px;

    overflow: hidden;

    color: #ffffff;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.latest-video-card:hover {
    transform: translateY(-4px);
    border-color: #555555;
}


/* サムネイル */

.latest-video-thumbnail {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;

    background: #222222;
}


/* 動画情報 */

.latest-video-info {
    padding: 14px 16px 16px;
}


/* タイトル */

.latest-video-info h3 {
    margin: 0;

    color: #ffffff;

    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


/* 動画へのリンク（サムネイル・タイトル） */

.latest-video-link {
    display: block;

    color: inherit;
    text-decoration: none;
}


/* チャンネル名（投稿者ページへのリンク） */

.latest-video-channel {
    display: flex;
    align-items: center;
    gap: 8px;

    width: fit-content;
    max-width: 100%;
    margin: 10px 0 0;

    color: #888888;
    text-decoration: none;

    font-size: 13px;
}

.latest-video-channel span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-video-channel:hover {
    color: #ffffff;
}

.latest-video-channel:hover span {
    text-decoration: underline;
}

.latest-video-channel-avatar {
    flex-shrink: 0;

    width: 20px;
    height: 20px;
    border-radius: 50%;

    object-fit: cover;

    background: #222222;
}


/* 投稿日 */

.latest-video-date {
    margin: 6px 0 0;

    color: #666666;

    font-size: 12px;
}

/* 最新動画表示ボタン */
.latest-videos-button {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    max-width: 500px;
    height: 50px;
    margin: 35px auto 0;

    box-sizing: border-box;

    color: #ffffff;
    background: #191919;
    border: 1px solid #292929;
    border-radius: 8px;

    font-size: 14px;
    text-decoration: none;
}

/* 検索ワード */
.keyword-card-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.keyword-card {
    display: block;

    background: #191919;
    border: 1px solid #292929;
    border-radius: 10px;

    overflow: hidden;

    color: #ffffff;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.keyword-card:hover {
    transform: translateY(-4px);
    border-color: #555555;
}

.keyword-card img {
    display: block;

    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;
}

.keyword-card h3 {
    margin: 0;
    padding: 15px;

    font-size: 17px;
    font-weight: 500;
}

/* チップ */
.keyword-chips {
    display: flex;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-chips[hidden] {
    display: none;
}

.keyword-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 14px;
    box-sizing: border-box;

    color: #aaa;
    background: #191919;
    border: 1px solid #292929;
    border-radius: 999px;

    font-size: 13px;
    text-decoration: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.keyword-chip:hover {
    color: #fff;
    background: #242424;
    border-color: #555;
    transform: translateY(-2px);
}

/* 検索結果タイトル&並び替え */
.search-result-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-result-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.search-result-info h2 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
}

.video-count {
    color: #777777;
    font-size: 14px;
}

.sort-form {
    margin: 0;
}

.sort-form select {
    height: 38px;
    padding: 0 32px 0 12px;
    color: #aaaaaa;
    background: #191919;
    border: 1px solid #292929;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.sort-form select:hover {
    color: #ffffff;
    border-color: #555555;
}

.sort-form select:focus {
    border-color: #555555;
}

/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 50px 0 20px;
}

.pagination a,
.pagination .current-page,
.pagination .pagination-dots {
    display: flex;
    justify-content: center;
    align-items: center;

    min-width: 38px;
    height: 38px;
    padding: 0 10px;

    box-sizing: border-box;
    border-radius: 8px;

    font-size: 14px;
    text-decoration: none;
}

.pagination a {
    color: #aaa;
    background: #191919;
    border: 1px solid #292929;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.pagination a:hover {
    color: #fff;
    background: #242424;
    border-color: #555;
    transform: translateY(-2px);
}

.pagination .current-page {
    color: #fff;
    background: #444;
    border: 1px solid #555;
    font-weight: 600;
}

.pagination .pagination-dots {
    color: #666;
}


/* =========================
   レスポンシブ
========================= */

@media (max-width: 900px) {
    .latest-video-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .latest-videos {
        padding: 50px 20px 70px;
    }

    .latest-video-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .latest-video-info {
        padding: 12px;
    }
}

@media (max-width: 500px) {
    .latest-video-list {
        grid-template-columns: 1fr;
    }
}



/* =========================
   ヘッダーナビ
========================= */

.header-nav {
    display: flex;
    gap: 24px;
}



/* =========================
   投稿者一覧
========================= */

.result-count {
    color: #777777;
    font-size: 14px;
}

.creator-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.creator-list-card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 28px 20px 0;

    background: linear-gradient(180deg, #1d1d1d 0%, #171717 100%);
    border: 1px solid #292929;
    border-radius: 14px;

    overflow: hidden;

    color: inherit;
    text-align: center;
    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.creator-list-card:hover {
    transform: translateY(-4px);
    border-color: #555555;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.creator-list-avatar {
    width: 96px;
    height: 96px;

    border-radius: 50%;
    border: 2px solid #333333;

    object-fit: cover;
    background: #222222;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease;
}

.creator-list-card:hover .creator-list-avatar {
    transform: scale(1.05);
    border-color: #777777;
}

.creator-list-name {
    width: 100%;
    margin: 16px 0 0;

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creator-list-subscribers {
    display: flex;
    align-items: baseline;
    gap: 6px;

    margin: 8px 0 0;

    color: #777777;
    font-size: 12px;
}

.creator-list-subscribers strong {
    color: #dddddd;
    font-size: 18px;
    font-weight: 700;
}

.creator-list-description {
    margin: 12px 0 0;

    color: #8a8a8a;

    font-size: 12px;
    line-height: 1.6;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.creator-list-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;

    width: calc(100% + 40px);
    margin: auto -20px 0;
    padding-top: 20px;
}

.creator-list-stats div {
    padding: 12px 8px;
    border-top: 1px solid #262626;
}

.creator-list-stats div + div {
    border-left: 1px solid #262626;
}

.creator-list-stats dt {
    color: #666666;
    font-size: 11px;
    letter-spacing: 1px;
}

.creator-list-stats dd {
    margin: 4px 0 0;
    color: #bbbbbb;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.creator-list-empty {
    padding: 60px 0;
    color: #777777;
    text-align: center;
}

@media (max-width: 600px) {
    .search-result-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .search-result-info h2 {
        font-size: 22px;
    }

    .creator-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .creator-list-card {
        padding: 20px 12px 0;
    }

    .creator-list-avatar {
        width: 72px;
        height: 72px;
    }

    .creator-list-stats {
        width: calc(100% + 24px);
        margin: auto -12px 0;
    }
}


/* =========================
投稿者ページ：YouTube・SNSボタン
========================= */

.channel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 20px;
}

.channel-button {
    display: inline-flex;
    align-items: center;

    height: 38px;
    padding: 0 18px;

    background: #191919;
    border: 1px solid #333333;
    border-radius: 999px;

    color: #ffffff;
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.channel-button:hover {
    background: #262626;
    border-color: #666666;
}

.channel-button-youtube {
    background: #cc0000;
    border-color: #cc0000;
}

.channel-button-youtube:hover {
    background: #e60000;
    border-color: #e60000;
}

/* SNSごとのアクセント色 */
.sns-x:hover { border-color: #ffffff; }
.sns-instagram:hover { border-color: #e1306c; }
.sns-tiktok:hover { border-color: #25f4ee; }
.sns-facebook:hover { border-color: #1877f2; }
.sns-threads:hover { border-color: #ffffff; }
.sns-bluesky:hover { border-color: #1185fe; }
.sns-twitch:hover { border-color: #9146ff; }
.sns-niconico:hover { border-color: #aaaaaa; }
.sns-linktree:hover { border-color: #43e660; }


/* =========================
投稿者ページ：動画タブ
========================= */

.video-tabs {
    display: flex;
    gap: 4px;

    margin: 0 0 28px;

    flex-wrap: wrap;

    border-bottom: 1px solid #292929;
}

.video-tab {
    flex-shrink: 0;

    padding: 12px 16px;
    margin-bottom: -1px;

    border-bottom: 2px solid transparent;

    color: #888888;
    text-decoration: none;

    font-size: 15px;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}

.video-tab:hover {
    color: #ffffff;
}

.video-tab.is-active {
    border-bottom-color: #ffffff;

    color: #ffffff;
    font-weight: 600;
}

@media (max-width: 700px) {
    .channel-links {
        justify-content: center;
    }
}


/* =========================
ヘッダー：言語切り替え
========================= */

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.language-switch {
    display: flex;

    margin: 0;
    padding: 2px;

    border: 1px solid #333333;
    border-radius: 999px;
}

.language-switch a {
    padding: 4px 10px;

    border-radius: 999px;

    color: #888888;
    text-decoration: none;

    font-size: 12px;
}

.language-switch a:hover {
    color: #ffffff;
}

.language-switch a.is-active {
    background: #ffffff;

    color: #111111;
    font-weight: 600;
}

/* スマホ：1段目にロゴ、2段目にナビと言語切り替え */
@media (max-width: 600px) {
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        row-gap: 10px;

        padding: 14px 16px 12px;
    }

    .logo {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .header-nav {
        gap: 18px;
    }
}
