@media (max-width: 1100px) {
	.maxwidth{
	    padding-left:20px!important;
	    padding-right:20px!important;
	}
    .stations_lists {
        grid-template-columns: repeat(auto-fill, 200px);
    }
    .stations_lists .one_station {
        width: 200px;
    }
}
@media (max-width: 1000px) {
    .left_side {
        width: 250px;
    }
    .stations_lists {
        grid-template-columns: repeat(auto-fill, 150px);
    }
    .stations_lists .one_station {
        width: 150px;
        max-height: 235px;
        text-align: left;
		padding: 10px 0 10px 10px;
		text-overflow: ellipsis;
    }
    .stations_lists .one_station .image{
        max-height: 200px;
    }
    .stations_lists .one_station .image img{
        max-height: auto;
        max-width: 100%;
    }
    .stations_lists .one_station .name{
        font-size: 16px;
    }
    .stations_lists .one_station .counters{
        display: block;
        position: absolute;
        top:20px;
        left:30%;
        padding: 22px 0 0 12px;
    }
    .left_side .countries_list li a{
        font-size: 14px;
    }
    main {
        padding-left:260px;
    }
    header .logo{
        margin-right:110px;
    }
    footer .block2:last-child img{
        height: 40px;
        width: auto;
    }
    footer .block1 {
        width:200px;
    }
      .tooltip-inner {
    max-width: 350px;
  }
}
@media (max-width: 800px) {
    header .language_list .dropdown-menu {
        margin-top:0;
        max-height: 400px;
        overflow-y: auto;
    }
    header .logo_url {
        margin-left:40px;
    }
    .station_page .related .st_list{
        display: block;
    }
    h1 {
        font-size: 20px;
    }
    .stations_lists {
        grid-template-columns: repeat(auto-fill, 200px);
    }
    .stations_lists .one_station {
        width: 200px;
    }
    .moble_menu_button {
        display: block;
    }
    .left_side {
        left:-300px;
        transition: 0.3s;
        padding-top:20px;
        padding-bottom:100px;
        top:100px;
        position: fixed;
        z-index:333;
    }
    .left_side.opened {
        left:0px;
    }
    main {
        padding: 10px 10px 20px 10px;
    }
    footer .footer_apps a{
        display: block;
        margin: 0 0 10px 0;
    }
    footer .block2.footer_menu {
        margin-left:10px;
    }
    header {
        height:100px;
        align-items: flex-start;
        padding-top:15px;
    }
    header .logo{
        margin-right:0;
    }
    header .genres{
        position: absolute;
        left:0;
        bottom:-10px;
        width: 100%;
        padding-left:20px;
    }
    header .genres a {
        padding:1px 10px;
    }
    header .genres a:last-child {
        margin-right:40px;
    }
    .content {
        padding-top:120px;
    }
    .pagination {
	    box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px;
	    background: #fff;
	    border-radius: 5px;
	    padding:10px;
	}
	.pagination ul li {
		display: none;
	}
	.pagination ul li.active {
		display: inline-block;
	}
	.pagination ul li.first_page {
		display: inline-block;
	}
	.pagination ul li.dots {
		display: inline-block;
	}
	.pagination ul li:last-child {
		display: inline-block;
	}
	.pagination ul li a, .pagination ul li span{
	    margin:0 auto;
	}
    .main_player {
        height:50px;
        padding:10px 20px 0 20px;
        text-align: left;
        display: block;
    }
    .main_player .button_player {
        float: none;
        display: inline-block;
        overflow: hidden;
    }
    .main_player .volume_controll{
        padding:0;
        float: none;
        display: inline-block;
        overflow: hidden;
    }
    .main_player .station_player {
        position: relative;
        margin: 5px 0 0 0;
        text-align: left;
        width: 100%;
        background: #fff;
        border-radius: 5px;
        padding:5px;
        display: flex;
        justify-content: flex-start;
    }
    .main_player .station_player .image{
        float: none;
        padding-right:10px;
    }
    .main_player .station_player .image img{
        height: 40px;
    }
    .main_player .station_player .other_info{
        float: none;
        padding:0;
        margin: -5px 0 0 0;
    }
    .main_player .station_player .other_info .name a{
        color:#333;
        font-size: 14px;
    }
    .main_player .station_player .other_info .track{
        color:#333;
        font-size: 14px;
        margin-top:-3px;
    }
    .main_player .volume_controll .vertical_range {
        bottom:130px;
        left:100px;
        padding:5px;
    }
    footer {
        height: auto;
        padding-bottom:50px;
        margin-bottom:-270px;
    }
    input[type=range][orient=vertical] {
        height: 100px;
    }
    footer {
        position: relative;
    }
    
}
@media (max-width: 550px) {
    
    footer .block1 {
        width:auto;  
    }
    footer .block2.footer_menu {
        margin-left:0;
    }
    footer .block2 ul li {
        margin: 0 10px 10px 0;
    }
    footer .flex {
        display: block;
    }
    footer .footer_menu{
        padding-top:0;
    }
    footer .footer_apps{
        position: relative;
        left:auto;
        top:auto;
    }
    .station_page .station_data{
        display: block;
        text-align: center;
    }
    .station_page .button_player {
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    .station_page .button_player .custom-loader{
        margin: 0 auto 0 auto;
        top:5px;
        position: relative;
    }
    .station_page .stat span {
        margin: 0 0 10px 0;
        display: block;
        text-align: center;
    }
    .station_page .genres  {
        text-align: center;
    }
    .station_page .related .hed{
        font-size: 14px; 
        text-align: center;  
    }
    .station_page .related a {
        text-align: center;
        display: block;
    }
    .station_page .related a img{
        display: block;
        text-align: center;
        margin: 0 auto 5px auto;
    }
    .station_page .station_data .image{
        padding:0;
        margin:0;
    }
    .networks_page .networks_lists {
        display: block;
    }
    
}
/* 左右分栏布局 */
.content-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 100%;
}

.main-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Grid 基础布局（仅大屏） */
@media (min-width: 993px) {
    .main-content .stations_lists {
        display: grid;
        gap: 15px;
        width: 100%;
    }

    .main-content .stations_lists .one_station {
        width: 100%;
        margin: 0;
    }
}

/* 右侧广告栏 */
.sidebar-ads {
    width: 300px;
    flex-shrink: 0;
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 70px;
}

.ad-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ad-card a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.ad-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* 广告占位符（当没有图片时显示） */
.ad-card:empty::before {
    content: "广告位";
    color: #999;
    font-size: 18px;
    text-align: center;
}

.sidebar-ads:empty::before {
    content: "右侧广告栏\A请上传广告图片到\Aassets/ads_images/916/";
    white-space: pre-wrap;
    display: block;
    padding: 30px;
    text-align: center;
    color: #999;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 移动端横向广告 */
.mobile-list-ad {
    display: none;
    width: 100%;
    margin: 15px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-list-ad:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.mobile-list-ad a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.mobile-list-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* 大屏：横向广告跨4列 */
@media (min-width: 1200px) {
    .mobile-list-ad {
        grid-column: 1 / -1;
        display: none; /* 大屏隐藏，因为有右侧广告 */
    }
}

/* 超大屏幕：广告栏 + 4列内容 */
@media (min-width: 1400px) {
    .sidebar-ads {
        display: block;
        width: 300px;
    }
    .main-content .stations_lists {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 大屏幕：广告栏 + 3列内容 */
@media (min-width: 1200px) and (max-width: 1399px) {
    .sidebar-ads {
        display: block;
        width: 280px;
    }
    .main-content .stations_lists {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 中等屏幕：广告栏 + 2列内容 */
@media (min-width: 993px) and (max-width: 1199px) {
    .sidebar-ads {
        display: block;
        width: 250px;
    }
    .main-content .stations_lists {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 小屏幕 */
@media (max-width: 992px) {
    .content-layout {
        flex-direction: column;
    }
    .sidebar-ads {
        display: none; /* 隐藏侧边栏广告 */
    }
}

@media (max-width: 768px) {
    /* 移动端：内容满屏显示 */
    main {
        margin-top: 70px !important;
        background: #f5f5f5 !important;
    }
    
    .mobile-list-ad {
        display: block; /* 显示移动端广告 */
    }
    .content {
        padding: 10px 10px !important;
        background: #f5f5f5 !important;
    }
    .stations_lists {
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }
    .main-content .stations_lists {
        display: block !important;
        grid-template-columns: none !important;
    }
    .stations_lists .one_station,
    .main-content .stations_lists .one_station {
        width: 100% !important;
        padding: 0;
        position: relative;
        margin-bottom: 16px;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06),
                    0 3px 8px rgba(0,0,0,0.10),
                    0 6px 16px rgba(0,0,0,0.12),
                    0 10px 24px rgba(0,0,0,0.08),
                    inset 0 0 0 1px rgba(255,255,255,0.5);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(0,0,0,0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .stations_lists .one_station::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(255,255,255,0.8) 50%, 
            transparent 100%);
        z-index: 1;
    }
    .stations_lists .one_station:active {
        transform: translateY(2px) scale(0.99);
        box-shadow: 0 1px 2px rgba(0,0,0,0.08),
                    0 2px 4px rgba(0,0,0,0.10),
                    0 3px 8px rgba(0,0,0,0.08);
    }
    
    /* 标题区域 - 显示在最上面 */
    .stations_lists .one_station .name{
        order: 1;
        margin: 0;
        padding: 13px 15px;
        background: linear-gradient(to bottom, #f8f9fa 0%, #f3f4f6 100%);
        border-bottom: 1px solid #e2e4e8;
        font-size: 16px;
        max-width: 100%;
        text-align: left;
    }
    .stations_lists .one_station .name a{
        font-size: 15px;
        font-weight: 600;
        position: static;
        display: block;
        padding: 0;
        color: #2c3e50;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* 内容区域 - 显示在标题下面 */
    .stations_lists .one_station .image{
        order: 2;
        width: 100%;
        max-height: none;
        margin: 0;
        padding: 14px 15px;
        text-align: left;
        overflow: hidden;
        background: #fff;
        min-height: 60px;
    }
    .stations_lists .one_station .image a{
        display: block;
        font-size: 14px;
        line-height: 1.65;
        color: #495057;
        text-decoration: none;
        word-break: break-word;
    }
    .stations_lists .one_station .image img{
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin-top: 10px;
    }
    
    /* 统计信息区域 - 显示在最下面 */
    .stations_lists .one_station .counters{
        order: 3;
        display: flex;
        position: static;
        padding: 11px 15px;
        gap: 22px;
        background: #fafbfc;
        border-top: 1px solid #e9ecef;
    }
    .stations_lists .one_station .counters a{
        display: flex;
        align-items: center;
        gap: 6px;
        color: #6c757d;
        font-size: 13px;
        text-decoration: none;
        transition: color 0.2s;
    }
    .stations_lists .one_station .counters a:active{
        opacity: 0.7;
    }
    .stations_lists .one_station .counters a i{
        font-size: 15px;
        color: #adb5bd;
    }
    .stations_lists .one_station .counters a:first-child i{
        color: #ff6b6b;
    }
    .stations_lists .one_station .counters a:last-child i{
        color: #4dabf7;
    }
	.one_station .dotted {
		padding: 0;
	    white-space: nowrap;
	    overflow: hidden;
	    text-overflow: ellipsis;
		text-align: left;
	}
    
    /* 隐藏清除浮动元素 */
    .stations_lists .one_station .clr {
        display: none;
    }
    
    /* 隐藏meta标签 */
    .stations_lists .one_station meta {
        display: none;
    }
    
    /* 移动端分页样式优化 */
    .pagination {
        margin: 15px 0;
        flex-wrap: wrap;
    }
    .pagination .page-item {
        margin: 2px;
    }
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    /* 移动端主标题 */
    h1 {
        font-size: 20px !important;
        padding: 15px;
        margin: 0 !important;
    }
    
    header .moble_menu_button{
        font-size: 26px;
        top:10px;
        left:15px;
    }
    header .logo {
        margin-top:3px;
    }
    header .logo_url {
        margin-left:33px;
    }
    header .logo img{
        width:100px;
    }
    header .user_block{
        padding-left:10px!important;
    }
    header .user_block .user_image{
        position: relative;
        top:-3px;
    }
}

/* ============================================
   详情页布局样式
   ============================================ */

/* 详情页左右分栏布局 */
.detail-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 100%;
}

.detail-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* 详情页右侧广告栏 */
.detail-sidebar-ads {
    width: 300px;
    flex-shrink: 0;
    position: relative;
}

/* 详情页移动端横幅广告 */
.detail-mobile-ad {
    display: none;
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.detail-mobile-ad:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.detail-mobile-ad a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.detail-mobile-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* 超大屏幕：显示右侧广告栏 */
@media (min-width: 1200px) {
    .detail-sidebar-ads {
        display: block;
    }
    .detail-mobile-ad {
        display: none;
    }
}

/* 中等屏幕：隐藏右侧广告栏 */
@media (max-width: 1199px) {
    .detail-layout {
        flex-direction: column;
    }
    .detail-sidebar-ads {
        display: none;
    }
    .detail-mobile-ad {
        display: none; /* 中等屏也暂时隐藏 */
    }
}

/* 小屏幕：显示移动端广告 */
@media (max-width: 768px) {
    .detail-layout {
        flex-direction: column;
    }
    .detail-sidebar-ads {
        display: none;
    }
    .detail-mobile-ad {
        display: block;
        margin: 15px -10px; /* 负边距让广告与屏幕边缘对齐 */
        border-radius: 0; /* 移除圆角 */
    }
    
    /* 详情页标题优化 */
    .detail-content h1 {
        font-size: 18px !important;
        line-height: 1.4;
        padding: 15px 0 10px;
        margin: 0 !important;
        color: #2c3e50;
        font-weight: 600;
    }
    
    /* 详情页元信息优化 */
    .detail-content .genres {
        font-size: 13px;
        color: #666;
        padding: 8px 0;
        border-bottom: 1px solid #e5e7eb;
        margin-bottom: 15px;
    }
    
    .detail-content .genres a {
        color: #3b82f6;
        text-decoration: none;
    }
    
    /* 笑话内容优化 */
    .detail-content .joke-content {
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        margin-bottom: 15px;
        line-height: 1.8;
        font-size: 15px;
        color: #374151;
    }
    
    .detail-content .joke-content p {
        margin: 0;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    /* 上下导航优化 */
    .detail-content .nav-links {
        display: flex;
        justify-content: space-between;
        padding: 12px 0;
        margin: 15px 0;
        background: #f8f9fa;
        border-radius: 8px;
        padding: 12px 15px;
    }
    
    .detail-content .nav-links a {
        color: #3b82f6;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .detail-content .nav-links span {
        color: #9ca3af;
        font-size: 14px;
    }
    
    /* 评论区优化 */
    .detail-content .station_reviews {
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        margin-top: 20px;
    }
    
    .detail-content .station_reviews h3 {
        font-size: 16px;
        color: #1f2937;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e5e7eb;
    }
    
    /* 相关推荐优化 */
    .detail-content .related-jokes {
        margin-top: 20px;
    }
    
    .detail-content .related-jokes h4 {
        font-size: 16px;
        color: #1f2937;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e5e7eb;
    }
    
    .detail-content .joke-item {
        background: #fff;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        margin-bottom: 12px;
    }
    
    .detail-content .joke-item h4 {
        font-size: 15px;
        margin: 0 0 8px 0;
        border: none;
        padding: 0;
    }
    
    .detail-content .joke-item h4 a {
        color: #2c3e50;
        text-decoration: none;
        font-weight: 600;
    }
    
    .detail-content .joke-item .excerpt {
        font-size: 14px;
        color: #6b7280;
        line-height: 1.6;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}