/* =========================================================
SPIRYTUS CHILD COMMENTS
コメント・返信
========================================================= */

/* =========================================================
通報
========================================================= */

.report-area,
.comment-report-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 5px;
}

.report-area select,
.comment-report-form select {
    max-width: 130px;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 10px;
    outline: none;
}

.report-btn {
    padding: 2px 5px;
    border: 0;
    background: transparent;
    color: #e74c3c;
    font-size: 10px;
    cursor: pointer;
}

/* =========================================================
コメントセクション
========================================================= */

.youtube-comment-section {
    width: 100%;
    margin-top: 18px;
    padding: 18px 16px 10px;
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 12px;
}

.comment-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.comment-section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.comment-section-header span {
    color: #888;
    font-size: 12px;
}

/* =========================================================
コメント入力
========================================================= */

.comment-input-card {
    display: flex;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}

.comment-input-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f1f1;
    color: #777;
    font-size: 16px;
}

.comment-form {
    flex: 1;
    min-width: 0;
}

.comment-form p {
    margin: 0 0 10px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea,
.comment-form select {
    width: 100%;
    padding: 8px 2px;
    border: 0;
    border-bottom: 2px solid #111;
    border-radius: 0;
    background: transparent;
    color: #111;
    font-size: 14px;
    outline: none;
}

.comment-form textarea {
    min-height: 70px;
    resize: vertical;
    line-height: 1.6;
}

/* コメント投稿ボタンを中央配置 */

.comment-form-actions {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-top: 16px;
}

.comment-submit-btn {
    padding: 8px 16px;
    border: 0;
    border-radius: 20px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.85;
}

/* =========================================================
コメント一覧
========================================================= */

.youtube-comments {
    padding-top: 6px;
}

.youtube-comment {
    display: flex;
    gap: 11px;
    width: 100%;
    padding: 15px 0;
}

.comment-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eee;
    color: #888;
    font-size: 16px;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 4px;
}

.comment-author {
    min-width: 0;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    word-break: break-word;
}

.comment-author a {
    color: inherit;
    text-decoration: underline;
}

.comment-date {
    flex-shrink: 0;
    color: #999;
    font-size: 10px;
    white-space: nowrap;
}

.comment-body {
    color: #222;
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
}

.comment-body p {
    margin: 0 0 5px;
}

/* =========================================================
コメントメディア
========================================================= */

.comment-image-wrapper {
    max-width: 420px;
    margin-top: 8px;
}

.comment-media-thumb {
    display: block;
    max-width: 100%;
    max-height: 450px;
    border-radius: 10px;
    object-fit: contain;
    cursor: pointer;
}

.comment-video {
    width: 100%;
    margin-top: 8px;
    overflow: hidden;
}

.comment-video iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

/* =========================================================
コメントアクション
========================================================= */

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

.comment-action {
    min-height: 30px;
    padding: 5px 9px;
    border: 0;
    border-radius: 16px;
    background: #f2f2f2;
    color: #555;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.6;
    transition:
        background 0.15s ease,
        opacity 0.15s ease;
}

/* =========================================================
返信一覧
========================================================= */

.youtube-replies {
    width: 100%;
    margin-top: 4px;
    padding-left: 20px;
    border-left: 2px solid #eee;
}

.youtube-comment.reply {
    padding: 11px 0;
}

.reply-count-toggle {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #606060;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

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

/* =========================================================
返信先
========================================================= */

.reply-target {
    margin-bottom: 4px;
    color: #777;
    font-size: 11px;
    word-break: break-word;
}

/* =========================================================
返信フォーム
========================================================= */

.reply-form {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 10px;
}

.reply-form form {
    width: 100%;
}

.replying-to {
    margin-bottom: 9px;
    color: #666;
    font-size: 11px;
    font-weight: 600;
}

.reply-form-field {
    margin-bottom: 10px;
}

.reply-form-field label {
    display: block;
    margin-bottom: 4px;
    color: #777;
    font-size: 10px;
    font-weight: 600;
}

.reply-form-field input,
.reply-form-field textarea,
.reply-form-field select {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    border: 1px solid #999;
    border-radius: 7px;
    background: #fff;
    color: #111;
    font-size: 13px;
    outline: none;
}

.reply-form-field textarea {
    min-height: 80px;
    resize: vertical;
    line-height: 1.6;
}

.reply-form-field input[type="file"] {
    width: 100%;
    padding: 5px;
    overflow: hidden;
    font-size: 11px;
}

.reply-form-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 12px;
}

.reply-submit-btn {
    padding: 8px 15px;
    border: 0;
    border-radius: 20px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    opacity: 0.85;
}

.reply-cancel-btn {
    padding: 7px 11px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 12px;
    cursor: pointer;
}

/* =========================
   返信フォームボタン中央寄せ
========================= */

.reply-form-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.reply-form-buttons button {
    min-width: 100px;
    text-align: center;
}

/* =========================================================
動画タイプ
========================================================= */

.video-type-group ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-type-group li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.video-type-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.video-type-group input[type="radio"] {
    margin: 0;
}

.radio-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* =========================================================
コメントなし
========================================================= */

.no-comments {
    padding: 35px 15px 25px;
    text-align: center;
}

.no-comments-icon {
    margin-bottom: 8px;
    color: #aaa;
    font-size: 30px;
}

.no-comments p {
    margin: 0 0 4px;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.no-comments span {
    color: #999;
    font-size: 11px;
}

/* =========================================================
スマートフォン
========================================================= */

@media (max-width: 767px) {
    .youtube-comment-section {
        margin-top: 10px;
        padding-right: 14px;
        padding-left: 14px;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .youtube-comments {
        padding-top: 3px;
    }

    .youtube-comment {
        gap: 9px;
        padding: 14px 0;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .comment-header {
        gap: 5px;
    }

    .comment-author {
        font-size: 11px;
    }

    .comment-date {
        font-size: 9px;
    }

    .comment-body {
        font-size: 13px;
    }

    .youtube-replies {
        padding-left: 11px;
        border-left-width: 1px;
    }

    .youtube-comment.reply {
        padding: 10px 0;
    }

    .reply-form {
        padding: 10px;
    }

    .reply-form-field input[type="file"] {
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .comment-avatar {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .comment-body {
        font-size: 12px;
    }
}

/* =========================================
   ユーザー情報コンテナ
========================================= */

.comment-user-container {
    display: flex;
    align-items: center;
    gap: 8px;

    min-width: 0;
}


/* =========================================
   アバター
========================================= */

.comment-user-container .comment-avatar {
    width: 36px;
    height: 36px;

    flex: 0 0 36px;

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

    border-radius: 50%;
    overflow: hidden;
}

.comment-user-container .comment-avatar img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    border-radius: 50%;
}

.comment-user-container .comment-avatar span {
    font-size: 25px;
    line-height: 1;
}


/* =========================================
   日時・ユーザーネーム
========================================= */

.comment-author-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
}

.comment-date {
    display: block;

    font-size: 11px;
    line-height: 1.3;
    color: #888;

    white-space: nowrap;
}

.comment-author,
.comment-author a,
.comment-author span {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;

    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
}


/* =========================================
   コメントヘッダー
========================================= */

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    gap: 10px;
}

.comment-meta {
    flex-shrink: 0;
}
