/* ========== 播放器响应式容器（所有尺寸通用） ========== */
.player-wrapper {
    width: 100%;
    max-width: 850px;
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 */
    height: 0;
}
.player-wrapper iframe,
.player-wrapper .fed-play-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}
.player-wrapper .fed-play-player {
    padding-top: 0 !important;
}

/* 收音机播放器：不需要宽高比 */
.player-wrapper.radio-player {
    padding-top: 0;
    height: auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-wrapper.radio-player audio {
    margin-top: 0 !important;
}

/* ========== 移动端响应式覆盖 768px 以下 ========== */
@media (max-width: 768px) {

    /* --- 全局基础 --- */
    *, *:before, *:after {
        box-sizing: border-box;
    }
    body, html {
        min-width: 0 !important;
        overflow-x: hidden;
        font-family: Arial, Tahoma, "Microsoft YaHei", sans-serif;
    }
    img {
        max-width: 100%;
        height: auto;
    }

    /* --- 布局容器 --- */
    .w1200 {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px;
    }
    .pleft {
        width: 100% !important;
        float: none !important;
    }
    .pright {
        width: 100% !important;
        float: none !important;
        margin-top: 16px;
    }
    .viewbox {
        width: 100% !important;
    }
    .topad1, .topad2 {
        width: 100% !important;
        overflow: hidden;
    }
    .footer {
        width: 100% !important;
        padding: 10px;
        font-size: 12px;
    }

    /* --- 面包屑 --- */
    .place {
        font-size: 12px;
        line-height: 1.6;
        padding: 6px 0;
    }

    /* ========== v2.css 页面导航 ========== */
    #header .site {
        height: auto;
        background: #f4f6f5;
    }
    #header .site-bd {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 6px 10px;
        height: 44px;
    }
    #header .logo {
        position: static;
        width: auto;
        height: auto;
        font-size: 18px;
        font-weight: bold;
    }
    #header .logo a {
        color: #3a9;
    }
    #header .nav {
        display: none;
    }
    #header .search {
        display: none;
    }
    #header .nav-m {
        margin-left: auto;
    }
    #header .nav-m a {
        display: inline-block;
        color: #3a9;
        font-size: 14px;
        padding: 4px 8px;
    }
    #header .nav-lei {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        background: #ecf1f4;
    }
    #header .nav-lei-inner {
        padding: 4px 10px;
    }
    #header .nav-lei dl {
        display: flex;
    }
    #header .nav-lei dl dt {
        flex-shrink: 0;
        line-height: 30px;
        font-size: 13px;
        color: #666;
    }
    #header .nav-lei dl dd {
        display: inline-block;
        float: none;
        flex-shrink: 0;
        margin: 0 2px;
    }
    #header .nav-lei dl dd a {
        display: inline-block;
        background: #fff;
        line-height: 28px;
        padding: 0 10px;
        font-size: 13px;
        border-radius: 3px;
    }

    /* ========== 章节标题：绿色左边条 ========== */
    .ding {
        padding: 0;
        margin: 10px 0 6px;
        border-top: 2px solid #33AA99;
        background: #f2f2f2;
        height: auto;
        overflow: hidden;
    }
    .ding h2, .ding strong, .ding h3 {
        font-size: 15px !important;
        line-height: 36px;
        padding-left: 12px;
        color: #666;
        float: left;
    }
    .ding h2 a, .ding strong a {
        color: #666;
    }
    .ding .more {
        float: right;
        line-height: 36px;
        padding-right: 10px;
        font-size: 12px;
    }
    .ding .more a {
        font-size: 12px !important;
        font-weight: normal !important;
        color: #999 !important;
    }

    /* ========== 频道列表：2列白底文字块 (.tvlist 风格) ========== */
    .tai {
        padding: 8px 4px;
        overflow: hidden;
    }
    .tai li {
        width: 50% !important;
        float: left;
        padding: 0 4px;
        margin: 0 0 8px 0 !important;
        box-sizing: border-box;
    }
    .tai li a {
        display: block;
        background: #fff;
        line-height: 25px !important;
        height: 25px;
        text-align: center;
        font-size: 14px !important;
        color: #666;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ========== 侧边栏：2列纯文字按钮 ========== */
    .show {
        overflow: hidden;
        padding: 8px 4px;
    }
    .show li {
        width: 50% !important;
        height: auto !important;
        float: left;
        padding: 0 4px;
        margin: 0 0 8px 0 !important;
        box-sizing: border-box;
    }
    .show li img { display: none !important; }
    .show li span {
        display: block;
        text-align: center;
    }
    .show li span a {
        display: block;
        height: 25px;
        line-height: 25px;
        text-align: center;
        font-size: 15px;
        color: #555;
        background: #fff;
        border: 1px solid #dcdcde;
        border-radius: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ========== 标签/链接：备用直播源+地方台2列药片 ========== */
    .listclass {
        overflow: hidden;
        padding: 8px 4px;
    }
    .listclass > span { display: none; }
    .listclass .more {
        display: block;
        overflow: hidden;
        padding: 0 4px;
        margin-bottom: 4px;
    }
    .listclass .more a {
        display: block;
        float: none;
        width: auto;
        height: auto;
        line-height: 1.7;
        padding: 8px 12px;
        margin: 0 0 6px;
        text-align: left;
        font-size: 13px !important;
        color: #666 !important;
        background: #fff;
        border: 1px solid #e8e8e8;
        border-radius: 6px;
        white-space: normal;
        word-break: break-all;
    }
    .listclass > a {
        float: left;
        width: 48%;
        margin: 1%;
        line-height: 25px;
        height: 25px;
        text-align: center;
        font-size: 14px;
        color: #555;
        border: 1px solid #dcdcde;
        border-radius: 4px;
        background: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ========== 内容区 --- */
    .viewbox .content {
        font-size: 15px;
        line-height: 1.8;
        padding: 12px 10px;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    .viewbox .zhibo img {
        max-width: 50%;
        height: auto;
        float: none;
        margin: 0 auto 12px;
        display: block;
        border-radius: 6px;
    }

    /* ========== header-v3.css 覆盖：门户首页头部 ========== */
    .head {
        min-width: 0 !important;
    }
    .header {
        height: auto !important;
        min-height: 46px;
        background: #f4f6f5;
        border-bottom: 1px solid #eef0ef;
    }
    .header-inner {
        width: 100% !important;
        padding: 6px 10px;
        height: auto !important;
        display: flex;
        align-items: center;
        position: static !important;
    }
    .header .head-logo {
        position: static !important;
        width: auto !important;
        height: auto !important;
        flex-shrink: 0;
        background: none !important;
    }
    .header .head-logo a {
        display: flex;
        align-items: center;
        font-size: 18px;
        font-weight: bold;
        color: #3a9;
        text-decoration: none;
        width: auto !important;
        height: 34px !important;
        line-height: 34px;
        white-space: nowrap;
    }
    .header .head-logo a::after {
        content: attr(title);
        margin-left: 4px;
    }

    /* --- 导航链接：显示为文字链接（去掉sprite背景） --- */
    .header .head-nav {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        margin-left: auto;
        overflow: hidden;
    }
    .header .head-nav ul {
        display: flex;
        align-items: center;
        width: auto !important;
    }
    .header .head-nav ul .none,
    .header .head-nav ul .clear {
        display: none;
    }
    .header .head-nav li {
        display: inline-flex;
        margin-left: 4px;
        height: auto !important;
    }
    .header .head-nav li a {
        display: inline-block !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        font-size: 13px;
        color: #666;
        padding: 4px 6px;
        line-height: 1.5;
    }
    #home-link::after { content: "收音机"; }
    #channel-list-link::after { content: "卫视台"; }
    #play-list-link::after { content: "中央台"; }
    #download-mobile-link::after { content: "体育台"; }
    #forum-link::after { content: "少儿台"; }

    .header .head-login-panel {
        display: none !important;
    }

    /* ========== home-v5.css 覆盖：门户首页内容 ========== */
    .main {
        background: #ecf1f4;
    }
    .live-panel {
        width: 100% !important;
        padding: 0 10px;
    }
    .live-panel.first-panel {
        margin-top: 0;
    }

    /* 首页热播频道：添加绿色条标题 */
    #hot-panel .ch-list-panel::before {
        content: "热门频道";
        display: block;
        font: 400 15px/36px "Microsoft YaHei";
        color: #666;
        padding-left: 10px;
        margin: 8px 0 4px;
        border-top: 2px solid #33AA99;
        background: #f2f2f2;
        height: 36px;
    }

    /* 首页省份列表标题 */
    #hot-panel .content .pg-list-panel .title {
        border-top: 2px solid #33AA99;
        background: #f2f2f2;
        height: 36px;
        line-height: 36px;
        padding-left: 10px;
    }
    #hot-panel .content .pg-list-panel .title a {
        font-size: 15px;
        color: #666;
    }

    /* 首页热播频道：2列纯文字按钮 */
    #hot-panel .content {
        padding: 0;
    }
    #hot-panel .content.show {
        display: block !important;
    }
    #hot-panel .content .ch-list-panel {
        width: 100% !important;
        float: none;
        padding: 8px 4px;
        overflow: hidden;
    }
    #hot-panel .content .ch-list-panel .channel-list {
        overflow: hidden;
    }
    #hot-panel .content .ch-list-panel .channel-list li {
        width: 50% !important;
        margin: 0 !important;
        padding: 0 4px 8px;
        float: left;
        box-sizing: border-box;
        height: auto !important;
    }
    #hot-panel .content .ch-list-panel .channel-list li img { display: none !important; }
    #hot-panel .content .ch-list-panel .channel-list li .info-panel {
        position: static;
        background: none;
        padding: 0;
    }
    #hot-panel .content .ch-list-panel .channel-list li .info-panel .cname {
        display: block;
        height: 25px;
        line-height: 25px;
        text-align: center;
        font-size: 15px;
        color: #555;
        background: #fff;
        border: 1px solid #dcdcde;
        border-radius: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #hot-panel .content .ch-list-panel .channel-list li .info-panel .pname {
        display: none;
    }
    #hot-panel .content .ch-list-panel .channel-list li .mask {
        display: none;
    }

    /* 首页省份列表 */
    #hot-panel .content .pg-list-panel {
        width: 100% !important;
        float: none;
        margin-top: 12px;
    }
    #hot-panel .content .pg-list-panel ul li a {
        font-size: 13px;
    }

    /* 分类频道区：推荐位 + 3列卡片 */
    .live-panel .content.show {
        display: block !important;
    }
    .live-panel .content .recomend {
        width: 100% !important;
        float: none !important;
        margin-bottom: 12px;
        height: auto !important;
    }
    .live-panel .content .recomend img.recomend-img { display: none !important; }
    .live-panel .content .recomend svg {
        display: none;
    }
    .live-panel .content .channel-list {
        width: 100% !important;
        overflow: hidden;
        padding: 0 4px;
    }
    .live-panel .content .channel-list li {
        width: 50% !important;
        margin: 0 !important;
        padding: 0 4px 8px;
        float: left;
        box-sizing: border-box;
        height: auto !important;
    }
    .live-panel .content .channel-list li img { display: none !important; }
    .live-panel .content .channel-list li .info-panel {
        position: static;
        background: none;
        padding: 0;
    }
    .live-panel .content .channel-list li .info-panel .cname {
        display: block;
        height: 25px;
        line-height: 25px;
        text-align: center;
        font-size: 15px;
        color: #555;
        background: #fff;
        border: 1px solid #dcdcde;
        border-radius: 4px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .live-panel .content .channel-list li .info-panel .pname,
    .live-panel .content .channel-list li .info-panel .online-num {
        display: none;
    }
    .live-panel .content .channel-list li svg {
        display: none;
    }
    .live-panel .content .channel-list li .play-tip {
        display: none;
    }

    /* 分类标题栏 */
    .live-panel .title-panel {
        display: flex;
        align-items: center;
        border-top: 2px solid #33AA99;
        background: #f2f2f2;
        height: 36px;
        padding: 0 10px;
        margin-top: 10px;
    }
    .live-panel .title-panel .left-bar {
        display: none;
    }
    .live-panel .title-panel .title {
        font-size: 15px;
        line-height: 36px;
        color: #666;
        margin-right: 10px;
    }
    .live-panel .title-panel .title a {
        color: #666;
        font-size: 15px;
    }
    .live-panel .title-panel .tag {
        display: none;
    }
    .live-panel .title-panel .more {
        margin-left: auto;
    }
    .live-panel .title-panel .more a {
        font-size: 12px;
        color: #999;
    }

    /* 首页 mid-content */
    .main .mid-content {
        padding: 0;
    }
    .bg1, .live-panel .title-panel .left-bar {
        background: none;
    }

    /* ========== 门户首页底部 ========== */
    .foot-wrap {
        background: #eee;
        border-top: 3px solid #ddd;
        padding: 10px 0;
    }
    .foot-wrap .footer {
        width: 100% !important;
        padding: 0 10px;
        box-sizing: border-box;
        background: none;
    }
    #footer-top {
        font-size: 12px;
        text-align: center;
        margin-bottom: 8px;
    }
    #footer-link-wrap {
        line-height: 2;
        text-align: center;
    }
    #footer-link-wrap a.footer-link {
        font-size: 12px;
        color: #a2a2a2;
        padding: 0 8px;
    }
    #copy-right {
        float: none;
        text-align: center;
    }
    .friend-link-panel {
        font-size: 12px;
        text-align: center;
    }
    .foot-bottom {
        text-align: center;
    }
    .friend-link .link-title {
        float: none;
        text-align: center;
    }

    /* ========== 浮动层隐藏 ========== */
    .float_layer {
        display: none !important;
    }

    /* ========== 节目表表格 ========== */
    table {
        width: 100% !important;
        font-size: 13px;
    }
    table th, table td {
        padding: 6px 4px;
    }
}
