.troggle-btn-area {
    box-sizing: border-box;
    padding-left: 10px;
    margin: 10px 0;
}

.troggle-btn-area .troggle-btn {
    width: 110px;
    height: 40px;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    filter: grayscale(100%);
    transition: 0.3s;
    margin: 10px 5px;
    color: #6b6464;
    border: 1px solid #cec6c6;
    font-size: 16px;
}

.troggle-btn-area .active {
    background-color: var(--match-header-active);
    filter: initial;
    color: #fff;
    font-weight: bold;
}

.stream-game-item {
    display: flex;
    justify-content: space-around;
    width: 95%;
    height: 70px;
    margin: 0 auto;
    border-top: 1px dashed #c6c6c6;
    border-bottom: 1px dashed #c6c6c6;
}

.stream-game-item .time {
    display: flex;
    align-items: center;
    width: 30%;
}

.stream-game-item .league {
    display: flex;
    align-items: center;
    width: 40%;
}

.behind-part {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.team-info-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: right;
}

.team-info-content .team {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.team-info-content .team .home {
    display: inline-block;
    width: 100px;
    text-align: right;
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-info-content .team .away {
    display: inline-block;
    width: 100px;
    text-align: left;
    margin: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-info-content .team img {
    width: 30px;
    height: 30px;
}

.stream-play {
    flex: 1;
    display: flex;
}

.stream-play-link {
    display: inline-block;
    color: var(--match-signal-end-color);
    background-color: var(--match-signal-end-bg-color);
    border: var(--match-signal-end-bg-border);
    box-sizing: border-box;
    padding: 12px;
    width: 66%;
    border-radius: 8px;
    text-align: center;
    margin: 0 auto;
    cursor: pointer;
}

.friendly-area {
    width: 100%;
    background-color: var(--friendly-bg-color);
    color: #fff;
}

.friendly-area .friendly-area-content {
    padding: 20px;
}

.friendly-area .friendly-area-content a {
    margin: 0 5px 0 5px;
    text-decoration: none;
    line-height: 1.8em;
}

#main {
    background-color: #fff;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
}

/* 主标题样式 */
.section-title {
    width: 100%;
    max-width: 1190px;
    margin: 0 auto 5px auto;
    box-sizing: border-box;
    padding: 10px 0 0 0;
}

.section-title h2 {
    font-size: 1rem;
    /* 大字体 */
    color: var(--news-text-color);
    /* 使用鲜艳的颜色吸引注意，例如番茄红 */
    display: inline-block;
    padding: 0px 15px;
    text-transform: uppercase;
    /* 大写字母 */
    letter-spacing: 2px;
    /* 增加字母间距 */
    position: relative;
    margin-left: 20px;
}

/* 标题下面的小装饰条 */
.section-title h2:before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--news-text-before-bg-color);
    /* 与标题文字相同的颜色 */
    bottom: 0;
    /* 放置在标题的底部 */
    left: 0;
    transform: translateX(-50%);
    /* 使下划线居中 */
    border-radius: 2px;
}

.news-area {
    background-color: #e8e7e7;
    width: 100%;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 auto;
    width: 92%;
    /* 默认最大宽度 */
    padding: 10px 0 30px 0;
}

.news-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 8px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-title {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    /* 限制最多显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-summary {
    font-size: 12px;
    color: #666;
    margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    /* 限制最多显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-tag {
    display: inline-block;
    background-color: #520001;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 4px;
    padding: 2px 4px;
    margin-right: 6px;
}

.live-grid {
    display: flex;
    flex-direction: column;
    /* 垂直排列 */
    gap: 20px;
    /* 增加間距 */
    align-items: center;
    /* 讓卡片置中 */
    box-sizing: border-box;
    padding: 10px;
    background-color: #ebebeb;
}

.live-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 195px;
    max-height: 171px;
    /* 卡片大小 */
}

.live-card img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 159px;
}

.live-label {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(to right, #ff4d88, #ff69b4);
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 15px;
}

.live-status {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 10px;
}

.live-info {
    position: absolute;
    bottom: 0;
    /* 貼齊圖片底部 */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 半透明黑色背景 */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: bold;
    box-sizing: border-box;
    /* 避免 padding 影響寬度 */
}

.live-info span {
    color: #999;
    font-size: 12px;
}

/* RWD 響應式 */
@media (max-width: 768px) {
    .live-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 變回 2 欄 */
        gap: 15px;
    }

    .live-card {
        width: initial;
    }
}

/* --- 响应式设计 --- */
@media (min-width: 768px) {
    .news-list {
        max-width: 300px;
        /* 中屏幕增大列表宽度 */
        width: 84%;
    }

    .news-image {
        height: 120px;
        /* 图片高度增加 */
    }

    .news-summary {
        font-size: 14px;
        /* 内容字体增大 */
    }
}

@media (min-width: 1024px) {
    .news-list {
        max-width: 600px;
        /* 大屏幕改为双列布局 */
        display: grid;
        gap: 10px;
    }

    .news-item {
        align-items: center;
    }

    .news-image {
        height: 100px;
    }

    .news-content {
        flex: 1;
    }

    .news-summary {
        font-size: 16px;
        /* 内容字体更大 */
    }
}

/* 响应式调整 */
@media (max-width: 1024px) {
    .streamer-container {
        grid-template-columns: repeat(3, 1fr);
        /* 调整为3列 */
    }
}

@media (max-width: 768px) {
    .streamer-container {
        grid-template-columns: repeat(2, 1fr);
        /* 调整为2列 */
    }

    #main {
        display: block;
    }
}

@media (max-width: 480px) {
    .streamer-container {
        grid-template-columns: 1fr;
        /* 单列布局 */
    }
}

@media screen and (max-width: 768px) {
    .team-info-content {
        display: block;
    }

    .stream-game-item .time {
        text-align: center;
        margin-right: 10px;
    }

    .team-info-content .team {
        margin: 10px 10px;
    }

    .team-info-content .team img {
        width: 25px;
        height: 25px;
    }

    .team-info-content .team:nth-child(n + 2) {
        flex-direction: row-reverse;
    }

    .team-info-content .team .away {
        text-align: right;
    }

    .stream-game-item .league {
        width: 50px;
    }

    .stream-game-item .league a,
    .stream-game-item .league span {
        width: 50px;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .vs {
        display: none;
    }

    .stream-play {
        display: flex;
        justify-content: center;
        max-width: 64px;
    }

    .stream-play-link {
        padding: 12px;
        width: 100%;
        max-width: 64px;
    }

    .section-title {
        padding: 15px 0 0 0;
    }

    .section-title h2 {
        margin-left: 20px;
    }

    .marquee-container {
        transform: translateY(5px);
    }
}

@media screen and (max-width: 400px) {
    .team-info-content .team .home {
        width: 110px;
    }

    .team-info-content .team .away {
        display: inline-block;
        width: 110px;
    }
}

.title-block {
    width: 95%;
    margin: 0 auto;
    margin-top: 15px;
    max-width: 1280px;
}

.title-block img {
    width: 100%;
}

.streamer-cards {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    /* 如果卡片太多，會自動換行 */
    gap: 15px;
    /* 卡片之間的間距 */
    padding: 16px;
    margin: 0 auto;
    max-width: 1280px;
}

/* 單張卡片 */
.streamer-card {
    /* card 外觀設定 */
    display: flex;
    /* 讓頭像與文字並排 */
    align-items: center;
    /* 垂直置中 */
    width: 22%;
    /* 固定或最小寬度，可調整 200~300px 之間 */
    padding: 8px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.streamer-card:hover {
    transform: scale(1.03);
}

/* 直播主頭像 */
.streamer-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* 圓形頭像 */
    object-fit: cover;
    /* 如果頭像比例不同，會自動裁切 */
    margin-right: 12px;
}

/* 直播主文字區 */
.streamer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.streamer-name {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.streamer-desc {
    font-size: 0.9rem;
    color: #555;
}

/* RWD 設定：小螢幕時的調整，可自行調整斷點 */
@media (max-width: 500px) {

    .streamer-card,
    .streamer-cards {
        display: none;
    }

    .title-block {
        display: none;
    }
}

.hot-league {
    width: 90%;
    margin: 10px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.hot-league .league {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 10px;
    cursor: pointer;
}

.hot-league .league a {
    display: contents;
}

.hot-league .league img {
    width: 80%;
}

.hot-league .league:hover {
    transform: scale(1.1);
    transition: 0.3s;
}