/*
Theme Name: Theme Đẹp nhất trên đời
Theme URI: https://example.com
Author: Thanh Hai
Author URI: https://example.com
Description: Theme chuyển từ HTML sang WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thundaan
*/
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ededed;
    color: #333;
}

.app {
    max-width: 500px;
    margin: auto;
    min-height: 100vh;
    background: #f7f8fb;
    padding-bottom: 100px;
}
.notice-bar {
  overflow: hidden;
  white-space: nowrap;
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 6px 0;
  position: relative;
}

.notice-track {
  display: inline-block;
  padding-left: 100%;
  animation: scroll 40s linear infinite;
}

.notice-track span {
  margin-right: 50px;
  display: inline-block;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}


/* Header */
.header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    background-color: white;
}

.header img.logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 10px;
}

.header .title {
    flex: 1;
}

.header button {
    background: #2a9efc;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.banner-swiper {
    width: 100%;
    max-width: 500px;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    padding-top: 115px;
}

.banner {
    position: relative;
    width: 100%;
}

.banner-bg {
    width: 100%;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.banner-overlay .player {
    height: 90px;
    object-fit: contain;
}

.banner-btn {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

.banner-btn button {
    background: #1d8df8;
    border: none;
    color: white;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 20px;
    cursor: pointer;
}


/* Nav */
.nav {
    display: flex;
    justify-content: space-around;
    padding: 10px;
}

.nav div {
    text-align: center;
}

/* Card list */
.card {
    background: #fff;
    border-radius: 10px;
    margin: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.card h3 {
    font-size: 16px;
    margin: 0 0 6px;
}

.card .sub {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.card img {
    width: 100%;
    border-radius: 10px;
}

/* Sidebar menu (left icons) */
.sidebar {
    position: fixed;
    left: 0;
    top: 100px;
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 12px;
    align-items: center;
    color: #666;
}

.sidebar div {
    text-align: center;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fff;
  border-top-left-radius: 2rem;
  border-top-right-radius: 2rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  padding: 8px 0 6px;
  z-index: 998;
}
.bottom-nav div {
    text-align: center;
    font-size: 12px;
    color: #666;
}

.topbar {
    max-width: 500px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f8;
    padding: 8px 12px;
    font-family: sans-serif;
    font-size: 14px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.logo {
    height: 28px;
}

.title {
    font-weight: bold;
    color: #333;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.domain {
    color: #777;
    font-size: 12px;
}

.domain a {
    color: #777;
    text-decoration: none;
}

.icons {
    display: flex;
    gap: 6px;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

/* Dot thường */
.banner-swiper .swiper-pagination-bullet {
    width: 11px;
    height: 8px;
    background: #65acf9;
    border-radius: 5px;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Dot đang active sẽ dài hơn */
.banner-swiper .swiper-pagination-bullet-active {
    width: 18px;
    background: #007aff;
}

.topbar-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.topbar-right .icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

.modal-custom .modal-body.bg-image {
    background-size: cover;
    height: 400px;
    border-radius: 12px 12px 0 0;
}

/* Nút X */
.modal-custom .custom-close {
    position: absolute;
    top: -50px;
    right: 0px;
    z-index: 10;
    border-radius: 50%;
    opacity: 1;
    border: 1.5px solid #212121;
    width: 25px;
    height: 25px;
    color: white;
}
.modal-custom{
    border-radius: 20px;
}

/* Footer */
.modal-custom .modal-footer {
    border: none;
    padding: 15px;
}
.modal-custom .modal-footer button{
    width: 45%;
}

.modal-custom .btn {
    border-radius: 25px;
}
.topbar {
    background: #f7f8fb; /* nền giống ảnh */
    font-size: 14px;
    color: #666;
  }

  .notice {
    flex: 1;
    color: #606060;
  }

  .nav {
    display: flex;
    align-items: center;
    padding-right: 0px;
  }

  .nav-item {
    font-size: 0.8rem;
    color: black;
    cursor: pointer;
  }

  .nav-item:hover {
    color: #007bff;
  }

  .nav-icon {
    display: block;
    width: 2rem !important;
    height: 2rem;
    margin: 0 auto 3px auto;
  }


  .sports-wrapper {
    display: flex;
    max-width: 1000px;
    margin: 20px auto;
    padding: 0px 10px;
    }

.sports-tabs {
  border: none;
  margin-right: 20px;
}

.sports-tabs .nav-link {
  background: transparent;
  border: none;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  transition: all 0.3s;
}
.nav-item {
    text-decoration: none;
}

.sports-tabs .nav-link img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.sports-tabs .nav-link.active {
  background: #eaf3ff;
}

.sports-content {
  flex: 1;
}

.sports-card {
  background: #f5f9fc;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sports-info h3 {
  font-size: 20px;
  margin: 0;
}

.sports-info h3 small {
  color: #999;
  font-size: 14px;
  margin-left: 5px;
}

.sub {
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 5px;
  font-size: 12px;
}

.badge.blue {
  background: #009dff;
  color: #fff;
}

.sports-img img {
  max-height: 150px;
  border-radius: 10px;
}

.sports-tabs {
  border: none;
  margin-right: 15px;
  padding: 0;
}

.sports-tabs .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: none;
  border-radius: 20px;
  margin-bottom: 8px;
  padding: 8px 18px;
  font-size: 1.3rem;
  color: #666;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(27,130,255,0.4);
  font-weight: 500;
}

.sports-tabs .nav-link img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0px;
}

/* trạng thái active */
.sports-tabs .nav-link.active {
  background: linear-gradient(180deg, #4faaff, #1b82ff);
  color: #fff;
  box-shadow: 0 4px 10px rgba(27,130,255,0.4);
}

.sports-tabs .nav-link.active img {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.9));
}
/* Content wrapper */
.sports-tab-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Card */
.sports-card {
  border-radius: 16px;
  overflow: hidden;
  background: #f5f9fc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Background + flex */
.sports-card-bg {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-size: cover;
  background-position: right center;
  padding: 20px;
  min-height: 140px;
  border-radius: 16px;
}

/* Info */
.sports-info {
  max-width: 50%;
}

.sports-title-cn {
  font-size: 20px;
  font-weight: bold;
  color: #222;
}

.sports-title-en {
  font-size: 14px;
  color: #888;
  margin-bottom: 8px;
}

.sports-matches {
  font-size: 26px;
  font-weight: bold;
  color: #000;
}

.sports-matches span {
  font-size: 14px;
  margin-left: 4px;
  color: #555;
}

/* Badge */
.sports-badges {
  margin-top: 8px;
}

.badge {
  display: inline-block;
  padding: 3px 0px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
}

.badge.gray {
  color: #333;
  vertical-align: middle;
padding: 8px 0px;
font-size: 1rem;
}

.badge.blue {
  background: linear-gradient(90deg, #1b82ff, #00c6ff);
  color: #fff;
}

.sports-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafd;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: relative;
  overflow: hidden;
  min-height: 150px;
  margin-bottom: 15px;
}

/* Background cầu thủ (bên phải) */
.sports-card-bg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 75%;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
  pointer-events: none;
  opacity: 0.95;
}

/* Thông tin bên trái */
.sports-info {
  position: relative;
  z-index: 2;
  max-width: 45%;
}

.sports-title-cn {
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.sports-title-en {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.sports-matches {
  font-size: 26px;
  font-weight: bold;
  color: #000;
}

.sports-matches span {
  font-size: 14px;
  margin-left: 4px;
  color: #555;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
}

.badge.blue {
  background: linear-gradient(90deg, #1b82ff, #00c6ff);
  color: #fff;
}

.sports-badges {
    width: 180px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.3rem;
  color: #666;
  flex: 1;
  text-decoration: none;
}

.bottom-nav .nav-item img {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 4px;
  opacity: 0.6;
  transition: all 0.3s;
}
.bottom-nav .nav-item:hover img {
  width: 2rem;
  height: 2rem;
}
.bottom-nav .nav-item.active img {
  width: 2rem;
  height: 2rem;
}
.bottom-nav .nav-item.active img {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(0, 174, 255, 0.6));
}

.bottom-nav .nav-item.active span {
  color: #008CFF;
  font-weight: 500;
}
.header-page {
    position: fixed;
    z-index: 998;
    border-bottom: 1px solid #eee;
    width: 100%;
    max-width: 500px;
}
.banner-tabs ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 5px;
    width: 100%;
}
.banner-tabs {
    border-top-width: 1px;
    padding-top: 5px;
    border-top-color: #e9e9e9;
    padding-top: 120px;
}
.banner-tabs li {
    flex: 1;
    text-align: center;
    position: relative;
}

.banner-tabs .tab-link {
    display: inline-block;
    padding: 8px 5px;
    text-decoration: none;
    color: #333;
    width: 100%;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.banner-tabs .tab-link.active {
    color: #0073aa;
    font-weight: bold;
}
.banner-tabs .tab-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.banner-tabs .tab-link.active {
    color: #0073aa;
    font-weight: bold;
}

.banner-tabs .tab-link.active::after {
    width: 50%;
}

.banner-lists .banner-list {
    display: none;
}
.banner-lists {
    padding: 10px;
}
.banner-lists .banner-list.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.banner-item {
    border-radius: 10px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    height: 120px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.banner-item h3 {
    position: absolute;
    bottom: 0px;
    margin-bottom: 10px;
    font-size: 1rem;
}
.banner-tag {
    display: inline-block;
    background: #ff5b5b;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 6px;
}

.banner-item img {
   width: 100%;
    position: absolute;
    height: 100%;
    border-radius: 8px;
    top: 0px;
}
.new-offers {
    background: #7088ff;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0px 5px;
    color: white;
}
.overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.4);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
      z-index: 999;
    }
    .overlay.active {
      opacity: 1;
      pointer-events: all;
    }
    

    /* Sidebar từ phải */
    
    .sidebar {
      position: fixed;
      top: 50%;
      left: 50%;
      width: 100%;
      max-width: 500px;
      height: 100%;
      background: #fff;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
      transition: transform 0.4s ease, opacity 0.4s ease;
      z-index: 1000;
      opacity: 0;
      transform: translate(100%, -50%); /* bắt đầu ngoài màn hình bên phải */
      pointer-events: none;
    }
    
    .sidebar.active {
      opacity: 1;
      transform: translate(-50%, -50%); /* chạy mượt vào giữa */
      pointer-events: auto;
    }


    /* Header */
    .sidebar-header {
      padding: 15px;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;
    }
    .sidebar-header h2 {
      margin: 0;
      font-size: 16px;
    }
    .close-btn {
      font-size: 20px;
      background: none;
      border: none;
      cursor: pointer;
    }

    /* Tabs */
    .tabs {
      display: flex;
      justify-content: space-around;
      width: 100%;
      border-bottom: 1px solid #eee;
    }
    .tabs div {
      padding: 10px;
      font-size: 14px;
      cursor: pointer;
      position: relative;
    }
    .tabs div.active {
      color: #007bff;
      font-weight: bold;
    }
    .tabs div.active::after {
      content: "";
      position: absolute;
      bottom: 0; left: 0;
      width: 100%; height: 2px;
      background: #007bff;
    }

    /* Danh sách tin nhắn */
    .messages {
        width: 100%;
      flex: 1;
      overflow-y: auto;
      padding: 10px;
    }
    .message {
        align-items: center;
      display: flex;
      padding: 10px;
      border-bottom: 1px solid #f2f2f2;
      font-size: 14px;
        text-align: left !important;
    }
    .message .flex-grow-1 {
        width: 80%;
    }
    .message div{
        text-align: left !important;
    }
    .message-icon {
      width: 50px;
      margin-right: 10px;
    }
    .message-icon img{
      width: 40px;
    }
    .message-content {
      flex: 1;
    }
    .message-time {
      font-size: 12px;
      color: gray;
    }
    
    .sidebar-nav {
        width: 100%;
    }
    .sidebar-nav button {
        color: black;
    }
    .sidebar-nav button.nav-link.active {
        color: #0d6efd;
    }
    .message small {
  display: block;            /* đảm bảo xuống dòng */
  white-space: nowrap;       /* không cho xuống dòng */
  overflow: hidden;          /* ẩn phần dư */
  text-overflow: ellipsis;   /* thêm ... */
  max-width: 100%;           /* giới hạn theo khung cha */
}
    #myTabContent {
        width: 100%;
        padding: 0px 30px !important;
    }