/* LATKEOTV HOME V2 - EMERALD GOLD */

.latkeo-emerald-home {
  --lk-green:#003c2e;
  --lk-deep:#001d18;
  --lk-gold:#e5bd58;
  --lk-light-gold:#ffe59a;
  --lk-text:#f5fff9;

  background:
    radial-gradient(ellipse at 50% 0%,rgba(0,154,108,.25),transparent 50%),
    linear-gradient(160deg,#002f25,#001b17 70%);

  color:var(--lk-text);
}

/* Match section */
.latkeo-emerald-home .home-tran-dau {
  position:relative;
  padding:28px 0 55px;
  background:
    radial-gradient(ellipse at 50% 15%,rgba(0,145,95,.15),transparent 65%),
    linear-gradient(180deg,#00382c,#001c18);
}

.latkeo-emerald-home .home-tran-dau > .container {
  width:100%;
  max-width:1540px;
  margin:auto;
  padding:0 22px;
}

/* Filters */
.latkeo-emerald-home .schedule-nav {
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  padding:20px 0 28px;
}

.latkeo-emerald-home .schedule-nav .nav-item {
  min-height:46px;
  padding:10px 24px;
  border-radius:13px;
  border:1px solid #c6a14b;
  background:linear-gradient(180deg,#07533e,#002f25);
  color:#fff;
  font-weight:800;
  box-shadow:inset 0 1px rgba(255,255,255,.13);
  cursor:pointer;
  transition:transform .2s,box-shadow .2s;
}

.latkeo-emerald-home .schedule-nav .nav-item:hover {
  transform:translateY(-2px);
  box-shadow:0 4px 18px rgba(227,188,84,.22);
}

.latkeo-emerald-home .schedule-nav .nav-item.active {
  background:linear-gradient(135deg,#ffe89d,#d2a13b);
  color:#073b2b;
  border-color:#ffe49a;
}

/* Match grid */
.latkeo-emerald-home .ultra-match-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch;
}

/* Match card */
.latkeo-emerald-home .ultra-match-card {
  position:relative;
  min-width:0;
  border:2px solid #d5ac4b!important;
  border-radius:17px!important;
  background:
    radial-gradient(circle at 50% 100%,rgba(0,130,88,.25),transparent 70%),
    linear-gradient(145deg,#07533e,#002c24)!important;
  box-shadow:
    0 6px 20px rgba(0,0,0,.25),
    inset 0 0 20px rgba(0,115,78,.16);
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
}

.latkeo-emerald-home .ultra-match-card:hover {
  transform:translateY(-3px);
  box-shadow:0 8px 26px rgba(218,176,67,.25);
}

.latkeo-emerald-home .ultra-match-card.ultra-live {
  border-color:#ffdc72!important;
}

/* Gold score */
.latkeo-emerald-home .ultra-match-card .ultra-score {
  color:#ffe28a!important;
  font-weight:900;
}

/* League */
.latkeo-emerald-home .ultra-league {
  color:#f9d576!important;
  font-weight:800;
}

/* Responsive */
@media(max-width:1180px) {
  .latkeo-emerald-home .ultra-match-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:760px) {
  .latkeo-emerald-home .home-tran-dau > .container {
    padding:0 10px;
  }

  .latkeo-emerald-home .ultra-match-grid {
    grid-template-columns:1fr!important;
    gap:12px!important;
  }

  .latkeo-emerald-home .schedule-nav {
    justify-content:flex-start;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:8px;
    padding:12px 0 18px;
  }

  .latkeo-emerald-home .schedule-nav .nav-item {
    flex-shrink:0;
    padding:9px 13px;
    min-height:40px;
    font-size:12px;
  }
}

/* ===== LATKEOTV HOME V2 - MATCH CARDS ===== */

/* Override old rainbow LIVE border */
#site-main.latkeo-emerald-home .ultra-match-card.ultra-live {
  border:2px solid #ffe18a!important;
  background:
    radial-gradient(circle at 50% 100%,rgba(0,145,90,.28),transparent 70%),
    linear-gradient(145deg,#07533e,#002c24)!important;
  animation:none!important;
  box-shadow:0 0 15px rgba(229,189,88,.25)!important;
}

#site-main.latkeo-emerald-home .ultra-match-card.ultra-live::after {
  display:none!important;
}

/* League and match time */
#site-main.latkeo-emerald-home .ultra-match-top {
  min-height:30px;
  margin-bottom:10px;
}

#site-main.latkeo-emerald-home .ultra-league {
  color:#ffe18a!important;
  font-size:12px;
  font-weight:900;
}

#site-main.latkeo-emerald-home .ultra-time {
  background:#00291f!important;
  border:1px solid rgba(230,191,91,.35);
  color:#fff!important;
  border-radius:8px;
}

/* LIVE label */
#site-main.latkeo-emerald-home .ultra-live-pill {
  background:linear-gradient(135deg,#ff4747,#bd0018)!important;
  color:white!important;
  border-radius:9px;
  font-weight:900;
}

/* Teams and score */
#site-main.latkeo-emerald-home .ultra-main {
  min-height:125px;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:8px;
  align-items:center;
}

#site-main.latkeo-emerald-home .ultra-team {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  font-size:14px;
  font-weight:800;
}

#site-main.latkeo-emerald-home .ultra-team img {
  width:57px;
  height:57px;
  object-fit:contain;
}

#site-main.latkeo-emerald-home .ultra-team-name {
  color:#fff!important;
  line-height:1.3;
}

#site-main.latkeo-emerald-home .ultra-scorebox {
  min-width:92px;
}

#site-main.latkeo-emerald-home .ultra-phase {
  background:linear-gradient(135deg,#ffe99e,#d5a746)!important;
  color:#063b2b!important;
  font-weight:800;
  border-radius:9px;
  font-size:11px;
  padding:7px 9px;
}

#site-main.latkeo-emerald-home .ultra-score {
  background:linear-gradient(135deg,#ffe99e,#d4a340)!important;
  color:#063b2b!important;
  border:1px solid #fff0ad!important;
  border-radius:10px;
  font-size:25px;
  font-weight:900;
  box-shadow:0 3px 12px rgba(0,0,0,.2);
}

#site-main.latkeo-emerald-home .ultra-score .ultra-leading {
  background:#0b6348!important;
  color:#fff!important;
}

/* Bottom stats */
#site-main.latkeo-emerald-home .ultra-bottom {
  background:rgba(0,28,23,.78)!important;
  border:1px solid rgba(225,185,81,.3);
  border-radius:11px;
  color:#e8fff0!important;
  gap:6px;
  padding:9px 7px;
}

#site-main.latkeo-emerald-home .ultra-stats {
  color:#d5e8da!important;
  font-size:11px;
}

#site-main.latkeo-emerald-home .ultra-stats b {
  color:#ffe18a!important;
}

#site-main.latkeo-emerald-home .ultra-commentators {
  color:#fff!important;
  font-size:11px;
}

#site-main.latkeo-emerald-home .ultra-odds {
  color:#e4d6aa!important;
  font-size:11px;
}

/* Watch link */
#site-main.latkeo-emerald-home .ultra-card-actions a {
  color:#ffe18a!important;
  font-size:13px;
  font-weight:900;
  text-decoration:none!important;
}

#site-main.latkeo-emerald-home .ultra-card-actions a:hover {
  color:#fff!important;
}

/* Mobile */
@media(max-width:480px) {
  #site-main.latkeo-emerald-home .ultra-team img {
    width:46px;
    height:46px;
  }

  #site-main.latkeo-emerald-home .ultra-team {
    font-size:12px;
  }

  #site-main.latkeo-emerald-home .ultra-main {
    min-height:110px;
  }

  #site-main.latkeo-emerald-home .ultra-score {
    font-size:22px;
  }
}

/* ===== LATKEOTV HOME V2 - HERO ===== */

#site-main.latkeo-emerald-home .latkeo-top-ticker {
  background:linear-gradient(90deg,#00563e,#078b65,#004b38);
  border-bottom:1px solid rgba(255,222,135,.5);
  color:#fff;
  padding-top:9px;
  padding-bottom:9px;
}

#site-main.latkeo-emerald-home .latkeo-hero {
  position:relative;
  min-height:245px;
  display:flex;
  align-items:center;
  overflow:hidden;
  border-bottom:3px solid #d8ae4e;
  background:
    linear-gradient(90deg,
      rgba(0,20,15,.45) 0%,
      rgba(0,36,27,.72) 40%,
      rgba(0,28,22,.9) 100%),
    url('/assets/img/latkeo-stadium-banner.webp')
    center center/cover no-repeat;
}

#site-main.latkeo-emerald-home .latkeo-hero::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:55px;
  background:linear-gradient(transparent,rgba(0,28,22,.7));
  pointer-events:none;
}

#site-main.latkeo-emerald-home .latkeo-hero-inner {
  position:relative;
  z-index:1;
  width:100%;
  max-width:1450px;
  margin:auto;
  padding:32px 35px 32px 39%;
}

#site-main.latkeo-emerald-home .latkeo-hero-kicker {
  color:#ffe28a;
  font-size:13px;
  font-weight:900;
  letter-spacing:1.5px;
}

#site-main.latkeo-emerald-home .latkeo-hero h1 {
  color:#fff;
  font-size:clamp(27px,3.3vw,47px);
  font-weight:900;
  line-height:1.15;
  margin:10px 0;
  text-shadow:0 3px 15px rgba(0,0,0,.5);
}

#site-main.latkeo-emerald-home .latkeo-hero h1 strong {
  color:#ffe18a;
}

#site-main.latkeo-emerald-home .latkeo-hero p {
  color:#e3f7eb;
  font-size:15px;
  font-weight:600;
}

#site-main.latkeo-emerald-home .latkeo-hero-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 23px;
  margin-top:15px;
  border:2px solid #fff0ac;
  border-radius:30px;
  background:linear-gradient(135deg,#ffeda5,#d2a13b);
  color:#063b2b!important;
  font-weight:900;
  text-decoration:none;
  box-shadow:0 5px 20px rgba(0,0,0,.3);
}

#site-main.latkeo-emerald-home .latkeo-hero-cta:hover {
  background:linear-gradient(135deg,#fff5c5,#e3b54f);
  transform:translateY(-2px);
}

/* Tablet */
@media(max-width:900px) {
  #site-main.latkeo-emerald-home .latkeo-hero {
    min-height:200px;
  }

  #site-main.latkeo-emerald-home .latkeo-hero-inner {
    padding:25px 20px 25px 34%;
  }
}

/* Mobile */
@media(max-width:600px) {
  #site-main.latkeo-emerald-home .latkeo-hero {
    min-height:170px;
    background-position:center;
  }

  #site-main.latkeo-emerald-home .latkeo-hero-inner {
    padding:20px 12px 20px 25%;
  }

  #site-main.latkeo-emerald-home .latkeo-hero-kicker {
    font-size:9px;
    letter-spacing:0;
  }

  #site-main.latkeo-emerald-home .latkeo-hero h1 {
    font-size:20px;
  }

  #site-main.latkeo-emerald-home .latkeo-hero p {
    display:none;
  }

  #site-main.latkeo-emerald-home .latkeo-hero-cta {
    min-height:34px;
    padding:7px 12px;
    font-size:11px;
    margin-top:8px;
  }
}


/* ===== HOME V2 WATCH BUTTON ===== */

#site-main.latkeo-emerald-home .ultra-card-actions {
  display:flex;
  justify-content:center;
  margin-top:12px;
}

#site-main.latkeo-emerald-home .latkeo-watch-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:150px;
  min-height:39px;
  padding:9px 22px;
  border:1px solid #fff0ac;
  border-radius:25px;
  background:linear-gradient(135deg,#ffe99b,#d3a13d);
  color:#073b2b!important;
  font-size:13px;
  font-weight:900;
  text-decoration:none!important;
  box-shadow:0 4px 14px rgba(0,0,0,.25);
}

#site-main.latkeo-emerald-home .latkeo-watch-btn:hover {
  background:linear-gradient(135deg,#fff4bf,#e5b951);
  color:#002b20!important;
}

#site-main.latkeo-emerald-home .ultra-team {
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
}

#site-main.latkeo-emerald-home .ultra-team img {
  order:0;
}

#site-main.latkeo-emerald-home .ultra-team-name {
  order:1;
}


/* ===== HOME V2 READABILITY FIX ===== */

#site-main.latkeo-emerald-home .ultra-card-actions .latkeo-watch-btn,
#site-main.latkeo-emerald-home .ultra-card-actions .latkeo-watch-btn:link,
#site-main.latkeo-emerald-home .ultra-card-actions .latkeo-watch-btn:visited {
  background:linear-gradient(135deg,#ffec9e,#d4a43f)!important;
  color:#003b2c!important;
  -webkit-text-fill-color:#003b2c!important;
  font-size:14px!important;
  font-weight:900!important;
  text-shadow:none!important;
  opacity:1!important;
  text-decoration:none!important;
  border:1px solid #fff1b1!important;
}

#site-main.latkeo-emerald-home .ultra-card-actions .latkeo-watch-btn:hover {
  background:linear-gradient(135deg,#fff6c7,#e7bb58)!important;
  color:#002a20!important;
  -webkit-text-fill-color:#002a20!important;
}

#site-main.latkeo-emerald-home .ultra-team-name {
  color:#fff!important;
  font-size:13px;
  font-weight:900!important;
  text-shadow:0 1px 3px rgba(0,0,0,.5);
}

#site-main.latkeo-emerald-home .ultra-score {
  color:#003d2d!important;
  -webkit-text-fill-color:#003d2d!important;
  font-weight:900!important;
}

#site-main.latkeo-emerald-home .ultra-phase {
  color:#003d2d!important;
  -webkit-text-fill-color:#003d2d!important;
}


/* ===== HOME V2 FILTER COUNTS ===== */

#site-main.latkeo-emerald-home .schedule-nav .nav-item {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

#site-main.latkeo-emerald-home .schedule-nav .nav-item[hidden] {
  display:none!important;
}

#site-main.latkeo-emerald-home .latkeo-filter-count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:23px;
  height:23px;
  padding:0 6px;
  border-radius:20px;
  background:rgba(0,20,15,.55);
  color:#ffe59a;
  border:1px solid rgba(255,229,154,.45);
  font-size:11px;
  font-weight:900;
}

#site-main.latkeo-emerald-home .schedule-nav .nav-item.active .latkeo-filter-count {
  background:#07523c;
  color:#fff;
}



/* LATKEO_FILTER_COUNTER_FIX_180 */

/* Đồng bộ tất cả bộ đếm trận đấu */
html.dark #site-main.latkeo-emerald-home
.schedule-nav.latkeo-filter-nav
.nav-item .latkeo-filter-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;

    min-width: 26px !important;
    width: auto !important;
    height: 26px !important;
    padding: 0 6px !important;

    border-radius: 999px !important;
    box-sizing: border-box !important;

    background: #003d30 !important;
    border: 1px solid #bca153 !important;
    color: #ffffff !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* Nút đang được chọn vẫn giữ số màu trắng */
html.dark #site-main.latkeo-emerald-home
.schedule-nav.latkeo-filter-nav
.nav-item.active .latkeo-filter-count {
    background: #00513d !important;
    color: #ffffff !important;
    border-color: #d8b75b !important;
}

/* Giữ khoảng cách giữa tên nút và bộ đếm */
html.dark #site-main.latkeo-emerald-home
.schedule-nav.latkeo-filter-nav .nav-item {
    gap: 9px !important;
}


/* LATKEO_MATCH_SAMPLE_BACKGROUND_199 */

/* Nền xanh đen với các dải xanh ngọc theo mẫu */
#site-main.latkeo-emerald-home .ultra-match-grid > .ultra-match-card,
#site-main.latkeo-emerald-home .ultra-match-card,
#site-main.latkeo-emerald-home .ultra-match-card.ultra-live {
    background:
      linear-gradient(
        138deg,
        transparent 0%,
        transparent 11%,
        rgba(0, 174, 116, .20) 11.3%,
        rgba(0, 108, 76, .12) 27%,
        transparent 27.3%
      ),
      linear-gradient(
        315deg,
        transparent 0%,
        transparent 13%,
        rgba(0, 148, 104, .18) 13.3%,
        rgba(0, 94, 69, .10) 31%,
        transparent 31.3%
      ),
      radial-gradient(
        ellipse at 50% 100%,
        rgba(0, 105, 72, .22),
        transparent 68%
      ),
      linear-gradient(
        145deg,
        #003e2d 0%,
        #001e18 48%,
        #002a20 100%
      ) !important;

    border: 2px solid #e6c46b !important;
    border-radius: 17px !important;

    box-shadow:
      0 0 0 1px rgba(255, 230, 150, .16),
      0 0 13px rgba(227, 187, 79, .20),
      inset 0 0 18px rgba(0, 177, 119, .10) !important;
}

/* Giữ họa tiết nền cũ không che nền mới */
#site-main.latkeo-emerald-home .ultra-match-card::before {
    opacity: .08 !important;
}

/* Khung LIVE có viền vàng rõ hơn */
#site-main.latkeo-emerald-home .ultra-match-card.ultra-live {
    border-color: #ffe28b !important;
}

/* Mobile */
@media (max-width: 760px) {
    #site-main.latkeo-emerald-home .ultra-match-card {
        border-radius: 17px !important;
        box-shadow:
          0 0 10px rgba(230, 190, 80, .18),
          inset 0 0 15px rgba(0, 170, 115, .08) !important;
    }
}


/* LATKEO_MATCH_WAVE_BACKGROUND_202 */

/* Nền xanh đen sâu, ánh xanh ngọc gợn sóng */
#site-main.latkeo-emerald-home .ultra-match-card,
#site-main.latkeo-emerald-home .ultra-match-card.ultra-live {
    background:
      radial-gradient(
        ellipse 85% 65% at -12% 48%,
        rgba(0, 185, 125, .29) 0%,
        rgba(0, 112, 78, .17) 38%,
        transparent 74%
      ),
      radial-gradient(
        ellipse 85% 70% at 112% 58%,
        rgba(0, 180, 130, .25) 0%,
        rgba(0, 104, 80, .13) 42%,
        transparent 76%
      ),
      radial-gradient(
        ellipse 95% 40% at 50% 115%,
        rgba(0, 140, 100, .19),
        transparent 80%
      ),
      linear-gradient(
        145deg,
        #003b2d 0%,
        #001d17 49%,
        #003326 100%
      ) !important;

    border: 2px solid #e8c46c !important;

    box-shadow:
      0 0 0 1px rgba(255, 225, 140, .12),
      0 0 13px rgba(229, 185, 70, .20),
      inset 0 0 18px rgba(0, 175, 120, .09) !important;
}

/* Loại bỏ lớp hình thoi cũ */
#site-main.latkeo-emerald-home .ultra-match-card::before {
    background-image: none !important;
    opacity: 0 !important;
}

/* Các dải sóng mềm, không ảnh hưởng nội dung */
#site-main.latkeo-emerald-home .ultra-match-card {
    background-blend-mode: screen, screen, normal, normal !important;
}

/* Mobile giữ nguyên bố cục */
@media (max-width: 760px) {
    #site-main.latkeo-emerald-home .ultra-match-card {
        border-radius: 17px !important;
    }
}



/* LATKEO_PREMIUM_WAVE_201 */

/* Premium emerald wave background */
#site-main.latkeo-emerald-home .ultra-match-card,
#site-main.latkeo-emerald-home .ultra-match-card.ultra-live {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;

    background:
      radial-gradient(
        ellipse 110% 75% at 105% 105%,
        rgba(0,192,137,.36) 0%,
        rgba(0,105,80,.17) 45%,
        transparent 75%
      ),
      radial-gradient(
        ellipse 90% 65% at -10% -15%,
        rgba(0,157,111,.23),
        transparent 75%
      ),
      linear-gradient(
        145deg,
        #00291f 0%,
        #003e30 48%,
        #001c17 100%
      ) !important;

    border: 2px solid #e4bb59 !important;
    border-radius: 22px !important;

    box-shadow:
      inset 0 1px 0 rgba(255,239,163,.25),
      0 8px 25px rgba(0,0,0,.24) !important;
}

/* Curved emerald light waves */
#site-main.latkeo-emerald-home .ultra-match-card::before {
    content: "" !important;
    position: absolute !important;
    inset: -35% -30% !important;
    z-index: -1 !important;
    pointer-events: none !important;
    opacity: 1 !important;

    background:
      radial-gradient(
        ellipse 95% 62% at 10% 95%,
        transparent 67%,
        rgba(0,239,169,.19) 68%,
        rgba(0,190,136,.08) 69%,
        transparent 71%
      ),
      radial-gradient(
        ellipse 105% 75% at 100% 0%,
        transparent 69%,
        rgba(235,189,74,.18) 70%,
        transparent 72%
      ),
      radial-gradient(
        ellipse 100% 70% at 90% 110%,
        transparent 62%,
        rgba(0,190,139,.24) 63%,
        transparent 66%
      ) !important;

    background-size: 100% 100% !important;
    transform: rotate(-8deg) !important;
}

/* Disable old decorative overlays */
#site-main.latkeo-emerald-home .ultra-match-card::after {
    pointer-events: none !important;
}

/* Keep match content above background */
#site-main.latkeo-emerald-home .ultra-match-card > * {
    position: relative;
    z-index: 1;
}

/* Mobile */
@media (max-width: 767px) {
    #site-main.latkeo-emerald-home .ultra-match-card {
        border-radius: 19px !important;
    }
}
