@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Template:   cocoon-master
Version:    1.2.2
*/

/************************************
** CSS変数（カラー・テーマ設定）
************************************/
:root {
  --color-primary: #d30000;
  --color-primary-hover: #b30000;
  --color-accent: #ff69b4;
  --color-sale: #ff0000;
  --color-text: #333;
  --color-bg-light: #fff0f5;
  --color-border-pink: #ffb6c1;
}

/************************************
** 1. 記事一覧（トップページ・アーカイブ）設定
** PC: 4列 / スマホ: 2列（CSS Grid化）
************************************/
/* --- PC表示（基本設定） --- */
body .list {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
    margin: 0 auto !important;
}

body .list > .a-wrap,
body .list > .entry-card-wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-decoration: none !important;
    color: var(--color-text);
    transition: transform 0.2s, box-shadow 0.2s;
}

body .list > .a-wrap:hover,
body .list > .entry-card-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 1 !important;
}

.entry-card-thumb, .card-thumb {
    width: 100% !important; height: auto !important;
    aspect-ratio: 16 / 9 !important; overflow: hidden !important;
    margin: 0 !important; padding: 0 !important;
}
.entry-card-thumb img, .card-thumb img {
    width: 100% !important; height: 100% !important; object-fit: cover !important;
}
.entry-card-content, .card-content { padding: 10px !important; }
.entry-card-title, .card-title {
    font-size: 14px !important; line-height: 1.4 !important; font-weight: bold !important;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.entry-card-snippet, .card-snippet { display: none !important; }
.entry-card-meta, .card-meta { font-size: 11px !important; color: #999 !important; margin-top: 5px !important; }

/* --- SALEバッジ（共通アニメーション） --- */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.entry-card-sale-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-sale);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    z-index: 2;
    border-bottom-right-radius: 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

/* --- レスポンシブ設定（スマホ2列化） --- */
@media screen and (max-width: 768px) {
    body .list { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .entry-card-content { padding: 8px !important; }
    .entry-card-title { font-size: 12px !important; }
}


/************************************
** 2. 動画グリッド & Xボタン
************************************/
.video-grid-container {
    display: flex; flex-wrap: wrap; gap: 15px; justify-content: flex-start; margin-bottom: 30px;
}
.video-grid-item {
    width: calc((100% - 45px) / 4);
    max-width: calc((100% - 45px) / 4);
    border: 1px solid #ddd; padding: 5px; margin-bottom: 15px; border-radius: 5px; background: #fff;
    box-sizing: border-box;
}
.video-label {
    font-size: 12px; font-weight: bold; color: #555; margin-bottom: 5px; display: flex; justify-content: space-between;
}
.video-num { color: var(--color-primary); font-weight: 800; }
.grid-video, .grid-image {
    width: 100%; height: auto; cursor: pointer; display: block; object-fit: cover; aspect-ratio: 16 / 9; border-radius: 3px; background: #000;
}
.video-x-save-btn {
    display: block !important; width: 100% !important; margin-top: 8px !important;
    background-color: #000 !important; color: #fff !important;
    text-align: center; text-decoration: none !important;
    font-size: 12px; font-weight: bold; padding: 8px 0; border-radius: 4px;
    line-height: 1.2; cursor: pointer; visibility: visible !important; opacity: 1 !important;
}
.video-x-save-btn:hover { opacity: 0.8 !important; background-color: #333 !important; }

@media screen and (max-width: 1024px) {
    .video-grid-item { width: calc((100% - 30px) / 3); max-width: calc((100% - 30px) / 3); }
}
@media screen and (max-width: 480px) {
    .video-grid-container { gap: 8px; }
    .video-grid-item { width: calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); padding: 5px; }
    .video-x-save-btn { font-size: 10px; padding: 6px 0; }
}


/************************************
** 3. 動画プレイヤー [dmm_video]
************************************/
.dmm-video-container {
    margin: 40px auto; width: 100%; position: relative; z-index: 1;
}
.dmm-video-wrapper {
    position: relative; width: 100%; height: 0; padding-top: 56.25%;
    background: #000; overflow: hidden; border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); border: 1px solid #333;
}
.dmm-video-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: none;
}
.dmm-video-note {
    font-size: 11px; color: #888; text-align: center; margin-top: 5px;
}


/************************************
** 4. リッチな購入ボタン [dmm_buy_box]
************************************/
.dmm-buy-box-container {
    border: 4px solid #ff4444 !important; background: #fff0f0 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important; border-radius: 12px !important;
    padding: 25px 15px !important; margin: 40px 0 !important; text-align: center;
}
.dmm-buy-box-title {
    font-size: 20px !important; color: #cc0000 !important;
    background: linear-gradient(transparent 70%, #ffff88 70%) !important;
    display: inline-block; padding: 0 5px; margin-bottom: 20px !important; font-weight: bold;
}
.dmm-buy-box-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    width: 100% !important;
}
.dmm-buy-box-link img {
    display: block !important;
    margin: 0 auto 20px auto !important;
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    transition: opacity 0.3s;
}
.dmm-buy-box-btn {
    margin: 0 auto !important;
    background: linear-gradient(to bottom, #ff5555, #cc0000) !important; color: #fff !important;
    width: 90% !important; max-width: 450px !important; padding: 20px 10px !important;
    border-radius: 50px !important; display: block !important;
    font-size: 22px !important; font-weight: 900 !important; letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4) !important;
    border-bottom: 6px solid #990000 !important; box-shadow: 0 6px 15px rgba(200, 0, 0, 0.4) !important;
    position: relative; overflow: hidden; transition: all 0.1s ease !important;
}
.dmm-buy-box-btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg); animation: shiny-btn 3s infinite;
}
@keyframes shiny-btn { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }
.dmm-buy-box-link:hover .dmm-buy-box-btn {
    transform: translateY(2px) !important; border-bottom: 4px solid #990000 !important;
}
.dmm-buy-box-link:active .dmm-buy-box-btn {
    transform: translateY(6px) !important; border-bottom: 0px solid #990000 !important; box-shadow: none !important;
}
@media screen and (max-width: 480px) {
    .dmm-buy-box-btn { font-size: 18px !important; padding: 18px 5px !important; }
}


/************************************
** 5. 記事下チャット（2ch風）
************************************/
.dmm-thread-container {
    margin-top: 50px !important; background: #fdfdfd; border: 1px solid #ddd; border-radius: 8px; overflow: hidden;
}
.dmm-thread-title {
    background: #efefef; padding: 10px 15px; font-size: 16px; font-weight: bold; color: var(--color-text); border-bottom: 2px solid var(--color-primary); margin: 0 !important;
}
.dmm-thread-body .sidebar-chat-wrapper { border: none !important; background: transparent !important; margin: 0 !important; }
.dmm-thread-body .sidebar-chat-header { display: none !important; }
.dmm-thread-body .sidebar-chat-log { height: 400px !important; background: #fff; padding: 15px !important; }
.dmm-thread-body .sidebar-chat-form { background: #f9f9f9 !important; padding: 15px !important; border-top: 1px solid #eee; }
.dmm-thread-body .chat-res { margin-bottom: 15px !important; border-bottom: 1px solid #f0f0f0 !important; padding-bottom: 10px !important; }
.dmm-thread-body .chat-num { color: #000 !important; font-weight: bold; }
.dmm-thread-body .chat-name { color: #228b22 !important; font-weight: bold; }
.dmm-thread-body .chat-body { font-size: 15px !important; line-height: 1.6 !important; margin-top: 5px; color: var(--color-text); }
.chat-source-info { font-size: 11px; text-align: right; margin-top: 4px; }
.chat-source-info a { color: #007bff; text-decoration: none; background: #f0f8ff; padding: 2px 6px; border-radius: 3px; display: inline-block; }
.current-article-res { background-color: #fff9f9; border-left: 3px solid var(--color-primary) !important; padding-left: 8px !important; }

/* --- 記事タイトル表示用 --- */
.chat-source-article {
    display: block; font-size: 10px; text-align: right; margin-top: 4px; color: #888;
}
.chat-source-article a {
    color: #999; text-decoration: none; border-bottom: 1px dotted #ccc; transition: color 0.2s;
}
.chat-source-article a:hover {
    color: var(--color-primary); border-bottom: 1px solid var(--color-primary);
}


/************************************
** 6. 追尾ボタン [dmm_follow]
************************************/
.dmm-floating-box {
    position: fixed !important;
    z-index: 99990 !important;
    background: #fff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: flex-end;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(0,0,0,0.1) !important;
    animation: slideUp 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    padding: 3px 6px !important; 
}
@keyframes slideUp {
    from { transform: translate(-50%, 150%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@media screen and (max-width: 768px) {
    .dmm-floating-box {
        bottom: 75px !important; left: 50% !important; transform: translateX(-50%) !important; width: 96% !important; max-width: 480px !important;
    }
}
@media screen and (min-width: 769px) {
    .dmm-floating-box {
        bottom: 20px !important; left: 20px !important; transform: none !important; width: auto !important; min-width: 300px !important; max-width: 450px !important; padding: 4px 10px !important; animation: none !important;
    }
}

.dmm-float-img-hero { flex: 0 0 75px !important; width: 75px !important; margin-right: 8px !important; position: relative; z-index: 5; text-decoration: none !important; transition: transform 0.1s; }
.dmm-float-img-hero:active { transform: scale(0.95); }
.dmm-float-img-hero img { width: 100% !important; height: auto !important; display: block !important; border-radius: 4px !important; box-shadow: 2px 2px 6px rgba(0,0,0,0.3) !important; margin-top: -30px !important; border: 2px solid #fff; background: #000; }
.play-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) translateY(-15px); font-size: 16px; color: #fff; background: rgba(0,0,0,0.6); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff; pointer-events: none; }
.dmm-float-action-right { flex: 1 !important; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.dmm-main-text-link { display: flex; flex-direction: column; text-decoration: none !important; margin-bottom: 1px; }
.dmm-text-row { display: flex; align-items: center; flex-wrap: nowrap; overflow: hidden; }
.main-copy { color: var(--color-primary) !important; font-size: 12px !important; font-weight: 900 !important; line-height: 1.1; text-shadow: 1px 1px 0 rgba(255,255,255,1); margin-right: 4px; white-space: nowrap; }
.sub-copy { color: #999 !important; font-size: 8px !important; font-weight: bold; line-height: 1; }
.dmm-float-sale-badge { position: static !important; display: inline-block !important; background: #ffeb3b; color: var(--color-primary); font-size: 8px !important; font-weight: bold; padding: 0px 4px !important; border-radius: 3px !important; border: 1px solid #e6b422 !important; box-shadow: none !important; animation: none !important; vertical-align: middle; white-space: nowrap; line-height: 1.2; }
.dmm-sub-btns { display: flex; gap: 4px; margin-top: 1px; }
.dmm-sub-btn { flex: 1; display: flex; align-items: center; justify-content: center; background: #f7f7f7; color: #444 !important; font-size: 9px !important; font-weight: bold; text-decoration: none !important; padding: 3px 0 !important; border-radius: 3px !important; border: 1px solid #ddd; box-shadow: 0 1px 1px rgba(0,0,0,0.05); white-space: nowrap; }
.dmm-sub-btn.tw { background: #000 !important; color: #fff !important; border-color: #000; }


/************************************
** 7. セールピックアップ (自動横スクロール)
************************************/
.dmm-sale-section-box {
    border: 3px solid #ffeb3b; border-radius: 8px; padding: 15px 0; margin-bottom: 30px;
    background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden;
}
.dmm-sale-section-title {
    text-align: center; font-size: 18px; font-weight: bold; color: var(--color-primary);
    margin: 0 0 15px 0; border: none; padding: 0 10px;
}
.sale-fire { font-size: 20px; margin-right: 5px; }
.sale-sub { font-size: 12px; color: #666; font-weight: normal; display: inline-block; }
.dmm-auto-slide-container { width: 100%; overflow: hidden; position: relative; }
.dmm-auto-slide-track { display: flex; width: max-content; animation: dmmAutoScroll 40s linear infinite; }
.dmm-auto-slide-track:hover, .dmm-auto-slide-track:active { animation-play-state: paused; }
@keyframes dmmAutoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.dmm-custom-grid-item {
    flex: 0 0 auto; width: 160px; margin: 0 10px; text-decoration: none !important;
    color: var(--color-text); transition: opacity 0.2s; white-space: normal;
}
.dmm-custom-grid-item:hover { opacity: 0.8; color: var(--color-primary); transform: translateY(-2px); }
@media (min-width: 769px) { .dmm-custom-grid-item { width: 200px; margin: 0 15px; } }
.dmm-custom-grid-thumb {
    position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
    border-radius: 5px; margin-bottom: 5px; background: #f0f0f0;
}
.dmm-custom-grid-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dmm-grid-sale-badge {
    position: absolute; top: 0; left: 0; background: var(--color-sale); color: #fff;
    font-size: 10px; font-weight: bold; padding: 2px 8px;
    border-bottom-right-radius: 5px; z-index: 2; animation: pulse 2s infinite;
}
.dmm-custom-grid-title {
    font-size: 12px; line-height: 1.4; font-weight: bold; height: 2.8em;
    overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}


/************************************
** 8. 自動作品スペック表 [dmm_product_info]
************************************/
.dmm-spec-details { margin: 20px 0; border: 1px solid #ddd; border-radius: 5px; background: #fff; }
.dmm-spec-summary {
    padding: 12px 15px; font-weight: bold; cursor: pointer; background: #f5f5f5;
    list-style: none; position: relative; outline: none; font-size: 14px;
}
.dmm-spec-summary::after { content: "＋"; position: absolute; right: 15px; font-weight: bold; color: #666; }
.dmm-spec-details[open] .dmm-spec-summary::after { content: "－"; }
.dmm-spec-summary::-webkit-details-marker { display: none; }
.dmm-product-info-box { padding: 0; border-top: 1px solid #ddd; margin: 0; }
.dmm-spec-table { width: 100%; border-collapse: collapse; background: #fff; border: none; margin: 0; }
.dmm-spec-table th, .dmm-spec-table td {
    border: 1px solid #ddd; border-left: none; border-right: none; padding: 10px 15px; font-size: 13px;
}
.dmm-spec-table th { background: #f9f9f9; width: 30%; font-weight: bold; color: #555; white-space: nowrap; }


/************************************
** 9. 年齢認証・検索・モーダルその他
************************************/
.video-modal { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.95); justify-content: center; align-items: center; z-index: 999999; }
.video-modal.active { display: flex; }
.video-modal-wrapper { position: relative; width: 100%; max-width: 1000px; display: flex; align-items: center; justify-content: center; }
.video-modal video, .video-modal img { max-width: 100%; max-height: 80vh; outline: none; }
.modal-close { position: absolute; top: -50px; right: 10px; background: rgba(255,255,255,0.2); color: #fff; border: none; font-size: 30px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.modal-nav-prev, .modal-nav-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 40px; padding: 20px; cursor: pointer; opacity: 0.7; background: rgba(0,0,0,0.3); border-radius: 5px; }
.modal-nav-prev:hover, .modal-nav-next:hover { opacity: 1; background: rgba(0,0,0,0.6); }
.modal-nav-prev { left: 10px; } .modal-nav-next { right: 10px; }
.modal-mute { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #fff; border: none; padding: 10px 25px; border-radius: 30px; font-weight: bold; cursor: pointer; font-size: 14px; }
@media screen and (max-width: 768px) {
    .modal-nav-prev, .modal-nav-next { font-size: 24px; padding: 10px; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; }
}

/* 検索オートコンプリート */
.ui-autocomplete { background: #fff; border: 1px solid #ccc; max-height: 200px; overflow-y: auto; overflow-x: hidden; z-index: 99999; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); border-radius: 0 0 4px 4px; padding: 0; margin: 0; }
.ui-autocomplete .ui-menu-item { list-style: none; padding: 0; margin: 0; }
.ui-autocomplete .ui-menu-item-wrapper { padding: 8px 12px; font-size: 14px; color: var(--color-text); cursor: pointer; border-bottom: 1px solid #eee; display: block; }
.ui-autocomplete .ui-menu-item-wrapper:hover, .ui-autocomplete .ui-state-active { background: #f0f0f0; color: #000; border: none; margin: 0; }

.dmm-static-btn-wrap { margin: 30px 0; text-align: center; }
.dmm-static-btn { display: inline-block; background: var(--color-primary); color: #fff !important; font-size: 20px; font-weight: bold; text-decoration: none !important; padding: 15px 40px; border-radius: 50px; box-shadow: 0 5px 15px rgba(211, 0, 0, 0.4); width: 80%; max-width: 400px; }
.btn-arrow { margin-left: 10px; }
.dmm-btn-note { font-size: 11px; color: #888; margin-top: 5px; }

/************************************
** 女優タグのデザイン（ピンク色）
************************************/
a.actress-tag {
    background-color: var(--color-bg-light) !important;
    border: 1px solid var(--color-border-pink) !important;
    color: var(--color-primary) !important;
    font-weight: bold !important;
}
a.actress-tag:hover {
    background-color: var(--color-border-pink) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
a.actress-tag::before {
    content: "♥";
    margin-right: 4px;
    font-size: 10px;
    color: var(--color-accent);
}

/************************************
** 記事トップのアイキャッチ画像を中央寄せ
************************************/
.eye-catch {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}
.eye-catch img {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    height: auto !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
    border-radius: 6px; 
}

/************************************
** 10. 女優自動プロフィールカード
************************************/
.dmm-actress-profile-box {
    margin: 40px 0;
    border: 2px solid var(--color-border-pink);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
.dmm-actress-header {
    background: var(--color-bg-light);
    padding: 10px 15px;
    border-bottom: 1px solid var(--color-border-pink);
    display: flex;
    align-items: center;
    gap: 10px;
}
.dmm-actress-badge {
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
}
.dmm-actress-name {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: var(--color-primary) !important;
    border: none !important;
    padding: 0 !important;
}
.dmm-actress-body {
    padding: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.dmm-actress-img {
    flex: 0 0 120px;
    width: 120px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fafafa;
}
.dmm-actress-img img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
    margin: 0 !important;
}
.dmm-actress-info { flex: 1; }
.dmm-actress-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px !important;
    font-size: 13px;
    border: none !important;
}
.dmm-actress-table th, 
.dmm-actress-table td {
    padding: 6px;
    border-bottom: 1px solid #eee;
    text-align: left;
    background: transparent !important;
}
.dmm-actress-table th { width: 30%; color: #888; font-weight: normal; }
.dmm-actress-table td { font-weight: bold; color: var(--color-text); }
.dmm-actress-link-btn {
    display: block; background: var(--color-primary); color: #fff !important; text-align: center;
    padding: 10px; border-radius: 5px; text-decoration: none !important; font-weight: bold; font-size: 14px; transition: opacity 0.2s;
}
.dmm-actress-link-btn:hover { opacity: 0.8; }

@media screen and (max-width: 480px) {
    .dmm-actress-body { flex-direction: column; }
    .dmm-actress-img { width: 100px; margin: 0 auto 10px auto; }
    .dmm-actress-table th { width: 35%; white-space: nowrap; }
    .dmm-actress-table td { font-size: 12px; }
}

.dmm-actress-profile-box.archive-top {
    margin: 0 0 30px 0 !important; width: 100%; box-sizing: border-box;
}
.dmm-name-wrap { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.dmm-actress-ruby { font-size: 10px; color: var(--color-primary); font-weight: normal; margin-bottom: 0px; }
.dmm-cup { font-size: 0.9em; color: var(--color-accent); margin-right: 3px; }

/************************************
** 11. チャットモーダル（ポップアップ）
************************************/
.dmm-chat-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 2147483647 !important;
    display: flex; justify-content: center; align-items: center; backdrop-filter: blur(2px);
}
.dmm-chat-modal-window {
    background: #fff; width: 95%; max-width: 500px; height: 80vh;
    border-radius: 10px; display: flex; flex-direction: column;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); overflow: hidden; animation: chatPopIn 0.2s ease-out;
}
@keyframes chatPopIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dmm-chat-header {
    background: #f5f5f5; padding: 10px 15px; border-bottom: 1px solid #ddd;
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.dmm-chat-title-text { font-weight: bold; color: var(--color-text); font-size: 14px; }
.dmm-chat-close-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: #666; padding: 0 5px; }
.dmm-chat-modal-window .sidebar-chat-wrapper { height: 100% !important; display: flex; flex-direction: column; }
.dmm-chat-modal-window .sidebar-chat-log { flex: 1; height: auto !important; overflow-y: auto; padding: 15px; max-height: none !important; }