:root {
  --tc-bg-primary: #ffffff;
  --tc-bg-secondary: #f8f9fa;
  --tc-bg-card: #ffffff;
  --tc-text-primary: #ffffff;
  --tc-text-secondary: #666666;
  --tc-text-dark:#1A1E2E;
  --tc-text-muted: #333333;
  --tc-border-color: #e0e0e0;
  --tc-shadow: rgba(0, 0, 0, 0.08);
  --tc-shadow-light: rgba(0, 0, 0, 0.05);

  --tc-primary: #FF6B35;
  --tc-accent: #FFB700;
  --tc-success: #62c462;
  --tc-warning: #ff9800;
  --tc-danger: #ff1f3d;
  --tc-special: #FFD700;
  
  --tc-border-radius: 16px;
  --tc-border-radius-sm: 8px;
  --tc-gap: 2rem;
  --tc-padding: 20px;
  --tc-padding-sm: 10px;
  
  --tc-transition: all 0.2s ease;
  --tc-transition-slow: all 0.3s ease;
}

.matches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    background: #ffffff;
    color: #333333;
    border-radius: 16px;
    padding: 20px;
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    justify-content: center;
}

.match-card {
    max-width:340px;
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.match-date {
    text-align: center;
    color: #666666;
    font-size: 14px;
    margin-bottom: 6px;
}

.match-league {
    text-align: center;
    font-style: italic;
    color: #888888;
    font-size: 13px;
    margin-bottom: 10px;
}

.teams {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 10px 0;
}

.team {
    max-width: 120px;
    width: 100%;
    text-align: center;
}

.team img {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
}

.team span {
    display: block;
    font-weight: bold;
    font-size: 15px;
    color: #333333;
}

.vs {
    font-size: 18px;
    font-weight: bold;
    color: #666666;
}

.match-result {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    margin: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

}

.match-result strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
    color: #333333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.match-odds {
    color: #d4af37;
    font-weight: bold;
}

.visit-btn {
    display: block;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    padding: 10px 20px;
    text-align: center;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
    margin-top:auto;
}

.visit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3);
}
.tc-brand-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin:2rem auto;
}

.tc-card {
    position: relative;
    display: flex;
    flex-wrap:wrap;
    gap:0.5rem;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 1rem;
    border-radius: 12px;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tc-toggle-details {
    cursor:pointer;
    width: 100%;
    background: none;
    border: none;
    color:var(--tc-text-muted);
}

.tc-details {
    width: 100%;
    padding:1rem;;
}

.tc-details-info-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
}
@media(max-width:768px){
    .tc-details-info-items {
        display: block;
    }
}
.tc-details-info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0 10px;
    border-bottom:1px solid;
}

.tc-details-info-name strong {
    color:var(--tc-text-dark);
}

.tc-details-info-value {
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.5px;
    font-size: 14px;
    color: var(--tc-text-muted);
}

.tc-logo {
    width: 182px;
    min-width: 182px;
    min-height: 106px;
    max-height: 106px;
    /* background: #000; */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #e4e4e4;
}

.tc-logo img {
    padding:1rem;
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    -o-object-position: center;
    object-position: center;
    position: absolute;
    margin:auto;
}

.tc-info {
    flex: 1;
    padding-left: 1rem;
}

.tc-info a {
    color: inherit;
    text-decoration: none;
}
.tc-info a:hover {
    color: inherit;
    opacity: 0.8;
}


.tc-info h3 {
    margin-top: 0;
    color:var(--tc-text-dark);
}

.tc-info p {
    margin:0;
    color: var(--tc-text-muted);
}

.tc-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 500;
}

.tc-btn:first-child {
    margin-right: 0.5rem;
}

.tc-info-bottom .tc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--tc-accent), var(--tc-primary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tc-btn:hover::before {
    opacity: 1;
}

.tc-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.tc-btn.review {
    background: #f5f5f5;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.tc-rank {
    width: 33px;
    height: 32px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -10px;
    left: -14px;
    font-weight: 700;
    color: var(--tc-text-primary);
    background: var(--tc-danger);
    font-size: 20px;
    padding-right: 2px;
    transition: all 0.3s;
    border-radius: 999px;
    font-style: italic;
}

.tc-rating {
    margin-top: 5px;
    color: #ff9800;
}
/* Стили для выделения первого топа */
.tc-card[data-rank="1"] {
    border: 2px solid var(--tc-special);
    background: linear-gradient(135deg, #ffffff 0%, #fff9e6 100%);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    /* overflow: hidden; */
}

/* .tc-card[data-rank="1"]::before {
    content: "TOP 1";
    position: absolute;
    top: 10px;
    right: -30px;
    background: linear-gradient(135deg, #FFD700, #FFA000);
    color: #000;
    padding: 5px 40px;
    font-weight: bold;
    font-size: 14px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
} */


.tc-card[data-rank="1"] .tc-rank {
    background: linear-gradient(135deg, #FFD700, #FF6B00);
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: -15px;
    left: -15px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.4);
}
.tc-card[data-rank="1"] .tc-info-bottom {
    display: flex;
}

.tc-card[data-rank="1"] .tc-btn.visit {
    background: linear-gradient(135deg, #FFD700, #FF6B00);
    color: #000;
    font-weight: bold;
}

@media(max-width:800px) {
    .tc-card {
        justify-content: center;
    }
    .tc-info,.tc-info p {
        text-align:center;
        padding:0;
    }
}

/* === Floating Banner === */
.tc-floating-banner {
    position: fixed;
    bottom: -150px;
    left: 0;
    right: 0;
    background: #121313;
    color: var(--tc-text-primary);
    padding: 0.75rem 1rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.4s ease;
}

.banner-container {
    max-width:800px;
    margin:auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
}

@media(max-width:800px){
    .banner-container { justify-content: center;}
}

.tc-floating-banner.active {
    bottom: 0;
}

.tc-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-banner-content img {
    width: 60px;
    border-radius: 8px;
    background: inherit !important;
}

.tc-banner-info strong {
    font-size: 1rem;
    color: var(--tc-text-primary);
}

.tc-banner-info span {
    background: rgb(37 37 37 / 50%);
    padding:4px 8px;
    border-radius:1rem;
    color: var(--tc-success);
    font-size: 0.9rem;
}

.tc-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tc-banner-actions .tc-btn.visit {
    background: var(--tc-danger);
    border-radius: 999px;
    padding: 0.5rem 1.25rem;
    font-weight: bold;
    color: var(--tc-text-primary);
    text-decoration: none;
}

.tc-banner-actions .tc-btn.visit:hover {
    background: var(--tc-danger);
    transform: scale(1.1);
}

.tc-banner-close {
    background: none;
    background: rgb(37 37 37 / 50%);
    padding: 4px 8px;
    border-radius: 1rem;
    border: none;
    color: var(--tc-success);
    font-size: 1.2rem;
    cursor: pointer;
}

@media (max-width: 600px) {
    .tc-floating-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}
/* brand-wrapper */
.brand-wrapper {
    display: flex;
    gap:2rem;
}

.brand-wrapper .matches {
    max-width: 300px;
    width: 100%;
    order: 2;
}

.brand-wrapper .tc-brand-list {
    order: 1;
}