.sport-events-container {
    contain: content;
    display: block;
    isolation: isolate;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    max-width: 100%;
    margin: 20px 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    line-height: 1.4;
    color: #333;
    box-sizing: border-box;
}

.sport-events-container * { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

.stvg-top-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;                  /* Firefox */
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.stvg-top-nav::-webkit-scrollbar {
    display: none;                          /* Chrome, Safari, Edge */
}

.stvg-top-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    min-width: 60px;
    padding: 6px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.stvg-top-nav a:hover,
.stvg-top-nav a.active {
    color: #00a850;
    background: rgba(0, 168, 80, 0.1);
}

.stvg-top-nav i {
    font-size: 22px;
}

.stvg-more-sports {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
}

.stvg-more-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    cursor: pointer;
    color: #555;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s;
}

.stvg-more-trigger:hover {
    background: rgba(0, 0, 0, 0.08);
    color: #000;
}

.stvg-more-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 240px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 1000;
    padding: 12px 0;
    margin-top: 4px;
}

.stvg-more-sports:hover .stvg-more-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.stvg-more-dropdown a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 20px;
    font-size: 14px;
    width: 100%;
    transition: background 0.2s;
}

.stvg-more-dropdown a:hover {
    background: #f8f8f8;
    color: #00a850;
}

.stvg-more-dropdown i {
    font-size: 20px;
    width: 26px;
    text-align: center;
}

@media (max-width: 768px) {
    .stvg-more-sports {
        display: none;
    }
    .stvg-top-nav {
        padding: 12px 10px;
        gap: 14px;
    }
}

.stvg-controls, .stvg-date-nav {
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}

.stvg-date-nav {
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.stvg-date-nav::-webkit-scrollbar {
    height: 6px;
}

.stvg-date-nav::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.stvg-date-list {
    display: flex;
    min-width: max-content;
    padding: 12px 16px;
    gap: 2px;
}

.stvg-date-item {
    text-align: center;
    padding: 10px 14px;
    min-width: 56px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    user-select: none;
}

.stvg-date-item:hover { background: #e8e8e8; }
.stvg-date-item.today { background: #00a850; color: #fff; font-weight: 700; }
.stvg-date-item .day-num { font-size: 18px; font-weight: 700; display: block; margin-bottom: 4px; }
.stvg-date-item .day-name { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; }

.stvg-header {
    background: linear-gradient(135deg, #00a850, #00843d);
    color: #fff;
    text-align: center;
    padding: 14px;
    font-size: 22px;
    font-weight: bold;
}

.stvg-subheader {
    background: #002b49;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 15px;
    position: relative;
}

.stvg-subheader .all-time {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.9;
}

span.clickable:hover {
    cursor: pointer !important;
}


.stvg-games { padding: 0 16px 20px; }
.stvg-sport-title { font-weight: bold; font-size: 18px; margin: 20px 0 12px; display: flex; align-items: center; gap: 10px; }
.stvg-league-title { font-weight: bold; font-size: 16px; margin: 1em; text-align: center; padding: 1em; border: 1px solid green; border-radius: 16px; }

.stvg-game { display: flex; align-items: center; padding: 14px 0; border-bottom: 1px solid #eee; gap: 16px; flex-wrap: wrap; }
.stvg-game-time { font-weight: bold; min-width: 90px; font-size: 15px; }
.stvg-teams { flex: 1; min-width: 200px; }
.stvg-team { font-size: 16px; font-weight: 500; }
.stvg-league { font-size: 12px; color: #666; margin-top: 4px; }
.stvg-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.stvg-channel { padding: 5px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; white-space: nowrap; background: #e5e5e5; color: #000; }

@media (max-width: 600px) {
    .stvg-game { flex-direction: column; align-items: flex-start; }
    .stvg-game-time { min-width: auto; }
    .stvg-channels { margin-top: 8px; }
}






/* Page Title with teams – appears above everything */
.stvg-page-title {
    text-align: center;
    padding: 32px 20px 20px;
    background: #fff;
}
.stvg-page-title h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}
.stvg-page-title .at {
    font-size: 36px;
    margin: 0 12px;
    opacity: 0.7;
}
.stvg-page-title .match-date {
    display: block;
    font-size: 18px;
    font-weight: 500;
    color: #666;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .stvg-page-title h1 {
        font-size: 26px;
    }
    .stvg-page-title .at {
        display: block;
        margin: 8px 0;
    }
}

.stvg-match-header { background:#0b1d3a; color:#fff; padding:12px 20px; display:flex; justify-content:space-between; align-items:center; font-size:14px; font-weight:600; }
.stvg-match-header .all-time { opacity:0.9; }

.stvg-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    justify-items: center;
    padding: 40px 32px;
    background: #fff;
    gap: 20px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
}

.stvg-matchup a {
    color: inherit;
    text-decoration: none;
}

.stvg-at {
    font-size: 42px;
    font-weight: 400;
    opacity: 0.7;
    grid-column: 2;
}

.stvg-team-away,
.stvg-team-home {
    width: 100%;
    padding: 0 20px;
    overflow-wrap: break-word;
    word-break: break-word;
}

@media (max-width: 640px) {
    .stvg-matchup {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 16px;
        padding: 32px 20px;
        font-size: 24px;
    }
    
    .stvg-at {
        grid-row: 2;
        font-size: 38px;
    }
    
    .stvg-team-away  { grid-row: 1; }
    .stvg-team-home  { grid-row: 3; }
}

.stvg-match-info { text-align:center; padding:20px; background:#f8f8f8; font-size:16px; line-height:1.6; }
.stvg-match-info a { color:inherit; text-decoration:none; }
.stvg-match-info .league { color:#0b1d3a; font-weight:600; margin-bottom:8px; }
.stvg-match-info .league a { color:#0066cc; font-weight:600; margin-bottom:8px; }
.stvg-match-info .venue { color:#555; }

.stvg-match-time { background:linear-gradient(90deg,#00ca71,#00a058); color:#fff; text-align:center; padding:18px; font-size:24px; font-weight:bold; }
.stvg-match-time::before { font-size:28px; }

.stvg-stream-header { background:#0b1d3a; color:#fff; text-align:center; padding:14px; font-size:15px; font-weight:600; }

.stvg-stream-channels { padding:0; background:#fff; }
.stvg-stream-channel { 
    display:grid; 
    grid-template-columns:60px 1fr auto; 
    align-items:center; 
    padding:16px 20px; 
    border-bottom:1px solid #eee; 
    gap:16px;
}
.stvg-stream-channel:last-child { border-bottom:none; }

.stvg-channel-logo {
    display:block; width:48px; height:48px; background-size:contain; background-repeat:no-repeat; background-position:center; border-radius:8px;
}

.stvg-channel-name a { color:#333; text-decoration:none; font-weight:500; }
.stvg-channel-name a:hover { text-decoration:underline; }

.stvg-watch-live { text-align:right; }
.stvg-watch-btn {
    background:#00ca71; color:#fff; padding:8px 16px; border-radius:8px; text-decoration:none; font-weight:600; font-size:14px;
    display:inline-flex; align-items:center; gap:8px; transition:all .2s;
}
.stvg-watch-btn:hover { background:#00a058; transform:translateY(-1px); }

/* Responsive */
@media (max-width:640px) {
    .stvg-matchup { padding:24px 20px; font-size:22px; flex-direction:column; gap:12px; }
    .stvg-matchup .at { margin:0; }
    .stvg-stream-channel { grid-template-columns:50px 1fr; }
    .stvg-watch-live { grid-column:1/3; text-align:left; margin-top:8px; }
}






/* === Team Schedule Page === */
/* Team Page Title – real H1 with original styling */
.stvg-team-page-title {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #003087, #0050b3);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.stvg-team-header {
    margin: 0 !important;                  /* важно — переопределяем дефолтные отступы h1 */
    padding: 20px 24px;
    background: none;                      /* фон теперь у родителя */
    color: #fff;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    position: relative;
    display: block;
}

.stvg-team-header::before {
    content: "\f3fd";                      /* fas fa-tshirt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 12px;
    font-size: 28px;
    opacity: 0.9;
}

.stvg-team-header .favorite {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.9;
}

.stvg-team-header .favorite:hover {
    opacity: 1;
}



.stvg-team-header {
    background: linear-gradient(135deg, #003087, #0050b3);
    color: #fff;
    padding: 20px 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    border-radius: 8px 8px 0 0;
    position: relative;
}
.stvg-team-header::before {
    content: "\f3fd";                     /* fas fa-tshirt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 12px;
    font-size: 28px;
    opacity: 0.9;
}
.stvg-team-header .favorite {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    cursor: pointer;
}

.stvg-team-intro {
    padding: 20px 24px;
    background: #f8f9fa;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    border-bottom: 1px solid #eee;
}

.stvg-schedule-header {
    background: #0b1d3a;
    color: #fff;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.stvg-schedule-header .all-time { opacity: 0.9; font-size: 13px; }

.stvg-schedule-list {
    background: #fff;
}

.stvg-schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #eee;
    gap: 16px;
    transition: background 0.2s;
}
.stvg-schedule-item:hover {
    background: #f9f9f9;
}

.stvg-schedule-date {
    font-weight: 700;
    color: #003087;
    font-size: 15px;
}
.stvg-schedule-time {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.stvg-schedule-matchup {
    font-size: 18px;
    font-weight: 600;
}
.stvg-schedule-matchup a {
    color: inherit;
    text-decoration: none;
}
.stvg-schedule-matchup .at { opacity: 0.6; margin: 0 8px; }

.stvg-schedule-league {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.stvg-schedule-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.stvg-schedule-channel {
    background: #e5e5e5;
    color: #000;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stvg-schedule-channel i {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 640px) {
    .stvg-schedule-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .stvg-schedule-channels { justify-content: center; margin-top: 12px; }
}




.stvg-lists-title {
    text-align: center;
    padding: 32px 20px 24px;
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: #222;
}

.stvg-lists-header {
    background: #0b1d3a;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.stvg-lists-list {
    background: #fff;
}

.stvg-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
    font-size: 17px;
    font-weight: 500;
    color: #333;
}

.stvg-list-item:hover {
    background: #f8f9fa;
}

.stvg-list-item a {
    color: inherit;
    text-decoration: none;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stvg-list-name {
    color: #00684a;
    font-weight: 600;
}

.stvg-list-arrow {
    color: #00684a;
    font-size: 24px;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 640px) {
    .stvg-lists-title { font-size: 24px; padding: 28px 16px 20px; }
    .stvg-list-item { padding: 16px 20px; font-size: 16px; }
}






.stvg-leagues2025-title {
    text-align: center;
    padding: 40px 20px 20px;
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
}

.stvg-leagues2025-subtitle {
    background: #0b1d3a;
    color: #fff;
    text-align: center;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 30px;
}

.stvg-leagues2025-list {
    display: grid;
    gap: 1px;
    background: #ddd;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 16px 40px;
}

.stvg-leagues-item {
    background: #fff;
    display: grid;
    grid-template-columns: auto 2fr 1fr 1fr auto;
    align-items: center;
    padding: 18px 24px;
    transition: background 0.2s;
    font-size: 17px;
}

.stvg-leagues-item:hover {
    background: #f8fff8;
}

.stvg-leagues-item a {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 2fr 1fr 1fr auto;
    align-items: center;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.stvg-leagues-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.stvg-leagues-flag-empty {
    width: 28px;
    height: 20px;
    object-fit: cover;
}

.stvg-leagues-name {
    font-weight: 600;
    padding-left: 16px;
}

.stvg-leagues-sport {
    color: #00684a;
    font-weight: 600;
    text-align: center;
}

.stvg-leagues-country {
    color: #555;
    text-align: center;
    font-size: 15px;
}

.stvg-leagues-arrow {
    color: #00684a;
    font-size: 28px;
    font-weight: bold;
    justify-self: center;
}

@media (max-width: 768px) {
    .stvg-leagues-item,
    .stvg-leagues-item a {
        grid-template-columns: 40px 1fr auto;
        gap: 12px;
        padding: 16px;
    }
    .stvg-leagues-sport,
    .stvg-leagues-country {
        display: none;
    }
    .stvg-leagues-name {
        padding-left: 0;
    }
    .stvg-leagues2025-title { font-size: 26px; }
}

