.container.contaiver-live {
    padding-left: 0;
}
.container-live {
    display: flex;
}

/* Video Section */
.video-section {
    width: 100%;
    background-color: #fff;
    overflow: hidden;
}

.match-header {
    padding: 15px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px #161616;
    background-position: center !important;
    margin-bottom: 0;
}

.team {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    width: 150px;
    gap: 0px !important;
}

.team-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.team-logo img {
    width: 50px !important;
    height: 50px !important;
}

.team-name {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: inline-block;
}

.score-box {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 30px;
}

.score {
    font-size: 28px;
    font-weight: bold;
    padding: 0 15px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    min-width: 60px;
    text-align: center;
}

.home-score {
    border-left: 4px solid #ff1919;;
}

.away-score {
    border-right: 4px solid #1952ff;
}

.score-separator {
    font-size: 24px;
    margin: 0 10px;
}

.match-status {
    background-color: #008000;
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

.video-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #000;
}

.video-player {
    width: 100%;
    height: 100%;
    background-color: #000;
}

.video-controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.control-button {
    background: none;
    border: none;
    color: white;
    margin-right: 15px;
    cursor: pointer;
    font-size: 18px;
}

.time-display {
    color: white;
    font-size: 14px;
    margin-right: 15px;
}

.fullscreen-button {
    margin-left: auto;
}

.video-footer {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    border-top: 1px solid #333;
    background-color: #0c0c0c;
}

.tab-button {
    border: none;
    background-color: #333;
    color: white;
    padding: 8px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 14px;
}

.tab-button:hover {
    background-color: #444;
}

.tab-button.active {
    background: linear-gradient(220deg, #f76700 7.37%, #f57c00 57.22%, #ef6c00 66.05%, #ffca28 131.67%);
    box-shadow: inset 0 0 0 2px #ff9800;
}

/* Chat Section */
.chat-section {
    width: 302px;
    height: 100%;
    background-color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.chat-tabs {
    display: flex;
    background-color: #1a1a1a;
    border-bottom: 1px solid #333;
}

.chat-tab {
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: #ccc;
}

.chat-tab.active {
    background-color: #2a2a2a;
    color: #fff;
    border-bottom: 2px solid #4CAF50;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #222;
}

.chat-message {
    margin-bottom: 5px;
    padding: 3px 3px 1px 3px;
    background-color: #2a2a2a;
    border-radius: 5px;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.message-icon {
    width: 20px;
    height: 20px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: white;
}

.message-username {
    font-weight: bold;
    font-size: 14px;
}

.message-content {
    color: #ddd;
    font-size: 14px;
    word-break: break-word;
}

.chat-link {
    color: #4CAF50;
    text-decoration: none;
}

.chat-link:hover {
    text-decoration: underline;
}

.chat-input {
    display: flex;
    padding: 10px;
    background-color: #222222;
    border-top: 1px solid #333;
    position: relative;
}

.chat-input input {
    flex: 1;
    padding: 14px;
    border-radius: 5px 0 0 5px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #fff;
    outline: none;
}

.chat-input button {
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 0px 5px 5px 0px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
}

.chat-input button:hover {
    background-color: #3e8e41;
}

.match-title {
    background-color: #222222;
    padding: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #ffcc00;
}

.chat-status {
    margin-top: 20px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.contaiver-live {
    position: relative;
    padding-right: 302px;
}

@media (max-width: 992px) {
    .video-footer {
    display: block;
    overflow-x: auto;  /* Cho phép scroll ngang */
    white-space: nowrap; /* Giữ tất cả nội dung trong một dòng */
    text-align: center;
    padding: 15px 0;
}
    .contaiver-live {
        padding-right: 0;
        padding: 0;
    }

    .container-live {
        flex-direction: column;
        height: auto;
    }

    .video-section,
    .chat-section {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .chat-section {
        position: relative;
        min-height: auto;
        height: auto;
    }
}

.message-level {
    background: #08C04C;
    padding: 1px 3px;
    margin-right: 3px;
    border-radius: 2px;
    font-size: 11px;
}

.level1 {
    background: #c09a08;
}

.level2 {
    background: #D85E00;
}

.level3 {
    background: #23c008;
}

.level4 {
    background: #08aec0;
}

.level5 {
    background: #5008c0;
}

.container-extend {
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;

}

.container .content {
    margin-bottom: 15px;
}    

.heading-watch{
    border-left: 3px solid #50bf05;
    padding-left: 10px;
    margin-top: 0px;
}

.login-button, .info-button {
    padding: 5px 0;
    color: white;
    width: 100%;
    display: block;
    text-align: center; /* đảm bảo chữ ở giữa */
    background: linear-gradient(220deg, #f76700 7.37%, #f57c00 57.22%, #ef6c00 66.05%, #ffca28 131.67%);
    box-shadow: inset 0 0 0 2px #ff9800;
}

#chat_messages::-webkit-scrollbar {
    width: 6px; /* Điều chỉnh độ rộng thanh cuộn */
}

#chat_messages::-webkit-scrollbar-track {
    background: #1a1a1a; /* Nền tối của phần track */
}

#chat_messages::-webkit-scrollbar-thumb {
    background-color: #555; /* Màu của phần kéo */
    border-radius: 10px; /* Bo góc thanh cuộn */
    border: 1px solid #333; /* Viền thanh cuộn */
}

.breadcrumb {
    font-size: 0.8rem;
}


@media (max-width: 700px) {
    .rows {
        display: flex;
        flex-direction: column !important;
    }
    .c-left {
        width: 100% !important;
    }
}

@media (max-width: 992px) {
    .score-box {
        margin: 0 20px;
    }
    .team-name {
        max-width: 70px !important;
    }
}

@media (max-width: 768px) {
    .c-right {
        order: -1;
    }
}

.away {
        flex-direction: row !important;
}

@media (max-width: 480px) {
    div.match-title {
        display: none;
    }
    
    .video-footer {
        padding: 12px 0;
    }
    a.tab-button {
        padding: 4px 10px;
        margin: 0 3px;
    }
    
    #chat_messages.chat-messages {
        padding: 5px;
    }
}

.chat-links {
    background: linear-gradient(220deg, #f76700 7.37%, #f57c00 57.22%, #ef6c00 66.05%, #ffca28 131.67%);
    box-shadow: inset 0 0 0 2px #ff9800;
    overflow: hidden; /* để float không bị tràn */
    text-align: center;
    padding: 3px 0;
}

.chat-links a {
  float: left;
  display: inline-block;
  width: 50%;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 3px 0;
  line-height: 15px;
  font-size: 13px;
  box-sizing: border-box;
}

.chat-links a div {
  font-weight: normal;
  font-size: 13px;
  margin-top: 3px;
}

a.chat-link-zalo {
    border-right: 2px solid white;
}

.marquee {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  background: #ff0000 !important;
}

.marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
  margin-bottom: 0 !important;
}

@keyframes marquee {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 480px) {
    .chat-links a {
        font-size: 13px !important;
        padding: 3px 0 !important;
        line-height: 14px !important;
    }
}

.team img {
    width: 100% !important;
    height: 100% !important;
}

.rows{
    display: flex;
}
.c-left{
    width: calc(100% - 320px);
}
.tab-button.active {
    background: linear-gradient(220deg, #f76700 7.37%, #f57c00 57.22%, #ef6c00 66.05%, #ffca28 131.67%);
    box-shadow: inset 0 0 0 2px #ff9800;
}
@media (max-width: 480px) {
    div#phantich {
        width: 100%;
        overflow-x: auto;
    }
    table#match-table {
        min-width: 600px;
        border-collapse: collapse;
        width: 100%;
    }
    input#hvdev_message {
        font-size: 14px !important;
    }
}
.chat-input button {
    background-color: #ff7e07 !important;
}
.chat-input input {
    border: 1px solid #dbdbdb !important;
}
.login-button {
    background: linear-gradient(220deg, #f76700 7.37%, #f57c00 57.22%, #ef6c00 66.05%, #ffca28 131.67%);
    box-shadow: inset 0 0 0 2px #ff9800;
}
.chat-message {
    background-color: #222;
}
.message-username {
    line-height: 18px;
}
.message-content {
    color: #efefef;
    line-height: 18px;
}
.chat-message .message-content span {
    color: #ddd !important;
    font-weight: 400 !important;
}
.chat-message .message-content a {
    color: #DD1818 !important;
    text-decoration: underline;
}
.code2m-xem-live h1{
    margin-top: 1.7rem;
    margin-bottom: 1.3rem;
    color: #f7c700;
    text-transform: uppercase !important;
}
.code2m-xem-live{
    margin: auto;
    background: #191919;
}
.code2m-xem-live section{
    max-width: 1280px;
    margin: auto;
}
.code2m-xem-live .header-watch {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 0 0 0;
    text-transform: uppercase;
}
.code2m-xem-live .heading-watch {
    border-left: 3px solid #50bf05;
    padding-left: 10px;
    margin-top: 0px !important;
}
.code2m-xem-live .contaiver-live, .container-extend{
    max-width: 1240px;
    margin: auto;
}
.code2m-xem-live .match-card {
    border-radius: 10px;
    overflow: hidden;
    background-position: center;
}
.code2m-xem-live .match-card__body {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.8rem;
    gap: 1rem;
    position: relative;
}
.code2m-xem-live .match-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.code2m-xem-live .match-card__teams {
    display: flex;
    align-items: center;
    text-align: center;
}
.code2m-xem-live .match-card__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}
.code2m-xem-live .match-card__stats {
    display: flex;
}
.code2m-xem-live .match-card__stats-content {
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: linear-gradient(220deg, #00711b 7.37%, #00691a 57.22%, #005b16 66.05%, #2dbf1b 131.67%);
    box-shadow: inset 0 0 0 2px #3f9705;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
    display: inline-block;
}
.code2m-xem-live .match-card__stats-content a{
    color: #fff;
}
.code2m-xem-live .btn--primary {
    padding: 0.5rem !important;
}
.code2m-xem-live .btn {
    display: inline-flex;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 12px;
    transition: opacity 0.3s;
    color: #fff;
}
.code2m-xem-live .btn a{
    color: #fff;
}
.code2m-xem-live .match-card__league {
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: inline-block;
    flex: 1;
}
.code2m-xem-live .match-card__status {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.code2m-xem-live .match-card__time {
    text-align: right;
    min-width: 140px;
    color: #fff;
}
.code2m-xem-live .streaming {
    padding: 6px;
    border-radius: 6px;
    background: linear-gradient(179deg, #00db02, #102b0e52);
    border: 1px solid #09db2a85;
}

.code2m-xem-live .match-card__teams > div {
    flex: 1;
    min-width: 0;
}
.code2m-xem-live .match-card__teams > div {
    flex: 1;
    min-width: 0;
}
.code2m-xem-live .match-card__score {
    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
}
.code2m-xem-live .team {
    width: 150px;
    gap: 0px !important;
    justify-content: center;
    padding: 5px;
    word-break: break-word;
    display: flex;
    align-items: center;
}
.code2m-xem-live .team__name {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    display: inline-block;
}
.code2m-xem-live .login-button {
    color: white;
    width: 100%;
    display: block;
    text-align: center;
    background: linear-gradient(220deg, #f76700 7.37%, #f57c00 57.22%, #ef6c00 66.05%, #ffca28 131.67%);
    box-shadow: inset 0 0 0 2px #ff9800;
    font-size: 13px;
    font-weight: unset;
    text-transform: unset;
    margin: 0;
    padding: 5px;
}

.chat-message.ad {
    margin: 10px 0;
}

.chat-message.ad .message-header {
    display: flex;
    align-items: center;
    padding: 0 5px;
    height: 28px;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(90deg, #dd1818 0, #ffb700);
    margin: 0;
    text-transform: uppercase !important;
    border-radius: 5px 5px 0 0 !important;
}
.chat-message.ad .message-header .message-username{
    color: #fff;
}
.chat-message.ad .message-content{
    background: #fff;
    display: block;
    margin: 0;
    padding: 10px;
    border-radius: 0 0 5px 5px !important;
}
.chat-message.ad .message-content span{
    color: #212 !important;
}

.chat-welcome{
    line-height: 22px;
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 12px;
    overflow: hidden;
    width: 100%;
}
.chat-welcome-title{
    background-color: #dd1818;
    flex-shrink: 0;
    padding: 0 15px;
}
.chat-welcome #welcome-message{
    background-color: #ffa434;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 15px;
}

.chat-message .message-content img {
    margin: 8px 0 ;
    border-radius: 5px;
}

#pinned-messages.dragging {
    cursor: grabbing !important;
    cursor: -webkit-grabbing !important;
}
        
#pinned-messages {
    cursor: grab !important;
    cursor: -webkit-grab !important;
}