/* ScoreActive Modern Layout */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body {
    background: #121212 !important;
    font-family: 'Roboto', Tahoma, Arial, Helvetica, sans-serif !important;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
}

#wrapper {
    background: none !important;
    text-align: left;
}

#globalcontainer {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

/* ── Header hidden on modern pages (moved to sidebar) ── */
.sa-home #header,
.sa-streaming #header,
.sa-competition #header,
.sa-sport-livescore #header {
    display: none;
}

/* ── Main layout ── */
#globalcontent {
    display: flex;
    align-items: stretch;
    background: #fff !important;
    min-height: 100vh;
}

#leftcolumn {
    width: 240px;
    flex-shrink: 0;
    float: none !important;
    background: #121212;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    max-height: 100vh;
    overflow-y: auto;
}

#leftcolumn .module,
#leftcolumn .module.fav {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    flex: 1;
}

#leftcolumn .module h3 {
    display: none;
}

/* Sidebar header: logo + nav */
.sa-sidebar-header {
    padding: 14px 14px 10px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}

.sa-sidebar-header #logo {
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 12px 0 !important;
}

.sa-sidebar-header #logo img {
    max-width: 160px;
    height: auto;
}

.sa-sidebar-header #languagebar {
    display: none;
}

.sa-sidebar-header #gmenu {
    background: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.sa-sidebar-header #gmenu .firmenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.sa-sidebar-header #gmenu .firmenu li {
    background: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    float: none !important;
    display: block;
}

.sa-sidebar-header #gmenu .firmenu li a {
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px !important;
    line-height: 1.3 !important;
    color: #aaa !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.sa-sidebar-header #gmenu .firmenu li.active a,
.sa-sidebar-header #gmenu .firmenu li.first.active a {
    background: #ff8c00 !important;
    color: #fff !important;
}

.sa-sidebar-header #gmenu .firmenu li a:hover {
    background: #2a2a2a !important;
    color: #fff !important;
    text-decoration: none;
}

.sa-sidebar-header #gmenu .firmenu li.active a:hover {
    background: #ff8c00 !important;
    color: #fff !important;
}

.sa-sidebar-header #gmenu .firmenu h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* ── Main content area ── */
#gloablcontentcenter {
    flex: 1;
    float: none !important;
    width: auto !important;
    min-width: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
}

#contentcentercontent {
    width: 100%;
    float: none !important;
    flex: 1;
    padding: 0 16px 16px;
    box-sizing: border-box;
}

.sa-home #rightcolumn {
    display: none;
}

.sa-home #contentcentercontent {
    width: 100%;
}

.sa-sport-livescore #rightcolumn {
    display: none;
}

.sa-sport-livescore #contentcentercontent {
    width: 100%;
    padding: 0 16px 16px;
    box-sizing: border-box;
}

/* ── Sidebar navigation ── */
.sa-sidebar {
    padding: 0;
}

.sa-sidebar-section {
    border-bottom: 1px solid #1e1e1e;
}

.sa-sidebar-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #ccc;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sa-sidebar-link:hover {
    background: #1e1e1e;
    color: #fff;
    text-decoration: none;
}

.sa-sidebar-link.active {
    border-left-color: #ff8c00;
    background: #1e1e1e;
    color: #fff;
}

.sa-sidebar-link .sa-sport-icon-wrap,
.sa-sidebar-link .sa-sport-icon-wrap img,
.sa-sidebar-link .sa-sport-icon-wrap .sa-sport-sprite {
    width: 20px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sa-sidebar-link .sa-sport-icon-wrap img.sa-sport-icon {
    width: 18px;
    height: 22px;
    object-fit: contain;
    display: block;
    border-radius: 2px;
    background: transparent;
    padding: 0;
    margin: 0;
}

.sa-sidebar-link .sa-sport-icon-wrap .sa-sport-sprite,
.sa-sidebar-link span.sa-sport-icon.sa-sport-sprite {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(img/sporticons.png) no-repeat;
    background-size: 190px 190px;
    border-radius: 2px;
    padding: 0;
    margin: 0;
}

.sa-sidebar-label {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.sa-sport-icon-wrap--inline {
    display: inline-flex;
    vertical-align: middle;
    margin-right: 6px;
}

.sa-sidebar-divider {
    border-top: 1px solid #333;
    margin-top: 6px;
}

.sa-sidebar-link .sa-chevron {
    margin-left: auto;
    font-size: 9px;
    color: #555;
}

.sa-sidebar-sub {
    background: #0d0d0d;
    display: none;
}

.sa-sidebar-sub.open {
    display: block;
}

.sa-sidebar-sub a {
    display: block;
    padding: 5px 14px 5px 46px;
    color: #888;
    font-size: 12px;
    text-decoration: none;
    text-transform: none;
    font-weight: 400;
}

.sa-sidebar-sub a:hover {
    color: #ff8c00;
    text-decoration: none;
}

.sa-sidebar-sub .sa-country-group {
    border-bottom: 1px solid #1a1a1a;
}

.sa-sidebar-sub .sa-country-group > a {
    padding: 7px 14px 7px 36px;
    font-weight: 500;
    color: #bbb;
    display: flex;
    align-items: center;
    font-size: 12px;
    cursor: pointer;
    text-transform: none;
}

.sa-sidebar-sub .sa-country-group > a:hover {
    background: #1a1a1a;
    color: #ff8c00;
}

.sa-sidebar-sub .sa-country-group ul {
    margin: 0;
    padding: 0;
    display: none;
    background: #080808;
}

.sa-sidebar-sub .sa-country-group.open ul {
    display: block;
}

.sa-sidebar-sub .sa-country-group ul li {
    list-style: none;
}

.sa-sidebar-sub .sa-country-group ul a {
    padding: 4px 14px 4px 52px;
    font-size: 11px;
    color: #777;
}

.sa-sidebar-sub .sa-country-group ul a:hover {
    color: #ff8c00;
    background: #111;
}

.sa-sidebar-sub .sa-country-group > a .sa-chevron {
    margin-left: auto;
    font-size: 8px;
    color: #444;
}

/* Sport icons — legacy CSS classes kept for compatibility */
.sa-icon-soccer    { background-image: url(img/menu-soccer.png); }
.sa-icon-tennis    { background-image: url(img/menu-tennis.png); }
.sa-icon-basket    { background-image: url(img/menu-basketball.png); }
.sa-icon-rugby-l   { background-image: url(img/menu-rugby.png); }
.sa-icon-rugby     { background-image: url(img/menu-rugby.png); }
.sa-icon-baseball  { background-image: url(img/menu-baseball.png); }
.sa-icon-handball  { background-image: url(img/menu-voleyball.png); }
.sa-icon-volley    { background-image: url(img/menu-voleyball.png); }
.sa-icon-hockey    { background-image: url(img/menu-hok.png); }
.sa-icon-boxing    { background-image: url(img/menu-boxing.png); }
.sa-icon-cricket   { background-image: url(img/menu-cricket.png); }
.sa-icon-today     { background-image: url(img/live.png); }
.sa-icon-popular   { background-image: url(img/menu-soccer.png); }

/* Override legacy sidebar list styles */
#leftcolumn .fav li,
#leftcolumn .module li,
.sa-sidebar li {
    background: transparent !important;
    border: none !important;
    display: list-item;
}

#leftcolumn .fav table td {
    background: transparent !important;
    border: none !important;
}

/* ── Hero title ── */
.sa-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 16px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.sa-hero-title {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
    color: #111 !important;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.sa-hero-subtitle {
    margin: 0;
    font-size: 13px;
    color: #888;
    font-weight: 400;
}

.sa-hero-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.sa-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    white-space: nowrap;
}

.sa-hero-btn:hover {
    background: #eee;
    text-decoration: none;
    color: #333;
}

.sa-hero-btn-live {
    background: #ff8c00;
    color: #fff !important;
    border-color: #e07b00;
}

.sa-hero-btn-live:hover {
    background: #e07b00;
    color: #fff !important;
}

.sa-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    animation: sa-pulse 1.5s infinite;
}

@keyframes sa-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Promo banners ── */
.sa-promo-row {
    display: flex;
    gap: 10px;
    padding: 0 16px 14px;
    flex-wrap: wrap;
    border-bottom: 1px solid #eee;
}

.sa-promo-card {
    flex: 1;
    min-width: 180px;
    padding: 12px 16px;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    line-height: 1.45;
    text-decoration: none;
    display: block;
    transition: transform 0.15s, opacity 0.15s;
}

.sa-promo-card:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.sa-promo-card strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 3px;
}

.sa-promo-green  { background: linear-gradient(135deg, #1a9e6e, #0d7a52); }
.sa-promo-dark   { background: linear-gradient(135deg, #2d2d2d, #1a1a1a); }
.sa-promo-blue   { background: linear-gradient(135deg, #1a3a6e, #0d2650); }

/* ── Widget & modules ── */
#contentcentercontent .module {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
    border: none !important;
}

#contentcentercontent .module .data {
    border-top: none !important;
}

.sa-home #contentcentercontent .module .tabs {
    display: none;
}

/* ── Streaming page modules ── */
.sa-streaming #contentcentercontent .module {
    margin-top: 0 !important;
}

.sa-streaming #contentcentercontent .module .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    height: auto !important;
}

.sa-streaming #contentcentercontent .module .tabs a {
    text-decoration: none;
}

.sa-streaming #contentcentercontent .module .tab {
    float: none !important;
    margin: 0 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    background: #fff !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
    text-shadow: none !important;
    line-height: 1.3 !important;
    height: auto !important;
}

.sa-streaming #contentcentercontent .module .tab.active {
    background: #ff8c00 !important;
    color: #fff !important;
    border-color: #e07b00 !important;
}

.sa-streaming #contentcentercontent .module .data {
    border-top: none !important;
}

.sa-streaming #contentcentercontent .module .data table.valuebets {
    font-size: 13px;
}

.sa-streaming #contentcentercontent .module .data table.valuebets th {
    background: #2d2d2d !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 14px !important;
    border: none !important;
}

.sa-streaming #contentcentercontent .module .data table.valuebets td {
    padding: 10px 14px !important;
    border-color: #eee !important;
    color: #333;
}

.sa-streaming #contentcentercontent .module .data table.valuebets tr.odd td {
    background: #fafafa !important;
}

.sa-streaming #contentcentercontent .module .data table.valuebets a {
    color: #1a5fb4;
    font-weight: 600;
}

.sa-streaming #contentcentercontent .module .data table.valuebets .s-datetime {
    color: #888;
    font-size: 11px;
}

.sa-streaming #rightcolumn {
    display: none;
}

/* ── Single streaming event page ── */
.sa-stream-event #contentcentercontent {
    padding-top: 0;
}

.sa-hero-event {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 20px 16px 16px;
}

.sa-hero-kicker {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
}

.sa-stream-intro {
    padding: 16px 18px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    color: #444;
    font-size: 13px;
    line-height: 1.55;
}

.sa-stream-intro p {
    margin: 0;
    padding: 0 !important;
}

.sa-stream-module .tabs {
    display: block !important;
    background: #f5f5f5;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    height: auto !important;
}

.sa-stream-module .tab {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: none !important;
}

.sa-bookie-cell {
    padding: 16px !important;
}

.sa-bookie-cell a {
    display: inline-block;
    margin: 6px 10px 6px 0;
}

.sa-bookie-cell img {
    max-height: 48px;
    width: auto;
    border-radius: 4px;
    vertical-align: middle;
}

.sa-bookie-hint {
    color: #888 !important;
    font-size: 12px !important;
    padding: 10px 16px !important;
    background: #fafafa !important;
}

/* ── Competition page ── */
.sa-competition #gloablcontentcenter {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

.sa-competition #contentcentercontent {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 0 16px 16px;
}

.sa-competition #rightcolumn {
    display: block;
    float: none;
    width: 280px;
    flex-shrink: 0;
    padding: 0 16px 16px 0;
    margin: 0;
}

.sa-competition #rightcolumn .module {
    width: 100% !important;
    margin: 0 0 12px 0 !important;
    background: #fff !important;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sa-competition #rightcolumn .module h3 {
    display: block;
    background: #2d2d2d !important;
    color: #fff !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.sa-hero-comp {
    width: 100%;
    flex: 1 1 100%;
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 20px 16px 16px;
}

.sa-breadcrumb {
    padding: 12px 16px 0;
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1 1 100%;
}

.sa-breadcrumb a {
    color: #ff8c00;
    text-decoration: none;
}

.sa-breadcrumb span {
    color: #666;
}

.sa-comp-module {
    margin-bottom: 12px !important;
}

.sa-competition #contentcentercontent .module .tabs {
    display: block !important;
    background: #f5f5f5;
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    height: auto !important;
}

.sa-competition #contentcentercontent .module .tab {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    border: none !important;
}

.sa-comp-table {
    width: 100%;
    font-size: 13px;
}

.sa-comp-table th {
    background: #2d2d2d !important;
    color: #fff !important;
    font-weight: 600;
    padding: 10px 12px !important;
    border: none !important;
    text-align: left;
}

.sa-comp-table td {
    padding: 9px 12px !important;
    border-color: #eee !important;
    color: #333;
    vertical-align: middle;
}

.sa-comp-table tr.odd td {
    background: #fafafa !important;
}

.sa-col-score {
    text-align: center;
    white-space: nowrap;
    font-weight: 600;
    width: 80px;
}

.sa-col-date {
    white-space: nowrap;
    color: #666;
    width: 130px;
}

.sa-team-name {
    font-weight: 600;
}

.sa-comp-table-sm th,
.sa-comp-table-sm td {
    padding: 8px 10px !important;
    font-size: 12px;
}

.sa-empty-state {
    padding: 24px 18px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.sa-sync-hint {
    font-size: 11px;
    color: #999;
}

@media (max-width: 900px) {
    .sa-competition #gloablcontentcenter {
        flex-direction: column;
    }

    .sa-competition #rightcolumn {
        width: 100%;
        padding: 0 16px 16px;
    }
}

.sa-widget-wrap {
    padding: 0;
    min-height: 200px;
}

.sa-widget-wrap [id^="oddspedia-widget"] {
    width: 100% !important;
}

#contentcentercontent .module table.valuebets {
    border: none;
}

#contentcentercontent .module table.valuebets tbody {
    display: block;
}

/* ── Footer ── */
#footer {
    background: #121212 !important;
    margin: 0 !important;
    padding: 20px 16px !important;
    border-top: 1px solid #2a2a2a;
}

/* ── Scroll to top ── */
.sa-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    left: auto;
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.2s, background 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.sa-scroll-top.visible {
    opacity: 1;
}

.sa-scroll-top:hover {
    background: #ff8c00;
}

/* ── Ads suppressed ── */
.sa-top-ad,
ins.adsbygoogle[data-anchor-status],
.google-auto-placed {
    display: none !important;
}

/* ── SEO content ── */
.seo-content {
    margin: 16px 0 0 !important;
    padding: 20px;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.seo-content h2,
.seo-content h2 span,
.seo-content h2 span span {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #222 !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 0 10px !important;
    line-height: 1.3 !important;
}

.seo-content h3 {
    color: #333 !important;
}

.seo-content p,
.seo-content li,
.seo-content dd {
    color: #555 !important;
}

/* ── Other pages: keep classic header ── */
#header {
    height: auto !important;
    padding: 8px 16px 0;
    background: #121212;
    color: #fff;
}

#logo {
    margin: 4px 0 0 0;
}

#languagebar {
    display: none;
}

#gmenu {
    background: none !important;
    height: auto !important;
    margin: 8px 0 0 0;
    padding: 0 0 8px;
    border-bottom: 1px solid #333;
}

#gmenu .firmenu li {
    background: none !important;
    width: auto !important;
    margin: 0 4px 0 0 !important;
    padding: 0;
}

#gmenu .firmenu li a {
    display: block;
    padding: 6px 16px;
    border-radius: 3px;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #ccc !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#gmenu .firmenu li.active a,
#gmenu .firmenu li.first.active a {
    background: #ff8c00 !important;
    color: #fff !important;
}

#gmenu .firmenu li a:hover {
    color: #ff8c00 !important;
    text-decoration: none;
}

#gmenu .firmenu li.active a:hover {
    color: #fff !important;
}

#gmenu .firmenu h2 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    #globalcontent {
        flex-direction: column;
    }

    #leftcolumn {
        width: 100%;
        position: static;
        max-height: none;
        overflow: visible;
    }

    .sa-sidebar-sub.open {
        max-height: 250px;
        overflow-y: auto;
    }

    .sa-promo-row {
        flex-direction: column;
    }

    .sa-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }

    .sa-hero-title {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    #contentcentercontent {
        padding: 0 10px 10px;
    }

    .sa-promo-row {
        padding: 0 10px 12px;
    }

    .sa-hero {
        padding: 14px 10px;
    }
}
