/*公告*/
#Bulletin{
    padding: 5px 5px;
}
.notice {
    height: 19px;
    overflow: hidden;
    position: relative;
}
.notice b {
    line-height: 19px;
    font-size: 17px;
    font-weight: 700;
    display: inline-block;
}
.notice .notice-item {
    list-style: none;
    line-height: 19px;
    display: inline-block;
    font-size: 16px;
    position: absolute;
    top: 0;
    margin: 0;
    padding: 0;
    transition: transform 0.5s ease;
}
.notice .notice-item span{
    color: red;
    font-weight: bold;
}

/*播放器下方*/
.ad_1{
    width: 400px;
    position: relative;
    margin: 0 auto;
}

#fby{
    width: 400px;
    margin: 0 auto;
    text-align: center;
    padding: 15px 0;
}
#fby #menu_app{
    width: 100%;
}
#fby #menu_app ul{
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}
#fby #menu_app li{
    position: relative;
    width: calc(100% / 3 - 6px);
    height: 26px;
    line-height: 26px;
    background-color: #de2600;
    color: #fff;
    text-align: left;
    display: inline-block;
    margin: 2.5px;
    padding: 0 3px;
    overflow: hidden;
    border-radius: 2.5px;
}
#fby #menu_app li img{
    position: absolute;
    top: 3px;
    height: 20px;
    width: 20px;
    border-radius: 2.5px;
}
#fby #menu_app li a{
    text-decoration: none;
    display: inline-block;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    margin-left: 25px;
}

@media (max-width: 400px) {
    .ad_1{
        width: 100% !important;
    }

    #fby{
        width: 100% !important;
    }
}

/*弹窗样式*/
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#popup_1 {
    background-color: #fff;
    color: #000;
    font-size: 18px;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
}

#popup_1 button{
    color: #fff;
    background-color: #de2600;
    width: 100%;
    font-size: 17px;
    letter-spacing: 1.5px;
    font-weight: bold;
    border-radius: 5px;
    padding: 8px 0;
    margin: 0 0 8px;
    border: none;
}

.close_btn {
    position: absolute;
    top: 6px;
    right: 8px;
    cursor: pointer;
    font-size: 15px;
}
/*弹窗样式*/


.live-cams,.menu-login-acct,body:not(.body--with-old-header) .head__login-btn-group,.thumb-ad,.thumb-nat-ad,#ad-footer,.remove-ads,.page-link,#subs-home-toggle-cont,#video-ad,.video-title,#video-sponsor-links,.has-banner,#ad-header-mobile-contener,.video-ad,.mobile-portrait-show,#ad_3954650,.videoad-base,.videoad-title,#ad-footer2,#disclaimer-over18,#disclaimer_message .disclaimer-manage_cookies, #disclaimer-save-preferences,#disclaimer-reject_cookies-btn,#disclaimer-parents-p,#ad_3959997,.inner,#video-tabs,.currency-switch-btn,#tabComments_bottom_page,#profile-title.has-banner-slider .embed-responsive.banner-slider,.premium-preview,#profile-tabs .tab-buttons li .btn.premium,#tabComments #profile-comments-tab-chat-btn,#chat-window.chat-hidden,.x-thread .thread-header .thread-node-btn-post,#profile-title .friend-request-cont,#profile-title.banner-sliders .embed-responsive, #profile-title.has-banner-slider .embed-responsive,.search-premium-tabs,.premium-results-line,#video-right,.activity-N_PRV-teamskeet,.tab-description,#html5video #hlsplayer .top-left .full-video-link,#page.video-page #full-video-link-band{
    display: none !important;
}

#home-search div.cont, #xv-search-form div.cont{
    padding: 0 !important;
}
#disclaimer_message .btn-primary{
    font-size: 20px !important;
}
#gmedia-d-b-twR0WrrvZNgEWs3a266 a{
    display: none;
}

.gonggao{
    background: #de2600;
    color: yellow;
    font-size: 17px;
    margin: 0;
    padding: 6px 0;
    text-align: center;
    font-weight: bold;
}

.ad_2{
    display: none;
}
.related-content .related-content__btns a.link{
    font-size: 18px !important;
}

.site-settings > ul > li:nth-child(-n+12) {
    display: none;
}

.thumb-block .thumb a{
    min-height: auto;
}

#banner_ad{
    width: 100%;
    display: none;
}
#banner_ad .wap-banner{
    width: 100%;
}
#banner_ad img{
    width: 100%;
    height: 60px;
}

@media (max-width: 767px){
    /*公告*/
    #Bulletin{
        padding: 5px 0;
    }
    .notice {
        height: 16px;
    }
    .notice b {
        line-height: 16px;
        font-size: 10px;
        font-weight: 700;
    }
    .notice .notice-item {
        line-height: 16px;
        font-size: 10px;
        top: 2px;
    }

    .gonggao{
        font-size: 15px;
    }

    .ad_2{
        width: 100%;
        height: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        overflow: hidden;
        background-color: #e35454;
    }

    .ad_2 a{
        color: #fff !important;
        font-weight: bold;
        font-size: 18px;
        text-decoration: none !important;
        display: inline-block;
        width: 70%;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 10px;
        background: #e35454;
        box-shadow:  5px 5px 5px #c14747,
        -5px -5px 5px #ff6161;
    }
    .ad_2 a:hover{
        color: #fff;
        text-decoration: none;
        border-radius: 10px;
        background: #e35454;
        box-shadow: inset 5px 5px 5px #c14747,
        inset -5px -5px 5px #ff6161;
    }

    #mobile-footer-slogan>*, #mobile-slogan>*,#mobile-slogan{
        font-size: 15px !important;
    }

    #main{
        border-top: none !important;
        margin: 0 0 0 0 !important;
    }
    #link,#links{
        padding-top: 2px !important;
        /*border-top: none !important;*/
    }
    #link a,#links a{
        margin: 3px 3px 0 0 !important;
        font-size: 12px !important;
    }

    #banner_ad{
        display: inline-block;
    }
    #banner_ad .wap-banner img{
        height: 26px;
    }
}

#xv-search-form{
    padding: 0 20px;
}

span.icon-f.icf-user-o {
    color: #fff0;
}

.thumb-block{
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

#site-language{
    display: none;
}
#site-localisation{
    display: none;
}


#footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0; /* 给上方和下方留出一些内边距 */
    margin-top: 30px; /* 给 footer 上方留一些外边距，避免和内容紧挨着 */
}

/* 设置链接样式 */
.footer-links {
    color: white;
    text-align: center;
    padding: 20px 0; /* 给上方和下方留出一些内边距 */
    margin-top: 30px; /* 给 footer 上方留一些外边距，避免和内容紧挨着 */
}

/* 设置链接样式 */
.footer-links a {
    color: white;
    text-decoration: none;
    margin: 10px 15px; /* 上下 10px，左右 15px */
    font-size: 14px;

    /* 添加以下属性隐藏多余文字 */
    display: inline-block; /* 确保 text-overflow 生效 */
    max-width: 100px; /* 设置一个最大宽度，根据需要调整 */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 用省略号表示被隐藏的文字 */
    white-space: nowrap; /* 禁止换行 */
    text-align: center; /* 居中对齐文字 */
}

/* 让链接在鼠标悬停时显示高亮 */
.footer-links a:hover {
    text-decoration: underline;
    color: #ff6600;
}

/* 响应式设计：调整链接布局为网格布局，每行显示 4 个 */
@media (max-width: 768px) {
    .footer-links {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 每行 4 列 */
        gap: 15px 10px; /* 增加上下和左右的网格间距 */
        justify-items: center; /* 水平居中 */
        padding: 15px 0; /* 减少内边距 */
    }

    .footer-links a {
        margin: 0; /* 移除单独的外边距，使用网格间距 */
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* 在更小屏幕上保持 1 行 4 个链接，但字体更大 */
    .footer-links a {
        font-size: 12px; /* 更大的字体 */
    }

    .footer-links {
        gap: 20px 10px; /* 为小屏幕增加更多的间隔 */
    }
}

.googlelink{
    position: absolute;
    opacity: 0;
}


/* 图标广告容器 */
.adhidden {
    display: none !important;
}

.icon-ads,
.remaining-ads {
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    justify-content: center; /* 水平居中 */
    gap: 10px; /* 子元素之间的间距 */
    padding: 5px;
    max-width: 1320px;
    margin: 0 auto;
}
.icon-ad {
    width: calc(20% - 10px); /* 每行显示 5 个广告 */
    text-align: center;
    display: flex;
    flex-direction: column; /* 子元素纵向排列 */
    align-items: center; /* 子元素水平居中 */
    overflow: visible; /* 确保子元素不会被裁剪 */
}

.icon-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* 保证正方形比例 */
    overflow: hidden; /* 保持图片裁剪 */
    border-radius: 10px;
    background-color: #000; /* 确保图片容器背景色 */
    flex-shrink: 0; /* 确保图片容器不会被压缩 */
}


.icon-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 图片按比例裁剪填充 */
}

.icon-title {
    font-size: 14px; /* 字体大小 */
    line-height: 1; /* 设置行高 */
    margin-top: 5px; /* 图片与标题之间的间距 */
    max-width: calc(4em); /* 1 个字宽度约等于 1em */
    overflow: hidden; /* 超出部分隐藏 */
    text-overflow: ellipsis; /* 显示省略号 */
    white-space: nowrap; /* 禁止换行 */
    text-align: center; /* 标题居中 */
    color: #000; /* 设置文字颜色 */
}
.telegrambd{
    text-align: center;padding: 5px;
}


/* 按钮容器样式，用于居中整个页面 */
.toggle-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.toggle-button {
    flex: 0 0 calc(100%);
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-button:hover {
    background-color: #0056b3;
}

/* PC端调整按钮宽度 */
@media (min-width: 1024px) {
    .toggle-button {
        flex: 0 0 calc(25% - 10px);
    }
    .icon-ad {
        width: calc(10% - 10px); /* 在PC端时一行10个图标 */
        height: 60px;
    }
}

/* 默认隐藏广告 */
.mobile-only {
    display: none;
}

/* 移动设备显示广告 */
@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}
