/* =====   結果表示版CSS  ===== */

.sentiment-widget { position: relative; background-color: #ffffff; border: 1px solid #e0e0e0; border-radius: 3px; padding: 15px; box-sizing: border-box; max-width: 1000px; margin: 0 auto 20px auto; }
.sentiment-widget-top { margin: 30px 0 20px !important; }
.widget-header-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; border-bottom: 1px solid #e0e0e0; padding: 0 0 8px 5px; }
.widget-title { font-size: 18px; font-weight: bold; color: #333; margin: 0; }
.widget-subtitle { font-size: 12px; color: #333; margin: 0; padding: 3px 35px 0 0; }

.widget-header-link { position: absolute; top:10px; right: 10px;  font-size: 14px; padding: 4px 10px 4px; border-radius: 3px; background: #42a5f5; color: #fff; text-decoration: none; margin-left: auto; }
.widget-header-link:visited { color: #fff; }
.widget-header-link:hover { background: #FF5722; text-decoration: none; }

.widget-content-columns { display: flex; gap: 24px; align-items: flex-start; }
.column-left, .column-right { flex: 1; min-width: 0; }

.vote-buttons-area { display: flex; gap: 8px; width: 100%; padding-top: 2px; }
.vote-buttons-area button { flex: 1; padding: 12.5px 0; font-size: 13px; font-weight: bold; color: #fff; border: none; border-radius: 4px; cursor: pointer; transition: opacity 0.2s ease; }
.vote-buttons-area button:hover { opacity: 0.8; }

.area-label { font-size: 12px; font-weight: bold; color: #555; margin-bottom: 5px; }
.result-text-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: bold; }
.res-text-item { flex: 1; }
.res-text-item:nth-child(2) { text-align: center; }
.res-text-item:nth-child(3) { text-align: right; }

.result-bar-row { display: flex; width: 100%; height: 10px; border-radius: 4px; background-color: #f0f0f0; overflow: hidden; }
.thin-bar { height: 100%; transition: width 0.8s ease-out; }

.btn-buy { background-color: #089981; }
.buy-color { background-color: #089981; }
.txt-buy-color { color: #089981; }

.btn-neutral { background-color: #787b86; color: #fff !important; }
.neutral-color { background-color: #b2b5be; }
.txt-neutral-color { color: #787b86; }

.btn-sell { background-color: #f23645; }
.sell-color { background-color: #f23645; }
.txt-sell-color { color: #f23645; }

@media screen and (max-width: 600px) {
    .sentiment-widget-top { margin: 5px 0 !important; }
    .widget-header-inline { gap: 3px 12px; padding: 5px 0 5px 2px; }
    .widget-header-link { margin-left: 0; }
    .widget-content-columns { flex-direction: column; gap: 10px; }
    .column-left, .column-right { width: 100%;}
    .area-label { margin-bottom: 2px; }
}