body {
    background: #0d1117;
    color: #e6e8ec;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== 顶部 header（本页专用，深色） ===== */
.lv-header {
    background: #161b22;
    border-bottom: 1px solid #21262d;
}

.lv-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lv-brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.lv-brand img {
    width:200px;
    height: 55px;
}

.lv-live-tag {
    color: #fff;
    font-size: 20px;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 2px;
}

.lv-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.lv-nav a {
    color: #b8bec8;
    font-size: 15px;
    transition: color .2s;
}

.lv-nav a:hover {
    color: #fff;
}

/* ===== 右上角 里运河畔APP 悬浮二维码 ===== */
.lv-app-item {
    position: relative;
    cursor: pointer;
}

.lv-app-item > span {
    color: #b8bec8;
    font-size: 15px;
    transition: color .2s;
}

.lv-app-item:hover > span {
    color: #fff;
}

.lv-app-qrcode {
    display: none;
    position: absolute;
    top: 100%;
    right: -12px;
    padding-top: 12px;
    z-index: 100;
}

.lv-app-item:hover .lv-app-qrcode {
    display: block;
}

.lv-app-qrcode .box {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
    text-align: center;
}

.lv-app-qrcode img {
    width: 140px;
    height: 140px;
    border-radius: 6px;
}

.lv-app-qrcode p {
    margin-top: 8px;
    font-size: 12px;
    color: #8b929c;
    white-space: nowrap;
}

/* ===== 频道栏（一级平铺，正方形 LOGO tab） ===== */
.lv-channel-bar {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 20px 6px;
}

.lv-channels {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.lv-channels::-webkit-scrollbar {
    height: 6px;
}

.lv-channels::-webkit-scrollbar-thumb {
    background: #2d333b;
    border-radius: 3px;
}

.lv-ch-item {
    flex: 0 0 auto;
    width: 110px;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.lv-ch-logo {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    border: 2px solid transparent;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s, transform .2s;
    margin:0 auto;
}

.lv-ch-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lv-ch-item:hover .lv-ch-logo {
    border-color: #444c56;
}

.lv-ch-item.active .lv-ch-logo {
    border-color: #e0342b;
    transform: translateY(-2px);
}

.lv-ch-item.active::after {
    content: "直播中";
    position: absolute;
    top: -8px;
    right: -6px;
    background: #e0342b;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

.lv-ch-name {
    margin-top: 8px;
    font-size: 13px;
    color: #b8bec8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lv-ch-item.active .lv-ch-name {
    color: #fff;
    font-weight: bold;
}

.lv-ch-type {
    display: none;
    /* display: inline-block; */
    margin-top: 3px;
    font-size: 11px;
    color: #6e7681;
    border: 1px solid #30363d;
    border-radius: 3px;
    padding: 0 5px;
    line-height: 16px;
}

/* ===== 播放器（铺满宽度） ===== */
.lv-player-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 8px auto 0;
    padding: 0 20px;
}

.lv-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

/* video 元素铺满播放器容器，随页面宽度自适应（16:9 由 .lv-player 控制） */
.lv-player .lv-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

/* 加载中动画：覆盖在播放器上，切换频道/缓冲时显示，首帧播放后隐藏 */
.lv-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, .55);
}

.lv-loading.is-hidden {
    display: none;
}

.lv-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, .25);
    border-top-color: #e0342b;
    border-radius: 50%;
    animation: lv-spin .9s linear infinite;
}

.lv-loading-text {
    color: #e6e8ec;
    font-size: 14px;
    letter-spacing: 1px;
    user-select: none;
}

@keyframes lv-spin {
    to { transform: rotate(360deg); }
}

/* 直播信号中断提示：hls.js 重试耗尽 / 原生播放错误时显示，替代静默黑屏 */
.lv-error {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, .72);
    text-align: center;
    padding: 0 24px;
}

.lv-error.is-hidden {
    display: none;
}

.lv-error-icon {
    width: 52px;
    height: 52px;
    color: #e0342b;
}

.lv-error-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.lv-error-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

.lv-error-sub {
    color: #b8bec8;
    font-size: 13px;
    line-height: 1.6;
}

/* 无版权屏蔽提示：替代黑屏/普通断流，展示声明图 + 原因 + 恢复倒计时 */
.lv-blocked {
    position: absolute;
    inset: 0;
    z-index: 7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
}

.lv-blocked.is-hidden {
    display: none;
}

.lv-blocked-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lv-blocked-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
    text-align: center;
}

.lv-blocked-count {
    color: #ffb3ad;
    font-size: 13px;
    letter-spacing: .5px;
}

/* 自定义控制条：置于播放窗口正下方，无进度条/时间 */
.lv-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #161b22;
    border: 1px solid #21262d;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 10px 16px;
}

/* 按钮：内联 SVG 图标按钮，风格参照 live.jstv.com（浅色图标、透明背景、hover 高亮） */
.lv-ctrl-btn {
    background: transparent;
    color: #c9d1d9;
    border: none;
    border-radius: 4px;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}

.lv-ctrl-btn:hover {
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.lv-ctrl-btn svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
}

/* 状态切换时隐藏的图标 */
.lv-ctrl-btn .is-hidden {
    display: none;
}

/* 直播 LIVE 标志：红色圆点 + LIVE 文字，脉冲提示正在直播 */
.lv-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e0342b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    user-select: none;
}

.lv-live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #e0342b;
    animation: lv-pulse 1.4s ease-in-out infinite;
}

@keyframes lv-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .35; transform: scale(.82); }
}

.lv-ctrl-spacer {
    flex: 1;
}

/* ===== 弹性占位，把 footer 顶到底部 ===== */
.lv-flex-fill {
    flex: 1;
}

.foot {
    background: #161b22;
    border-top: 1px solid #21262d;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: #8b929c;
}
.foot p{
    font-size: 12px;
    margin: 4px 0;
}
.foot .author{
    font-size: 12px;
    margin-top:20px;
}
.foot .foot_link{
    margin-bottom: 20px;
}

/* ===== 广播动态视觉：广播频道无画面，用固定动态效果替代黑底（z-index 低于 loading/error/blocked） ===== */
.lv-broadcast {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: radial-gradient(circle at 50% 42%, #1c2530 0%, #0d1117 72%);
    overflow: hidden;
}

.lv-broadcast.is-hidden {
    display: none;
}

/* 旋转唱片/电台徽标 */
.lv-bc-disc {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0342b, #b51f17);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(224, 52, 43, .35);
    /* animation: lv-bc-spin 9s linear infinite; */
}

.lv-bc-disc svg {
    width: 52px;
    height: 52px;
    fill: #fff;
}

@keyframes lv-bc-spin {
    to { transform: rotate(360deg); }
}

/* 唱片 + 声波环 的舞台容器：居中定位基准，保证二者中心完全重合 */
.lv-bc-stage {
    position: relative;
    width: 96px;
    height: 96px;
    z-index: 1; /* 位于背景图之上 */
}

/* 广播固定背景图：垫在唱片/声波/频道名之下 */
.lv-bc-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* 向外扩散的声波环 */
.lv-bc-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
}

.lv-bc-waves span {
    position: absolute;
    top: 0;
    left: 0;
    width: 180px;
    height: 180px;
    margin: -92px 0 0 -92px;
    border: 2px solid rgba(224, 52, 43, .55);
    border-radius: 50%;
    opacity: 0; /* delay 期间隐藏，避免满尺寸静止环闪烁；动画 0% 帧重新显现 */
    animation: lv-bc-wave 3s ease-out infinite;
}

.lv-bc-waves span:nth-child(2) { animation-delay: 1s; }
.lv-bc-waves span:nth-child(3) { animation-delay: 2s; }

@keyframes lv-bc-wave {
    0% { transform: scale(.35); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.lv-bc-name {
    position: relative;
    z-index: 1;
    color: #e6e8ec;
    font-size: 15px;
    letter-spacing: 2px;
    user-select: none;
}