  html, body {
    margin: 0;
    padding: 0;
    background: #f5f5f3;
    overflow-x: hidden;
    height: 100%;
    overflow-y: auto;
    font-size: 14px;;
 
    color: #000;

  }
/* 主容器 */
.main-box {
  max-width: 889px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  background: #ffffff;
}
  /* 视频区 */
  .video-box {
    background: #000;
    height: 500px;
  
  }
  #J_prismPlayer{ 
    width: 100%;
    height: 500px !important;
  }

  /* 聊天室区 */
  .chat-box {
    background: #fff;  
    position: relative;
    min-height: calc(100% - 500px);
    height:  auto;
    border: 1px solid #e6e6e6;
    /*background: url('i/b1/bg2.jpg') repeat top center;*/
 
  }
  .chat-header {    
    display: flex;      
    background: #f8f8f8;
    justify-content: space-between; /* 关键属性 */
    border-bottom: 1px solid #eee;
  }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    flex-direction: column-reverse; 
    display: flex;
    padding: 10px; 
    

  }
  .chat-message {
    word-wrap: break-word;  
    color:#333333;
    line-height: 23px;;

  }
 .chat-message img{
    vertical-align:text-top;
 }
  
  .chat-message .name {
    color: #0080FF;      
  }
  .chat-input {
     display: flex;
    align-items: center;   
    padding: 5px 10px;    
    background: #fafafa;
      position: sticky;
      bottom: 0;

  }


.layui-tab-brief>.layui-tab-title .layui-this {
  color: #1E9FFF; 
}
.layui-input{ height:35px}
.layui-tab .layui-tab-title li { line-height: 35px; padding: 0 2vw;   }
.layui-tab .layui-tab-title { height: 35px;;}
.layui-tab-title .layui-this:after {height: 35px;}
.layui-tab-brief>.layui-tab-more li.layui-this:after, .layui-tab-brief>.layui-tab-title .layui-this:after {
    border: none;
    border-radius: 0;
    border-bottom: 2px solid #1E9FFF;
}


/* 自定义清晰度菜单样式 */
  .quality-menu {
    position: absolute;
    bottom: -70px;
    right: 85px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99;
    height: auto;;
    width: 60px;
  }

  .quality-menu button {
    background: transparent;
    color: #fff;
    border: none;
    padding: 8px 16px;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
  }
  .quality-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  .quality-menu button.active {
    background: #00c1de;
    color: #000;
  }
  .quality-title{
    float: left; 
    line-height: 38px;
    color: #fff;
    margin-top: 5px;
    margin-left: 10px;
   
  }
  /* 控制栏按钮样式 */
  .quality-btn {
    float: right;
    height: 40px;
    min-width: 56px; 
    cursor: pointer;
    border-radius: 3px;
    user-select: none;
    background: transparent;
    color: #fff;
    border: none;
    margin-top: 15px;
    margin-right: 10px;

  }
  .quality-btn:hover {
    color: #00c1de;
  }
.ifr{position: fixed; top: 0;
        left: 0;
        width: 100%;
        height: 100%; z-index:1000; display:none; overflow:hidden;}


.wk{color: #fff; display: flex; height: 500px; background-color: #2b2b2b;font-size: 22px;}
.home{  align-self: center ;flex: 1; text-align: right; }
.vs{width: 150px;  color: chartreuse;
  text-align: center;  
  align-self: center ;  font-weight: 700; ;
}
.vs span{ font-size: 12px;display:block;color: #a9a8a8;
border-radius: 10px; background-color: #212121;width: 55px;font-weight: normal; margin: 0 auto;  padding: 2px 0;
}
.away{align-self:center ;flex: 1;  text-align: left;}
.away span,.home span{ font-size: 12px;display:block; color: #b9b8b8;}


.odds {color: #C0C0C0; display: flex;  background: #fafafa; width: 100%; padding-top: 5px;;}
.odds .yq{flex: 1; text-align: right; }
.odds .img{ text-align: center; width: 40px;; }
.odds .ds{flex: 1; text-align: left; }
.szp,.sdzp,.skp,.sdkp{color: #A05050;}
.spk,.sdpk{color: #333333;}





/* 手机端：上下布局 */
@media (max-width: 768px) { 
  .main-box {
    height: 100%;
  } 
  .video-box {
    height: 230px;
    width: 100%;
    margin: 0;

  }

  #J_prismPlayer,.wk{ 
  height: 230px !important;
  width: 100%;
}
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-box {
    min-height: calc(100% - 230px);
    height: auto;
    width: 100%; 
    border: none;
    margin: 0;  
  }
  .quality-title, .quality-btn{font-size: 12px;}
  .vs{width: 100px;;}
}






.nav-bar {
  display: flex;
  align-items: left;
  justify-content: space-between;
  height: 35px;
  background-color: #f5f5f3;
  border-bottom: 1px solid #ddd;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 16px;
  top: 0;
  z-index: 1000;
}

.nav-bar .back-btn,.nav-bar .home-btn {
  border: none;
  background: none;
  font-size: 18px !important;
  cursor: pointer;
  color: #333;
  font-weight: bold;
  height: 35px;
  padding-right: 60px;
}
.layui-icon { font-size: 20px!important;}
.nav-bar .title {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #333;
}
.share{line-height: 35px; padding-right: 10px;cursor: pointer;}
.share::before{content: ""; background-image: url(/i/share.png); background-size: 100%; display: inline-block; 
width: 16px; height: 16px; margin-right: 5px; vertical-align: middle;
}

.zbm{
  position: absolute;right: 10px; top: 120px; color: #fff; 
  background: #fafafa; border-radius: 12px;  width: 100px; padding-left: 12px;

  font-size: 12px;color: #666;
 
}
.tj {color: #bbb;}

/* 遮罩层 */
#iframe-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 弹窗容器 */
.popup-box {
  background: #fff;
  width: 90%;
  max-width: 800px;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 头部栏 */
.popup-header {
 
  color: #111;
  padding: 10px;
  text-align: center;
  font-size: 18px;
  position: relative;
  line-height: 35px;
}

/* 关闭按钮 */
.popup-close {
  position: absolute;
  right: 10px;
  top: 5px;
  background: transparent;
  border: none;
  color: #333;
  font-size: 40px;
  cursor: pointer;
  width: 60px;;
}

/* iframe区域 */
.popup-iframe {
  flex: 1;
  border: none;
  width: 100%;
  height: 100%;
}

.botm {
  text-align: center;
  background: #fff;
  width: 100%;
  height: 90px;
line-height: 28px;
}
/* 响应式设计 */
@media (max-width: 390px) { 
    body{font-size: 12px !important;} 
    .layui-tab .layui-tab-title li {font-size: 12px;min-width: 45px;;}
 
}
  
  
  /* 表情面板样式 */
    .emoji-panel {
     
        bottom: 100%;
        left: 0;
        width: 98%;
        background: white;
        border: 1px solid #e6e6e6;
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 10px;
        z-index: 999;
        display: none;
    }
    .emoji-tabs {
        margin-bottom: 10px;
    }
    .emoji-tab {
        display: inline-block;
        padding: 5px 10px;
        background: #f2f2f2;
        border-radius: 4px;
        margin-right: 5px;
        cursor: pointer;
        font-size: 12px;
    }
    .emoji-tab.active {
        background: #1E9FFF;
        color: white;
    }
    .emoji-container {
        max-height: 150px;
        overflow-y: auto;
    }
    .emoji-category {
        display: none;
    }
    .emoji-category.active {
        display: block;
    }
    .emoji-item {
        display: inline-block;
        font-size: 20px;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 30px;
        cursor: pointer;
        border-radius: 4px;
        margin: 2px;
    }
    .emoji-item:hover {
        background: #f2f2f2;
    }
    .emoji-btn { 
        cursor: pointer;
        color: #666;
        font-size: 20px;
        width: 30px;
        height: 30px;      
    }