.widget-clasamente {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px;
    background-image: url("/templates/default/img/widget-rezultate-bg.png");

    /* Full height */
    height: 100%;

    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.sports-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 10px;
}

.sports-list li {
    position: relative;
}

.sports-list a,
.sports-list button {
    border: none;
    text-decoration: none;
    cursor: pointer;
    border-radius: 4px;
    display: block;
    font-size: .85rem;
    color: #838383;
}

.sports-list a {
    color: #ccc;
}

.sports-list .dropdown-menu a {
    color: #838383;
}

.sports-list li.active a {
    color: #fff;
    font-weight: bold;
}

.standings-header li a {
    color: #ccc;
}

.standings-header li.active a {
    font-weight: bold;
    padding-bottom: 11px;
    border-bottom: 2px solid #dc0510;
}

/* Pe mobil: se afiÈ™eazÄƒ toate categoriile cu scroll */
@media (max-width: 768px) {
    .sports-list {
        max-height: 200px;
        overflow-y: auto;
        gap: 16px;
    }

    .dropdown {
        display: none;
    }
}

.sport-submenu {
    margin-bottom: 15px;
}

/* Container pentru butonul dropdown */
.dropdown {
    position: relative;
}

.dropdown-btn {
    cursor: pointer;
    background: none;
    border: none;
    transition: transform 0.3s;
    padding: 0;
    margin-top: 0;
    color: #fff;
    font-size: 12px;
}

.dropdown-btn:hover,
.dropdown-btn:focus {
    background-color: unset;
}

.dropdown-menu li {
    padding: 5px 15px;
    cursor: pointer;
}

.dropdown-menu li:hover {
    background: #eee;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 100;
    min-width: 80px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.box-results {
    text-align: center;
    padding: 20px;
    background: #00000070;
    border-radius: 20px;
    max-width: 700px;
    margin: auto;
}

.box-header ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    list-style: none;
}

.box-header ul li {
    font-size: .85rem;
}

.etape {
    display: flex;
    list-style: none;
    justify-content: center;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: #838383;
    max-width: 500px;
    margin: auto;
    padding-bottom: 10px;
    padding-left: 0;
}

.etape li {
    cursor: pointer;
    color: #838383;
    font-size: .75rem;
}

.etape li.prev {
    color: #fff;
    font-weight: 600;
}

.etape li.active {
    color: #dc0510;
    font-weight: 600;
}

.standings-header {
    font-size: .85rem;
    margin: 10px auto;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px;
    box-shadow: 0 .3px 0 0 #838383;
    padding: 10px;
    color: #838383;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 480px;
    margin: auto;
    justify-content: center;
    cursor: pointer;
}

.breadcrumb select {
    min-width: 0;
    flex: 1;
    width: 100%;
}

.breadcrumb select:nth-child(1) {
    background-color: #FF2D2D;
}

.breadcrumb select:nth-child(3) {
    background-color: #dc0510;
}

.breadcrumb select:nth-child(5) {
    background-color: #8A070E;
}
.widget-clasamente .breadcrumb select {
  appearance: none;
  width: 100%;
  border-radius: 0.25rem;
}
select {
    border: none;
    padding: 5px 25px;
    border-radius: 20px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    outline: none;
    font-size: .85rem;
    margin: 0;
}

select:focus {
    background: #fff;
    color: #000;
}

option {
    color: black;
}

.arrow {
    color: #fff;
    font-size: 18px;
}

.arrow {
    display: none;
}

/* pe desktop (>= 1024px de exemplu) le afiÈ™Äƒm */
@media (min-width: 1024px) {
    .arrow {
        display: inline-block;
    }
}

.hidden {
    display: none;
}

.matches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match {
    display: grid;
    grid-template-columns: 95px 1fr 70px 1fr;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.match-date {
    font-size: 10px;
    color: #aaa;
    padding: 0;
    text-align: left;
}

.team {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team span {
    width: 100%;
    text-align: justify;
    padding: 7px 0;
    padding-left: 20px;
    background: #333333;
    border-radius: 5px;
    font-size: 14px;
    color: #fff;
}

.team img {
    width: 24px;
    height: 24px;
}

.score {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 0;
    background: unset;
}

.teamA,
.teamB {
    background: #fff;
    color: #000;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

details summary .icon svg {
    height: 16px;
    display: flex;
}

details .content {
    \: 0 16px;
    line-height: 1.8;
    color: #fff;
}

details summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #fff;
    user-select: none;
    transition: all 120ms ease;
    position: relative;
}

details {
    padding-top: 10px;
    box-shadow: 0 -.3px 0 0 #838383;
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    margin-bottom: 10px;
}

details summary .icon {
    transition: all 120ms ease;
}

details[open] summary .icon {
    rotate: 180deg;
}

/* Mobile */
@media (max-width: 768px) {
    .standings-header {
        box-shadow: none;
        border-bottom: 1px solid #838383;
    }

    select {
        max-width: unset;
        text-align: center;
    }

    .breadcrumb {
        flex-direction: column;
    }

    .match {
        grid-template-columns: 1fr 75px 1fr;
        /* 3 coloane egale pentru copiii 2,3,4 */
        grid-template-rows: auto auto;
    }

    /* primul copil ocupÄƒ tot rÃ¢ndul 1 */
    .match> :nth-child(1) {
        grid-column: 1 / -1;
    }

    /* ceilalÈ›i se aliniazÄƒ pe rÃ¢ndul 2, cÃ¢te o coloanÄƒ fiecare */
    .match> :nth-child(2) {
        grid-column: 1;
    }

    .match> :nth-child(3) {
        grid-column: 2;
    }

    .match> :nth-child(4) {
        grid-column: 3;
    }

    .match-date {
        text-align: center;
    }

    details summary .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    details {
        box-shadow: none;
        border-top: 1px solid #838383;
    }

    .widget-clasamente {
        padding: 15px;
    }

    .team span {
        font-size: 12px;
        padding-left: 5px;
        text-align: left;
    }
}

select {
    appearance: none;
    font: inherit;
    border: none;
    border-radius: 2rem;
    line-height: 1.6;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

option {
    background-color: #fff;
}

select:focus {
    color: #fff;
}


.f1-races-table {
    margin: 20px 0;
    font-family: Arial, sans-serif;
    overflow-x: scroll;
}

.races-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.races-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
}

.races-table tbody tr:hover {
    background-color: #f8f9fa;
}

.races-table tbody tr:last-child td {
    border-bottom: none;
}

.race-name {
    font-weight: bold;
    color: #333;
    text-align: left;
}

.winner {
    font-weight: bold;
    text-align: left;
}

.laps {
    color: #666;
    text-align: center;
}

.time {
    color: #666;
    text-align: left;
}

@media (max-width: 768px) {
    .races-table {
        font-size: 12px;
    }

    .races-table th {
        padding: 8px 4px;
    }
}

.standings-table-title {
    color: #34495e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.standings-table .text-left {
    text-align: left;
}

.standings-table tbody tr:hover {
    background-color: #e8f4fd;
}

.text-success {
    color: #28a745 !important;
    font-weight: bold;
}

.text-danger {
    color: rgb(202, 200, 200) !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .standings-table {
        font-size: 0.85rem;
    }

    .standings-table th {
        padding: 8px 4px;
    }
}

.standings-table tbody tr:hover {
    background-color: #e8f4fd;
}

.text-success {
    color: #28a745 !important;
    font-weight: bold;
}

.text-danger {
    color: rgb(202, 200, 200) !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .standings-table {
        font-size: 0.85rem;
    }

    .standings-table th {
        padding: 8px 4px;
    }
}

.standings-group {
    border-radius: 8px;
    margin-bottom: 20px;
}

.standings-title {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.standings-table-title {
    color: #34495e;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.standings-table tbody tr:hover {
    background-color: #e8f4fd;
}

.text-success {
    color: #28a745 !important;
    font-weight: bold;
}

.text-danger {
    color: rgb(202, 200, 200) !important;
    font-weight: bold;
}

.standings-legend {
    list-style: none;
    padding: 0;
    margin: 25px 0 0 0;
    color: #ffffff;
}

.standings-legend li {
    font-size: 14px;
}

@media (max-width: 768px) {
    .standings-table {
        font-size: 0.85rem;
    }

    .standings-table th {
        padding: 8px 4px;
    }
}


/* Incidents Timeline Styles */
.incidents-timeline {
    border-radius: 5px;
    margin-top: 10px;
}

.incident-item {
    display: flex;
    align-items: center;
    margin: 8px;
    box-shadow: 0 0.5px 0 0 #e9ecef;
    font-size: 13px;
}

.incident-item:last-child {
    border-bottom: none;
}

.incident-item.team1 {
    justify-content: flex-start;
    text-align: left;
}

.incident-item.team2 {
    justify-content: flex-end;
    text-align: right;
}

.incident-time {
    font-weight: bold;
    min-width: 30px;
    font-size: 12px;
}

.incident-content {
    flex: 1;
}

/* Substitution Styles */
.substitution {
    display: flex;
    align-items: center;
    gap: 5px;
}

.substitution.team1 {
    flex-direction: row;
}

.substitution.team2 {
    flex-direction: row-reverse;
}

.subst-icon {
    font-size: 14px;
    margin: 0 3px;
}

.subst-out {
    color: #999;
    text-decoration: line-through;
}

.subst-in {
    font-weight: bold;
    color: #333;
}

/* Goal Styles */
.goal {
    display: flex;
    align-items: center;
    gap: 5px;
}

.goal-icon {
    font-size: 16px;
}

.player-name {
    font-weight: bold;
    \: #333;
}

.assist {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Card Styles */
.card {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-icon {
    font-size: 14px;
}

/* Other Incident Styles */
.other-incident {
    display: flex;
    align-items: center;
    gap: 5px;
}

.incident-type {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
}

/* Team-specific positioning */
.incident-item.team1 .incident-content {
    text-align: left;
}

.incident-item.team2 .incident-content {
    text-align: right;
}

.incident-item.team2 .goal {
    flex-direction: row-reverse;
}

.incident-item.team2 .card {
    flex-direction: row-reverse;
}

.incident-item.team2 .other-incident {
    flex-direction: row-reverse;
}

/* NEW CSS */
.races-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #fff;
}

.races-table thead {
    color: #fff;
}

.races-table th {
    padding: 12px 8px;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.races-table td {
    padding: 10px 8px;
    border: none;
    box-shadow: 0 .3px 0 0 #fff;
    font-size: 13px;
}

.races-table tbody tr {
    user-select: none;
}

.races-table tbody tr:hover {
    background-color: #00000038;
}

.races-table tbody tr:last-child td {
    border-bottom: none;
}

.race-name {
    font-weight: bold;
    color: #fff;
    text-align: left;
}

.race-date {
    color: #666;
    text-align: left;
}

.winner {
    font-weight: bold;
    text-align: left;
}

.laps {
    color: #666;
    text-align: center;
}

.time {
    color: #666;
    text-align: left;
}

@media (max-width: 768px) {
    .races-table {
        font-size: 12px;
    }

    .races-table th,
    .races-table td {
        padding: 8px 4px;
    }
    .races-table td {
        box-shadow: none;
    }
    .races-table thead {
        border-bottom: 1px solid #ccc;
    }
    .races-table tbody tr {
        border-bottom: 1px solid #ccc;
    }
    
}

.standings-table tbody tr:hover {
    background-color: #00000038;
}

.text-success {
    color: #28a745 !important;
    font-weight: bold;
}

.text-danger {
    color: rgb(202, 200, 200) !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .standings-table {
        font-size: 0.85rem;
    }

    .standings-table th {
        padding: 8px 4px;
    }
}

.standings-title {
    color: #fff;
    font-size: .85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 14px;
    border-collapse: collapse;
    border-bottom: 1px solid #fff;
}

.standings-table th {
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    padding: 12px 8px;
}

.standings-table td {
    box-shadow: 0 .3px 0 0 #fff;
}

.standings-table td {
    padding: 10px 8px;
    color: #fff;
}

.standings-table td strong {
    color: #fff;
    padding: 8px 15px;
    background: #333333;
    border-radius: 3px;
    width: 100%;
    display: inline-block;
}

.standings-table tbody tr:hover {
    background-color: #00000038;
}

.text-success {
    color: #28a745 !important;
    font-weight: bold;
}

.text-danger {
    color: rgb(202, 200, 200) !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .incident-item {
        box-shadow: none;
        border-bottom: 1px solid #ccc;
    }

    .etape {
        justify-content: start;
        overflow-x: scroll;
    }

    .standings-table {
        font-size: 0.85rem;
    }

    .match {
        align-items: start;
    }

    .standings-table th,
    .standings-table td {
        padding: 8px 4px;
    }
    .standings-table td {
        box-shadow: none;
    }
    .f1-drivers tbody tr,
    .f1-constructors tbody tr {
        border-bottom: 1px solid #ccc;
    }
}