/* Stream 4 Gambling */
:root {
    --tc-bg-primary: #ffffff;
    --tc-bg-secondary: #f7f7f5;
    --tc-bg-card: #ffffff;
    --tc-text-primary: #ffffff;
    --tc-text-secondary: #888888;
    --tc-text-dark: #111111;
    --tc-text-muted: #555555;
    --tc-border-color: rgba(0, 0, 0, 0.08);
    --tc-shadow: rgba(0, 0, 0, 0.06);
    --tc-shadow-light: rgba(0, 0, 0, 0.03);

    --tc-primary: #FF5C35;
    --tc-accent: #FF1F3D;
    --tc-success: #3DAA6B;
    --tc-warning: #F59E0B;
    --tc-danger: #FF1F3D;
    --tc-special: #F59E0B;

    --tc-border-radius: 16px;
    --tc-border-radius-sm: 8px;
    --tc-border-radius-pill: 999px;
    --tc-gap: 14px;
    --tc-padding: 16px;
    --tc-padding-sm: 10px;

    --tc-transition: all 0.18s ease;
    --tc-transition-slow: all 0.28s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ─── Brand List ─── */
.tc-brand-list {
    display: flex;
    flex-direction: column;
    gap: var(--tc-gap);
    margin: 1.5rem auto;
    width: 100%;
}

/* ─── Card ─── */
.tc-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--tc-bg-card);
    padding: var(--tc-padding);
    border-radius: var(--tc-border-radius);
    border: 0.5px solid var(--tc-border-color);
    box-shadow: 0 1px 6px var(--tc-shadow-light);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    flex-wrap: nowrap;
    width: 100%;
}

.tc-card:hover {
    box-shadow: 0 4px 20px var(--tc-shadow);
    transform: translateY(-1px);
}

/* Rank #1 highlight */
.tc-card[data-rank="1"] {
    border: 1.5px solid rgba(255, 92, 53, 0.28);
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(255, 92, 53, 0.08);
}

/* ─── Rank Badge ─── */
.tc-rank {
    position: absolute;
    top: -10px;
    left: 14px;
    background: var(--tc-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--tc-border-radius-pill);
    line-height: 18px;
    white-space: nowrap;
}

.tc-card[data-rank="1"] .tc-rank {
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
}

/* ─── Logo ─── */
.tc-logo {
    width: 56px;
    min-width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #e4e4e4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 900;
    flex-shrink: 0;
}

.tc-logo img {
    padding: 6px;
    /* height: 100% !important; */
    width: 100%;
    object-fit: contain;
    object-position: center;
    position: absolute;
    inset: 0;
    background: inherit !important;
    max-width: 100%;
    margin: auto;
}

/* ─── Info ─── */
.tc-info {
    flex: 1;
    min-width: 0;
    padding-left: 2px;
}

.tc-info .h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--tc-text-dark);
    margin: 0 0 3px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-info button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--tc-text-dark) !important;
    cursor: pointer;
    text-align: left;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-info button:hover {
    opacity: 0.75;
}

.tc-info p {
    font-size: 13px;
    font-weight: 500;
    color: var(--tc-text-muted) !important;
    background: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 4px;
    min-width: 0;
    max-width: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.tc-info p::before {
    content: none;
}

.tc-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    color: var(--tc-warning) !important;
    margin-top: 2px;
    flex-wrap: wrap;
}

/* ─── Bottom Actions ─── */
.tc-info-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* ─── Buttons ─── */
button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: none;
}

.tc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--tc-border-radius-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: var(--tc-transition);
    white-space: nowrap;
}

.tc-btn.visit,
.tc-btn[onclick] {
    background: var(--tc-primary);
    color: #ffffff !important;
}

.tc-card[data-rank="1"] .tc-btn.visit {
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
}

.tc-btn:hover {
    opacity: 0.88;
    transform: scale(1.03);
}

.tc-btn.review {
    background: var(--tc-bg-secondary) !important;
    color: var(--tc-text-muted) !important;
    border: 0.5px solid var(--tc-border-color) !important;
}

/* ─── Toggle Details ─── */
.tc-toggle-details {
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    border-top: 0.5px solid var(--tc-border-color);
    color: var(--tc-text-secondary);
    font-size: 12px;
    font-weight: 600;
    padding: 10px 0 0;
    margin-top: 12px;
    text-align: center;
    transition: color 0.15s;
}

.tc-toggle-details:hover {
    color: var(--tc-primary);
}

.tc-details {
    width: 100%;
    padding-top: 12px;
}

.tc-details-info-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 24px;
}

.tc-details-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 0.5px solid var(--tc-border-color);
    font-size: 13px;
    flex-wrap: wrap;
}

.tc-details-info-name strong {
    color: var(--tc-text-dark) !important;
    font-weight: 600;
}

.tc-details-info-value {
    color: var(--tc-text-muted) !important;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
}

/* ─── Floating Banner ─── */
.tc-floating-banner {
    max-width: 900px;
    border-radius: var(--tc-border-radius);
    width: calc(100% - 16px);
    margin: 0.8rem auto;
    position: fixed;
    bottom: 8px;
    left: 8px;
    right: 8px;
    color: #ffffff;
    padding: 12px 16px;
    z-index: 9999;
    transform: translateY(calc(100% + 20px));
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    will-change: transform, opacity;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
}

.tc-floating-banner.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.banner-container {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.tc-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

.tc-banner-content img {
    width: 60px;
    height: 40px !important;
    border-radius: 10px;
    object-fit: contain;
    background: #222 !important;
    flex-shrink: 0;
    cursor: pointer;
}

.tc-banner-info {
    min-width: 0;
    flex: 1;
}

.tc-banner-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-banner-info span {
    display: inline-block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    background: rgb(37 37 37 / 50%);
    padding: 4px 8px;
    border-radius: 1rem;
    margin-top: 1px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.tc-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tc-banner-actions .tc-btn.visit {
    background: var(--tc-primary);
    border-radius: var(--tc-border-radius-pill);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tc-banner-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: var(--tc-border-radius-pill);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.tc-banner-close:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}

/* ─── States ─── */
.tc-loading {
    text-align: center;
    padding: 2rem;
    color: var(--tc-text-muted);
}

.tc-loading .tc-spinner {
    width: 32px;
    height: 32px;
    border: 2px solid var(--tc-border-color);
    border-top-color: var(--tc-primary);
    border-radius: 50%;
    animation: tc-spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes tc-spin {
    to {
        transform: rotate(360deg);
    }
}

.tc-error,
.tc-no-data,
.tc-no-matches {
    text-align: center;
    padding: 2rem;
    color: var(--tc-text-secondary);
    font-size: 14px;
}

.tc-error-message {
    text-align: center;
    padding: 1.5rem;
    background: #fff5f5;
    border: 0.5px solid rgba(255, 31, 61, 0.2);
    border-radius: var(--tc-border-radius);
    color: var(--tc-danger);
    font-size: 14px;
}

.tc-retry-btn {
    margin-top: 1rem;
    padding: 8px 20px;
    background: var(--tc-primary);
    color: #fff;
    border: none;
    border-radius: var(--tc-border-radius-pill);
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: var(--tc-transition);
}

.tc-retry-btn:hover {
    opacity: 0.85;
}

/* ─── Matches ─── */
.matches h2 {
    text-align: center;
    padding: 1.5rem 1rem;
    font-weight: 600;
    color: inherit;
    font-size: clamp(16px, 4vw, 20px);
}

.matches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
    justify-content: center;
}

.match-card {
    max-width: 300px;
    width: 100%;
    background: var(--tc-bg-card);
    border: 0.5px solid var(--tc-border-color);
    border-radius: var(--tc-border-radius);
    padding: 16px;
    box-shadow: 0 1px 6px var(--tc-shadow-light);
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.match-card:hover {
    box-shadow: 0 4px 16px var(--tc-shadow);
}

.match-card p {
    margin: 4px 0;
    font-size: 11px;
    text-align: center;
    color: var(--tc-text-muted);
}

.match-date {
    text-align: center;
    font-size: 12px;
    color: var(--tc-text-secondary);
    margin-bottom: 4px;
}

.match-league {
    text-align: center;
    font-style: italic;
    font-size: 11px;
    color: var(--tc-text-secondary);
    margin-bottom: 10px;
}

.teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 10px 0;
}

.team {
    max-width: 100px;
    width: 100%;
    text-align: center;
    min-width: 0;
}

.team img {
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
    display: block;
    object-fit: contain;
}

.team span {
    display: -webkit-box;
    font-weight: 600;
    font-size: 13px;
    color: var(--tc-text-dark);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 40px;
    word-break: break-word;
}

.vs {
    font-size: 12px;
    font-weight: 700;
    color: var(--tc-text-secondary);
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.match-result {
    background: var(--tc-bg-secondary);
    border-radius: var(--tc-border-radius-sm);
    padding: 8px 12px;
    text-align: center;
    margin: 10px 0;
}

.match-result strong {
    display: -webkit-box;
    font-size: 14px;
    font-weight: 600;
    color: var(--tc-text-dark);
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.match-odds {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 6px 0;
    flex-wrap: wrap;
}

.match-odds span {
    padding: 7px 12px;
    border-radius: var(--tc-border-radius-sm);
    font-weight: 700;
    font-size: 13px;
    min-width: 50px;
    text-align: center;
    border: 0.5px solid var(--tc-border-color);
    background: var(--tc-bg-secondary);
    color: var(--tc-text-dark);
    transition: var(--tc-transition);
    position: relative;
}

.match-odds span::after {
    content: attr(data-type);
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: var(--tc-text-secondary);
    margin-top: 1px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.match-odds span:hover {
    background: var(--tc-primary);
    color: #fff;
    border-color: var(--tc-primary);
    transform: translateY(-1px);
}

.match-odds span:hover::after {
    color: rgba(255, 255, 255, 0.7);
}

.visit-btn {
    display: block;
    background: var(--tc-primary);
    color: #ffffff;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    text-align: center;
    border-radius: var(--tc-border-radius-pill);
    transition: var(--tc-transition);
    margin-top: auto;
}

.visit-btn:hover {
    opacity: 0.88;
    color: #fff;
}

/* ─── Brand Wrapper Layout ─── */
.brand-wrapper {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.brand-wrapper .matches {
    max-width: 280px;
    width: 100%;
    order: 2;
    flex-shrink: 0;
}

.tc-brands-wrap {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.brand-wrapper .tc-brand-list {
    order: 1;
    flex: 1;
    min-width: 0;
}

/* ─── Debug ─── */
.geo-debug {
    background: #1e1e1e;
    color: #d4d4d4 !important;
    padding: 12px;
    border-radius: var(--tc-border-radius-sm);
    margin-top: 16px;
    font-family: monospace;
    font-size: 11px;
    word-break: break-all;
    overflow-x: auto;
}

.geo-debug summary {
    cursor: pointer;
    font-weight: 700;
}

.debug-content {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #333;
}

/* ─── Compact Table (tcw) ─── */
.tcw {
    font-family: inherit;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tcw-title {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: inherit;
    margin-bottom: 10px;
}

.tcw-table {
    width: 100%;
    border-collapse: collapse;
}

.tcw-table thead th {
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: inherit;
    text-align: center;
}

.tcw-table thead th.tcw-th-visit {
    text-align: center;
}

.tcw-table tbody tr {
    transition: background .12s;
}

.tcw-table tbody tr:last-child {
    border-bottom: none;
}

.tcw-table tbody tr:hover {
    background: inherit;
}

.tcw-table td {
    padding: 10px;
    vertical-align: middle;
}

.tcw-td-rank {
    width: 28px;
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    text-align: center;
    padding-left: 4px !important;
}

.tcw-td-logo {
    width: 44px;
    padding: 8px 6px !important;
}

.tcw-logo-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.tcw-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tcw-td-info {
    min-width: 0;
}

.tcw-name {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    max-width: 100%;
}

.tcw-name:hover {
    color: inherit;
}

.tcw-bonus {
    font-size: 11px;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
    max-width: 100%;
}

.tcw-td-rating {
    width: 80px;
    white-space: nowrap;
}

.tcw-stars {
    font-size: 12px;
    line-height: 1;
    text-align: center;
}

.tcw-star-filled {
    color: inherit;
}

.tcw-star-empty {
    color: inherit;
}

.tcw-rating-num {
    font-size: 10px;
    color: inherit;
    text-align: center;
    margin-top: 2px;
}

.tcw-td-visit {
    width: 72px;
    text-align: right;
}

.tcw-btn {
    display: inline-block;
    padding: 6px 12px;
    background: inherit;
    color: inherit !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    text-decoration: none;
}

.tcw-btn:hover {
    background: inherit;
    color: inherit !important;
}

.tcw-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tcw-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: tcwSpin .7s linear infinite;
}

@keyframes tcwSpin {
    to {
        transform: rotate(360deg);
    }
}

.tcw-error {
    font-size: 12px;
    color: inherit;
    text-align: center;
    padding: 12px 0;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 1024px
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .brand-wrapper {
        gap: 16px;
    }

    .brand-wrapper .matches {
        max-width: 240px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet ≤ 768px
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --tc-padding: 14px;
        --tc-gap: 12px;
    }

    .tc-details-info-items {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .brand-wrapper {
        flex-direction: column;
        gap: 16px;
    }

    .brand-wrapper .matches {
        max-width: 100%;
        order: -1;
        width: 100%;
    }

    .matches-container {
        gap: 10px;
    }

    .match-card {
        max-width: 100%;
        flex: 1 1 calc(50% - 10px);
        min-width: 260px;
    }

    /* tcw table - hide less critical columns */
    .tcw-td-rating,
    .tcw-table thead th:nth-child(4) {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile ≤ 600px
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    :root {
        --tc-border-radius: 14px;
        --tc-padding: 14px;
    }

    .tc-brand-list {
        margin: 1rem auto;
    }

    /* Card becomes vertical with centered content */
    .tc-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 18px 14px 14px;
    }

    .tc-logo {
        width: 64px;
        min-width: 64px;
        height: 64px;
    }

    .tc-info {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    .tc-info .h3,
    .tc-info button {
        text-align: center;
        white-space: normal;
        font-size: 15px;
    }

    .tc-info p {
        text-align: center;
        font-size: 12.5px;
    }

    .tc-rating {
        justify-content: center;
    }

    .tc-info-bottom {
        width: 100%;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
    }

    .tc-btn {
        width: 100%;
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Rank badge stays top-left but smaller */
    .tc-rank {
        left: 12px;
        top: -8px;
        font-size: 9px;
        padding: 3px 8px;
    }

    /* Floating banner becomes full-width at bottom */
    .tc-floating-banner {
        border-radius: 12px 12px 0 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 10px 12px;
    }

    .banner-container {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .tc-banner-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 10px;
    }

    .tc-banner-content img {
        width: 44px;
        height: 32px !important;
    }

    .tc-banner-info strong {
        font-size: 14px;
    }

    .tc-banner-info span {
        font-size: 10px;
        padding: 2px 6px;
    }

    .tc-banner-actions .tc-btn.visit {
        padding: 6px 12px;
        font-size: 11px;
    }

    .tc-banner-close {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 13px;
    }

    /* Matches: single column */
    .match-card {
        flex: 1 1 100%;
        min-width: 0;
        max-width: 100%;
    }

    .matches-container {
        gap: 10px;
    }

    /* Toggle details */
    .tc-toggle-details {
        margin-top: 10px;
    }

    /* tcw table tighter padding */
    .tcw-table td {
        padding: 8px 6px;
    }

    .tcw-table thead th {
        padding: 6px 6px;
        font-size: 10px;
    }

    .tcw-td-logo {
        width: 40px;
        padding: 6px 4px !important;
    }

    .tcw-logo-box {
        width: 34px;
        height: 34px;
    }

    .tcw-name {
        font-size: 12px;
    }

    .tcw-bonus {
        font-size: 10px;
    }

    .tcw-btn {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Small Mobile ≤ 480px
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    :root {
        --tc-padding: 12px;
    }

    .tc-info p {
        min-width: auto;
        font-size: 12px;
    }

    .tc-info .h3,
    .tc-info button {
        font-size: 14.5px;
    }

    /* Match card compact */
    .match-card {
        padding: 12px;
    }

    .teams {
        gap: 12px;
    }

    .team {
        max-width: 90px;
    }

    .team img {
        width: 36px;
        height: 36px;
    }

    .team span {
        font-size: 12px;
        min-height: 36px;
    }

    .match-odds {
        gap: 5px;
    }

    .match-odds span {
        padding: 6px 8px;
        font-size: 12px;
        min-width: 40px;
        flex: 1 1 auto;
    }

    .match-odds span::after {
        font-size: 8px;
    }

    .visit-btn {
        padding: 9px 16px;
        font-size: 11px;
    }

    /* tcw table - further compact, hide bonus on smallest screens if needed */
    .tcw-bonus {
        display: none;
    }

    .tcw-td-visit {
        width: auto;
    }

    .tcw-btn {
        padding: 5px 8px;
        font-size: 10px;
    }

    /* Details info */
    .tc-details-info-item {
        font-size: 12px;
        padding: 5px 0;
    }

    .tc-details-info-value {
        font-size: 12px;
    }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tiny Mobile ≤ 360px
═══════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .tc-card {
        padding: 16px 12px 12px;
    }

    .tc-logo {
        width: 56px;
        min-width: 56px;
        height: 56px;
    }

    .teams {
        gap: 8px;
    }

    .team {
        max-width: 80px;
    }

    .match-odds span {
        padding: 5px 6px;
        font-size: 11px;
        min-width: 36px;
    }

    .tc-banner-content img {
        width: 36px;
        height: 28px !important;
    }

    .tc-banner-info strong {
        font-size: 13px;
    }
}

.tcw-btn {
    background: #ff6a00 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(238, 9, 121, 0.3);
}

.tcw-btn:hover {
    background: #ff6a00 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(238, 9, 121, 0.45);
}

.tcw-btn:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .tcw {
        overflow: visible;
    }

    .tcw-table {
        table-layout: fixed;
    }

    .tcw-table thead {
        display: none;
    }

    .tcw-td-rating,
    .tcw-table thead th:nth-child(4) {
        display: none;
    }

    .tcw-table td {
        padding: 8px 4px;
    }

    .tcw-td-rank {
        width: 22px;
        font-size: 11px;
        padding-left: 2px !important;
    }

    .tcw-td-logo {
        width: 38px;
        padding: 6px 4px !important;
    }

    .tcw-logo-box {
        width: 34px;
        height: 34px;
        border-radius: 6px;
    }


    .tcw-td-info {
        width: auto;
        padding-right: 6px !important;
    }

    .tcw-name {
        font-size: 12px;
    }

    .tcw-bonus {
        font-size: 10px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.25;
    }

    .tcw-td-visit {
        width: 64px;
        padding: 6px 2px !important;
    }

    .tcw-btn {
        padding: 6px 8px;
        font-size: 10px;
        letter-spacing: .02em;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .tcw-td-rank {
        display: none;
    }

    .tcw-btn {
        padding: 5px 6px;
        font-size: 9px;
    }
}

* ============================================================
   AI PICK — favourite outcome highlight (predictions)
   ============================================================ */
.match-odds span.tc-ai-pick {
    border: 2px solid var(--tc-success);
    background: rgba(98, 196, 98, 0.08);
    color: var(--tc-text-dark);
    box-shadow: 0 0 0 3px rgba(98, 196, 98, 0.12), 0 2px 6px rgba(98, 196, 98, 0.25);
    overflow: visible;
}

.match-odds span.tc-ai-pick:hover {
    box-shadow: 0 0 0 3px rgba(98, 196, 98, 0.2), 0 4px 10px rgba(98, 196, 98, 0.35);
}

.match-odds span .tc-ai-badge {
    position: absolute;
    display: flex;
    align-items: center;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--tc-success);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.3px;
    line-height: 1;
    padding: 3px 7px;
    border-radius: 999px;
    box-shadow: 0 2px 5px rgba(98, 196, 98, 0.4);
    z-index: 2;
}

/* ============================================================
   4th odds cell — top brand logo (predictions row)
   ============================================================ */
.match-odds span.tc-odds-brand {
    padding: 4px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--tc-border-color);
    overflow: hidden;
}

.match-odds span.tc-odds-brand::after {
    content: none;
}

.match-odds span.tc-odds-brand img {
    max-width: 90%;
    max-height: 90%;
    /* width: auto; */
    margin: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.match-odds span.tc-odds-brand:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   Telegram funnel block — [tc_telegram]
   ============================================================ */
.tc-tg-funnel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--tc-bg-card, #fff);
    border-radius: 18px;
    padding: 20px 24px;
    margin: 18px 0;
    box-shadow: 0 2px 12px var(--tc-shadow, rgba(0, 0, 0, 0.08));
}

.tc-tg-funnel-text {
    flex: 1 1 240px;
    min-width: 0;
}

.tc-tg-funnel-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tc-text-dark, #1A1E2E);
    margin-bottom: 4px;
}

.tc-tg-funnel-sub {
    font-size: 14px;
    color: var(--tc-text-secondary, #666);
}

.tc-tg-funnel-link {
    color: #2aabee;
    text-decoration: none;
    font-weight: 600;
}

.tc-tg-funnel-link:hover {
    text-decoration: underline;
}

.tc-tg-funnel-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2aabee;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 11px 22px;
    border-radius: 999px;
    transition: var(--tc-transition, all 0.2s ease);
    white-space: nowrap;
}

.tc-tg-funnel-btn:hover {
    background: #1c97d6;
    transform: translateY(-1px);
    color: #fff !important;
}

.tc-tg-funnel-btn .tc-tg-icon {
    display: block;
}

@media (max-width: 480px) {
    .tc-tg-funnel {
        padding: 16px 18px;
    }
    .tc-tg-funnel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Floating action icons — gift + Telegram (bottom-right stack)
   ============================================================ */
.tc-float-icons {
    position: fixed;
    right: 30px;
    bottom: 90px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lift above the showcase bottom banner when it's visible */
.tc-float-icons.tc-float-lifted {
    bottom: 86px;
}

.tc-float-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-float-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32);
    color: #fff !important;
}

.tc-float-icon svg {
    display: block;
}

.tc-float-tg {
    background: #2aabee;
}

.tc-float-gift {
    background: linear-gradient(135deg, var(--tc-success, #62c462), #3ba84f);
    animation: tc-gift-pulse 2.2s ease-in-out infinite;
}

@keyframes tc-gift-pulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
    50%      { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(98, 196, 98, 0.18); }
}

@media (max-width: 480px) {
    .tc-float-icons {
        right: 18px;
        bottom: 75px;
        gap: 10px;
    }
    .tc-float-icon {
        width: 48px;
        height: 48px;
    }
    .tc-float-icons.tc-float-lifted {
        bottom: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tc-float-gift { animation: none; }
}

/* ============================================================
   Exit-intent popup — [tc_exit_popup]
   ============================================================ */
.tc-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 20, 0.62);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.tc-exit-overlay[hidden] {
    display: none;
}

.tc-exit-overlay.tc-exit-show {
    opacity: 1;
}

.tc-exit-modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--tc-bg-card, #fff);
    border-radius: 20px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(16px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.tc-exit-show .tc-exit-modal {
    transform: translateY(0) scale(1);
}

.tc-exit-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--tc-text-secondary, #888);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--tc-transition, all 0.2s ease);
}

.tc-exit-close:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--tc-text-dark, #1A1E2E);
}

.tc-exit-heading {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 800;
    color: var(--tc-text-dark, #1A1E2E);
    text-align: center;
}

/* --- Telegram CTA inside popup --- */
.tc-exit-tg {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #2aabee;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    transition: var(--tc-transition, all 0.2s ease);
}

.tc-exit-tg:hover {
    background: #1c97d6;
    color: #fff !important;
}

.tc-exit-tg-icon {
    flex: 0 0 auto;
    display: flex;
}

.tc-exit-tg-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.tc-exit-tg-title {
    font-weight: 800;
    font-size: 15px;
}

.tc-exit-tg-sub {
    font-size: 12px;
    opacity: 0.92;
}

.tc-exit-tg-btn {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
}

@media (max-width: 680px) {
    .tc-exit-tg {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* --- Brands list inside popup --- */
.tc-exit-brands-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--tc-text-secondary, #888);
    margin-bottom: 10px;
}

.tc-exit-brands {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tc-exit-loading {
    text-align: center;
    padding: 20px 0;
}

.tc-exit-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--tc-border-color, #e0e0e0);
    border-radius: 12px;
    transition: var(--tc-transition, all 0.2s ease);
}

.tc-exit-brand:hover {
    box-shadow: 0 3px 10px var(--tc-shadow, rgba(0, 0, 0, 0.08));
    transform: translateY(-1px);
}

.tc-exit-brand-rank {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--tc-special, #FFD700);
    color: #1a1e2e;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tc-exit-brand-logo {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tc-exit-brand-logo img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
}

.tc-exit-brand-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tc-exit-brand-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--tc-text-dark, #1A1E2E);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-exit-brand-bonus {
    font-size: 12px;
    color: var(--tc-text-secondary, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tc-exit-brand-btn {
    flex: 0 0 auto;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--tc-primary, #FF6B35), var(--tc-accent, #ff1f3d));
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    padding: 9px 16px;
    border-radius: 999px;
    transition: var(--tc-transition, all 0.2s ease);
}

.tc-exit-brand-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .tc-exit-modal {
        padding: 24px 18px 20px;
    }
    .tc-exit-brand-bonus {
        display: none;
    }
}

/* ============================================================
   Trust header — freshness badge + trust row (above showcase)
   ============================================================ */
.tc-trust-header {
    display: flex;
    /* flex-direction: column; */
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 4px 0 18px;
}

.tc-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(98, 196, 98, 0.12);
    color: #2f7d35;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
}

.tc-trust-badge-icon {
    display: flex;
}

.tc-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
}

.tc-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tc-text-muted, #333);
}

.tc-trust-item-icon {
    display: flex;
    color: var(--tc-success, #62c462);
}

.tc-trust-item-label {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .tc-trust-header {
      flex-direction: column; 
    }
    .tc-trust-row {
        gap: 8px 14px;
    }
    .tc-trust-item {
        font-size: 12px;
    }
}