/**
    * DirettaGoal Public CSS
 */


pre.debug {
    white-space: pre !important;
    tab-size: 4 !important;
    -moz-tab-size: 4 !important;
    font-family: monospace !important;
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 16px;
    border-radius: 6px;
    overflow: auto;
    text-align: left;
}


.dg-card-box{
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.dg-card-box H2 {
  margin: 0;
  padding: 12px 20px;
  background: var(--dg-primary);
  font-size: 0.9rem;
  line-height: 1.4rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

/* Box torneo */

.dg-tournament {
    margin-bottom: 10px;
}

.dg-tournament-head {
    background-color: var(--dg-primary);
    color: var(--dg-text-primary);
    border-radius: 4px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
}

.dg-tournament-head A {
    color: #fff;
    text-decoration: none;
}

.dg-tournament-head A:hover,
.dg-tournament-head:hover {
    color: var(--dg-secondary);
    text-decoration: none;
}


.dg-tournament-head .dg-tournament-name {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--dg-text-primary);
	line-height: 0.7rem;
	display: flex;
	align-items: center;
}

.dg-tournament-icon {
    margin-right: 10px;
}

.dg-tournament-icon img {
    max-width: 35px;
    max-height: 35px;
    object-fit: contain;
    display: block;
}

.dg-tournament-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dg-tournament-category {
	font-size: .75rem;
	color: #dedede;
	line-height: 1rem;
	font-weight: 400;
}

.dg-tournament-caret {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dg-text-primary);
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
    min-width: 20px;
}


.dg-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-style: italic;
}

/* COMPACT STYLE FOR TOURNAMENT HEADERS */

.dg-tournament-head.compact {
	background-color: var(--dg-primary);
	color: var(--dg-text-primary);
	border-radius: 4px;
	padding: 10px;
	display: flex;
	justify-content: space-between;
	font-weight: bold;
	cursor: pointer;
	text-align: left;
}

.dg-tournament-head.compact .dg-tournament-name-link {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.dg-tournament-head.compact .dg-tournament-icon img {
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
}

.dg-tournament-head.compact .dg-tournament-name {
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--dg-text-primary);
	line-height: 1.4rem;
	display: flex;
	align-items: center;
}

@media (max-width: 768px) {
    .dg-tournament-link {
        padding: 12px;
        gap: 12px;
    }
    
    .dg-tournament-icon {
        width: 28px;
        height: 28px;
    }
    
    .dg-tournament-icon img {
        max-width: 28px;
        max-height: 28px;
    }
    
    .dg-tournament-name {
        font-size: 14px;
    }
    
    .dg-tournament-category {
        font-size: 12px;
    }
}

.dg-tournament-body.hidden {
    display: none;
}

/* .dg-tournament-row {
    display: grid;
    grid-template-columns: 15% 25% 10% 25% 5% 10%;
    grid-column-gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    border-top: 1px solid #1234564f;
    font-weight: bold;
    padding: 10px 5px;
    justify-content: space-between;
    transition: all 0.5s ease;
} */

.dg-tournament-row {
    display: grid;
    grid-template-columns: 5% 70% 10%;
    grid-column-gap: 10px;
    align-items: center;
    font-size: 0.8rem;
    border-top: 1px solid #1234564f;
    font-weight: bold;
    padding: 10px 5px;
    justify-content: space-between;
    transition: all 0.5s ease;
}

.dg-tournament-row-inner {
    /*     display: grid;
    grid-template-rows: auto auto;
    grid-column-gap: 10px;
    justify-content: space-between; */
    transition: all 0.5s ease;
}

.dg-tournament-row-inner .dg-tournament-home-row,
.dg-tournament-row-inner .dg-tournament-away-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-column-gap: 10px;
}

/* .dg-tournament-row-inner .dg-tournament-home-row {
    margin-bottom: 5px;
} */

.dg-tournament-row:first-child {
    border-bottom: none;
}

.dg-tournament-home {
    text-align: right;
    display: flex;
    align-items: center;
    column-gap: 10px;
    justify-content: space-between;
}

.dg-tournament-score {
    text-align: center;
}

.dg-tournament-away {
    text-align: left;
    display: flex;
    align-items: center;
    column-gap: 10px;
    justify-content: space-between;
}

.dg-tournament-options {
    text-align: right;
}

.dg-section-title {
	font-size: 1rem;
	margin: 5px 0;
	border-left: 2px solid #123456;
	padding-left: 10px;
	background: #f5f5f5;
}

/* .dg-match-score {
    display: inline-block;
    background-color: var(--dg-primary);
    padding: 0.25em 0.4em;
    white-space: nowrap;
    border-radius: 0.25rem;
    color: var(--dg-text-primary);
    min-width: 45px;
    font-size: 11px;
    vertical-align: baseline;
    text-align: center;
} */
.dg-match-score {
    display: inline-block;
    white-space: nowrap;
    text-align: center;
}

/* .dg-match-score.dg-match-live {
    background-color: var(--dg-secondary);
} */

.dg-match-score.dg-match-live {
    background-color: var(--dg-secondary);
    color: #fff;
    padding: 0px 8px;
    border-radius: 5px;
    margin: 3px 0;
}

.dg-match-blink {
    animation: blinker .75s linear infinite;
    color: #dc3545 !important;
    font-weight: bold;
}


/* SVG Bell Icons */
.dg-favourites-toggle .dg-bell-icon {
    display: inline-block;
    vertical-align: middle;
    color: #888;
    transition: color 0.2s ease;
}

.dg-favourites-toggle .dg-bell-filled {
    display: none;
}

.dg-favourites-toggle .dg-bell-outline {
    display: inline-block;
}

.dg-favourites-toggle:hover .dg-bell-icon {
    color: orange;
}

.dg-favourites-toggle.active .dg-bell-filled {
    display: inline-block;
    color: orange;
}

.dg-favourites-toggle.active .dg-bell-outline {
    display: none;
}

/* Legacy Font Awesome support */
.dg-favourites-toggle.active I {
    color: orange;
    font-weight: bold;
}

.dg-tournament-collapse {
    width: 80px;
    text-align: right;
}

@keyframes blinker {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    50.01% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* Goal highlight effect */
.goal-highlight {
    animation: goalGlow 1s ease-in-out 3;
    position: relative;
}

.goal-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.15), transparent);
    animation: goalShine 1.5s ease-in-out;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes goalGlow {
    0%, 100% {
        background-color: inherit;
        box-shadow: none;
    }
    50% {
        background-color: rgba(76, 175, 80, 0.08);
        box-shadow: 0 0 12px rgba(76, 175, 80, 0.3);
    }
}

@keyframes goalShine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Score blink on goal */
.score-blink {
    animation: scorePulse 0.4s ease-in-out 2;
}

@keyframes scorePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        color: #4caf50;
    }
}

.dg-match-time,
.dg-tournament-options-items {
    white-space: nowrap;
}

.dg-widget {
    margin-bottom: 15px;
    min-height: 300px;
}

.dg-widget h2 {
    font-size: 1.3rem;
    font-weight: bold;
    border-left: 10px solid var(--dg-primary);
    padding-left: 10px;
}

.dg-breadcrumb {
    margin-bottom: 10px;
}

.dg-breadcrumb ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    list-style: none;
    flex-wrap: wrap;
}

.dg-breadcrumb ul li {
    padding: 0 8px 0 0;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.dg-breadcrumb ul li a {
    text-decoration: none;
    color: var(--dg-primary);
    transition: color 0.3s ease;
    font-weight: bold;
}

.dg-breadcrumb ul li a:hover {
    color: var(--dg-secondary);
    text-decoration: underline;
}


.dg-breadcrumb ul li:not(:last-child)::after {
    content: "›";
    font-weight: bold;
    color: #999;
    margin-left: 8px;
}

.dg-text-truncate {
    display: flex;
    gap: 8px;
    align-items: center;
    line-height: 1.8rem;
}

.dg-match-pause {
    font-size: 0.7rem;
    color: #666;
}

.dg-tabs {
    margin: 0 0 20px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dg-tabs UL {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.dg-tabs UL LI {
    flex: 1 1 auto;
    padding: 5px 25px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 3px;
    transition: all 0.5s ease;
    background-color: #f9f9f9;
    white-space: nowrap;
    text-align: center;
}

.dg-tabs UL LI A{
    display:block;
}

.dg-tabs UL LI.active,
.dg-tabs UL LI.nav-link-matches-clicked,
.dg-tabs UL LI:hover {
    background-color: var(--dg-secondary);
    color: #fff;
}

.dg-tabs UL LI.active A,
.dg-tabs UL LI:hover A {
    color: var(--dg-text-primary);
    text-decoration: none;
}

.dg-tab-btn{
    cursor: pointer;
}

/* Tab Live quando ci sono partite live ma NON è attivo */
.dg-tab-live-active {
    position: relative;
    background-color: #f9f9f9 !important; /* Grigio come gli altri tab */
    color: #333 !important;
    border: 2px solid #ff4444 !important; /* Bordo rosso per indicare partite live */
    overflow: hidden;
}

.dg-tab-live-active::after {
    content: '●';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: #ff4444;
    animation: dg-live-heartbeat 1.8s infinite;
}

.dg-tab-live-active a {
    color: #333 !important;
}

/* Tab Live quando è ATTIVO (selezionato) - Animazione completa */
.dg-tab-live-active.active {
    background: linear-gradient(135deg, #ff4444, #ff6b6b) !important;
    color: #fff !important;
    animation: dg-live-glow 3s infinite ease-in-out;
}

.dg-tab-live-active.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: dg-live-shine 2.5s infinite;
}

.dg-tab-live-active.active::after {
    color: #fff;
}

.dg-tab-live-active.active a {
    color: #fff !important;
    font-weight: 600;
}

@keyframes dg-live-glow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes dg-live-shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes dg-live-heartbeat {
    0%, 40%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    20%, 60% {
        opacity: 0.7;
        transform: scale(1.3);
    }
}



@media (max-width: 600px) {

    .dg-tabs {
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }

    .dg-tabs::-webkit-scrollbar {
        display: none;
    }

    .dg-text-truncate {
        width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8rem !important;
    }

    .dg-tabs UL LI {
        padding: 5px 5px !important;
        font-size: 0.75rem !important;
    }
}
.dg-time {
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
}


.dg-table {
    width: 100%;
    border: 0;
    margin-bottom: 3px;
}

.dg-table TD {
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid #1234564f;
    font-weight: bold;
}

.dg-table tr:last-child TD {
    border-bottom: none;
}

THEAD TH {
    background-color: var(--dg-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-align: left;
    position: relative;
    padding: 10px;
}

.dg-table THEAD TH::after {
    content: "\f106";
    /* Caret down icon */
    /*font-family: "Font Awesome 6 Free";*/
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 6px;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.dg-table THEAD TH.rotated::after {
    transform: rotate(180deg);
}

tbody {
    transition: all 0.3s ease;
}

tbody.hidden {
    display: none;
}

.dg-partial-score {
	font-size: 0.75rem;
	color: #777;
	font-weight: 600;
}

.dg-clickable {
    cursor: pointer;
}

.dg-cards-yellow,
.dg-cards-red {
	display: inline-flex;           
	align-items: center;            
	justify-content: center;        
	width: auto;
	height: 15px;                   
	min-width: 10px;                
	padding: 0 4px;               
	margin-right: 5px;
	font-size: 0.55rem;
	border-radius: 3px;
	text-align: center;
	transform: rotate(5deg);
	line-height: 1;
}

.dg-cards-yellow {
    background-color: #ffe455;
    border: 1px solid #c8aa06;
}

.dg-cards-red {
    background-color: #e42f2f;
    border: 1px solid #9d0e1c;
    color: #fff;
}

.dg-tabs-pills {
    display: flex;
    align-items: center;
    column-gap: 28px;
    margin: 20px 0;
}

.dg-tabs-pills .dg-pill {
    background-color: #E2E2E2;
    font-size: 0.90rem;
    padding: 5px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.dg-tabs-pills .dg-pill.nav-link-matches-clicked,
.dg-tabs-pills .dg-pill:hover {
    color: #fff;
    background-color: var(--dg-primary);
}

.dg-stats-toggle.active {
    color: var(--dg-secondary);
}

/* HTML: <div class="loader"></div> */
.loader {
    width: 20px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--dg-primary);
    box-shadow: 0 0 0 0 #12345640;
    animation: l2 1.5s infinite linear;
    position: relative;
    text-align: center;
    margin: 50px auto;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 #12345640;
    animation: inherit;
    animation-delay: -0.5s;
}

.loader:after {
    animation-delay: -1s;
}

@keyframes l2 {
    100% {
        box-shadow: 0 0 0 40px #0000
    }
}


.tab-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.tab-buttons {
    display: flex;
    justify-content: start;
    cursor: pointer;
}

.tab-buttons div {
    padding: 10px 20px;
    background-color: var(--dg-primary);
    color: white;
    border: 1px solid #fff;
    border-bottom: 0;
    font-size: 0.9rem;
}

.tab-buttons div.active {
    background-color: var(--dg-secondary);
}

.tab-content {
    display: none;
    padding: 0px;
}

.tab-content.active {
    display: block;
}

.quote-up,
.quote-down {
    width: 14px;
    height: 14px;
    margin-right: 10px;
}

.td-quote-logo {
    width: 30%;
}


.table-quote THEAD TH {
    border-radius: 0;
}

.table-quote THEAD TH::after {
    content: '';
}

.table-quote .quote-logo {
    max-width: 130px;
    display: block;
}

.table-quote .td-quote {
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ===== Base ===== */
.dg-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: .25rem;
    color: #fff;
}

.dg-menu .dg-menu-toggle {
    display: none;
}

/* Lista principale desktop */
.dg-menu .dg-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.dg-menu .dg-menu-list li {
    position: relative;
}

.dg-menu .dg-menu-list li a {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 12px 14px;
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.dg-menu .dg-menu-list li a:hover,
.dg-menu .dg-menu-list li a.active {
    background: var(--dg-secondary);
}

/* ===== Dropdown (desktop) =====
   Evitiamo display:none per non avere hover "bloccati" su touch
   usiamo visibility/opacity+pointer-events e transizioni */
.dg-menu .dropdown-content {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: var(--dg-primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    z-index: 100;
    display: block;
    /* sempre block */
    visibility: hidden;
    /* nascosto di default */
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

/* Apri su .open, :hover o :focus-within (anche tastiera) */
.dg-menu li.dropdown.open>.dropdown-content,
.dg-menu li.dropdown:hover>.dropdown-content,
.dg-menu li.dropdown:focus-within>.dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

/* Submenu (livello 2+) */
.dg-menu .dropdown-content .dropdown {
    position: relative;
}

.dg-menu .dropdown-content .dropdown>.dropdown-content {
    top: 0;
    left: 100%;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .dg-menu {
        display: block;
        background: var(--dg-primary);
        padding: 0 14px;
    }

    .dg-menu .dg-menu-toggle {
        display: block;
        width: 100%;
        border: 0;
        background: var(--dg-primary);
        color: #fff;
        text-align: left;
        font-size: .9rem;
        font-weight: 800;
        text-transform: uppercase;
        padding: 12px 14px;
        cursor: pointer;
    }

    .dg-menu .dg-menu-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .dg-menu .dg-menu-list.open {
        display: block;
    }

    .dg-menu .dg-menu-list>li {
        border-top: 1px solid rgba(18, 52, 86, .3);
    }

    .dg-menu .dg-menu-list li a {
        padding: 12px 14px;
        font-size: .9rem;
        text-transform: none;
    }

    /* Dropdown come "accordion": niente posizionamento assoluto,
     niente spazi residui: usiamo max-height + overflow */
    .dg-menu .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        padding: 0;
        visibility: visible;
        /* visibile ma "chiuso" via max-height */
        opacity: 1;
        transform: none;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height .22s ease;
    }

    .dg-menu li.dropdown.open>.dropdown-content {
        max-height: 1200px;
        /* abbastanza grande per contenere i figli */
    }

    /* Nested submenu padding per gerarchia */
    .dg-menu .dropdown-content>li>a {
        padding-left: 22px;
    }

    .dg-menu .dropdown-content .dropdown .dropdown-content>li>a {
        padding-left: 36px;
    }

    .hide-on-mobile {
        display: none;
    }
}

.dg-menu a.dropbtn::after {
   /* font-family: "Font Awesome 6 Free"; */
    font-weight: 900;
    content: "";
    margin-left: .4em;
    display: inline-block;
    transition: transform .2s ease;
}

.dg-menu li.dropdown.open>a.dropbtn::after,
.dg-menu li.dropdown:focus-within>a.dropbtn::after,
.dg-menu li.dropdown:hover>a.dropbtn::after {
    content: "";
}

/*STYLE NUOVO LAYOUT MATCH DETAILS*/



/*Box squadre*/
.dg-match-teams {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding: 10px 0 0;
        margin: 20px auto 5px;
        gap: 30px;
}

.dg-match-teams-name{
  font-weight: bold;
  margin-bottom: 1.2rem;
}

.dg-match-incidents-container {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    gap: 6px;
    margin: 10px 0 20px;
    padding: 10px;
}

.dg-match-incidents{
    font-size: 0.8rem;
}

.dg-match-incidents-home {
    text-align: right;
}

.dg-match-incidents-away {
    text-align: left;
}

.dg-incident {
    padding: 4px 0;
}

/* Goal aggiunto via socket */
.dg-incident-goal {
    padding: 4px 0;
    animation: goalHighlight 2s ease-out;
}

.dg-incident-minute {
    font-weight: bold;
    color: var(--dg-primary, #123456);
    margin: 0 4px;
}

@keyframes goalHighlight {
    0% {
        background-color: rgba(76, 175, 80, 0.4);
    }
    100% {
        background-color: transparent;
    }
}

.dg-match-teams-logo {
    width: 120px;
    height: auto;
    text-align: center;
}

.dg-match-teams-logo A{
    text-decoration: none;
    color: inherit;
}

.dg-match-teams-logo A:hover{
    text-decoration: none;
    color: inherit;
}

.dg-match-teams-logo img {
    max-width: 50%;
    height: auto;
}

.dg-match-day-time {
    text-align: center;
    font-size: 0.9rem;
    color: #000;
}


.dg-match-day-time p {
    margin: 0;
    color: grey;
}

.dg-day-time {
    color: #444;
    font-size: 1rem;
    text-align: center;
}

.dg-match-box-result {
    font-size: 2.5rem;
    font-weight: bold;
}



@media only screen and (max-width: 769px) {
    .dg-match-teams {
        justify-content: space-between;
        gap: 10px;
    }
    .dg-match-box-result {
        margin: 20px 0;
        font-size: 1.5rem;
        font-weight: bold;
    }

}

/** LABEL **/
.dg-match-time-label {
    display: inline-block;
    background-color: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    margin-top: 5px;
}

.dg-match-time-label.dg-match-time-finished{
    background-color: #28a745;
}

.dg-match-time-label.dg-match-time-notstarted {
    background-color: #6c757d;  
}

.dg-match-time-label.dg-match-time-inprogress {
    background-color: transparent;
    color:#123456;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.dg-match-time-label.dg-match-time-inprogress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #dc3545;
    animation: dgLiveBorder 1.5s ease-in-out infinite;
}

@keyframes dgLiveBorder {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/*Style toggle classifiche*/

.dg-standing-toggle {
    margin-bottom: 1rem;
}

.dg-btn {
    padding: 8px 14px;
    margin-right: 6px;
    border: 1px solid #ccc;
    color: #fff;
    background: #123456;
    cursor: pointer;
}

.dg-btn:hover,
.dg-btn.active {
    background: #1d4f82;
}

.dg-tournament-standing-wrapper {
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    user-select: none;
}

.dg-tournament-standing-wrapper::-webkit-scrollbar {
    display: none;
}

/* DG-STANDINGS - Box classifica */

.dg-table-standing {
    table-layout: fixed;
    width: 100%;
    font-size: 0.9rem;
    border: none;
}

.dg-table-standing thead tr th {
    border-radius: 0px !important;
    text-align: center;
    padding: 7px 0;
    border: none !important;
    border-collapse: collapse !important;
}

.dg-standing-head-team {
    text-align: left !important;
    width: 200px;
}

.dg-table-standing THEAD TH::after {
    display: none;
}

.dg-table-standing tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.dg-table-standing tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.dg-table-standing TD {
    padding: 6px 3px;
    border: none !important;
    border-collapse: collapse !important;
}


.dg-standing-head-pos {
    width: 40px;
}


.dg-position,
.dg-match-number,
.dg-team-victory,
.dg-team-draw,
.dg-team-defeat,
.dg-team-gsgf,
.dg-team-diff,
.dg-team-pts {
    text-align: center;
}


.dg-position span {
    background-color: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    font-weight: bold;
    width: 22px;
    height: 22px;
    display: block;
    border-radius: 3px;
    text-align: center;
}

.dg-position span.promozione,
.dg-position span.qualificato,
.dg-position span.champions_league {
    background-color: #4CAF50;
}

.dg-position span.promozione_spareggio,
.dg-position span.spareggio {
    background-color: #2196F3;
}

.dg-position span.retrocessione {
    background-color: #f44336;
}

.dg-position span.uefa_europa_league {
    background-color: #f36f1f;
}

.dg-position span.conference_league_qualification {
    background-color: #aa4926;
}

.dg-teams{
    display: grid;
        align-items: center;
        justify-content: space-around;
        padding: 10px 0;
        margin: 20px auto;
        gap: 50px;
        grid-template-columns: 1fr auto 1fr;
}

.dg-team-name IMG {
    width: 20px;
    height: 20px;
}

.dg-team-pts {
    font-weight: bold;
}

.dg-team-emblem {
    width: 1.5em;
}

.dg-standing-legend {
    font-size: 0.9rem;
    color: #333;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.dg-standing-legend-items {
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.dg-standing-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.dg-standing-legend-item .dg-position {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;

}

@media (max-width: 480px) {
    .dg-standing-head-team {
        text-align: left !important;
        width: 150px;
        overflow: hidden;
    }

    .dg-head-victory,
    .dg-head-draw,
    .dg-head-defeat,
    .dg-team-victory,
    .dg-team-draw,
    .dg-team-defeat {
        display: none;
    }

    .dg-standing-legend-items {
        gap: 10px;
    }

    .dg-standing-legend-item {
        margin-right: 10px;
        font-size: 12px;
    }

    .dg-standing-legend-item .dg-position SPAN {
        width: 16px;
        height: 16px;
    }
}


/*Style classifica marcatori*/
.player-name {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 4px;
}

.player-name STRONG {
        display: block;
        width: 30px;
        text-align: center;
        color: #fff;
        background-color: var(--accent);
        border-radius: 3px;
        font-size: 0.8rem;
        padding: 2px 0;
}



.dg-player-name p {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    max-width: 150px;
}

.dg-player-name {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dg-gol-number {
    font-weight: bold;
}



/**/

.dg-main-tabs-wrapper {
    margin: 20px 0;
}

.dg-main-tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
}

.dg-main-tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dg-main-tab-btn:hover {
    color: var(--dg-primary, #007cba);
    background-color: rgba(0, 124, 186, 0.05);
}

.dg-main-tab-btn.active {
    color: var(--dg-primary, #007cba);
    border-bottom-color: var(--dg-secondary, #FF8C42);
    background-color: rgba(0, 124, 186, 0.1);
}

.dg-main-tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .dg-main-tab-btn {
        flex: 1;
        text-align: center;
        padding: 12px 15px;
        font-size: 14px;
    }
}

.dg-fixtures-wrapper {
    padding: 20px 0;
}

/* Menu navigazione giornate */
.dg-rounds-navigation {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
    z-index: 10;
}

.dg-rounds-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dg-round-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dg-round-nav-item:hover {
    background: var(--dg-secondary, #FF8C42);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 66, 0.3);
    text-decoration: none;
}

.dg-round-nav-item.active {
    background: var(--dg-primary, #007cba);
    color: white;
    border-color: var(--dg-primary, #007cba);
}

.dg-round-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9ecef;
    margin-bottom: 25px;
    scroll-margin-top: 120px;
    /* Spazio per il menu sticky */
}

.dg-round-header {
    border-bottom: 2px solid var(--dg-secondary, #FF8C42);
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dg-round-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--dg-primary, #007cba);
}

.dg-round-matches {
    font-size: 14px;
    color: #6c757d;
    font-weight: normal;
}

.dg-matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.dg-match-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    display: block;
}

.dg-match-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.dg-match-card:focus {
    outline: 2px solid var(--dg-primary, #007cba);
    outline-offset: 2px;
}

.dg-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f8f9fa;
}

.dg-match-date {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
}

.dg-match-status {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.dg-status-finita {
    background: #d4edda;
    color: #155724;
}

.dg-status-live {
    background: #f8d7da;
    color: #721c24;
    animation: pulse 2s infinite;
}

.dg-status-programmata {
    background: #fff3cd;
    color: #856404;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}




.dg-team {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}


.dg-team img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: contain;
}

.dg-team-name,
.dg-team-name a {
    display: flex;
    font-size: 12px;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 2px;
    gap: 7px;
    align-items: center;
}

.dg-team-abbr {
    display: block;
    font-size: 11px;
    color: #6c757d;
    font-weight: normal;
    display: none;
}

.dg-match-score-2 {
    text-align: center;
    min-width: 60px;
    font-size: 0.9rem;
}

.dg-score {
    font-size: 18px;
    font-weight: bold;
    color: var(--dg-primary, #007cba);
}

.dg-vs {
    font-size: 12px;
    color: #6c757d;
    font-weight: bold;
}

.dg-match-venue {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f8f9fa;
}

.dg-match-venue small {
    color: #6c757d;
    font-size: 11px;
}

/* Responsive per tablet */
@media (max-width: 1024px) {
    .dg-round-nav-item {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .dg-rounds-navigation {
        padding: 15px;
        margin-bottom: 20px;
        top: 10px;
    }

    .dg-rounds-menu {
        gap: 6px;
    }

    .dg-round-nav-item {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .dg-round-section {
        padding: 15px;
        margin-bottom: 20px;
        scroll-margin-top: 100px;
        /* Spazio per il menu sticky su mobile */
    }

    .dg-round-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .dg-round-header h3 {
        font-size: 16px;
    }

    .dg-matches-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dg-match-card {
        padding: 12px;
    }

    .dg-team img {
        width: 28px;
        height: 28px;
    }

    .dg-team-name {
        font-size: 13px;
    }

    .dg-score {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .dg-rounds-menu {
        gap: 4px;
    }

    .dg-round-nav-item {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .dg-match-teams {
        gap: 8px;
    }

    .dg-team img {
        width: 24px;
        height: 24px;
    }

    .dg-team-name {
        font-size: 12px;
    }

    .dg-team-abbr {
        font-size: 10px;
        display: none;
    }

    .dg-score {
        font-size: 14px;
    }

    .dg-vs {
        font-size: 11px;
    }
}

/*TYMELINE EVENT STYLE*/



.timeline {
    position: relative;
    border-left: 2px solid #ccc;
    margin:30px 0;
}

.event {
    position: relative;
    margin-bottom: 20px;
    width: 50%;
    clear: both;
}

.event-circle {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #123456;
    color: #fff;
    border-radius: 50%;
    border: 2px solid #fff;
    top: 0;
}

.event-content {
    padding: 5px 35px;
    border-radius: 5px;
    display: inline-block;
    max-width: 90%;
}

.event-left {
    float: left;
    text-align: right;
    margin-right: 30px;
}

.event-left .event-circle {
    left: auto;
    right: -20px;
}

.event-right {
    float: right;
    text-align: left;
    margin-left: 30px;
}

.event-right .event-circle {
    left: -20px;
}

.substitution-event {
    display: flex;
    align-items: center;
    gap: 10px;
}

.substitution-event.away {
    flex-direction: row-reverse;
}

.yellow-card,
.red-card,
.score-change {
    display: flex;
    align-items: center;
    gap: 5px;
}

.yellow-card-away,
.red-card-away,
.score-change-away {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 5px;
}

.clearfix::after {
    content: "";
    display: table;
}

@media only screen and (max-width:793px) {
    .event-content {
        max-width: 100%;
        padding: 0px;
        font-size: 0.8em;
    }

    .event-right {
        padding-left: 1.6em;
    }

    .event-left {
        padding-right: 1.6em;
    }

    .substitution-event {
        justify-content: end;
    }

    .substitution-event.away {
        justify-content: start;
    }
}

/* QUOTE */
.dg-quotes-wrapper {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dg-quote-tabs {
    display: flex;
    flex-wrap: wrap;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

.dg-quote-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.dg-quote-tab-btn:hover {
    background: #e9ecef;
    color: #333;
}

.dg-quote-tab-btn.active {
    color: var(--dg-primary, #007cba);
    border-bottom-color: var(--dg-primary, #007cba);
    background: #fff;
}

.dg-quote-content-wrapper {
    position: relative;
}

.dg-quote-content {
    display: none;
    padding: 20px;
}

.dg-quote-content.active {
    display: block;
}

.dg-quotes-table-wrapper {
    overflow-x: auto;
}

.dg-quotes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.dg-quotes-header th {
    background: var(--dg-primary);
    color: #fff;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    border-radius: 0;
}

.dg-bookmaker-col {
    text-align: left !important;
    min-width: 120px;
}

.dg-odds-col {
    min-width: 60px;
}

.dg-quote-row {
    border-bottom: 1px solid #eee;
}

.dg-quote-row:hover {
    background: #f8f9fa;
}

.dg-bookmaker-cell {
    padding: 12px 8px;
}

.dg-bookmaker-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.dg-bookmaker-logo {
    height: 20px;
    width: auto;
    max-width: 80px;
}

.dg-bookmaker-name {
    font-size: 12px;
    font-weight: 500;
}

.dg-odds-cell {
    padding: 12px 8px;
    text-align: center;
}

.dg-odds-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.dg-odds-link:hover {
    background: #e9ecef;
}

.dg-odds-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    color: var(--dg-primary, #007cba);
}

.dg-odds-trend {
    width: 12px;
    height: 12px;
}

.dg-total,
.dg-handicap {
    color: #666;
    font-size: 11px;
}

.dg-odds-na {
    color: #ccc;
    font-style: italic;
}

@media (max-width: 768px) {
    .dg-quote-tabs {
        justify-content: flex-start;
    }

    .dg-quote-tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    .dg-quote-content {
        padding: 15px;
    }

    .dg-quotes-table {
        font-size: 13px;
    }

    .dg-quotes-header th {
        padding: 10px 6px;
        font-size: 12px;
    }

    .dg-bookmaker-cell,
    .dg-odds-cell {
        padding: 10px 6px;
    }

    .dg-bookmaker-logo {
        height: 18px;
    }
}

/* QUOTE WRAPPER */
.dg-quote-wrapper {
    margin: 20px 0;
}

.dg-tournament-search {
    margin-bottom: 20px;
}

.dg-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.dg-search-input:focus {
    outline: none;
    border-color: var(--dg-primary, #007cba);
}

/* STATS */
.dg-match-stats-wrapper {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dg-stats-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--dg-primary, #007cba);
    border-bottom: 2px solid var(--dg-secondary, #FF8C42);
    padding-bottom: 10px;
}

.dg-stats-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dg-stat-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.dg-stat-value {
    font-weight: bold;
    font-size: 16px;
    padding: 0 10px;
}

.dg-stat-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    color: var(--dg-primary, #007cba);
    padding: 8px;
    font-size: 12px;
}

.dg-stat-circle-away {
    color: var(--dg-secondary, #FF8C42);
}

.dg-stat-circle.dg-stat-higher {
    background-color: var(--dg-primary, #007cba);
    color: white !important;
}

.dg-stat-circle-away.dg-stat-higher {
    background-color: var(--dg-secondary, #FF8C42);
    color: white !important;
}

.dg-stat-home {
    text-align: left;
    color: var(--dg-primary, #007cba);
}

.dg-stat-away {
    text-align: right;
    color: var(--dg-secondary, #FF8C42);
}

.dg-stat-label {
    text-align: center;
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

.dg-possession-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    margin: 5px 0 15px 0;
    position: relative;
    overflow: hidden;
}

.dg-possession-home {
    height: 100%;
    background: var(--dg-primary, #007cba);
    float: left;
    border-radius: 3px 0 0 3px;
}

.dg-possession-away {
    height: 100%;
    background: var(--dg-secondary, #FF8C42);
    float: right;
    border-radius: 0 3px 3px 0;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .dg-match-stats-wrapper {
        padding: 15px;
        margin: 15px 0;
    }

    .dg-stats-title {
        font-size: 16px;
    }

    .dg-stat-row {
        grid-template-columns: 1fr 2.5fr 1fr;
        gap: 5px;
    }

    .dg-stat-value {
        font-size: 14px;
        padding: 0 5px;
    }

    .dg-stat-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .dg-stat-row {
        grid-template-columns: 1fr 3fr 1fr;
    }

    .dg-stat-value {
        font-size: 13px;
    }

    .dg-stat-label {
        font-size: 11px;
    }
}

/* STATS */
.dg-predictions-wrapper {
    color: #fff;
}

.dg-predictions-title {
    text-align: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dg-predictions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dg-prediction-item {
    background: var(--dg-primary);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid var(--dg-primary, #007cba);
}

.dg-prediction-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dg-tipster-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.dg-tipster-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.dg-tipster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dg-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--dg-primary, #007cba);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
}

.dg-tipster-details {
    flex: 1;
}

.dg-tipster-name {
	font-size: 1rem;
	font-weight: normal;
	margin: 0;
	color: #ccc;
}

.dg-prediction-text {
  font-size: 1.4rem;
  color: #fff;
  line-height: 1.5rem;
  font-weight: bold;
}

.dg-prediction-quota {
    background: var(--dg-secondary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    min-width: 60px;
    text-align: center;
}

.dg-social-links {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.dg-social-link {
    background: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.dg-social-link:hover {
    background: var(--dg-primary, #007cba);
    color: #fff;
}

.dg-social-telegram {
    background: #0088cc;
}

.dg-social-telegram:hover {
    background: #006ba3;
}

/* Responsive */
@media (max-width: 768px) {
    .dg-predictions-wrapper {
        padding: 15px;
        margin: 15px 0;
    }

    .dg-prediction-item {
        padding: 12px;
    }

    .dg-tipster-info {
        gap: 10px;
    }

    .dg-tipster-avatar {
        width: 36px;
        height: 36px;
    }


    .dg-prediction-quota {
        padding: 6px 12px;
        font-size: 14px;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .dg-prediction-content {
        align-items: flex-start;
        gap: 10px;
    }

    .dg-tipster-info {
        width: 100%;
    }

    .dg-prediction-quota {
        align-self: flex-end;
    }

    .dg-social-link {
        font-size: 8px !important;
    }
}



.show-more-btn{
  background:var(--navy);
  color:#fff;
  border:none;
  padding:10px 18px;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
  transition:.2s;
}
.by-filter-hidden{ display:none; }
.by-limit-hidden{ display:none; }

.show-more-btn:hover{background:var(--navy-2);}

.dg-menu {
    overflow: hidden; /* Nasconde la barra di scorrimento orizzontale */
    display:none;
}

.dg-menu .dg-menu-list li a {
    background: transparent !important;
    color: white !important;
}

.dg-menu .dg-menu-toggle {
    background: transparent !important;
    color: white !important;
}

.dg-date-slider {
    width: 100%;
    overflow-x: auto;
    margin: 0;
    padding:  0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}

.dg-date-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari e Opera */
}

.dg-date-container {
    display: flex;
    gap: 10px;
    padding: 0 20px;
    min-width: max-content;
}

.dg-date-item {
    flex-shrink: 0;
    text-align: center;
    padding: 10px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    color: var(--dg-text-primary, #fff) !important;
    text-decoration: none !important;
}

.dg-date-item:hover {
    background: var(--dg-primary, #007cba);
    color: white;
    transform: scale(1.1);
}

.dg-date-today {
    color: var(--dg-secondary, #FF8C42) !important;
    font-weight: bold;
    transform: scale(1.1);
}

.dg-date-day {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 1px;
}

.dg-date-number {
    font-size: 12px;
    font-weight: 500;
}

.dg-date-today .dg-date-day {
    font-size: 12px;
    font-weight: bold;
}

.dg-date-today .dg-date-number {
    font-size: 12px;
    font-weight: bold;
}

.dg-health-team {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 3px 0;
}



.dg-health-team IMG{
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.dg-health-score {
    font-size: 1rem;
    font-weight: bold;
    padding: 3px 0;
    text-align: center;
}

.dg-badge {
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    background-color: #000;
    color: #fff;
    height: 20px;
    width: 20px;
    margin: 0 auto;
    border-radius: 4px;
}

.dg-badge.dg-win {
    background-color: #4CAF50; /* Verde per vittoria */
}

.dg-badge.dg-loss {
    background-color: #F44336; /* Rosso per sconfitta */
}

.dg-badge.dg-draw {
    background-color: #FFC107; /* Giallo per pareggio */
}

.dg-tab-content-health .hidden {
    display: none;
}

.dg-flags-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dg-shirts{display:flex;gap:28px;margin-top:8px}

.dg-shirt{
    text-align: center;
}

.dg-shirt img{
    width:36px;
    height:36px;
    object-fit:contain;
}

/* Player jersey with small name below */
.dg-player-jersey {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 2px;
}

.dg-player-jersey img {
    width: 30px;
    height: auto;
}

.dg-player-jersey::after {
    content: attr(data-player-name);
    display: block;
    font-size: 9px;
    line-height: 1.1;
    color: #fff;
    font-weight: 700;
    margin-top: 2px;
    max-width: 55px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.dg-shirt-number {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
    z-index: 2;
}

.dg-player-rating {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: #fff;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
    min-width: 20px;
    text-align: center;
    z-index: 3;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Rating colors based on value */
.dg-player-rating.rating-low {
    background: linear-gradient(135deg, #f44336, #c62828);
}

.dg-player-rating.rating-medium {
    background: linear-gradient(135deg, #ff9800, #ef6c00);
}

.dg-player-rating.rating-high {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

@media (max-width: 768px) {
    .dg-player-jersey::after {
        font-size: 7px;
        max-width: 40px;
    }
    
    .dg-player-jersey img {
        width: 25px;
    }
    
    .dg-shirt-number {
        font-size: 8px;
        top: 6px;
    }
    
    .dg-player-rating {
        font-size: 7px;
        padding: 1px 3px;
        top: -6px;
        right: -6px;
    }
}

.dg-flags-container img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.dg-player-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px;
}

.dg-player-info-row{
    padding: 2px 5px;
}

.dg-player-country{
    width:20px;
    height: 20px;
    object-fit: contain;
}

/* FORMAZIONE */
.dg-bench-label {
        background-color: var(--dg-primary);
        color: #fff;
        padding: 4px 16px;
        font-size: 0.8rem;
        display: inline-block;
        margin: 10px 0;
        border-radius: 4px;
}

.dg-match-formations {
        display: block;
}

.dg-formations-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 10px;
	gap: 50px;
}

.dg-player-main {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 5px;
}

.dg-player-num {
	display: block;
	width: 30px;
	text-align: center;
	color: #fff;
	background-color: var(--accent);
	border-radius: 3px;
	font-size: 0.8rem;
	padding: 2px 0;
}

.dg-formation-details {
        font-size: 0.9rem;
        font-weight: bold;
        margin-bottom: 10px;
}

.dg-match-formations-away .dg-formation-details {
    text-align: right;
}

.dg-formations-display{
    height: 100%;
}



.list-players-away .player-name{
    flex-direction: row-reverse;
}

.dg-manager {
        font-weight: bold;
        display: flex;
        align-items: center;
        gap: 15px;
    margin-bottom: 15px;
}

.dg-match-formations-away .dg-manager{
    flex-direction: row-reverse;
}

  .dg-soccer-field {
    width: 80vw;
    margin: 30px auto;
    background-image: url('../img/soccer-field.jpeg');
    background-size: cover;
    aspect-ratio: 1755 / 2560;
    border-radius: 5px;
    max-width: 400px;
  }

.dg-soccer-field-home, .dg-soccer-field-away {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1em;
        height: 50%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
}

.dg-soccer-field-away {
    flex-direction: column-reverse;
}

.dg-position-row {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-around;
        gap: 10px;
}

.dg-jerseys-row {
        width: 100%;
        justify-content: space-around;
        display: flex;
        /* gap: 10px; */
}
@media only screen and (max-width: 800px) {

}

/* TIPSTER BETTING LIST */
.dg-betting-title {
	text-align: center;
	color: var(--dg-primary,#007cba);
	margin: 30px 0;
	font-size: 1.8rem;
	text-align: left;
	font-weight: bold;
}

.dg-tipster-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dg-tipster-card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    color: #fff;
    border: 1px solid #333;
}

.dg-tipster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dg-tipster-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dg-tipster-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}


.dg-tipster-performance {
    margin-bottom: 20px;
}

.dg-performance-graph {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    height: 80px;
    padding: 20px 0;
}

/* SVG per le linee di performance */
.dg-performance-lines {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dg-performance-line {
    fill: none;
    stroke: var(--dg-primary-color, #007cba);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}

.dg-performance-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    z-index: 2;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.dg-performance-dot:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Tooltip per i dots delle performance */
.dg-performance-dot[data-tooltip] {
    position: relative;
    cursor: help;
}

.dg-performance-dot[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    line-height: 1.4;
}

.dg-performance-dot[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.dg-performance-dot[data-tooltip]:hover::before,
.dg-performance-dot[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Vittorie posizionate in alto */
.dg-performance-dot.win {
    background: linear-gradient(135deg, #00c851 0%, #00b448 100%);
    color: #fff;
    transform: translateY(-25px);
}

/* Sconfitte posizionate in basso */
.dg-performance-dot.loss {
    background: linear-gradient(135deg, #ff4444 0%, #e53935 100%);
    color: #fff;
    transform: translateY(25px);
}

/* Pending rimangono al centro */
.dg-performance-dot.pending {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #fff;
    transform: translateY(0);
}

.dg-performance-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.dg-match-label {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    width: 50px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Stili responsivi per il grafico delle performance */
@media (max-width: 768px) {
    .dg-performance-graph {
        height: 60px;
        padding: 15px 0;
    }
    
    .dg-performance-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .dg-performance-dot.win {
        transform: translateY(-20px);
    }
    
    .dg-performance-dot.loss {
        transform: translateY(20px);
    }
    
    .dg-match-label {
        font-size: 10px;
        width: 40px;
    }
}

@media (max-width: 480px) {
    .dg-performance-graph {
        height: 50px;
        padding: 10px 0;
    }
    
    .dg-performance-dot {
        width: 28px;
        height: 28px;
        font-size: 10px;
        border-width: 2px;
    }
    
    .dg-performance-dot.win {
        transform: translateY(-15px);
    }
    
    .dg-performance-dot.loss {
        transform: translateY(15px);
    }
    
    /* Tooltip più piccoli su mobile */
    .dg-performance-dot[data-tooltip]::before {
        font-size: 10px;
        padding: 6px 8px;
        max-width: 120px;
        white-space: normal;
        text-align: center;
    }
}

/* Tooltip multiline support */
.dg-performance-dot[data-tooltip]::before {
    /* Supporto per <br> nei tooltip */
    white-space: pre-line;
}

/* Tooltip JavaScript dinamico */
.dg-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dg-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);
}

/* Disabilito i tooltip CSS in favore di quelli JavaScript */
.dg-performance-dot[data-tooltip]::before,
.dg-performance-dot[data-tooltip]::after {
    display: none;
}



.dg-tipster-social {
    display: flex;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.dg-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #0088cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dg-social-link:hover {
    background: #006699;
    text-decoration: none;
}

.dg-no-predictions {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

@media (max-width: 768px) {
    .dg-betting-wrapper {
        padding: 15px;
    }
    
    .dg-tipster-card {
        padding: 15px;
    }
    
    .dg-tipster-avatar {
        width: 40px;
        height: 40px;
    }
    
    .dg-tipster-name {
        font-size: 18px;
    }
    
    .dg-performance-dot {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .dg-match-label {
        font-size: 9px;
        width: 32px;
    }
}

/* SVG per le linee di performance */
.dg-performance-lines {
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.dg-performance-line {
    fill: none;
    stroke: var(--dg-primary-color, #007cba);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
}

/* Tooltip JavaScript dinamico */
.dg-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dg-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.9);

}