


p{
    font-size: 1rem;
}
.title{
    margin-top: 12%;
    margin-bottom:12%;
    min-height:50vh;
}

.btn{
    background-color: #EF798A;
    border:none;
    padding-bottom: 10px;
}
.btn:hover{
    background-color: #084298;
}

.form-text{
    color:#EF798A;
    font-size: 0.8rem;
    margin-left: 12px;
}

.form-check-label{
    font-size: 0.9rem;
    color:var(--main_white);
}

.form-check-input{
    margin-top: 0.45em;
}

.form-check-input:checked {
    background-color: #084298;
    /* border-color: #0d6efd; */
    border:none;
    box-shadow:none;
    /* background-image: none; */
}






.search_box {
    border: 2px solid #084298;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
    transition: max-height 0.5s ease;
    max-height: 50px; /* 初始只有 input */
    display: flex;
    flex-direction: column;
}

.search_box.expand {
    max-height: 200px; /* 展開顯示頻道資訊 */
}

.search_box input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px;
    background: transparent;
}



.search_box input:focus {
    box-shadow: none;
    background-color: transparent;
}

.search_result {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color:#084298;

}
.search_result:hover{
    background-color: #084298;
    color:white;
}

.search_box.expand .search_result {
    opacity: 1;
    transform: translateY(0);
}

/* 縮小頻道頭像 */
.channel_inner img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* 搜尋按鈕固定高度，不受 search_box 影響 */
.search_btn {
    height: 50px;        /* 和 input 初始高度一致 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.small_word{
    font-size: 0.7rem;
    color:var(--main_white);
    margin-bottom: 2px;
}

@media (max-width: 575.98px) {
    #dashboard {
        height: 100vh !important;  /* 100% 視窗高度 */
    }
}

.svg-icon-arrow {
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  animation: bounce 1s infinite alternate;
  position: fixed;         /* 固定位置 */
  bottom: 20px;            /* 距離頁面底部 20px */
  left: 50%;               /* 水平置中 */
  transform: translateX(-50%);
}

.svg-icon-arrow path,
.svg-icon-arrow polygon,
.svg-icon-arrow rect {
  fill: var(--main_red);
}

.svg-icon-arrow circle {
  stroke: var(--main_red);
  stroke-width: 3;
}


 @keyframes bounce {
    0% { transform: translate(-50%, 0); }
    100% { transform: translate(-50%, 10px); }
}

.svg-icon-arrow.hide{
    opacity: 0;
    pointer-events: none;
}


/* --- loader 外框 --- */
#loader {
    display: none;
    width: 40px;
    height: 30px;
    margin: 5px auto;
    /* display: flex; */
    align-items: flex-end;
    justify-content: space-between;
}

/* --- 每根棒子 --- */
.bar {
    width: 8px;
    background: var(--main_red);
    border-radius: 0px;
    animation: grow 3s ease-in-out infinite;
}

/* --- 三根棒子的時序偏移 --- */
.bar:nth-child(1) { animation-delay: 0s; }
.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.1s; }

/* --- 動畫定義 --- */
@keyframes grow {
    0%   { height: 7px; }
    25%  { height: 20px; }
    50%  { height: 15px; }
    75%  { height: 30px; }
    100% { height: 5px; }
}



