    :root {
      --brand-red: #ef2b2d;
      --brand-red-dk: #bd171d;
      --brand-red-lt: #ff6462;
      --dark-nav: #18191d;
      --dark-footer: #17181c;
      --gray-bg: #ffffff;
      --gray-border: #e0e0e0;
      --text-main: #212121;
      --text-muted: #757575;
      --white: #ffffff;
      --success-soft: #e6faf7;
      --success-text: #0a6f64;
      --warning-soft: #fff1e5;
      --warning-text: #9b4c11;
    }

    * {
      box-sizing: border-box;
    }

    /* Dark-tone scrollbar to match the site theme (Chrome/Safari/Edge). */
    ::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }

    ::-webkit-scrollbar-track {
      background: var(--dark-footer);
    }

    ::-webkit-scrollbar-thumb {
      background: #3a3a3a;
      border-radius: 6px;
      border: 2px solid var(--dark-footer);
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--brand-red);
    }

    /* Firefox */
    html {
      scrollbar-color: #3a3a3a var(--dark-footer);
      scrollbar-width: thin;
    }

    body {
      margin: 0;
      font-family: "Sarabun", sans-serif;
      background: var(--gray-bg);
      color: var(--text-main);
      font-size: 15px;
      /* .home-section-fullbleed below uses width:100vw, which can be a few
         px wider than the visible viewport when a scrollbar is present;
         this guards against a stray horizontal scrollbar from that. */
      overflow-x: hidden;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    a:hover {
      color: var(--brand-red);
    }

    .btn-danger,
    .btn-danger:hover,
    .btn-danger:focus,
    .btn-danger:active,
    .btn-outline-danger:hover,
    .btn-outline-danger:focus,
    .btn-outline-danger:active {
      background: var(--brand-red) !important;
      border-color: var(--brand-red) !important;
      color: #fff !important;
    }

    .btn-outline-danger {
      color: var(--brand-red) !important;
      border-color: var(--brand-red) !important;
    }

    .text-danger {
      color: var(--brand-red) !important;
    }

    .news-ticker {
      background: var(--brand-red);
      color: #fff;
      font-size: 13px;
      overflow: hidden;
      white-space: nowrap;
    }

    .ticker-label {
      background: var(--brand-red-dk);
      padding: 6px 14px;
      font-weight: 400;
      letter-spacing: .5px;
      flex-shrink: 0;
    }

    .ticker-wrapper {
      overflow: hidden;
      padding: 6px 0;
      flex: 1;
      cursor: pointer;
    }

    .ticker-wrapper:hover .ticker-track {
      animation-play-state: paused;
    }

    .ticker-track a {
      color: #fff;
      text-decoration: none;
    }

    .ticker-track a:hover {
      text-decoration: underline;
    }

    .ticker-track {
      display: inline-block;
      animation: ticker linear infinite;
      animation-duration: 35s;
      /* fallback — JS will override */
      padding-left: 100%;
    }

    @keyframes ticker {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-100%);
      }
    }

    .breaking-badge {
      background: var(--brand-red);
      color: #fff;
      font-size: 11px;
      font-weight: 400;
      padding: 2px 7px;
      border-radius: 3px;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: 1;
      }

      50% {
        opacity: .6;
      }
    }

    .top-header {
      background: var(--white);
      background: linear-gradient(rgb(230, 230, 230) 0%, rgb(255, 255, 255) 15%, rgb(255, 255, 255) 100%);
      border-bottom: 1px solid var(--gray-border);
      padding: 10px 0;
    }

    .logo-text {
      display: inline-block;
      max-width: 420px;
      font-family: 'Kanit', sans-serif;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.16;
      color: #363636;
      letter-spacing: -.4px;
    }

    .logo-text span {
      color: var(--dark-nav);
    }

    .brand-lockup {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 0;
    }

    .brand-logo-link {
      display: inline-flex;
      flex: 0 0 auto;
      align-items: center;
    }

    .brand-logo {
      display: block;
      width: 90px;
      height: auto;
      object-fit: contain;
    }

    .brand-copy {
      min-width: 0;
    }

    .header-date {
      font-family: "Kanit", sans-serif;
      font-size: 13px;
      color: var(--text-muted);
    }

    .header-status {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 8px;
    }

    .social-icons a {
      color: var(--text-muted);
      font-size: 18px;
      margin-left: 10px;
      transition: color .2s;
    }

    .social-icons a:hover {
      color: var(--brand-red);
    }

    .live-tv-btn {
      display: inline-flex;
      align-items: center;
      cursor: pointer;
      transition: transform .18s, filter .18s;
    }

    .live-tv-btn:hover {
      transform: scale(1.05);
    }

    .live-tv-btn.is-active {
      filter: drop-shadow(0 0 6px rgba(220, 53, 69, .55));
    }

    .live-tv-btn__img {
      display: block;
      height: 22px;
      width: auto;
    }

    .live-tv-btn .live-dot {
      display: inline-block;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: #e52d27;
      animation: livePulse 1.4s ease-in-out infinite;
      flex-shrink: 0;
    }

    @keyframes livePulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: .4;
        transform: scale(.7);
      }
    }

    .radio-link {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 400;
      text-decoration: none;
      transition: color .2s;
    }

    .radio-link:hover {
      color: var(--brand-red);
    }

    .main-nav {
      background: var(--dark-nav);
      position: sticky;
      top: 0;
      z-index: 1000;
    }

    .main-nav .navbar-brand {
      display: none;
      color: var(--brand-red) !important;
      font-weight: 400;
      font-size: 16px;
      line-height: 1.2;
      white-space: normal;
    }

    .main-nav .nav-link {
      color: rgba(255, 255, 255, .85) !important;
      font-weight: 400;
      font-size: 14px;
      padding: 12px 14px !important;
      border-bottom: 3px solid transparent;
      transition: all .2s;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
      color: #fff !important;
      border-bottom-color: var(--brand-red);
    }

    .main-nav .dropdown-menu {
      background: var(--dark-nav);
      border: none;
      border-top: 3px solid var(--brand-red);
      border-radius: 0;
      max-height: calc(100vh - 90px);
      overflow-y: auto;
      min-width: 180px;
    }

    .main-nav .dropdown-item {
      color: rgba(255, 255, 255, .75);
      font-size: 14px;
      padding: 8px 16px;
    }

    .main-nav .dropdown-item:hover {
      background: var(--brand-red);
      color: #fff;
    }

    .main-nav .dropdown-item.active,
    .main-nav .dropdown-item:active {
      background: rgba(255, 255, 255, .14);
      color: #fff;
    }

    @media (min-width: 992px) {
      .main-nav .dropdown:hover>.dropdown-menu,
      .main-nav .dropdown:focus-within>.dropdown-menu {
        display: block;
        margin-top: 0;
      }
    }

    .main-nav input.form-control {
      height: 31px;
    }

    .nav-search-form {
      display: flex;
      align-items: center;
      flex: 0 0 40px;
      width: 40px;
      min-height: 38px;
      margin-left: auto;
      padding: 1px;
      overflow: hidden;
      background: transparent;
      border: 1px solid transparent;
      border-radius: 10px;
      box-shadow: none;
      transition: flex-basis .24s ease, width .24s ease, padding .24s ease, background-color .24s ease, border-color .24s ease;
    }
    .nav-search-form.is-expanded {
      flex-basis: clamp(220px, 21vw, 300px);
      width: clamp(220px, 21vw, 300px);
      padding: 3px 5px 3px 3px;
      background: rgba(255, 255, 255, .96);
      border-color: rgba(255, 255, 255, .42);
    }
    .nav-search-form.is-expanded:focus-within {
      border-color: var(--brand-red);
    }
    .nav-search-form input.nav-search-input {
      -webkit-appearance: none;
      appearance: none;
      flex: 0 1 0;
      min-width: 0;
      max-width: 0;
      width: 0;
      padding: 0;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      background: transparent !important;
      border: none !important;
      box-shadow: none !important;
      color: #202a22 !important;
      font-size: 14px;
      font-family: "Sarabun", sans-serif;
      line-height: 1.4;
      outline: none;
      transition: max-width .24s ease, width .24s ease, padding .24s ease, opacity .16s ease;
    }
    .nav-search-form.is-expanded input.nav-search-input {
      flex: 1 1 auto;
      max-width: 100%;
      width: auto;
      padding: 8px 10px 8px 13px;
      opacity: 1;
      pointer-events: auto;
    }
    .nav-search-form input.nav-search-input::placeholder {
      color: #7a847d;
      opacity: 1;
    }
    .nav-search-form input.nav-search-input::-webkit-search-cancel-button {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      cursor: pointer;
    }
    .nav-search-submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      flex: 0 0 36px;
      width: 36px;
      height: 36px;
      padding: 0;
      border: 0;
      border-radius: 9px;
      background: transparent;
      color: #fff;
      cursor: pointer;
      font-size: 15px;
      line-height: 1;
      box-shadow: none !important;
      transition: background-color .2s ease, transform .2s ease;
    }
    .nav-search-submit:hover {
      background: transparent;
      transform: translateY(-1px);
    }
    .nav-search-form.is-expanded .nav-search-submit {
      background: var(--brand-red);
    }
    .nav-search-form.is-expanded .nav-search-submit:hover {
      background: var(--brand-red-dk);
    }
    .nav-search-submit:focus-visible {
      outline: 3px solid rgba(255, 255, 255, .8);
      outline-offset: 2px;
    }

    .navbar-toggler {
      border-color: rgba(255, 255, 255, .3);
    }

    .navbar-toggler-icon {
      filter: invert(1);
    }

    @media (max-width: 991.98px) {
      #mainNav.offcanvas {
        width: min(85vw, 300px);
        background: var(--dark-nav);
      }

      #mainNav .offcanvas-header {
        border-bottom: 1px solid rgba(255, 255, 255, .12);
      }

      #mainNav .offcanvas-title {
        color: #fff;
        font-weight: 400;
        font-size: 15px;
      }

      #mainNav .offcanvas-body {
        padding: 0.75rem 0;
        overflow-y: auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
      }

      #mainNav .navbar-nav {
        flex-direction: column;
      }

      #mainNav .main-nav .nav-link,
      #mainNav .nav-link {
        padding: 12px 20px !important;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
      }

      #mainNav .dropdown-menu {
        position: static !important;
        margin: 0 !important;
        border-top: none;
        background: rgba(0, 0, 0, .18);
      }

      #mainNav .nav-search-form {
        flex: 0 0 40px;
        min-width: 40px;
        width: 40px;
        margin: 14px 20px 4px auto;
      }

      #mainNav .nav-search-form.is-expanded {
        flex: 0 1 min(100%, 300px);
        width: min(100%, 300px);
      }

      #mainNav .nav-search-form.is-expanded .nav-search-input {
        width: 100%;
      }
    }

    .section-wrap {
      background: var(--white);
      border-radius: 6px;
      padding: 20px;
      margin-bottom: 24px;
    }

    .section-heading {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
    }

    .section-heading h1,
    .section-heading h2 {
      font-size: 20px;
      font-weight: 400;
      margin: 0;
      padding-left: 12px;
      border-left: 5px solid var(--brand-red);
    }

    .section-heading .view-all {
      margin-left: auto;
      font-size: 13px;
      color: var(--brand-red);
      font-weight: 400;
    }

    .section-heading .view-all:hover {
      text-decoration: underline;
    }

    .section-submeta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      margin-top: 10px;
      font-size: 13px;
      color: var(--text-muted);
    }

    .section-note {
      margin: 0;
      font-size: 13px;
      color: var(--text-muted);
      font-weight: 400;
    }

    .category-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-left: auto;
    }

    .category-chip {
      border: 1px solid var(--gray-border);
      background: #fff;
      color: var(--text-muted);
      border-radius: 999px;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 400;
      line-height: 1.2;
      transition: all .2s ease;
    }

    .category-chip:hover,
    .category-chip.is-active {
      background: var(--brand-red);
      border-color: var(--brand-red);
      color: #fff;
    }

    .cover {
      position: relative;
      overflow: hidden;
      min-height: 220px;
    }

    .cover img {
      width: 100%;
      height: 100%;
      object-fit: cover; object-position: center;
      display: block;
    }

    .cover__placeholder {
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      width: 100%;
      height: 100%;
      min-height: inherit;
      padding: 22px;
      color: #fffaf3;
      background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .22), transparent 34%),
        linear-gradient(135deg, var(--cover-start), var(--cover-end));
    }

    .cover__placeholder::after {
      content: "";
      position: absolute;
      inset: 16px;
      border-radius: 7px;
      border: 1px solid rgba(255, 255, 255, .22);
      pointer-events: none;
    }

    .cover__label {
      font-size: .82rem;
      letter-spacing: .12em;
      text-transform: uppercase;
      opacity: .88;
    }

    .cover__title {
      width: min(260px, 100%);
      margin: 10px 0 0;
      font-size: clamp(1.2rem, 2vw, 1.9rem);
      font-weight: 400;
      line-height: 1.05;
    }

    .cover__corner {
      position: absolute;
      right: 18px;
      top: 18px;
      padding: 8px 10px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .15);
      backdrop-filter: blur(10px);
      font-size: .8rem;
    }

    .hero-card {
      position: relative;
      border-radius: 6px;
      overflow: hidden;
      display: block;
      height: 100%;
      background: #ddd;
    }

    .hero-card .cover {
      width: 100%;
      height: 100%;
      min-height: 240px;
      aspect-ratio: 299 / 168;
    }

    .hero-card .cover__label,
    .hero-card .cover__title,
    .hero-card .cover__corner {
      display: none;
    }

    .hero-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(transparent, rgba(0, 0, 0, .85));
      padding: 30px 18px 18px;
    }

    .hero-overlay .badge-cat {
      background: var(--brand-red);
      color: #fff;
      font-size: 12px;
      font-weight: 400;
      padding: 4px 10px;
      border-radius: 3px;
      display: inline-block;
      margin-bottom: 8px;
    }

    .hero-overlay h3 {
      color: #fff;
      font-size: 18px;
      font-weight: 400;
      line-height: 1.45;
      margin: 0 0 8px;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .hero-overlay .meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: rgba(255, 255, 255, .78);
    }

    .hero-overlay .meta .hero-meta-category {
      color: #fff;
      font-weight: 400;
    }

    .hero-overlay .meta .hero-meta-category::after {
      content: none;
    }

    .hero-overlay .meta .hero-meta-separator {
      color: rgba(255, 255, 255, .6);
      font-weight: 400;
      margin: 0 -2px;
    }

    .hero-stat-chip {
      position: absolute;
      top: 14px;
      right: 14px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 11px;
      border-radius: 999px;
      background: rgba(0, 0, 0, .45);
      color: #fff;
      font-size: 12px;
      font-weight: 400;
      backdrop-filter: blur(10px);
      box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    }

    @media (min-width: 768px) {
      /* Keep the desktop hero images proportionate to the two-column layout. */
      #heroSlot > .col-md-8 {
        display: flex;
      }

      #heroSlot > .col-md-8 > .hero-card {
        flex: 1 1 auto;
      }

      #heroSlot > .col-md-4 > .d-flex {
        min-height: 0;
      }

      #heroSlot .hero-card--compact {
        flex: 1 1 0;
        min-height: 0;
      }

      #heroSlot .hero-card--compact .cover {
        min-height: 0;
        aspect-ratio: 299 / 168;
      }
    }

    .hero-card--compact .hero-overlay {
      padding: 16px 14px 12px;
    }

    .hero-card--compact .hero-overlay h3 {
      font-size: 15px;
      -webkit-line-clamp: 2;
    }

    .hero-card--compact .hero-stat-chip {
      top: 10px;
      right: 10px;
      padding: 6px 9px;
      font-size: 11px;
    }

    .news-card {
      background: var(--white);
      border-radius: 6px;
      overflow: hidden;
      transition: box-shadow .2s;
      height: 100%;
    }

    .news-card:hover {
      box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    }

    .news-card .cover {
      width: 100%;
      min-height: unset;
      aspect-ratio: 16 / 9;
    }

    .news-card .cover__placeholder::after {
      inset: 12px;
      border-radius: 14px;
    }

    .news-card .card-body {
      padding: 14px;
    }

    .news-card .card-title {
      font-size: 15px;
      font-weight: 400;
      line-height: 1.5;
      margin-bottom: 8px;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .news-card .card-text {
      font-size: 13px;
      color: var(--text-muted);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      min-height: 38px;
    }

    .news-card .story-summary {
      margin: 0 0 8px;
      font-size: 13px;
      line-height: 1.6;
      color: var(--text-muted);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .news-card .card-meta {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 10px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .badge-cat {
      background: var(--brand-red);
      color: #fff;
      font-size: 11px;
      font-weight: 400;
      padding: 3px 8px;
      border-radius: 3px;
    }

    .list-news-item {
      display: flex;
      padding: 12px 0;
      border-bottom: 1px solid var(--gray-border);
    }

    .list-news-item:last-child {
      border-bottom: none;
    }

    .list-news-item .cover {
      width: 90px;
      height: 64px;
      min-height: 64px;
      border-radius: 4px;
      flex-shrink: 0;
    }

    .list-news-item .cover__placeholder {
      padding: 0;
    }

    .list-news-item .cover__placeholder::after,
    .list-news-item .cover__label,
    .list-news-item .cover__title,
    .list-news-item .cover__corner {
      display: none;
    }

    .list-news-item .title {
      font-size: 14px;
      font-weight: 400;
      line-height: 1.45;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .list-news-item .meta {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    .widget {
      background: var(--white);
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 20px;
      min-height: 300px;
    }

    .widget-header {
      background: var(--brand-red);
      color: #fff;
      font-weight: 400;
      font-size: 14px;
      letter-spacing: 0.04em;
      padding: 11px 16px;
      display: flex;
      align-items: center;
    }

    .widget-body {
      padding: 10px;
    }

    /* Spotlight Popular Widget */
    .spotlight-popular-widget {
      border: 1px solid #e8e8e8;
    }

    .spotlight-popular-widget .widget-header {
      background: #111;
      font-size: 13px;
      letter-spacing: 0.12em;
    }

    .spotlight-popular-tabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      background: #fafafa;
      border-bottom: 1px solid #e8e8e8;
    }

    .spotlight-popular-tabs .spotlight-popular-tab {
      border: none;
      border-bottom: 2px solid transparent;
      border-radius: 0;
      background-color: transparent;
      color: #999;
      font-size: 11px;
      font-weight: 400;
      letter-spacing: 0.1em;
      padding: 11px 6px 9px;
      text-align: center;
      transition: color 0.15s;
      cursor: pointer;
      outline: none;
      box-shadow: none;
    }

    .spotlight-popular-tabs .spotlight-popular-tab:hover,
    .spotlight-popular-tabs .spotlight-popular-tab:focus,
    .spotlight-popular-tabs .spotlight-popular-tab:focus-visible {
      color: #333;
      background-color: transparent;
      box-shadow: none;
      outline: none;
    }

    .spotlight-popular-tabs .spotlight-popular-tab.active,
    .spotlight-popular-tabs .spotlight-popular-tab.active:hover,
    .spotlight-popular-tabs .spotlight-popular-tab.active:focus,
    .spotlight-popular-tabs .spotlight-popular-tab.active:focus-visible {
      color: var(--brand-red);
      background-color: transparent;
      border-color: var(--brand-red);
      box-shadow: none;
      outline: none;
    }

    .spotlight-popular-widget .widget-body {
      padding: 4px 14px 2px;
      min-height: 405px;
      height: auto;
      overflow: hidden;
    }

    .widget-empty {
      margin: 0;
      color: var(--text-muted);
      font-size: 13px;
      padding: 16px 0;
    }

    .popular-fallback-notice {
      margin: 6px 0 2px;
      font-size: 10px;
      font-weight: 400;
      letter-spacing: 0.1em;
      color: #bbb;
      text-transform: uppercase;
    }

    .price-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid var(--gray-border);
      font-size: 14px;
    }

    .price-row:last-child {
      border-bottom: none;
    }

    .price-up {
      color: #2e7d32;
      font-weight: 400;
    }

    .price-down {
      color: var(--brand-red);
      font-weight: 400;
    }

    .popular-item {
      display: flex;
      gap: 12px;
      padding: 9px 8px;
      margin: 0 -8px;
      border-radius: 6px;
      border-bottom: 1px solid #e8e8e8;
      align-items: flex-start;
      transition: background-color 0.15s;
    }

    .popular-item:last-child {
      border-bottom: none;
    }

    .popular-item:hover {
      background-color: #f6f6f6;
    }

    .popular-num {
      display: none;
    }

    /* Prevent CLS: hide items beyond slidesToShow(3) until slick-carousel initializes,
       so the pre-JS stacked list does not collapse in height once slick takes over. */
    #popularNews:not(.slick-initialized) > .popular-item:nth-child(n+4) {
      display: none;
    }

    .popular-title {
      font-size: 13px;
      font-weight: 400;
      line-height: 1.5;
      color: #16181c;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: color 0.15s;
    }

    .popular-title:hover {
      color: var(--brand-red);
      text-decoration: none;
    }

    .popular-meta {
      margin-top: 4px;
      font-size: 11px;
      color: #aaa;
      font-weight: 400;
    }

    .weather-card .widget-header {
      background: #43a047;
    }

    .weather-columns {
      display: flex;
      align-items: flex-start;
    }

    .weather-current-col {
      flex: 1;
      text-align: center;
    }

    .weather-icon-main {
      font-size: 48px;
    }

    .weather-forecast-col {
      padding-top: 4px;
    }

    .weather-forecast-row {
      display: flex;
      gap: 14px;
      text-align: center;
    }

    .weather-temp {
      font-size: 26px;
      font-weight: 400;
      color: #000000;
      line-height: 1;
    }

    .weather-city {
      font-size: 13px;
      font-weight: 400;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .weather-desc {
      font-size: 12px;
      color: var(--text-muted);
    }

    .ad-banner {
      background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: rgba(255, 255, 255, .3);
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .ad-banner.leaderboard {
      /* height: 90px; */
    }

    .ad-banner.rectangle {
      width: 100%;
      max-width: 100%;
      height: auto;
      aspect-ratio: 300 / 250;
    }

    /* Slot has a booked ad — strip the empty-slot look so the creative shows clean. */
    .ad-banner--filled {
      background: none;
      color: inherit;
      font-size: inherit;
      font-weight: 400;
      letter-spacing: normal;
      text-transform: none;
    }

    /* Code / AdSense creative: the raw <ins> is placed as a child of the
       centering `.ad-banner` flexbox. It needs a full-width block context or
       responsive AdSense reads availableWidth=0 and renders nothing. */
    .ad-code-embed {
      width: 100%;
      max-width: 100%;
      min-width: 0;
      overflow: hidden;
    }
    .ad-code-embed .adsbygoogle {
      display: block;
      width: 100%;
      max-width: 100%;
    }

    /* "โฆษณา" label above every slot that is showing a real booked creative.
       Stays in normal flow and never overlaps the creative — AdSense policy
       forbids obscuring any part of an ad. */
    .ad-banner--filled {
      flex-direction: column;
      align-items: stretch;
      justify-content: flex-start;
      height: auto;
      overflow: visible;
    }
    .ad-banner.rectangle.ad-banner--filled {
      aspect-ratio: auto;
    }
    .ad-banner.leaderboard.ad-banner--filled {
      height: auto !important;
    }
    .ad-banner--filled::before {
      content: "Advertisement";
      text-transform: uppercase;
      align-self: flex-start;
      margin-bottom: 4px;
      font-size: 10px;
      line-height: 1.4;
      letter-spacing: .3px;
      color: var(--text-muted, #8a8a8a);
    }

    .footer-top {
      background: var(--dark-nav);
      color: rgba(255, 255, 255, .8);
      padding: 40px 0 24px;
    }

    .footer-top input::placeholder {
      color: rgba(255, 255, 255, .65) !important;
    }

    .footer-logo {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      max-width: 420px;
      font-family: 'Kanit', sans-serif;
      font-size: 22px;
      font-weight: 400;
      line-height: 1.12;
      color: rgba(255, 255, 255, .92);
      letter-spacing: -.4px;
      margin-bottom: 8px;
      text-decoration: none;
    }

    .footer-logo:hover {
      color: #fff;
    }

    .footer-logo__img {
      flex: 0 0 auto;
      width: 90px;
      height: auto;
      object-fit: contain;
    }

    .footer-logo__text {
      min-width: 0;
    }

    .footer-logo span {
      color: #fff;
    }

    .footer-logo__sub {
      display: block;
      margin-top: 3px;
      color: rgba(255, 255, 255, .58);
      font-family: "Sarabun", sans-serif;
      font-size: 13px;
      font-weight: 400;
      letter-spacing: .2px;
    }

    .footer-contact-info {
      list-style: none;
      margin: 14px 0 0;
      padding: 0;
    }

    .footer-contact-info li {
      display: flex;
      align-items: flex-start;
      gap: 8px;
      font-size: 13px;
      line-height: 1.5;
      color: rgba(255, 255, 255, .6);
      margin-bottom: 8px;
    }

    .footer-contact-info li i {
      flex: 0 0 auto;
      margin-top: 2px;
      color: rgba(255, 255, 255, .4);
    }

    .footer-contact-info li a {
      color: rgba(255, 255, 255, .6);
      text-decoration: none;
    }

    .footer-contact-info li a:hover {
      color: #fff;
    }

    .footer-top h6 {
      color: #fff;
      font-weight: 400;
      font-size: 14px;
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--brand-red);
      display: inline-block;
    }

    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-links li {
      margin-bottom: 8px;
    }

    .footer-links a {
      color: rgba(255, 255, 255, .65);
      font-size: 13px;
      transition: color .2s;
    }

    .footer-links a:hover {
      color: var(--brand-red);
    }

    .footer-social a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .2);
      color: rgba(255, 255, 255, .7);
      font-size: 16px;
      margin-right: 8px;
      transition: all .2s;
    }

    .footer-social a:hover {
      background: var(--brand-red);
      border-color: var(--brand-red);
      color: #fff;
    }

    .footer-bottom {
      background: var(--dark-footer);
      color: rgba(255, 255, 255, .4);
      font-size: 12px;
      padding: 14px 0;
      text-align: center;
      height: 210px;
      margin-bottom: -300px;
    }

    #emptyState h3 {
      font-size: 20px;
      font-weight: 400;
      margin-bottom: 10px;
    }

    #emptyState p {
      margin: 0;
      color: var(--text-muted);
      line-height: 1.7;
    }

    .form-control:focus {
      color: var(--bs-body-color);
      background-color: var(--bs-body-bg);
      border-color: #86b7fe;
      outline: 0;
      box-shadow: 0 0 0 .25rem rgba(0, 0, 0, 0);
    }

    .category-masthead {
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(90deg, rgba(8, 13, 11, .92), rgba(8, 13, 11, .72)),
        linear-gradient(135deg, #15241a, #3f7f4b);
      color: #fff;
      min-height: 190px;
      display: flex;
      align-items: end;
    }

    .category-masthead.has-image {
      background:
        linear-gradient(90deg, rgba(8, 13, 11, .92), rgba(8, 13, 11, .66)),
        var(--masthead-image) center / cover no-repeat;
    }

    .category-masthead::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, .35));
      pointer-events: none;
    }

    .category-masthead__inner {
      position: relative;
      z-index: 1;
      padding: 52px 0 34px;
    }

    .category-masthead__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
      color: rgba(255, 255, 255, .76);
      font-size: 13px;
      font-weight: 400;
    }

    .category-masthead__eyebrow::before {
      content: "";
      display: inline-block;
      width: 28px;
      height: 3px;
      border-radius: 99px;
      background: var(--brand-red);
    }

    .category-masthead h1 {
      margin: 0;
      font-size: 30px;
      font-weight: 400;
      line-height: 1.25;
    }

    .category-masthead p {
      max-width: 760px;
      margin: 10px 0 0;
      color: rgba(255, 255, 255, .78);
      line-height: 1.7;
      font-size: 14px;
    }

    .news-stage {
      background: #fff;
      padding: 34px 0 42px;
    }

    .news-stage--group {
      padding-top: 22px;
    }

    .news-container {
      max-width: 1120px;
    }

    .group-spotlight {
      display: block;
      margin-bottom: 26px;
    }

    .group-spotlight.has-sidebar {
      display: grid;
      grid-template-columns: minmax(0, 1.72fr) minmax(300px, .88fr);
      gap: 24px;
      align-items: start;
    }

    .group-spotlight__main,
    .group-spotlight__sidebar {
      min-width: 0;
    }

    .group-spotlight__secondary {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      margin-top: 12px;
    }

    .group-spotlight__secondary-item {
      min-width: 0;
    }

    .group-spotlight__secondary .hero-card {
      box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
    }

    .group-spotlight__secondary .hero-card .cover {
      aspect-ratio: 16 / 9;
      min-height: unset;
    }

    .group-spotlight__sidebar {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .group-page-columns {
      display: grid;
      grid-template-columns: minmax(0, 1.72fr) minmax(300px, .88fr);
      gap: 24px;
      align-items: start;
    }

    .group-page-columns__main,
    .group-page-columns__sidebar {
      min-width: 0;
    }

    .group-page-columns__main > .category-news-section {
      width: 100%;
    }

    .group-page-columns__sidebar {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    /* AdSense Auto uses the sidebar as its available-width boundary. Do not
       constrain its height or clip it: Google may choose a taller creative. */
    .group-page-columns__ad {
      width: 100%;
      max-width: 100%;
      margin: 0;
      overflow: visible;
    }

    .group-page-columns__ad-label {
      margin: 0 0 6px;
      color: var(--text-muted, #8a8a8a);
      font-size: 10px;
      font-weight: 400;
      letter-spacing: .12em;
      line-height: 1;
      text-align: center;
    }

    .group-page-columns__ad .ad-banner.rectangle {
      width: 100%;
      max-width: 100%;
      min-height: 0;
      margin: 0;
    }

    /* Filled slots already use the external label above. */
    .group-page-columns__ad .ad-banner--filled::before {
      display: none;
    }

    .group-page-columns__sidebar .tag-hit-box {
      margin: 0;
      border-radius: 7px;
    }

    @media (min-width: 992px) {
      .group-page-columns__sidebar {
        position: sticky;
        top: 76px;
        align-self: start;
        overflow-y: auto;
        padding-right: 4px;
        scrollbar-width: thin;
      }
    }

    .hero-side-list--spotlight .hero-side-card:last-child {
      margin-bottom: 0;
      padding-bottom: 0;
      border-bottom: none;
    }

    .lead-layout.has-sidebar {
      display: grid;
      grid-template-columns: minmax(0, 1.85fr) minmax(320px, .95fr);
      gap: 28px;
      align-items: start;
      margin-bottom: 34px;
    }

    .lead-layout__main,
    .lead-layout__sidebar {
      min-width: 0;
    }

    .lead-layout__sidebar {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .lead-layout {
      display: block;
      margin-bottom: 28px;
    }

    .hero-main-card {
      position: relative;
      display: block;
      aspect-ratio: 16 / 9;
      border-radius: 6px;
      overflow: hidden;
      background: #111;
      color: #fff;
      box-shadow: 0 14px 35px rgba(0, 0, 0, .12);
    }

    .hero-main-card img,
    .hero-placeholder {
      width: 100%;
      height: 100%;
      object-fit: cover; object-position: center;
      display: block;
      filter: saturate(.78) contrast(1.05);
    }

    .hero-placeholder {
      background: linear-gradient(135deg, #111, #35633d);
    }

    .hero-main-card::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .86) 100%);
      pointer-events: none;
    }

    .hero-main-overlay {
      position: absolute;
      z-index: 1;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 36px 34px 30px;
    }

    .hero-main-title {
      margin: 10px 0 8px;
      color: #fff;
      font-size: 28px;
      font-weight: 400;
      line-height: 1.36;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .hero-main-summary {
      margin: 0 0 10px;
      color: rgba(255, 255, 255, .78);
      font-size: 14px;
      line-height: 1.65;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .hero-main-meta,
    .hero-side-meta,
    .grid-card-meta {
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 400;
    }

    .hero-main-meta {
      color: rgba(255, 255, 255, .72);
    }

    .hero-side-list {
      display: flex;
      flex-direction: column;
      gap: 0;
      min-width: 0;
    }

    .lead-layout__sidebar .hero-side-card:last-child {
      margin-bottom: 0;
    }

    .hero-side-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 132px;
      gap: 16px;
      padding: 0 0 18px;
      margin-bottom: 18px;
      border-bottom: 1px solid var(--gray-border);
      color: var(--text-main);
    }

    .hero-side-card:hover .hero-side-title,
    .grid-card:hover .grid-card-title {
      color: var(--brand-red);
    }

    .hero-side-img {
      grid-column: 2;
      grid-row: 1;
      width: 132px;
      aspect-ratio: 16 / 9;
      border-radius: 5px;
      overflow: hidden;
      background: #ddd;
    }

    .hero-side-img img,
    .grid-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover; object-position: center;
      display: block;
    }

    .hero-side-img .hero-placeholder {
      min-height: 0;
      height: 100%;
    }

    .hero-side-body {
      min-width: 0;
    }

    .hero-side-title {
      color: var(--text-main);
      font-size: 16px;
      font-weight: 400;
      line-height: 1.48;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: color .2s;
    }

    .news-section-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 20px;
      padding-top: 4px;
    }

    .news-section-title {
      margin: 0;
      padding-left: 13px;
      border-left: 5px solid var(--brand-red);
      font-size: 22px;
      font-weight: 400;
      line-height: 1.25;
    }

    .news-section-note {
      margin: 7px 0 0;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 400;
    }

    .news-search-form {
      display: flex;
      width: min(360px, 100%);
      flex: 0 0 auto;
    }

    .news-search-form .form-control {
      border-radius: 999px 0 0 999px;
      border-color: var(--gray-border);
      min-height: 38px;
    }

    .news-search-form .btn {
      border-radius: 0 999px 999px 0;
      min-width: 46px;
    }

    .grid-card {
      display: grid;
      grid-template-columns: 150px minmax(0, 1fr);
      gap: 15px;
      min-height: 100%;
      color: var(--text-main);
    }

    .grid-card-img {
      width: 150px;
      aspect-ratio: 16 / 9;
      border-radius: 5px;
      overflow: hidden;
      background: #ddd;
    }

    .grid-card-img .hero-placeholder {
      min-height: 0;
      height: 100%;
    }

    .grid-card-body {
      min-width: 0;
      padding-bottom: 18px;
      border-bottom: 1px solid var(--gray-border);
    }

    .grid-card-title {
      color: var(--text-main);
      font-size: 16px;
      font-weight: 400;
      line-height: 1.48;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      transition: color .2s;
    }

    .grid-card-summary {
      margin-top: 5px;
      color: var(--text-muted);
      font-size: 13px;
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .grid-card-meta {
      margin-top: 8px;
    }

    .pagination-wrap .page-link {
      min-width: 38px;
      height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: none;
      border-radius: 50%;
      margin: 0 3px;
      color: var(--text-main);
      font-weight: 400;
      background: #f4f5f4;
    }

    .pagination-wrap .active .page-link,
    .pagination-wrap .page-link:hover {
      background: var(--brand-red);
      color: #fff;
    }

    .social-strip {
      margin-top: 38px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .social-strip a {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 46px;
      border-radius: 5px;
      background: #eef0ee;
      color: #1f1f1f;
      font-weight: 400;
      font-size: 14px;
    }

    .social-strip a:hover {
      background: var(--brand-red);
      color: #fff;
    }

    .empty-news {
      border: 1px solid var(--gray-border);
      border-radius: 6px;
      padding: 30px;
      text-align: center;
      color: var(--text-muted);
    }

    @media (max-width: 991px) {
      .header-status {
        align-items: flex-start;
      }

      .category-chips {
        margin-left: 0;
      }

      .lead-layout.has-sidebar {
        grid-template-columns: 1fr;
      }

      .group-spotlight.has-sidebar {
        grid-template-columns: 1fr;
      }

      .group-page-columns {
        grid-template-columns: 1fr;
      }

      .group-spotlight__secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }



      .social-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 767px) {
      /* Desktop 728x90 leaderboard slots: on phones show them full-width when
         a real ad is booked (empty slots stay hidden). AdSense units are
         responsive so Google serves a mobile-sized banner; the ADVERTISEMENT
         label stays above it. */
      .ad-banner.leaderboard.ad-banner--filled {
        display: flex !important;
        width: 100% !important;
        max-width: 100%;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
      }
      /* Mobile header: logo and live/social share the first row; the ad spans
         the full second row. display:contents promotes the two inner items
         into the outer grid without changing the shared PHP markup. */
      .top-header .container > .d-flex {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start !important;
        gap: 10px 8px !important;
      }
      .top-header .container > .d-flex > .d-flex {
        display: contents !important;
      }
      .top-header .brand-lockup {
        grid-column: 1;
        grid-row: 1;
      }
      .top-header .header-status {
        grid-column: 2;
        grid-row: 1;
        align-items: flex-end;
        justify-self: end;
      }
      .top-header .ad-banner.leaderboard.ad-banner--filled {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100% !important;
        flex: 1 1 100%;
        min-width: 0;
        order: 9;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--gray-border);
      }
      .ad-banner.leaderboard.ad-banner--filled .ad-code-embed,
      .ad-banner.leaderboard.ad-banner--filled .adsbygoogle {
        min-height: 50px;
      }

      .main-nav .navbar-brand {
        display: block;
      }

      .brand-lockup {
        gap: 10px;
      }

      /* On phones the logo alone is enough brand identification; hide the
         long bilingual title/date to keep the header compact. */
      .top-header .brand-copy {
        display: none;
      }

      .brand-logo {
        width: 120px;
        max-width: 100%;
        height: auto;
      }

      .logo-text {
        font-size: 17px;
        max-width: 100%;
      }

      .footer-logo {
        font-size: 18px;
        max-width: 100%;
      }

      .hero-overlay h3 {
        font-size: 15px;
      }

      .section-heading {
        flex-direction: column;
        align-items: flex-start;
      }

      .category-chips {
        width: 100%;
      }

      .category-masthead {
        min-height: 150px;
      }

      .category-masthead__inner {
        padding: 34px 0 26px;
      }

      .category-masthead h1 {
        font-size: 24px;
      }

      .news-stage {
        padding-top: 22px;
      }

      .news-stage--group {
        padding-top: 14px;
      }



      .hero-main-overlay {
        padding: 28px 20px 20px;
      }

      .hero-main-title {
        font-size: 22px;
      }

      .hero-side-card,
      .grid-card {
        grid-template-columns: 116px minmax(0, 1fr);
      }

      .hero-side-img,
      .grid-card-img {
        grid-column: 1;
        width: 116px;
      }

      .hero-side-title,
      .grid-card-title {
        font-size: 15px;
      }

      .grid-card-summary,
      .hero-main-summary {
        display: none;
      }

      .news-section-head {
        display: block;
      }

      .news-search-form {
        margin-top: 14px;
        width: 100%;
      }

      .social-strip {
        grid-template-columns: 1fr;
      }
    }

    /* ── Home page components ──────────────────────────────────────────────── */

    /* News strip */
    .home-news-strip { margin-bottom: 0; }
    .news-strip-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 8px; overflow: hidden; height: 100%; border: 1px solid #e0e0e0; }
    .news-strip-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
    .news-strip-card .cover--strip { aspect-ratio: 16/9; /* height: 90px; */ }
    .news-strip-card .cover--strip img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
    .news-strip-body { padding: 8px; }
    .news-strip-title { font-size: .8rem; font-weight: 400; line-height: 1.4; margin: 4px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* Featured news list */
    .featured-news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .featured-list-item { display: flex; gap: 12px; text-decoration: none; color: inherit; padding: 8px; border-radius: 8px; background: #fff; border: 1px solid #e0e0e0; transition: background .15s; }
    .featured-list-item:hover { background: #f5f5f5; color: var(--brand-red); }
    .featured-list-img { flex-shrink: 0; width: 170px; aspect-ratio: 16/9; border-radius: 4px; overflow: hidden; }
    .featured-list-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
    .featured-list-img .hero-placeholder { width: 100%; height: 100%; }
    .featured-list-body { flex: 1; min-width: 0; }
    .featured-list-title { font-size: .88rem; font-weight: 400; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .featured-list-meta { font-size: .72rem; color: #757575; margin-top: 4px; }

    /* Live player */
    .live-player-wrap { background: #000; border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; position: relative; }
    .live-player-video { width: 100%; height: 100%; display: block; }
    .live-player-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.65); color: #fff; font-size: .78rem; padding: 6px 12px; }
    .live-badge { background: #e52d27; color: #fff; font-size: .6rem; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 6px; font-weight: 400; animation: pulse-badge 1.5s ease-in-out infinite; }
    .home-live-section { margin-top: 8px; }
    .live-showcase {
      position: relative;
      overflow: hidden;
      border-radius: 6px;
      padding: 28px;
      background: linear-gradient(135deg, #0f1923 0%, #182a3a 55%, #0f1923 100%);
      border-top: 3px solid var(--brand-red);
      box-shadow: 0 2px 20px rgba(0,0,0,.22);
    }
    .live-showcase__panel { height: 100%; position: relative; z-index: 1; }
    .live-showcase__panel--player { display: flex; flex-direction: column; gap: 16px; }
    .live-showcase__panel--schedule { display: flex; }
    .live-showcase__panel--schedule .live-schedule-mockup { flex: 1; margin-top: 0; }
    .live-showcase__intro { margin-bottom: 2px; }
    .live-showcase__eyebrow {
      margin: 0 0 8px;
      color: rgba(204, 239, 211, .92);
      font-size: .72rem;
      font-weight: 400;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .live-showcase__title {
      margin: 0;
      color: #fff;
      font-size: clamp(1.45rem, 2vw, 2rem);
      line-height: 1.18;
      font-weight: 400;
    }
    .live-showcase__summary {
      margin: 10px 0 0;
      max-width: 44rem;
      color: rgba(233, 240, 249, .78);
      font-size: .92rem;
      line-height: 1.6;
    }
    .live-showcase__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
    .live-showcase__cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 10px 18px;
      border-radius: 999px;
      background: #fff;
      color: #12263f;
      font-size: .82rem;
      font-weight: 400;
      letter-spacing: .01em;
      text-decoration: none;
      box-shadow: 0 10px 18px rgba(7, 18, 38, .18);
      transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
    }
    .live-showcase__cta:hover {
      color: #12263f;
      transform: translateY(-1px);
      box-shadow: 0 14px 24px rgba(7, 18, 38, .24);
      text-decoration: none;
    }
    .live-showcase__cta--ghost {
      background: rgba(255, 255, 255, .08);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, .18);
      box-shadow: none;
    }
    .live-showcase__cta--ghost:hover {
      background: rgba(255, 255, 255, .14);
      color: #fff;
      box-shadow: none;
    }
    .live-player-wrap--showcase {
      border-radius: 8px;
      border: 1px solid rgba(255, 255, 255, .1);
      box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    }
    .live-schedule-mockup { margin-top: 16px; border-radius: 6px; padding: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
    .live-schedule-mockup__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .live-schedule-mockup__eyebrow { margin: 0 0 4px; font-size: .68rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-red); }
    .live-schedule-mockup__title { margin: 0; font-size: .92rem; line-height: 1.4; color: rgba(255,255,255,.85); font-weight: 400; }
    .live-schedule-mockup__badge { display: none; }
    .live-schedule-mockup__list { display: grid; gap: 8px; max-height: 420px; overflow-y: hidden; scroll-behavior: smooth; }
    .live-schedule-mockup__scroll-controls { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; }
    .live-schedule-mockup__scroll-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75); font-size: .8rem; cursor: pointer; transition: background .15s, color .15s; }
    .live-schedule-mockup__scroll-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
    .live-schedule-mockup__scroll-btn:active { background: rgba(255,255,255,.22); }
    .live-schedule-mockup__item { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); transition: background .2s, box-shadow .2s; }
    .live-schedule-mockup__item:hover { background: rgba(255,255,255,.08); }
    .live-schedule-mockup__item.is-live { background: rgba(80,174,100,.1); border-color: rgba(80,174,100,.28); border-left: 3px solid var(--brand-red); box-shadow: 0 4px 16px rgba(229,45,39,.15); }
    .live-schedule-mockup__item.is-past { opacity: .45; }
    .live-schedule-mockup__item.is-past:hover { opacity: .7; }
    .live-schedule-mockup__time { font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.45); padding-top: 2px; }
    .live-schedule-mockup__item.is-live .live-schedule-mockup__time { color: rgba(255,255,255,.7); }
    .live-schedule-mockup__body { min-width: 0; }
    .live-schedule-mockup__state { display: inline-flex; align-items: center; margin-bottom: 5px; border-radius: 999px; background: rgba(229,45,39,.18); color: #f87171; font-size: .65rem; font-weight: 400; padding: 2px 8px; border: 1px solid rgba(229,45,39,.25); letter-spacing: .04em; text-transform: uppercase; }
    .live-schedule-mockup__state::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; animation: pulse-dot 1.4s ease-in-out infinite; }
    .live-schedule-mockup__state.is-later { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); border-color: rgba(255,255,255,.1); }
    .live-schedule-mockup__state:empty { display: none; }
    .live-schedule-mockup__name { display: block; font-size: .9rem; line-height: 1.4; color: #fff; font-weight: 400; }
    .live-schedule-mockup__meta { margin: 4px 0 0; font-size: .75rem; line-height: 1.5; color: rgba(255,255,255,.45); }
    @keyframes pulse-badge { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
    @keyframes pulse-dot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }

    @media (max-width: 991.98px) {
      .live-showcase { padding: 20px; }
      .live-schedule-mockup__list { margin-top: 0; }
    }

    @media (min-width: 992px) {
      .live-showcase__panel--schedule .live-schedule-mockup { margin-top: 36px; }
      .live-schedule-mockup__list { margin-top: 0; }
    }

    @media (max-width: 575.98px) {
      .live-showcase { padding: 16px; border-radius: 6px; }
      .live-schedule-mockup__head,
      .live-schedule-mockup__item { display: block; }
      .live-schedule-mockup__badge { margin-top: 8px; }
      .live-schedule-mockup__time { margin-bottom: 8px; }
      .live-showcase__actions { flex-direction: column; align-items: stretch; }
      .live-showcase__cta { width: 100%; }
      .featured-news-list { grid-template-columns: 1fr; }
      .featured-list-img { width: 120px; }
    }

    /* Dedicated live page */
    .live-page {
      min-height: 100vh;
      background:
        radial-gradient(circle at top, rgba(21, 60, 107, .12) 0%, transparent 28%),
        linear-gradient(180deg, #f3f7fb 0%, #eef3f8 48%, #f6f8fb 100%);
    }
    .live-page-hero {
      padding: 30px 0 16px;
      background:
        linear-gradient(180deg, #ffffff 0%, rgba(243, 247, 251, .92) 60%, rgba(243, 247, 251, 0) 100%);
      border-bottom: 1px solid rgba(0, 0, 0, .07);
    }
    .live-page__head {
      max-width: 54rem;
      margin-bottom: 22px;
    }
    .live-page__eyebrow {
      margin: 0 0 10px;
      color: var(--brand-red);
      font-size: .74rem;
      font-weight: 400;
      letter-spacing: .14em;
      text-transform: uppercase;
    }
    .live-page__title {
      font-family: "Kanit", sans-serif;
      margin: 0;
      color: #111;
      font-size: 1.75rem;
      line-height: 1.02;
      font-weight: 400;
      letter-spacing: -.02em;
    }
    .live-page__summary {
      margin: 14px 0 0;
      color: rgba(0, 0, 0, .55);
      font-size: 1rem;
      line-height: 1.7;
    }
    .live-showcase--page {
      box-shadow: 0 24px 48px rgba(7, 18, 38, .24);
    }
    .live-player-wrap--page {
      aspect-ratio: 16 / 9;
      background: #02070f;
    }
    /* Live page ("/web26/live/") schedule widget — intentionally separate from the
       homepage .live-schedule-mockup* classes/JS so layout tuning on one page
       (different column width/height, larger video) never affects the other. */
    .livepage-schedule { margin-top: 16px; border-radius: 6px; padding: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
    .livepage-schedule__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
    .livepage-schedule__eyebrow { margin: 0 0 4px; font-size: .68rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-red); }
    .livepage-schedule__title { margin: 0; font-size: .92rem; line-height: 1.4; color: rgba(255,255,255,.85); font-weight: 400; }
    .livepage-schedule__scroll-controls { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 8px; }
    .livepage-schedule__scroll-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.75); font-size: .8rem; cursor: pointer; transition: background .15s, color .15s; }
    .livepage-schedule__scroll-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
    .livepage-schedule__scroll-btn:active { background: rgba(255,255,255,.22); }
    .livepage-schedule__list { display: grid; gap: 8px; max-height: 560px; overflow-y: hidden; scroll-behavior: smooth; }
    .livepage-schedule__item { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 4px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); transition: background .2s, box-shadow .2s; }
    .livepage-schedule__item:hover { background: rgba(255,255,255,.08); }
    .livepage-schedule__item.is-live { background: rgba(80,174,100,.1); border-color: rgba(80,174,100,.28); border-left: 3px solid var(--brand-red); box-shadow: 0 4px 16px rgba(229,45,39,.15); }
    .livepage-schedule__item.is-past { opacity: .45; }
    .livepage-schedule__item.is-past:hover { opacity: .7; }
    .livepage-schedule__time { font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.45); padding-top: 2px; }
    .livepage-schedule__item.is-live .livepage-schedule__time { color: rgba(255,255,255,.7); }
    .livepage-schedule__body { min-width: 0; }
    .livepage-schedule__state { display: inline-flex; align-items: center; margin-bottom: 5px; border-radius: 999px; background: rgba(229,45,39,.18); color: #f87171; font-size: .65rem; font-weight: 400; padding: 2px 8px; border: 1px solid rgba(229,45,39,.25); letter-spacing: .04em; text-transform: uppercase; }
    .livepage-schedule__state::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; animation: pulse-dot 1.4s ease-in-out infinite; }
    .livepage-schedule__state.is-next { background: rgba(80,174,100,.12); color: #6ee7a0; border-color: rgba(80,174,100,.22); }
    .livepage-schedule__state.is-next::before { animation: none; }
    .livepage-schedule__state.is-later { background: rgba(255,255,255,.06); color: rgba(255,255,255,.45); border-color: rgba(255,255,255,.1); }
    .livepage-schedule__name { display: block; font-size: .9rem; line-height: 1.4; color: #fff; font-weight: 400; }
    .livepage-schedule__meta { margin: 4px 0 0; font-size: .75rem; line-height: 1.5; color: rgba(255,255,255,.45); }

    @media (max-width: 991.98px) {
      .livepage-schedule__list { max-height: 420px; }
    }
    @media (max-width: 575.98px) {
      .livepage-schedule__head,
      .livepage-schedule__item { display: block; }
      .livepage-schedule__time { margin-bottom: 8px; }
    }
    .live-page__schedule-note {
      margin: 14px 0 0;
      color: rgba(0, 0, 0, .5);
      font-size: .8rem;
      line-height: 1.5;
    }
    .live-page__body {
      padding: 8px 0 42px;
    }
    .live-page__sidebar {
      display: grid;
      gap: 16px;
    }
    .live-note-card {
      border-radius: 20px;
      padding: 18px 18px 16px;
      background: #fff;
      border: 1px solid rgba(18, 38, 63, .08);
      box-shadow: 0 14px 32px rgba(18, 38, 63, .08);
    }
    .live-note-card__eyebrow {
      margin: 0 0 12px;
      color: #31587f;
      font-size: .72rem;
      font-weight: 400;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .live-note-card__body {
      margin: 0;
      color: #4e627a;
      font-size: .9rem;
      line-height: 1.6;
    }
    .live-note-list {
      margin: 0;
      padding-left: 18px;
      color: #31465e;
      display: grid;
      gap: 8px;
      font-size: .9rem;
      line-height: 1.55;
    }
    .live-quick-links {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
    }
    .live-quick-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 100%;
      padding: 18px;
      border-radius: 18px;
      background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
      border: 1px solid rgba(18, 38, 63, .08);
      color: #15293f;
      text-decoration: none;
      box-shadow: 0 12px 24px rgba(18, 38, 63, .06);
      transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    }
    .live-quick-card:hover {
      color: #15293f;
      text-decoration: none;
      transform: translateY(-2px);
      border-color: rgba(53, 92, 133, .22);
      box-shadow: 0 18px 30px rgba(18, 38, 63, .10);
    }
    .live-quick-card__icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 14px;
      background: rgba(18, 38, 63, .08);
      color: #17395d;
      font-size: 1.2rem;
    }
    .live-quick-card__title {
      display: block;
      font-size: 1rem;
      line-height: 1.3;
    }
    .live-quick-card__body {
      display: block;
      color: #52687f;
      font-size: .86rem;
      line-height: 1.55;
    }
    .live-mini-list {
      display: grid;
      gap: 10px;
    }
    .live-mini-list__item {
      display: block;
      padding: 12px 14px;
      border-radius: 14px;
      background: #f7f9fc;
      color: #20364c;
      text-decoration: none;
      border: 1px solid rgba(18, 38, 63, .06);
      transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
    }
    .live-mini-list__item:hover {
      color: #20364c;
      text-decoration: none;
      background: #fff;
      border-color: rgba(53, 92, 133, .16);
      transform: translateY(-1px);
    }
    .live-mini-list__title {
      display: block;
      font-size: .9rem;
      font-weight: 400;
      line-height: 1.45;
    }
    .live-mini-list__meta {
      display: block;
      margin-top: 6px;
      color: #6d8094;
      font-size: .75rem;
    }

    @media (max-width: 991.98px) {
      .live-page-hero {
        padding-top: 24px;
      }
      .live-quick-links {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 575.98px) {
      .live-page__title {
      font-family: "Kanit", sans-serif;
        font-size: 1.9rem;
      }
      .live-note-card {
        border-radius: 16px;
        padding: 16px;
      }
      .live-quick-card {
        border-radius: 16px;
      }
    }

    /* Program card */
    .program-card { text-decoration: none; color: inherit; border-radius: 6px; overflow: hidden; background: #fff; border: none; box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: all .3s ease; display: flex; flex-direction: column; }
    .program-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.15); transform: translateY(-3px); color: var(--brand-red); }
    .program-card .cover { aspect-ratio: 16/9; overflow: hidden; position: relative; min-height: unset; background: #f0f0f0; }
    .program-card .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .4s ease; display: block; }
    .program-card:hover .cover img { transform: scale(1.05); }
    .program-card__title { font-size: .9rem; font-weight: 400; padding: 12px 16px; line-height: 1.45; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: block; color: #222; }

    /* Compact news list */
    .compact-news-item { display: flex; gap: 10px; text-decoration: none; color: inherit; padding: 8px 0; border-bottom: 1px solid #e0e0e0; transition: color .15s; }
    .compact-news-item:last-child { border-bottom: none; }
    .compact-news-item:hover { color: var(--brand-red); }
    .compact-news-img { flex-shrink: 0; width: 72px; height: 52px; border-radius: 4px; overflow: hidden; }
    .compact-news-img .cover--compact, .compact-news-img .cover { width: 100%; height: 100%; }
    .compact-news-img .cover--compact img, .compact-news-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
    .compact-news-body { flex: 1; min-width: 0; }
    .compact-news-title { font-size: .82rem; font-weight: 400; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; }
    .compact-news-time { font-size: .72rem; color: #757575; }

    /* Home list items */
    .home-list-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; text-decoration: none; color: inherit; border-bottom: 1px solid #e0e0e0; transition: color .15s; }
    .home-list-item:last-child { border-bottom: none; }
    .home-list-item:hover { color: var(--brand-red); }
    .home-list-dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); margin-top: 5px; }
    .home-list-body { flex: 1; min-width: 0; }
    .home-list-title { font-size: .85rem; font-weight: 400; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .home-list-time { font-size: .72rem; color: #757575; }
    .small-title { font-size: .82rem !important; }

    /* Placeholder data widget */
    .placeholder-data { background: #fff; border-radius: 8px; border: 1px solid #e0e0e0; overflow: hidden; }
    .placeholder-data__head { background: var(--brand-red); color: #fff; padding: 8px 12px; font-size: .8rem; font-weight: 400; }
    .placeholder-data__body { padding: 8px; }

    /* Line banner */
    .line-banner-wrap { }
    .line-banner { display: flex; align-items: center; gap: 16px; background: #f0fff4; border: 1px solid #b7ebce; border-radius: 8px; padding: 14px 20px; }
    .line-banner > div { flex: 1; font-size: .9rem; line-height: 1.4; }
    .line-banner > div span { color: #06C755; font-weight: 400; }

    /* Ad banner variants */
    .ad-banner--half { height: 90px; display: flex; align-items: center; justify-content: center; }
    .ad-banner--tall { height: 200px; display: flex; align-items: center; justify-content: center; }

    /* Reserved ad-slot placeholder — hover (desktop) / always (touch) reveals contact */
    .ad-slot { cursor: pointer; text-align: center; line-height: 1.3; }
    .ad-slot__contact { display: none; font-size: .85rem; }
    .ad-slot__link { color: #06C755; font-weight: 400; text-decoration: underline; }

    /* Premium 728x90 leaderboard creative used on the home page. */
    .ad-slot--creative { box-sizing: border-box; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; overflow: hidden; padding: 10px 158px 10px 24px; border: 1px solid #d8ecdc; border-radius: 0px; background: radial-gradient(circle at 14% -20%, rgb(197 255 122 / 48%), transparent 34%), radial-gradient(circle at 54% 118%, rgb(5 74 38 / 45%), transparent 36%), linear-gradient(112deg, #0d5931 0%, #1b8247 42%, #35a95f 72%, #6bd182 100%); background-size: 150% 150%; box-shadow: 0 14px 32px rgb(15 93 47 / 25%), inset 0 1px 0 rgb(255 255 255 / 25%); color: #fff; font-family: "Kanit", "Noto Sans Thai", Tahoma, sans-serif; isolation: isolate; animation: ad-slot-background-shift 5s ease-in-out infinite alternate; text-align: left; }
    .ad-slot--creative::before, .ad-slot--creative::after { position: absolute; z-index: 0; content: ""; pointer-events: none; }
    .ad-slot--creative::before { top: -82px; right: 126px; width: 32px; height: 220px; background: linear-gradient(90deg, transparent, rgb(231 255 178 / 45%), transparent); transform: rotate(24deg); animation: ad-slot-light-sweep 3.5s ease-in-out infinite alternate; }
    .ad-slot--creative::after { right: 130px; bottom: -68px; width: 150px; height: 150px; border: 26px solid rgb(255 255 255 / 10%); border-radius: 50%; animation: ad-slot-orbit 4.5s ease-in-out infinite alternate; }
    .ad-slot--creative .ad-slot__vector { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .ad-slot--creative .ad-slot__vector-lines { stroke-dasharray: 180 26; animation: ad-slot-vector-lines 7s linear infinite; }
    .ad-slot--creative .ad-slot__vector-dots { transform-box: fill-box; transform-origin: center; animation: ad-slot-vector-drift 5s ease-in-out infinite alternate; }
    .ad-slot--creative .ad-slot__vector-orbit { transform-box: fill-box; transform-origin: center; animation: ad-slot-vector-orbit 4s ease-in-out infinite alternate; }
    .ad-slot--creative .ad-slot__label, .ad-slot--creative .ad-slot__headline, .ad-slot--creative .ad-slot__contact { position: relative; z-index: 1; align-self: flex-start; }
    .ad-slot--creative .ad-slot__label { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 0; color: #f3fff5; text-shadow: 0 1px 8px rgb(0 40 19 / 40%); font-size: 12px; letter-spacing: .16em; line-height: 1.2; }
    .ad-slot--creative .ad-slot__label::before { width: 18px; height: 2px; background: #b8ee6c; content: ""; }
    .ad-slot--creative .ad-slot__headline { max-width: 490px; color: #fff; font-size: 16px; font-weight: 400; letter-spacing: -.01em; line-height: 1.18; text-shadow: 0 1px 1px rgb(0 0 0 / 12%); }
    .ad-slot--creative .ad-slot__contact { /* padding: 3px 8px; */ border-radius: 4px; /* border: 1px solid rgb(255 255 255 / 14%); */ /* background: rgb(4 71 35 / 22%); */ color: rgb(255 255 255 / 90%); font-size: 14px; line-height: 1.2; }
    .ad-slot--creative .ad-slot__link { color: #fff; font-weight: 400; text-decoration-color: rgb(255 255 255 / 58%); text-underline-offset: 2px; }
    .ad-slot--creative .ad-slot__brand { position: absolute; z-index: 1; top: 0; right: 0; display: flex; align-items: baseline; box-sizing: border-box; width: 152px; height: 90px; padding: 28px 14px 0 43px; overflow: hidden; color: #fff; font-family: "Kanit", Arial, sans-serif; font-size: 28px; font-weight: 400; line-height: 1; text-shadow: 0 2px 8px rgb(0 54 25 / 38%); }
    .ad-slot--creative .ad-slot__brand::before { position: absolute; z-index: -1; inset: 0; background-color: #197b42; background-image: linear-gradient(135deg, rgb(29 140 72 / 70%), rgb(8 75 35 / 88%)), radial-gradient(circle at 86% 15%, rgb(201 246 105 / 72%) 0 8%, transparent 8.5%); background-position: center; background-size: cover; clip-path: polygon(31px 0, 100% 0, 100% 100%, 0 100%); content: ""; }
    .ad-slot--creative .ad-slot__brand::after { position: absolute; top: 55px; left: 43px; width: 84px; border-top: 1px solid rgb(255 255 255 / 42%); content: "MEDIA PARTNERSHIP"; color: rgb(255 255 255 / 84%); font-size: 7px; font-weight: 400; letter-spacing: .08em; line-height: 12px; }
    @keyframes ad-slot-background-shift { from { background-position: 0% 45%; } to { background-position: 100% 60%; } }
    @keyframes ad-slot-light-sweep { from { opacity: .3; transform: translateX(-28px) rotate(24deg); } to { opacity: .9; transform: translateX(38px) rotate(24deg); } }
    @keyframes ad-slot-orbit { from { opacity: .45; transform: translate(-8px, 7px) scale(.93); } to { opacity: 1; transform: translate(16px, -10px) scale(1.06); } }
    @keyframes ad-slot-vector-lines { to { stroke-dashoffset: -206; } }
    @keyframes ad-slot-vector-drift { from { opacity: .38; transform: translate(-12px, 4px); } to { opacity: .75; transform: translate(16px, -5px); } }
    @keyframes ad-slot-vector-orbit { from { transform: rotate(-8deg) scale(.94); } to { transform: rotate(10deg) scale(1.06); } }
    @media (prefers-reduced-motion: reduce) { .ad-slot--creative, .ad-slot--creative::before, .ad-slot--creative::after, .ad-slot--creative .ad-slot__vector-lines, .ad-slot--creative .ad-slot__vector-dots, .ad-slot--creative .ad-slot__vector-orbit { animation: none; } }

    /* Keep the in-feed leaderboard ad visible across the empty main-column space (desktop 2-col layout only) */
    @media (min-width: 992px) {
      .home-ad-sticky { position: sticky; top: 70px; z-index: 2; }
    }

    /* Tag Hit — curated SEO tag box (home sports column) */
    .tag-hit-box { margin-top: 18px; padding: 18px 18px 20px; background: linear-gradient(180deg,#ffffff 0%,#fafbfa 100%); border: 1px solid #e8ebe8; border-radius: 6px;}
    .tag-hit-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #eef1ee; font-weight: 400; font-size: .98rem; letter-spacing: .2px; color: var(--text-main); }
    .tag-hit-heading .tag-hit-ico { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; background: var(--brand-red); color: #fff; font-size: .9rem; font-weight: 400; font-style: normal; line-height: 1; }
    .tag-hit-chips { display: flex; flex-wrap: wrap; gap: 9px; }
    .tag-hit-chip { display: inline-flex; align-items: center; gap: 3px; padding: 7px 14px; background: #fff; border: 1px solid #e2e7e2; border-radius: 999px; font-size: .84rem; font-weight: 400; line-height: 1.3; color: #2f3a32; text-decoration: none; transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease; }
    .tag-hit-chip .tag-hit-hash { color: var(--brand-red); font-weight: 400; transition: color .16s ease; }
    .tag-hit-chip:hover { background: var(--brand-red); color: #fff; }
    .tag-hit-chip:hover .tag-hit-hash { color: #fff; }
    @media (hover: hover) {
      .ad-slot:hover .ad-slot__label { display: none; }
      .ad-slot:hover .ad-slot__contact { display: inline; }
    }
    @media (hover: none) {
      .ad-slot .ad-slot__label { display: none; }
      .ad-slot .ad-slot__contact { display: inline; }
    }

    /* Social banner */
    .social-banner { background: var(--dark-nav); border-radius: 8px; padding: 24px 20px; text-align: center; }
    .social-banner__head { color: #fff; font-size: 1rem; font-weight: 400; margin-bottom: 14px; }
    .social-banner .footer-social { justify-content: center; }

    /* Home section wrapper */
    .home-page-wrap { padding-top: 12px; padding-bottom: 32px; }
    .home-section { }

    /* Full-bleed background band for a home section (e.g. ฟุตบอลโลก 2026) —
       stretches edge-to-edge of the browser window regardless of the parent
       .container's padding, while a nested .container inside it keeps the
       actual heading/cards aligned with the rest of the page.
       Override the color/image per-instance via inline style, e.g.:
       <div class="home-section-fullbleed" style="--fullbleed-bg-color:#2e7d32">
       <div class="home-section-fullbleed" style="--fullbleed-bg-image:url('/path.jpg')"> */
    .home-section-fullbleed {
      width: 100vw;
      margin-left: 50%;
      transform: translateX(-50%);
      padding: 28px 0;
      background-color: var(--fullbleed-bg-color, var(--brand-red));
      background-image: var(--fullbleed-bg-image, none);
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }
    .home-section-fullbleed .home-section { margin-bottom: 0; }
    /* Breathing room between the green band and whatever section follows it */
    .home-section-fullbleed + .home-section { margin-top: 28px; }

    /* Swap the section heading text for the FIFA World Cup 2026 text-logo.
       Text stays in the DOM (accessibility/SEO) but is pushed off-screen;
       the logo image (6269x983, ~6.38:1) is shown via background-image so
       it scales cleanly at any width. */
    .home-section-fullbleed .section-heading h1,
    .home-section-fullbleed .section-heading h2 {
      width: 500px;
      max-width: 90vw;
      aspect-ratio: 6269 / 983;
      height: auto;
      overflow: hidden;
      text-indent: -9999px;
      border-left: none;
      padding-left: 0;
      margin-left: -27px;
      background-image: url('/assets/images/resource-footballworldcup/text-logo-fifa.png');
      background-repeat: no-repeat;
      background-position: left center;
      background-size: contain;
    }

    /* Cover size helpers */
    .cover--strip { display: block; }
    .cover--compact { display: block; }
    .home-extra-sections { padding-top: 8px; padding-bottom: 32px; }

    .carousel-bg {
      background-color: transparent !important;
      border-radius: 0;
    }

    #panoramaSlider {
      --panorama-control-edge: 12px;
    }

    #panoramaSlider .carousel-control-prev,
    #panoramaSlider .carousel-control-next {
      top: 50%;
      bottom: auto;
      width: 48px;
      height: 48px;
      transform: translateY(-50%);
      border-radius: 10px;
      opacity: .9;
    }

    #panoramaSlider .carousel-control-prev {
      left: var(--panorama-control-edge);
    }

    #panoramaSlider .carousel-control-next {
      right: var(--panorama-control-edge);
    }

    #panoramaSlider .carousel-control-prev:hover,
    #panoramaSlider .carousel-control-next:hover {
      opacity: 1;
    }

    @media (min-width: 576px) {
      #panoramaSlider { --panorama-control-edge: calc((100% - 540px) / 2); }
    }

    @media (min-width: 768px) {
      #panoramaSlider { --panorama-control-edge: calc((100% - 720px) / 2); }
    }

    @media (min-width: 992px) {
      #panoramaSlider { --panorama-control-edge: calc((100% - 960px) / 2); }
    }

    @media (min-width: 1200px) {
      #panoramaSlider { --panorama-control-edge: calc((100% - 1140px) / 2); }
    }

    @media (min-width: 1400px) {
      .container,
      .container-sm,
      .container-md,
      .container-lg,
      .container-xl,
      .container-xxl {
        max-width: 1347px;
      }

      #panoramaSlider { --panorama-control-edge: calc((100% - 1347px) / 2); }
    }

    #mainNav { font-family: "Kanit", sans-serif; }

    /* Full schedule page (/web26/schedule/) */
    .schedule-page__hero { padding: 28px 0 8px; }
    .schedule-page__eyebrow { margin: 0 0 8px; color: var(--brand-red); font-size: .74rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
    .schedule-page__title { font-family: "Kanit", sans-serif; margin: 0; color: #111; font-size: 1.6rem; line-height: 1.15; font-weight: 400; letter-spacing: -.02em; }
    .schedule-page__summary { margin: 12px 0 0; color: rgba(0,0,0,.55); font-size: .92rem; line-height: 1.6; max-width: 44rem; }
    .schedule-page__body { padding: 20px 0 42px; }
    .schedule-page__days { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .schedule-page__day-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--gray-border); color: var(--text-main); font-size: .85rem; font-weight: 400; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
    .schedule-page__day-link:hover { border-color: var(--brand-red); color: var(--brand-red); text-decoration: none; }
    .schedule-page__day-link.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
    .schedule-page__today-tag { font-size: .65rem; font-weight: 400; background: rgba(255,255,255,.25); border-radius: 999px; padding: 1px 6px; }
    .schedule-page__day-link:not(.active) .schedule-page__today-tag { background: rgba(80,174,100,.12); color: var(--brand-red); }
    .schedule-page__card { margin-bottom: 0; }
    .schedule-page__list { display: grid; }
    .schedule-page__row { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 14px 18px; border-bottom: 1px solid var(--gray-border); transition: background .15s; }
    .schedule-page__row:last-child { border-bottom: none; }
    .schedule-page__row:hover { background: var(--gray-bg); }
    .schedule-page__row.is-live { background: rgba(80,174,100,.08); border-left: 3px solid var(--brand-red); padding-left: 15px; }
    .schedule-page__row.is-past { opacity: .5; }
    .schedule-page__row.is-past:hover { opacity: .8; }
    .schedule-page__time { font-size: .82rem; font-weight: 400; color: var(--text-muted); padding-top: 2px; }
    .schedule-page__row.is-live .schedule-page__time { color: var(--text-main); }
    .schedule-page__row-body { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .schedule-page__state { display: inline-flex; align-items: center; border-radius: 999px; background: rgba(80,174,100,.12); color: var(--brand-red); font-size: .65rem; font-weight: 400; padding: 3px 9px; letter-spacing: .04em; text-transform: uppercase; }
    .schedule-page__state::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; animation: pulse-dot 1.4s ease-in-out infinite; }
    .schedule-page__state.is-next { background: rgba(0,0,0,.05); color: var(--text-muted); }
    .schedule-page__state.is-next::before { animation: none; }
    .schedule-page__state.is-later { background: rgba(0,0,0,.04); color: #aaa; }
    .schedule-page__state.is-later::before { animation: none; }
    .schedule-page__name { flex-basis: 100%; font-size: .95rem; font-weight: 400; color: var(--text-main); }
    .schedule-page__tag { font-size: .72rem; color: var(--text-muted); background: var(--gray-bg); border-radius: 999px; padding: 2px 9px; }

    @media (max-width: 575.98px) {
      .schedule-page__row { grid-template-columns: 1fr; gap: 4px; }
      .schedule-page__time { padding-top: 0; }
    }

    /* Procurement announcements page */
    .procurement-page__hero { padding: 28px 0 8px; }
    .procurement-page__eyebrow { margin: 0 0 8px; color: var(--brand-red); font-size: .74rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
    .procurement-page__title { font-family: "Kanit", sans-serif; margin: 0; color: #111; font-size: 1.6rem; line-height: 1.15; font-weight: 400; letter-spacing: -.02em; }
    .procurement-page__summary { margin: 12px 0 0; color: rgba(0,0,0,.55); font-size: .92rem; line-height: 1.6; max-width: 48rem; }
    .procurement-page__body { padding: 20px 0 42px; }
    .procurement-page__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
    .procurement-page__filter-field { flex: 1 1 220px; min-width: 160px; }
    .procurement-page__filter-field--search { flex: 2 1 320px; }
    .procurement-page__filter-submit,
    .procurement-page__filter-reset { flex: 0 0 auto; }
    .procurement-page__card { margin-bottom: 18px; }
    .procurement-page__count { float: right; font-size: .8rem; font-weight: 400; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
    .procurement-page__table { font-size: .88rem; }
    .procurement-page__table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); font-weight: 400; border-bottom-width: 1px; }
    .procurement-page__table td { border-color: var(--gray-border); vertical-align: middle; }
    .procurement-page__date { white-space: nowrap; color: var(--text-muted); font-size: .82rem; }
    .procurement-page__title-cell { min-width: 20rem; line-height: 1.45; color: var(--text-main); font-weight: 400; }
    .procurement-page__ref { margin-top: 3px; font-size: .74rem; font-weight: 400; color: var(--text-muted); overflow-wrap: anywhere; }
    .procurement-page__badge { display: inline-flex; align-items: center; border-radius: 999px; background: var(--gray-bg); color: var(--text-main); font-size: .74rem; font-weight: 400; padding: 3px 10px; white-space: nowrap; }
    .procurement-page__no-file { font-size: .78rem; color: var(--text-muted); }
    .procurement-page__pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; }
    .procurement-page__page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px; background: var(--white); border: 1px solid var(--gray-border); color: var(--text-main); font-size: .85rem; font-weight: 400; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
    .procurement-page__page-link:hover { border-color: var(--brand-red); color: var(--brand-red); text-decoration: none; }
    .procurement-page__page-link.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
    .procurement-page__page-ellipsis { color: var(--text-muted); padding: 0 4px; }
    .procurement-page__modal-dialog { height: 90vh; }
    .procurement-page__modal-dialog .modal-content { height: 100%; }
    .procurement-page__pdf-frame { width: 100%; height: 100%; min-height: 70vh; border: 0; }

    @media (max-width: 575.98px) {
      .procurement-page__filter-field,
      .procurement-page__filter-field--search { flex-basis: 100%; }
      .procurement-page__filter-submit,
      .procurement-page__filter-reset { flex: 1 1 auto; }
      .procurement-page__title-cell { min-width: 0; }
      .procurement-page__count { float: none; display: block; margin-top: 4px; }
    }


/* FM94 player: fixed bottom bar, standardized cross-browser controls */
.fm94-nav-trigger {
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.fm94-nav-trigger.is-active {
  color: var(--brand-red) !important;
}

.fm94-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--white);
  border-top: 1px solid var(--gray-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.fm94-player[hidden] {
  display: none;
}

.fm94-player__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  box-sizing: border-box;
}

.fm94-player__toggle,
.fm94-player__mute,
.fm94-player__close {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.fm94-player__toggle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--brand-red);
  color: #fff;
}

.fm94-player__toggle:hover {
  filter: brightness(1.08);
}

.fm94-player__toggle .fm94-player__icon-pause,
.fm94-player__mute .fm94-player__icon-mute {
  display: none;
}

.fm94-player__toggle.is-playing .fm94-player__icon-play,
.fm94-player__mute.is-muted .fm94-player__icon-vol {
  display: none;
}

.fm94-player__toggle.is-playing .fm94-player__icon-pause,
.fm94-player__mute.is-muted .fm94-player__icon-mute {
  display: block;
}

.fm94-player__info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1 1 auto;
}

.fm94-player__live {
  flex: none;
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff;
  background: #e11d48;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.fm94-player__title {
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm94-player__volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

.fm94-player__mute {
  width: 28px;
  height: 28px;
  color: var(--text-muted);
}

.fm94-player__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 999px;
  background: var(--gray-border);
  outline: none;
  cursor: pointer;
  margin: 0;
}

.fm94-player__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand-red);
  border: none;
  cursor: pointer;
}

.fm94-player__slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--brand-red);
  border: none;
  cursor: pointer;
}

.fm94-player__slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: var(--gray-border);
}

.fm94-player__close {
  width: 26px;
  height: 26px;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
}

body.fm94-player-open {
  padding-bottom: 3.5rem;
}

/* The creative leaderboard follows the supplied artwork: label and contact
   remain visible and do not swap on hover. */
.ad-slot--creative {
  cursor: default;
}
.ad-slot--creative .ad-slot__label,
.ad-slot--creative .ad-slot__contact {
  display: inline-flex;
}
.ad-slot--creative .ad-slot__contact {
  display: block;
}

@media (max-width: 575.98px) {
  .fm94-player__title {
    max-width: 110px;
  }

  .fm94-player__slider {
    width: 60px;
  }
}


    /* Category listing: editorial card grid */
    .category-news-section {
      padding: 24px;
      border: 1px solid var(--gray-border);
      border-radius: 7px;
      background: var(--white);
      box-shadow: 0 14px 40px rgba(20, 35, 28, .06);
    }

    .category-news-section .news-section-head {
      position: relative;
      align-items: center;
      margin: 0 0 22px;
      padding: 0 0 16px;
      border-bottom: 1px solid var(--gray-border);
    }

    .category-news-section .news-section-title {
      padding-left: 16px;
      border-left-width: 6px;
      font-size: clamp(24px, 2.4vw, 32px);
      font-weight: 400;
      letter-spacing: -.02em;
    }

    .listing-title-filter-row {
      display: flex;
      width: 100%;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
      padding: 4px 0;
    }

    .category-news-section .news-section-head > div {
      width: 100%;
    }

    .listing-title-filter-row .news-section-title {
      margin: 0;
      padding-left: 13px;
      border-left: 5px solid var(--brand-red);
      font-size: clamp(23px, 2.1vw, 29px);
      line-height: 1.15;
    }

    .listing-category-filter {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      color: var(--text-main);
      white-space: nowrap;
    }

    .listing-category-filter label {
      margin: 0;
      color: var(--text-muted);
      font-size: 14px;
      font-weight: 400;
    }

    .listing-category-filter select {
      width: min(300px, 38vw);
      min-height: 42px;
      padding: 8px 12px;
      border: 0;
      border-radius: 0;
      background-color: transparent;
      color: var(--text-main);
      font: inherit;
      font-weight: 400;
      cursor: pointer;
      box-shadow: none;
    }

    .listing-category-filter select:hover { color: var(--brand-red); }
    .listing-category-filter select:focus,
    .listing-category-filter select:focus-visible { outline: none; box-shadow: none; }
    .listing-breadcrumb {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;
      margin: 0 0 10px 16px;
      color: var(--text-muted);
      font-size: 13px;
      line-height: 1.4;
    }

    .listing-breadcrumb a {
      color: var(--text-muted);
      text-decoration: none;
    }

    .listing-breadcrumb a:hover,
    .listing-breadcrumb a:focus-visible {
      color: var(--brand-red);
      text-decoration: underline;
    }

    .listing-scope-links {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 15px 0 0 16px;
    }

    .listing-scope-link {
      display: inline-flex;
      align-items: center;
      min-height: 34px;
      padding: 6px 13px;
      border: 1px solid var(--gray-border);
      border-radius: 7px;
      background: var(--white);
      color: var(--text-main);
      font-size: 14px;
      font-weight: 400;
      line-height: 1.25;
      text-decoration: none;
    }

    .listing-scope-link:hover,
    .listing-scope-link:focus-visible,
    .listing-scope-link.active {
      border-color: var(--brand-red);
      background: var(--brand-red);
      color: #fff;
    }

    .listing-scope-link:focus-visible {
      outline: 2px solid var(--brand-red);
      outline-offset: 2px;
    }

    .category-news-grid {
      --bs-gutter-x: 1.25rem;
      --bs-gutter-y: 1.25rem;
    }

    .category-news-grid > [class*="col-"] {
      display: flex;
    }

    .category-news-grid .grid-card {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      gap: 0;
      overflow: hidden;
      border: 1px solid var(--gray-border);
      border-radius: 7px;
      background: var(--white);
      color: var(--text-main);
      transition: border-color .2s ease, box-shadow .2s ease;
    }

    .category-news-grid .grid-card:hover {
      border-color: var(--gray-border);
      box-shadow: none;
      color: var(--text-main);
    }

    .category-news-grid .grid-card:focus-visible {
      border-color: var(--brand-red);
      box-shadow: none;
      color: var(--text-main);
      outline: 2px solid var(--brand-red);
      outline-offset: 2px;
    }

    .category-news-grid .grid-card-img {
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 0;
      background: #e9eee9;
    }

    .category-news-grid .grid-card-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform .35s ease;
    }

    .category-news-grid .grid-card:hover .grid-card-img img {
      transform: scale(1.025);
    }

    .category-news-grid .grid-card-body {
      display: flex;
      flex: 1 1 auto;
      flex-direction: column;
      min-width: 0;
      padding: 17px 18px 16px;
      border-bottom: 0;
    }

    .category-news-grid .badge-cat {
      display: none !important;
    }

    .category-news-grid .grid-card-title {
      font-size: 18px;
      line-height: 1.48;
      -webkit-line-clamp: 3;
    }

    .category-news-grid .grid-card-summary {
      margin-top: 8px;
      font-size: 14px;
      line-height: 1.62;
      -webkit-line-clamp: 3;
    }

    .category-news-grid .grid-card-meta {
      margin-top: auto;
      padding-top: 14px;
      color: var(--text-muted);
      font-size: 13px;
      border-top: 1px solid rgba(224, 224, 224, .7);
    }

    .category-news-section .pagination-wrap {
      margin-top: 28px !important;
    }

    .category-news-section .pagination {
      gap: 7px;
    }

    .category-news-section .pagination-wrap .page-link {
      min-width: 40px;
      height: 40px;
      margin: 0;
      border: 1px solid var(--gray-border);
      border-radius: 7px;
      background: var(--white);
      font-weight: 400;
      box-shadow: none;
    }

    .category-news-section .pagination-wrap .active .page-link,
    .category-news-section .pagination-wrap .page-link:hover,
    .category-news-section .pagination-wrap .page-link:focus {
      border-color: var(--brand-red);
      background: var(--brand-red);
      color: #fff;
    }

    @media (min-width: 1200px) {
      .category-news-grid > .col-md-6 {
        width: 33.333333%;
      }
    }

    @media (max-width: 767.98px) {
      .category-news-section {
        margin-inline: -4px;
        padding: 16px;
        border-radius: 7px;
      }

      .category-news-section .news-section-head {
        margin-bottom: 16px;
      }

      .category-news-section .news-section-title {
        font-size: 23px;
      }

      .listing-breadcrumb,
      .listing-scope-links {
        margin-left: 0;
      }

      .listing-title-filter-row { align-items:flex-start; flex-direction:column; gap:12px; }
      .listing-title-filter-row .listing-category-filter { width:100%; margin-left:0; }
      .listing-title-filter-row { padding:4px 0; }
      .listing-category-filter { align-items:flex-start; flex-direction:column; gap:5px; }
      .listing-category-filter select { width:100%; }

      .category-news-grid .grid-card-title {
        font-size: 17px;
      }

      .category-news-grid .grid-card-summary {
        display: -webkit-box;
        -webkit-line-clamp: 2;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .category-news-grid .grid-card,
      .category-news-grid .grid-card-img img {
        transition: none;
      }
    }


    /* Category listing: align with the primary editorial column */
    @media (min-width: 992px) {
      .category-news-section {
        width: calc(66.2% - 16px);
      }

      .category-news-grid > .col-md-6 {
        width: 100%;
      }

      .category-news-grid .grid-card {
        display: grid;
        grid-template-columns: minmax(220px, 42%) minmax(0, 1fr);
        width: 100%;
      }

      .category-news-grid .grid-card-img {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
        align-self: start;
      }

      .category-news-grid .grid-card-body {
        padding: 20px 22px 18px;
      }

      .category-news-grid .grid-card-title {
        font-size: 19px;
        -webkit-line-clamp: 2;
      }

      .category-news-grid .grid-card-summary {
        -webkit-line-clamp: 2;
      }
    }

    @media (max-width: 991.98px) {
      .category-news-section {
        width: 100%;
      }
    }


    /* Category list and popular-tag sidebar */
    .category-content-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.72fr) minmax(300px, .88fr);
      gap: 24px;
      align-items: start;
    }

    .category-content-layout .category-news-section {
      width: 100%;
      min-width: 0;
    }

    .category-content-layout__sidebar {
      min-width: 0;
    }

    .category-content-layout__sidebar .tag-hit-box {
      margin-top: 0;
      border-radius: 7px;
    }

    @media (max-width: 991.98px) {
      .category-content-layout {
        grid-template-columns: minmax(0, 1fr);
      }

      .category-content-layout__sidebar .tag-hit-box {
        margin-top: 0;
      }
    }

/* Neutral empty state for the shared-header leaderboard until a managed ad is available. */
.ad-slot--placeholder { background: #e5e7eb; border: 1px solid #d1d5db; box-shadow: none; cursor: default; }

/* Poplife editorial layout: a compact, white newsroom with the logo red as
   the sole accent colour. The existing data-driven cards retain their markup
   while presenting in the more magazine-like hierarchy used on the homepage. */
body { background: #fff; color: #17181c; }
.top-header { background: #fff; border-bottom: 1px solid #ececef; padding: 12px 0; }
.top-header .container { max-width: 1180px; }
.brand-logo { width: 112px; }
.main-nav { background: #fff; border-bottom: 1px solid #ececef; min-height: 52px; }
.main-nav .container { max-width: 1180px; }
.main-nav .navbar-nav { gap: 4px; }
.main-nav .nav-link { color: #202126; font-size: 14px; font-weight: 400; padding: 15px 12px !important; }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--brand-red); }
.news-ticker { background: #fff7cf; color: #17181c; border-bottom: 1px solid #f0e6ae; }
.ticker-label { background: var(--brand-red); color: #fff; }
.ticker-track a { color: #24252a; font-weight: 400; }
.nav-search-submit { color: #25262b; }

main.py-3 { padding-top: 34px !important; }
main.py-3 .container, .home-extra-sections .container { max-width: 1180px; }
.section-wrap, .home-section { border: 0; background: transparent; }
.section-heading { align-items: center; border-bottom: 1px solid #ececef; margin-bottom: 18px; padding-bottom: 10px; }
.section-heading h1, .section-heading h2 { color: #17181c; font-size: 21px; font-weight: 400; letter-spacing: -.25px; }
.section-heading h1::before, .section-heading h2::before { background: var(--brand-red); content: ''; display: inline-block; height: 21px; margin: 0 9px -4px 0; width: 4px; }

#heroSlot { gap: 18px !important; margin-bottom: 40px !important; }
.hero-card { background: #111; border-radius: 0; box-shadow: none; overflow: hidden; }
.hero-card > img, .hero-card picture img, .hero-card .article-cover { transition: transform .35s ease; }
.hero-card:hover > img, .hero-card:hover picture img, .hero-card:hover .article-cover { transform: scale(1.035); }
.hero-card .hero-overlay { background: linear-gradient(transparent 20%, rgba(0,0,0,.84)); padding: 64px 20px 18px; }
.hero-card h3 { font-size: 23px; font-weight: 400; line-height: 1.26; }
.hero-card--compact { min-height: 112px; }
.hero-card--compact .hero-overlay { padding: 42px 12px 11px; }
.hero-card--compact h3 { font-size: 14px; -webkit-line-clamp: 2; }
.badge-cat { background: var(--brand-red); border-radius: 0; color: #fff; font-size: 11px; font-weight: 400; padding: 4px 8px; }

.news-card { border: 0; border-radius: 0; box-shadow: none; }
.news-card:hover { box-shadow: none; transform: none; }
.news-card .card-body { padding: 10px 0 0; }
.news-card .card-title { color: #18191d; font-size: 16px; font-weight: 400; line-height: 1.35; }
.news-card .card-text { color: #73757c; font-size: 13px; }
.news-card img, .news-card .article-cover { border-radius: 0; }
.widget { border: 1px solid #ececef; border-radius: 0; box-shadow: none; margin-bottom: 22px; }
.widget-header { background: #fff; border-bottom: 3px solid var(--brand-red); color: #17181c; font-weight: 400; padding: 12px 14px; }
.widget-body { padding: 12px 14px; }
.popular-item { border-bottom-color: #ececef; }
.popular-num.top { color: var(--brand-red); }
.ad-banner { border-radius: 0; }
.footer-top { background: #18191d; margin-top: 55px; }
.footer-logo__img { width: 112px; }

@media (max-width: 767.98px) {
  .brand-logo { width: 92px; }
  .top-header { padding: 8px 0; }
  .top-header .ad-banner { display: none !important; }
  .main-nav .nav-link { padding: 10px 8px !important; }
  main.py-3 { padding-top: 22px !important; }
  .hero-card h3 { font-size: 19px; }
}

/* Poplife: empty ad-slot placeholders use a light card with a red dashed border.
   Filled ads (.ad-banner--filled) and creative banners keep their own styles. */
.ad-banner.ad-slot:not(.ad-banner--filled):not(.ad-slot--creative) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  padding: 16px;
  border: 1.5px dashed rgba(239, 43, 45, .55);
  border-radius: 10px;
  background: #f6f7f9;
  color: #70727c;
  text-transform: none;
  letter-spacing: 0;
  transition: border-color .16s ease, background .16s ease;
}

.ad-banner.ad-slot:not(.ad-banner--filled):not(.ad-slot--creative):hover {
  border-color: #ef2b2d;
  background: #fff1f2;
}

.ad-banner.ad-slot:not(.ad-banner--filled):not(.ad-slot--creative) .ad-slot__label {
  color: #ef2b2d;
  font-family: "Kanit", sans-serif;
  font-size: .95rem;
  font-weight: 400;
}

.ad-banner.ad-slot:not(.ad-banner--filled):not(.ad-slot--creative) .ad-slot__contact {
  display: inline;
  color: #70727c;
  font-size: .8rem;
}

/* ADVERTISEMENT label wrapper reused outside the group sidebar (which spaces
   children with flex gap), so give standalone wrappers their own spacing. */
.poplife-ad {
  margin-bottom: 20px;
}

.group-page-columns__sidebar > .poplife-ad {
  margin-bottom: 0;
}

.poplife-ad .ad-banner {
  margin-bottom: 0;
}

.poplife-ad--leaderboard .ad-banner.leaderboard {
  margin-left: auto;
  margin-right: auto;
}

/* MOST POPULAR header: the later light .widget-header theme made its text dark
   on the old #111 background, so match the light widget headers. */
.spotlight-popular-widget .widget-header {
  background: #fff;
  border-bottom: 3px solid var(--brand-red);
  color: #17181c;
}
