@charset "UTF-8";

.x-url-fetch-modal-content {
    max-width: clamp(560px, 90vw, 680px);
}

.x-url-fetch-modal-body {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-sizing: border-box;
}

.x-url-fetch-form {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.x-url-fetch-form .x-form-group {
    margin-bottom: 0;
}

/* URL入力欄 クリア 貼り付け */
.x-url-input-action-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.x-url-input-inner {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.x-url-input-inner .x-input-text {
    width: 100%;
    padding-right: 32px;
}

.x-input-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.x-input-clear-btn:hover {
    color: #475569;
}

.x-paste-btn {
    flex-shrink: 0;
    height: 38px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
}

/* 補足ヒントテキスト */
.x-fetch-hint {
    margin: 4px 0 0 2px;
    font-size: clamp(0.68rem, 0.64rem + 0.15vw, 0.74rem);
    color: var(--theme-color, #64748b);
    line-height: 1.35;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

/* Cloudflare Turnstile コンテナ（背景色・枠線なし・中央配置） */
.x-turnstile-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: none;
    padding: 0;
}

/* 最下部アクションボタン */
.x-fetch-action-wrap {
    width: 100%;
}

.x-fetch-submit-btn {
    width: 100%;
    height: 44px;
    font-size: 0.95rem;
    border-radius: 12px !important;
    gap: 8px;
}

/* 別のポストを取得ボタン */
.x-fetch-another-btn {
    width: 100%;
    max-width: 600px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.92rem;
    border: 1.5px solid var(--theme-color, #cbd5e1);
    color: var(--theme-color, #334155);
    background: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
}

.x-fetch-another-btn:hover {
    background: var(--theme-color, #1da1f2);
    border-color: var(--theme-color, #1da1f2);
    color: #ffffff;
}

/* 取得結果表示エリア */
.x-fetch-result-area {
    width: 100%;
    max-width: 600px;
    margin-top: 4px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.x-fetch-result-area.active {
    display: flex;
}

/* ポスト本体グループカード（600px幅） */
.x-fetch-result-area .x-thread-group {
    width: 100%;
    max-width: 600px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.x-fetch-error-box {
    width: 100%;
    max-width: 600px;
    padding: 14px 16px;
    border-radius: 12px;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.88rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    line-height: 1.4;
}

.x-fetch-error-box i {
    font-size: 1.1em;
    flex-shrink: 0;
}

/* このポストの詳細 アコーディオン & テーブル */
.x-post-details-accordion {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

.x-post-details-summary {
    padding: 10px 14px;
    font-size: 0.86rem;
    font-weight: 800;
    color: #334155;
    cursor: pointer;
    user-select: none;
    outline: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.x-post-details-summary:hover {
    background: #f8fafc;
    color: var(--theme-color, #0f172a);
}

.x-post-details-accordion[open] .x-post-details-summary {
    border-bottom-color: #e2e8f0;
    background: #f8fafc;
}

.x-post-details-summary i.fa-chevron-right {
    font-size: 0.8em;
    transition: transform 0.2s ease;
    color: #64748b;
}

.x-post-details-accordion[open] .x-post-details-summary i.fa-chevron-right {
    transform: rotate(90deg);
}

.x-details-table-wrap {
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
}

.x-details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    line-height: 1.45;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.x-details-table th,
.x-details-table td {
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    background: #ffffff !important;
}

.x-details-table th {
    width: 26%;
    min-width: 100px;
    font-weight: 700;
    color: #475569;
    white-space: nowrap;
}

.x-details-table td {
    color: #0f172a;
}

.x-details-table a {
    color: var(--theme-color, #1da1f2) !important;
    text-decoration: underline !important;
}

.x-details-media-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}