/* starsportsbet — Star Sports Extra match, mobile-first */

:root {
  --ssb-navy: #15213c;
  --ssb-gold: #febe10;
  --ssb-ink: #181818;
  --ssb-muted: #8a8f98;
  --ssb-soft: #f5f6f8;
  --ssb-line: #e6e8ec;
  --ssb-white: #ffffff;
  --ssb-radius: 8px;
  --ssb-container: 1250px; /* official .container max-width */
  --ssb-header: 97px;
  --ssb-font: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--ssb-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ssb-ink);
  background: var(--ssb-white);
  -webkit-font-smoothing: antialiased;
}

body.ssb-lock { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 0.5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 0.85em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

.ssb-container {
  width: min(100% - 1.5rem, var(--ssb-container));
  margin-inline: auto;
}

/* —— Header (official: full-bleed navy 97px / container 1250px) —— */
/* Only navy top sticks; gray category pills scroll away */
.ssb-header {
  position: relative;
  z-index: 200;
  width: 100%;
}

.ssb-header__top {
  position: sticky;
  top: 0;
  z-index: 201;
  width: 100%;
  background: #15213c;
  color: var(--ssb-white);
  padding: 30px 0; /* official navy bar height ≈ 97px */
  box-sizing: border-box;
  min-height: 97px;
  transition: transform 0.28s ease;
  will-change: transform;
}
.ssb-header__top.is-hidden {
  transform: translateY(-100%);
}

.ssb-header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 0;
  padding-block: 0;
  width: min(100% - 24px, var(--ssb-container));
  margin-inline: auto;
}

.ssb-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  color: var(--ssb-white);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.ssb-nav-toggle__bar { display: block; height: 2px; width: 100%; background: currentColor; border-radius: 2px; }

.ssb-header__brand { flex: 0 0 auto; min-width: 0; }

.ssb-logo,
.ssb-logo--mark,
.ssb-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  color: inherit;
}
.ssb-logo img,
.ssb-logo .logo {
  display: block;
  width: 235px;
  max-width: min(235px, 52vw);
  height: 26px;
  object-fit: contain;
}
/* GAM ★ BLING | NEWS — mirrors STAR ★ SPORTS | EXTRA */
.ssb-logo__gam,
.ssb-logo__bling {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: #fff !important;
  text-transform: uppercase;
}
.ssb-logo__star {
  color: var(--ssb-gold) !important;
  font-size: 0.95rem;
  line-height: 1;
  margin: 0 0.08rem;
  transform: translateY(-0.08em);
}
.ssb-logo__pipe {
  display: inline-block;
  width: 2px;
  height: 1.35em;
  margin: 0 0.5rem 0 0.6rem;
  background: var(--ssb-gold);
  opacity: 1;
  flex-shrink: 0;
}
.ssb-logo__news {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  color: var(--ssb-gold) !important;
  text-transform: uppercase;
}
.ssb-footer__logo .ssb-logo__gam,
.ssb-footer__logo .ssb-logo__bling {
  font-size: 1.45rem;
}
.ssb-footer__logo .ssb-logo__news {
  font-size: 0.92rem;
}
.ssb-footer__logo .ssb-logo__star {
  font-size: 1rem;
}
.ssb-footer__logo .ssb-logo__pipe {
  width: 2px;
  height: 1.4em;
}

.custom-logo-link img, .ssb-header .custom-logo {
  width: 235px;
  max-width: min(235px, 52vw);
  height: 26px;
  object-fit: contain;
}

.ssb-header__actions { display: flex; align-items: center; gap: 0.65rem; margin-left: auto; }

.ssb-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ssb-white);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}
.ssb-search-toggle:hover,
.ssb-search-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ssb-gold);
}
.ssb-search-toggle__icon { display: block; }

.ssb-bet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #febe10;
  color: #15213c !important;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: 20px;
  white-space: nowrap;
  line-height: 1.2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ssb-bet-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.ssb-bet-btn--block { width: 100%; margin-top: 1rem; padding: 0.85rem; }
.ssb-bet-btn--footer { padding: 0.7rem 1.2rem; font-size: 0.75rem; }

/* Category nav — asgam.com style (white bar, gold top rule, flat uppercase links) */
.ssb-header {
  overflow: visible;
}
.ssb-header__sub {
  position: relative;
  z-index: 250;
  width: 100%;
  background: #ffffff;
  border-top: 3px solid #c9a227;
  border-bottom: 1px solid #e6e8ec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  /* Do NOT use overflow:auto here — it clips the Regional dropdown */
  overflow: visible;
  min-height: 48px;
  padding: 0;
  box-sizing: border-box;
}

.ssb-header__sub > .ssb-container {
  width: min(100% - 24px, var(--ssb-container));
  overflow: visible;
}

.ssb-nav-secondary {
  display: flex;
  justify-content: center;
  overflow: visible;
}

.ssb-menu--secondary {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: 0;
  white-space: nowrap;
  min-height: 48px;
  overflow: visible;
}
.ssb-menu--secondary > li {
  position: relative;
  display: flex;
  align-items: center;
}
.ssb-menu--secondary > li > a {
  display: flex;
  align-items: center;
  background: transparent;
  color: #181818;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 18px;
  border-radius: 0;
  line-height: 1.2;
  transition: color 0.15s ease;
}
.ssb-menu--secondary > li > a:hover,
.ssb-menu--secondary > li.current-menu-item > a,
.ssb-menu--secondary > li:hover > a {
  background: transparent;
  color: #c9a227;
}

/* Regional dropdown — floats above page content */
.ssb-menu--secondary .ssb-menu-item-has-children {
  position: relative;
  z-index: 260;
}
.ssb-menu--secondary .ssb-sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  margin: 0;
  background: #ffffff;
  border: 1px solid #e6e8ec;
  border-top: 2px solid #c9a227;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  padding: 0.4rem 0;
  display: none;
  flex-direction: column;
  z-index: 400;
  white-space: nowrap;
  list-style: none;
}
.ssb-menu--secondary .ssb-menu-item-has-children:hover > .ssb-sub-menu,
.ssb-menu--secondary .ssb-menu-item-has-children:focus-within > .ssb-sub-menu,
.ssb-menu--secondary .ssb-menu-item-has-children.is-open > .ssb-sub-menu {
  display: flex;
}
.ssb-menu--secondary .ssb-sub-menu a {
  display: block;
  padding: 0.6rem 1.15rem;
  color: #181818;
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  background: transparent;
  border-radius: 0;
}
.ssb-menu--secondary .ssb-sub-menu a:hover {
  background: #f5f6f8;
  color: #c9a227;
}

.ssb-search-panel {
  background: var(--ssb-navy);
  padding: 0.75rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ssb-search-panel[hidden] { display: none !important; }
.ssb-search-form { display: flex; gap: 0.5rem; }
.ssb-search-form__input { flex: 1; border: 0; border-radius: var(--ssb-radius); padding: 0.7rem 0.9rem; font: inherit; }
.ssb-search-form__submit { background: var(--ssb-gold); color: var(--ssb-navy); font-weight: 700; border-radius: var(--ssb-radius); padding: 0 1rem; }

/* Drawer — full-screen overlay (mobile nav) */
.ssb-drawer[hidden] { display: none !important; }
.ssb-drawer.is-open { display: block; }
.ssb-drawer__panel {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.35rem 2rem;
  overflow-y: auto;
  background: linear-gradient(165deg, rgba(12, 40, 52, 0.94) 0%, rgba(21, 33, 60, 0.92) 55%, rgba(8, 28, 42, 0.95) 100%);
  color: #fff;
  animation: ssb-fade .28s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.ssb-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
  padding-top: 0.25rem;
}
.ssb-drawer__social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.ssb-drawer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  opacity: 0.95;
}
.ssb-drawer__social-link:hover { opacity: 1; color: var(--ssb-gold) !important; }
.ssb-drawer__close {
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0 0.15rem;
  cursor: pointer;
  font-weight: 300;
}
.ssb-drawer__nav { flex: 1; }
.ssb-menu--drawer {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.35rem;
}
.ssb-menu--drawer > li { margin: 0; }
.ssb-menu--drawer > li > a,
.ssb-drawer-parent {
  display: block;
  padding: 0.85rem 0;
  border: 0;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.25;
}
.ssb-menu--drawer > li > a:hover { color: var(--ssb-gold) !important; }
.ssb-drawer-item--parent .ssb-menu--drawer-sub {
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0 0 0 0.85rem;
}
.ssb-drawer-item--parent .ssb-menu--drawer-sub a {
  display: block;
  padding: 0.45rem 0;
  border: 0;
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: none;
}
.ssb-drawer-item--parent .ssb-menu--drawer-sub a:hover { color: var(--ssb-gold) !important; }
@keyframes ssb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ssb-slide { from { transform: translateX(-100%); } to { transform: translateX(0); } }

/* —— Main —— */
.ssb-main {
  flex: 1 0 auto;
  width: 100%;
  padding: 1.25rem 0 0;
}
.ssb-home { padding-bottom: 0; }

.ssb-section-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

/* Full-bleed gray band like #posts-carousel on starsportsbet.co.uk */
.ssb-band {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #eeeeee;
  padding: 1.55rem 0 1.75rem;
  border: 0;
  box-shadow: none;
}
.ssb-band .ssb-container {
  width: min(100% - 1.5rem, var(--ssb-container));
  margin-inline: auto;
}
.ssb-band .ssb-section-title {
  margin-bottom: 0;
}
.ssb-band .ssb-trending {
  margin-bottom: 0;
}
.ssb-band .ssb-card__excerpt {
  color: #666;
}
/* Last gray band sits flush on footer — no white gap (图1) */
.ssb-others-band {
  margin-bottom: 0;
  padding-bottom: 1.35rem;
}

.ssb-meta {
  font-size: 8px;
  color: #002845;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin: 0;
  border: 0;
}
.ssb-meta--cat {
  margin-left: 0;
  text-align: right;
  font-size: 6px;
}
/* Official .meta: date left + author right + 1px gold rule */
.ssb-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 21px;
  border: 0;
  border-bottom: 1px solid #febe10;
}
.ssb-meta-row .ssb-meta,
.ssb-meta-row .ssb-meta--date,
.ssb-meta-row .ssb-meta--author,
.ssb-meta-row .ssb-meta--cat {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #002845;
}
.ssb-meta-row .ssb-meta--author,
.ssb-meta-row .ssb-meta--cat {
  font-size: 6px;
  text-align: right;
  padding-top: 5px;
  white-space: nowrap;
}
.ssb-meta--author {
  text-align: right;
  white-space: nowrap;
}
.ssb-meta--lined {
  border-bottom-color: #febe10;
}

.ssb-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #febe10;
  color: #181818;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  z-index: 1;
}

/* —— Latest News: official [image|copy] + side list —— */
.ssb-latest { margin-bottom: 2.25rem; }

.ssb-latest__heading {
  margin: 0 0 25px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  letter-spacing: normal;
}

/* Outer: feature block + side list */
.ssb-latest__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Inner feature: large image | copy */
.ssb-latest__feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  min-width: 0;
}

.ssb-latest__media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.ssb-latest__img {
  width: 100%;
  height: auto;
  aspect-ratio: 532 / 321;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.45s ease;
  display: block;
  background: #e8eaee;
}
.ssb-latest__img--empty {
  min-height: 200px;
}
.ssb-latest__media:hover .ssb-latest__img:not(.ssb-latest__img--empty) {
  transform: scale(1.03);
}

/* Date only + gold rule (AUTHOR sits at bottom) */
.ssb-latest__meta {
  margin: 0;
  padding: 0 0 4px;
  border-bottom: 1px solid #febe10;
  min-height: 18px;
}
.ssb-latest__meta .ssb-meta--date {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #002845;
}

.ssb-latest__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ssb-latest__title {
  font-size: 22px;
  text-transform: none;
  letter-spacing: normal;
  margin: 22px 0;
  font-weight: 700;
  line-height: 1.2;
  color: #181818;
}
.ssb-latest__title a {
  color: inherit;
  font-weight: inherit;
  text-transform: none;
}
.ssb-latest__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ssb-latest__excerpt {
  color: #181818;
  font-size: 12px;
  line-height: 17px;
  margin: 0 0 1rem;
}

.ssb-latest__author {
  margin: auto 0 8px;
  padding-top: 0.75rem;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #002845;
}

.ssb-latest__side { display: flex; flex-direction: column; gap: 0; min-width: 0; }

.ssb-side-item__img--empty {
  display: block;
  width: 150px;
  height: 90px;
  background: #e8eaee;
  border-radius: 5px;
}
.ssb-side-item--text {
  grid-template-columns: 1fr;
  min-height: 0;
}

/* Side list — official: 150×90 thumb, 12px title, no uppercase force */
.ssb-side-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0;
  margin: 0 0 25px;
  border: 0;
  min-height: 90px;
}
.ssb-side-item:last-child { margin-bottom: 0; }
.ssb-side-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.ssb-side-item__media {
  display: block;
  width: 150px;
  border-radius: 5px;
  overflow: hidden;
  align-self: start;
  flex-shrink: 0;
}
.ssb-side-item__img {
  width: 150px;
  height: 90px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 5px;
}
.ssb-side-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ssb-side-item__body .ssb-meta-row {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #febe10;
}
.ssb-side-item__title {
  font-size: 12px;
  margin: 8px 0;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  color: #212529;
}
.ssb-side-item__title a {
  text-transform: none;
  color: inherit;
  font-weight: inherit;
}
.ssb-side-item__excerpt {
  font-size: 10px;
  color: #181818;
  margin: 0;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Trending / Others carousels (图2: side arrows mid-image, no top-right nav) —— */
.ssb-trending { margin-bottom: 2.25rem; position: relative; }

.ssb-trending__head {
  display: block;
  margin-bottom: 0.85rem;
}
.ssb-trending__head .ssb-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}
/* Remove old top-right arrow cluster */
.ssb-trending__nav { display: none !important; }

/*
 * 图1: arrow → ~22–28px gap → card (not overlapping).
 * Arrow 23px at left:0; content starts after padding → gap ≈ padding - 23.
 */
.ssb-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 52px; /* 52 - 23 = 29px gap like 图1 red mark */
  box-sizing: border-box;
}
.ssb-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}
.ssb-carousel__track::-webkit-scrollbar { display: none; }
.ssb-carousel__item { flex: 0 0 78%; scroll-snap-align: start; min-width: 0; }

/* Official slick arrows: 23px, vertically centered on thumb image */
.ssb-carousel-btn {
  position: absolute;
  top: 62.5px; /* half of 125px thumb */
  transform: translateY(-50%);
  z-index: 3;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ecbe09;
  color: #15213c;
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  font-weight: 700;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.ssb-carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.ssb-carousel-btn:disabled,
.ssb-carousel-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: default;
  transform: translateY(-50%);
  pointer-events: none;
}
.ssb-carousel-btn--prev { left: 0; }
.ssb-carousel-btn--next { right: 0; }

.ssb-card__img--empty {
  display: block;
  width: 100%;
  height: 125px;
  background: #ddd;
  border-radius: 5px;
}

/* 图1 card: 208×125 / br 5px / date 8px+gold / title 12px / excerpt 10px */
.ssb-trending .ssb-card__media,
.ssb-others .ssb-card__media {
  border-radius: 5px;
  overflow: hidden;
}
.ssb-trending .ssb-card__img,
.ssb-others .ssb-card__img {
  width: 100%;
  height: 125px;
  max-height: 125px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 5px;
}
.ssb-trending .ssb-card__body,
.ssb-others .ssb-card__body {
  padding: 0;
  text-align: left;
}
.ssb-trending .ssb-card__body > .ssb-meta,
.ssb-trending .ssb-card__body > .ssb-meta--date,
.ssb-others .ssb-card__body > .ssb-meta,
.ssb-others .ssb-card__body > .ssb-meta--date {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 15px 0 0;
  padding: 0 0 3px;
  border-bottom: 1px solid #febe10;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #181818;
  min-height: 0;
}
.ssb-trending .ssb-card__title,
.ssb-others .ssb-card__title {
  font-size: 12px;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.25;
  text-transform: none;
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ssb-trending .ssb-card__title a,
.ssb-others .ssb-card__title a {
  text-transform: none;
  color: inherit;
}
.ssb-trending .ssb-card__excerpt,
.ssb-others .ssb-card__excerpt {
  font-size: 10px;
  color: #181818;
  margin: 0;
  line-height: 1.45;
  -webkit-line-clamp: 3;
}
.ssb-trending .ssb-badge,
.ssb-others .ssb-badge {
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  max-width: calc(100% - 16px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #febe10;
  color: #181818;
}
/* Short labels (F1 / EFL / NFL) — round like 图1 */
.ssb-trending .ssb-badge[data-short="1"],
.ssb-others .ssb-badge[data-short="1"] {
  min-width: 28px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.ssb-card__media {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0;
}
.ssb-card__img {
  width: 100%;
  aspect-ratio: 866 / 485; /* visual ~393×220 on official */
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform .4s ease;
}
.ssb-card__media:hover .ssb-card__img { transform: scale(1.04); }
/* 图1: 图 → meta+黄线 → 标题(18px/无强制大写) → 摘要(10px) */
.ssb-card__body {
  margin: 0;
  padding: 0;
  border-top: 0;
}
.ssb-card__body > .ssb-meta {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #febe10;
  font-size: 8px;
  color: #002845;
  text-transform: uppercase;
  min-height: 21px;
}
.ssb-card__body > .ssb-meta-row {
  margin: 0;
}
.ssb-card__title {
  font-size: 18px;
  margin: 12px 0;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
  border: 0;
  color: #181818;
}
.ssb-card__title a {
  text-transform: none;
  color: inherit;
  font-weight: inherit;
}
.ssb-card__excerpt {
  font-size: 10px;
  color: #181818;
  margin: 0 0 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Most-read featured cards — official 18px / 700 */
.ssb-most-read__cards .ssb-card__title {
  font-size: 18px;
  font-weight: 700;
}
.ssb-most-read .ssb-card__img {
  height: 220px;
  max-height: 220px;
  aspect-ratio: auto;
  object-fit: cover;
}

/* —— Most Read tabs (official: 15px / per-tab underline / ~190px wide) —— */
.ssb-most-read {
  margin-top: 35px; /* gap below ALSO TRENDING gray band */
  margin-bottom: 0;
  padding-bottom: 1.5rem;
}
.ssb-tabs__nav {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  margin: 0 0 1.15rem;
  padding: 0;
  border: 0;
  overflow-x: auto;
}
.ssb-tabs__btn {
  position: relative;
  min-width: 160px;
  padding: 0 0 8px;
  margin: 0;
  border: 0;
  border-bottom: 3px solid #d9d9d9;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #d9d9d9;
  text-align: left;
  white-space: nowrap;
  line-height: 1.2;
}
.ssb-tabs__btn::after,
.ssb-tabs__btn::before {
  content: none;
  display: none;
}
.ssb-tabs__btn.is-active {
  color: #000;
  font-weight: 700;
  border-bottom-color: #ecbe09;
}
@media (min-width: 960px) {
  .ssb-tabs__btn { min-width: 190px; }
}

/* Official Bootstrap col-lg-4 × 3 equal columns */
.ssb-most-read__grid {
  display: grid;
  gap: 1.25rem;
}
.ssb-most-read__cards {
  display: grid;
  gap: 1.25rem;
}
.ssb-most-read__list {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Layout / single */
.ssb-layout { display: grid; gap: 1.75rem; }
.ssb-page-header { margin-bottom: 1.25rem; }
.ssb-page-title { font-size: 1.5rem; text-transform: uppercase; }
.ssb-page { max-width: 820px; }
.ssb-single__title { font-size: 1.65rem; margin: 0.35rem 0 0.75rem; }
.ssb-single__thumb {
  width: 100%;
  max-width: 100%;
  margin: 0 0 1.25rem;
  border-radius: var(--ssb-radius);
  overflow: hidden;
}
.ssb-single__thumb img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.entry-content { font-size: 1rem; line-height: 1.7; color: #333; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1em; }
.entry-content h2 {
  font-size: 1.15rem;
  margin: 1.6rem 0 0.65rem;
  text-transform: none;
  color: var(--ssb-ink);
}
.entry-content h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.55rem;
  text-transform: none;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.1em;
  padding-left: 1.25rem;
  list-style: disc;
}
.entry-content li { margin: 0 0 0.4em; }
.entry-content a {
  color: #0b57a8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:hover { color: var(--ssb-navy); }
.entry-content strong { font-weight: 700; color: var(--ssb-ink); }

/* Article images — always fill content column (override editor size / aligncenter) */
.ssb-single .entry-content .wp-block-image,
.ssb-single .entry-content figure {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0;
  margin-right: 0;
}
.ssb-single .entry-content .wp-block-image img,
.ssb-single .entry-content figure img,
.ssb-single .entry-content p > img,
.ssb-single .entry-content img.aligncenter,
.ssb-single .entry-content img.alignnone,
.ssb-single .entry-content img.alignwide,
.ssb-single .entry-content img.size-full,
.ssb-single .entry-content img.size-large,
.ssb-single .entry-content img.size-medium_large,
.ssb-single .entry-content img.size-medium {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
}
.ssb-single .entry-content .aligncenter {
  display: block;
  float: none;
  margin-left: 0;
  margin-right: 0;
}

/* SHARE VIA (below page / article body) */
.ssb-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 2rem;
  margin-bottom: 40px;
  padding: 0;
}
.ssb-share__label {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #181818;
}
.ssb-share__icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ssb-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #181818 !important;
  line-height: 0;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.ssb-share__link:hover {
  color: var(--ssb-navy) !important;
  opacity: 0.75;
}
.ssb-share__link svg {
  display: block;
  width: 22px;
  height: 22px;
}
.ssb-post-grid { display: grid; gap: 1.15rem; }
.ssb-post-grid .ssb-card__title,
.ssb-post-grid .ssb-card__title a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Related Posts — asgam.com style */
.ssb-related {
  margin-top: 2.5rem;
  margin-bottom: 40px;
  padding-top: 0.25rem;
}
.ssb-related__head {
  position: relative;
  margin: 0 0 1.35rem;
  padding-bottom: 0;
  border-bottom: 1px solid #e5e5e5;
}
.ssb-related__title {
  display: inline-block;
  margin: 0;
  padding: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  border-bottom: 3px solid #c9a227;
  position: relative;
  bottom: -1px;
}
.ssb-related__title-main { color: #181818; }
.ssb-related__title-accent { color: #c9a227; margin-left: 0.28em; }

.ssb-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem 1.5rem;
}
.ssb-related__item[hidden] { display: none !important; }
.ssb-related__link {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.85rem;
  align-items: start;
  color: inherit;
}
.ssb-related__media {
  display: block;
  border-radius: 2px;
  overflow: hidden;
  background: #e8eaee;
}
.ssb-related__img {
  display: block;
  width: 100%;
  height: 78px;
  object-fit: cover;
}
.ssb-related__img--empty { min-height: 78px; }
.ssb-related__item-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: #181818;
  margin: 0 0 0.45rem;
  max-height: calc(1.35em * 3);
}
.ssb-related__link:hover .ssb-related__item-title {
  color: #c9a227;
}
.ssb-related__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f6fed;
}
.ssb-related__clock { flex-shrink: 0; color: #2f6fed; }

/* LOAD MORE with side rules (asgam): ── [LOAD MORE] ── */
.ssb-related__more-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
  border: 0;
}
.ssb-related__more-wrap::before,
.ssb-related__more-wrap::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #e5e5e5;
  min-width: 1rem;
}
.ssb-related__more-wrap[hidden] {
  display: none !important;
}
.ssb-related__more {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 160px;
  padding: 0.65rem 1.5rem;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #181818;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.ssb-related__more:hover {
  border-color: #c9a227;
  color: #c9a227;
}

@media (min-width: 640px) {
  .ssb-related__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ssb-related__link {
    grid-template-columns: 160px 1fr;
  }
  .ssb-related__img { height: 90px; }
}

/* Post tags — after content, before related */
.ssb-post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: 50px;
  margin-bottom: 50px;
  padding-top: 0;
  border-top: 0;
}
.ssb-post-tags__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #181818;
  margin-right: 0.15rem;
}
.ssb-post-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ssb-post-tags__tag {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  background: #ececec;
  color: #555;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 3px;
  line-height: 1.4;
  transition: background 0.15s ease, color 0.15s ease;
}
.ssb-post-tags__tag:hover {
  background: #c9a227;
  color: #fff;
}

/* —— Footer (match official compact bar) —— */
.ssb-footer {
  flex-shrink: 0;
  margin-top: auto;
  width: 100%;
  background: #13294b;
  color: rgba(255,255,255,.85);
  padding: 1.15rem 0;
  border: 0;
}
.ssb-footer__grid {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  padding: 0;
  min-height: 85px;
}
.ssb-footer__links { min-width: 0; width: 100%; }
.ssb-menu--footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  border: 0;
}
.ssb-menu--footer li {
  margin: 0;
  padding: 0;
  border: 0 !important;
  list-style: none;
  line-height: 1.25;
}
.ssb-menu--footer a {
  display: inline-block;
  color: var(--ssb-gold) !important;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  border: 0 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.ssb-menu--footer a:hover { color: var(--ssb-white) !important; }
.ssb-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  order: 0;
}
.ssb-footer__actions {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  align-content: center;
  width: 100%;
}
.ssb-footer__social {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.ssb-footer__social-img {
  display: inline-flex;
  width: 22px;
  height: 22px;
}
.ssb-footer__social-img img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.ssb-footer__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--ssb-gold);
  color: var(--ssb-gold) !important;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  letter-spacing: 0.04em;
  background: transparent;
  white-space: nowrap;
}
.ssb-footer__contact:hover { background: rgba(254,190,16,.12); }
.ssb-bet-btn--footer {
  min-height: 34px;
  padding: 0.45rem 1rem !important;
  font-size: 0.7rem !important;
  border-radius: 6px !important;
  font-weight: 800;
}
.ssb-footer__bottom { display: none; }
.ssb-footer__copy { margin: 0; font-size: 0.72rem; opacity: 0.55; }

.navigation.pagination { margin-top: 1.5rem; }
.nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nav-links a, .nav-links span {
  display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: 4px; background: var(--ssb-soft); font-weight: 700; font-size: 0.85rem;
}
.nav-links .current { background: var(--ssb-gold); color: var(--ssb-navy); }

/*
 * —— Mobile (图1): logo + BET HERE only, no category pills, stacked LATEST NEWS ——
 */
@media (max-width: 959px) {
  /* Mobile: logo + search + hamburger nav (replaces BET HERE) */
  .ssb-nav-toggle { display: inline-flex; }

  .ssb-header__top {
    padding: 20px 0;
    min-height: 68px;
  }
  .ssb-header__inner {
    gap: 0.75rem;
    width: min(100% - 24px, var(--ssb-container));
    align-items: center;
  }
  .ssb-header__brand { flex: 1 1 auto; min-width: 0; }
  .ssb-logo--mark .ssb-logo__gam,
  .ssb-logo--mark .ssb-logo__bling {
    font-size: 1.12rem;
  }
  .ssb-logo--mark .ssb-logo__news {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
  }
  .ssb-logo--mark .ssb-logo__star {
    font-size: 0.78rem;
  }
  .ssb-logo--mark .ssb-logo__pipe {
    width: 2px;
    height: 1.2em;
    margin: 0 0.4rem 0 0.45rem;
  }
  .ssb-logo img,
  .ssb-logo .logo,
  .custom-logo-link img,
  .ssb-header .custom-logo {
    width: 183px;
    max-width: min(183px, calc(100vw - 130px));
    height: 21px;
  }
  .ssb-header__actions {
    margin-left: auto;
    flex-shrink: 0;
    gap: 0.35rem;
    align-items: center;
  }

  /* 图1: no gray category bar under header on phone */
  .ssb-header__sub { display: none !important; }

  /* Footer logo: 50px gap above & below */
  .ssb-footer__grid { gap: 0; }
  .ssb-footer__brand {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .ssb-main { padding-top: 1rem; }

  .ssb-latest__heading {
    margin: 0 0 0.85rem;
    font-size: 13px;
  }

  .ssb-latest__grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .ssb-latest__feature {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .ssb-latest__body { min-height: 0; }

  .ssb-latest__media { border-radius: 8px; }
  .ssb-latest__img {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 366 / 205;
    object-fit: cover;
    border-radius: 8px;
  }
  .ssb-latest .ssb-badge {
    top: 10px;
    right: 10px;
    font-size: 9px;
    padding: 4px 10px;
  }

  .ssb-latest__meta {
    margin: 0;
    padding: 0 0 3px;
    border-bottom: 1px solid #febe10;
  }
  .ssb-latest__meta .ssb-meta--date {
    font-size: 8px;
    color: #002845;
  }

  .ssb-latest__title {
    font-size: 16px; /* was 22px — too large on phone */
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.25;
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .ssb-latest__excerpt {
    display: none !important;
  }
  .ssb-latest__side .ssb-side-item__excerpt {
    display: none !important;
  }
  /* 图1 mobile author = "STAR SPORTS CONTENT" only */
  .ssb-latest__author {
    margin: 0.35rem 0 0.25rem;
    padding-top: 0;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a8f98;
  }
  .ssb-latest__author-prefix { display: none; }

  /* Keep other mobile type from blowing up */
  .ssb-most-read__cards .ssb-card__title,
  .ssb-card__title {
    font-size: 14px;
  }
  .ssb-tabs__btn { font-size: 13px; min-width: 0; }
  .ssb-section-title { font-size: 13px; }

  /* Side list under featured — horizontal rows like official */
  .ssb-latest__side {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.5rem;
  }
  .ssb-latest__side .ssb-side-item {
    grid-template-columns: 120px 1fr;
    gap: 12px;
    margin-bottom: 18px;
    min-height: 0;
  }
  .ssb-latest__side .ssb-side-item__media,
  .ssb-latest__side .ssb-side-item__img {
    width: 120px;
    height: 80px;
    border-radius: 5px;
  }

  /* Carousel: tighter on phone; arrows vertically centered on thumb */
  .ssb-carousel {
    padding: 0 36px;
  }
  .ssb-carousel-btn {
    top: 50px; /* half of 100px thumb */
    transform: translateY(-50%);
  }
  .ssb-trending .ssb-card__img,
  .ssb-others .ssb-card__img {
    height: 100px;
    max-height: 100px;
  }
  /* Mobile: image + title only (hide date / excerpt) */
  .ssb-trending .ssb-card__body > .ssb-meta,
  .ssb-trending .ssb-card__body > .ssb-meta--date,
  .ssb-others .ssb-card__body > .ssb-meta,
  .ssb-others .ssb-card__body > .ssb-meta--date,
  .ssb-trending .ssb-card__excerpt,
  .ssb-others .ssb-card__excerpt {
    display: none !important;
  }
  .ssb-trending .ssb-card__title,
  .ssb-others .ssb-card__title {
    margin: 10px 0 0;
  }
}

/* —— Tablet —— */
@media (min-width: 640px) {
  .ssb-carousel__item { flex: 0 0 46%; }
  .ssb-most-read__cards { grid-template-columns: repeat(2, 1fr); }
  .ssb-side-item { grid-template-columns: 150px 1fr; gap: 12px; }
  .ssb-side-item__title { font-size: 12px; }
  .ssb-post-grid { grid-template-columns: repeat(2, 1fr); }
  /* Desktop/tablet footer: links | logo | actions */
  .ssb-footer__grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: stretch;
    text-align: left;
    gap: 1rem 1.5rem;
  }
  .ssb-footer__links { width: auto; justify-self: start; }
  .ssb-menu--footer { align-items: flex-start; }
  .ssb-footer__brand {
    width: auto;
    justify-self: center;
  }
  .ssb-footer__actions {
    justify-items: end;
    justify-self: end;
    width: auto;
  }
  .ssb-footer__social { justify-content: flex-end; }
}

/* —— Desktop: match Star Sports Extra —— */
@media (min-width: 960px) {
  .ssb-nav-toggle { display: none !important; }
  .ssb-header__top.is-hidden { transform: none; }

  .ssb-header__brand { flex: 0 0 auto; }
  .ssb-header__inner { gap: 1.5rem; }

  .ssb-logo--mark .ssb-logo__gam,
  .ssb-logo--mark .ssb-logo__bling {
    font-size: 1.4rem;
  }
  .ssb-logo--mark .ssb-logo__star {
    font-size: 1rem;
  }
  .ssb-logo--mark .ssb-logo__pipe {
    width: 2px;
    height: 1.4em;
  }
  .ssb-logo--mark .ssb-logo__news {
    font-size: 0.92rem;
  }

  .ssb-bet-btn { font-size: 15px; padding: 7px 20px; }

  .ssb-menu--secondary > li > a { padding: 15px 20px; font-size: 13px; }

  /* Official: [image 532 | copy 278] + side ~417 */
  .ssb-latest__grid {
    grid-template-columns: minmax(0, 810fr) minmax(0, 417fr);
    gap: 24px;
    align-items: start;
  }
  .ssb-latest__feature {
    grid-template-columns: minmax(0, 532fr) minmax(0, 278fr);
    gap: 24px;
    align-items: start;
  }
  .ssb-latest__img {
    width: 100%;
    height: 321px;
    max-height: 321px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 10px;
  }
  .ssb-latest__title { font-size: 22px; }
  .ssb-latest__body { min-height: 321px; }
  .ssb-latest__side .ssb-side-item {
    margin-bottom: 25px;
  }
  .ssb-latest__side .ssb-side-item:last-child { margin-bottom: 0; }

  .ssb-carousel__item { flex: 0 0 calc(25% - 0.75rem); }
  .ssb-trending .ssb-carousel__item { flex: 0 0 calc(20% - 0.8rem); }

  /* 3 equal columns like official col-lg-4 */
  .ssb-most-read__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
    align-items: start;
  }
  .ssb-most-read__cards {
    display: contents; /* two cards become siblings of the list */
  }
  .ssb-most-read__list .ssb-side-item {
    grid-template-columns: 150px 1fr;
    gap: 12px;
    margin-bottom: 25px;
  }
  .ssb-most-read__list .ssb-side-item__title {
    font-size: 12px;
    font-weight: 700;
    text-transform: none;
  }

  .ssb-layout { grid-template-columns: 1fr 300px; align-items: start; }
  .ssb-main { padding: 1.75rem 0 0; }
  .ssb-post-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1140px) {
  .ssb-carousel__item { flex: 0 0 calc(20% - 0.8rem); }
}
