.widget-clasamente {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-top: 1px solid #ccc;
}

.sports-list {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    align-items: center;
    margin: 0 auto;
    gap: 10px;
    height: 40px;
    background: #fff;
    width: fit-content;
}
.sports-list li {
    position: relative;
    font-weight: 600;
    font-size: 18px;
}
.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: #161616;
    font-size: 1rem;
    font-weight: 300;
}
.sports-list .dropdown-menu a {
    color: #838383;
}
.sports-list li.active a {
    color: #000;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: #D10000;
}
.standings-header li a {
    color: #000;
}
.standings-header li.active a {
    font-weight: bold;
    padding-bottom: 11px;
    border-bottom: 2px solid #dc0510;
    color: #dc0510;
}

@media (max-width: 768px) {
    .sports-list {
        max-height: 200px;
        overflow-y: auto;
        gap: 16px;
    }
    .dropdown {
        display: none;
    }
}
.sport-submenu {
    padding: 10px 0;
    position: relative;
    display: inline-block;
    width: 100%;
}
.sports-list::before {
    content: " ";
    border-left: 2px solid #d10000;
    border-top: 2px solid #d10000;
    border-bottom: 2px solid #d10000;
    margin-right: 10px;
    padding: 5px;
    height: 25px;
}
.sports-list::after  {
    content: " ";
    padding: 5px;
    border-right: 2px solid #d10000;
    border-top: 2px solid #d10000;
    border-bottom: 2px solid #d10000;
    margin-left: 10px;
    height: 25px;
}
.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: #f4f4f4;
    margin: auto;
    outline: solid 1px #ddd;
}
@media (min-width: 768px) {
    border: solid 30px #fff;
    margin-top: -30px;
}
.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: #000;
    max-width: 500px;
    margin: auto;
    padding-bottom: 10px;
    padding-left: 0;
}
.etape li {
    cursor: pointer;
    color: #2f2f2f;
}
.etape li.prev {
    color: #2f2f2f;
    font-weight: 600;
    font-size: 1rem;
}
@media (max-width: 768px) {
    .etape li.prev {
    font-size: 1.125rem;
    }
}
.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%;
}
.widget-clasamente .breadcrumb select {
  appearance: none;
  width: 100%;
  border-radius: 3px;
  border: 1px solid #ccc;
  color: #000;
}
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: #161616;
    font-size: 18px;
}
.arrow {
    display: none;
}
@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: 140px 1fr 76px 1fr;
    align-items: center;
    width: 100%;
    gap: 10px;
}
.match-date {
    font-size: 14px;
    color: #000;
    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: #ffffff;
    font-size: 1rem;
    color: #000;
    border: 1px solid #ccc;
    border-radius: 3px;
}
.team img {
    width: 24px;
    height: 24px;
}
.score {
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    padding: 0;
    background: unset;
    display: flex;
    gap: 5px;
}
.teamA,
.teamB {
    background: #545454;
    color: #fff;
    padding: 7px;
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
}
details summary .icon svg {
    height: 16px;
    display: flex;
}
details .content {
    line-height: 1.8;
    color: #333;
}
details summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    user-select: none;
    transition: all 120ms ease;
    position: relative;
}
@media (min-width: 768px) {
    details summary {
    display: grid;
    grid-template-columns: 1fr 15px;
    }
}
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;
}
@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: 117px 1fr 117px;
        grid-template-rows: auto auto;
    }
    .match> :nth-child(1) {
        grid-column: 1 / -1;
    }
    .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: 14px;
        padding-left: 5px;
        text-align: left;
        white-space: nowrap;   /* NU permite trecerea pe rând nou */
        max-width: 120px;
        overflow: hidden;      /* ascunde ce depășește */
        text-overflow: ellipsis;
    }
}

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;
}
.standings-legend li {
    font-size: 14px;
}
@media (max-width: 768px) {
    .standings-table {
        font-size: 0.85rem;
    }

    .standings-table th {
        padding: 8px 4px;
    }
}

.incidents-timeline {
    border-radius: 5px;
    margin-top: 10px;
}
.incident-item {
    display: flex;
    align-items: center;
    margin: 8px;
    box-shadow: 0 0.5px 0 0 #cccccc;
    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 {
    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 {
    display: flex;
    align-items: center;
    gap: 5px;
}
.goal-icon {
    font-size: 16px;
}

.assist {
    color: #666;
    font-size: 12px;
    font-style: italic;
}
.card {
    display: flex;
    align-items: center;
    gap: 5px;
}
.card-icon {
    font-size: 14px;
}
.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;
}
.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 #cccccc;
    font-size: 13px;
}
.races-table tbody tr {
    user-select: none;
}
.races-table tbody tr:hover {
    background-color: #00000014;
}
.races-table tbody tr:last-child td {
    border-bottom: none;
}
.race-name {
    font-weight: bold;
    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 {
    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;
}
.standings-table th {
    color: #000;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    padding: 12px 8px;
}
.standings-table td {
    box-shadow: 0 .3px 0 0 #cccccc;
}
.standings-table td {
    padding: 10px 8px;
    color: #333;
}
.standings-table td strong {
    padding: 8px 15px;
    width: 100%;
    display: inline-block;
    background: #ffffff;
    font-size: 14px;
    color: #333;
    border: 1px solid #cccccc;
    border-radius: 3px;
}
.standings-table tbody tr:hover {
    background-color: #00000014;
}
.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;
    }
}
.etape-dropdown {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.etape-dropdown .day-selector {
    border-radius: 3px;
    color: #fff;
    background: #545454;
    margin-left: 10px;
    font-weight: normal;
}
.quarters-table table {
    width: 100%;
    max-width: 500px;
    margin: auto;
}
.conferences-standings .section-title,
.divisions-standings .section-title {
    color: #333333;
    font-size: 1.175rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.conferences-standings .conference-title,
.divisions-standings .conference-title {
    font-weight: normal;
    font-size: 1rem;
    border-bottom: none;
    box-shadow: 0 .3px 0 0 #838383;
    margin-top: 10px;
    padding-bottom: 10px;
}
.divisions-standings .division-title {
    display: inline-block;
    width: 100%;
    font-size: 14px;
    border-left: none;
    font-weight: normal;
    padding-bottom: 0.5rem;
    box-shadow: 0 .3px 0 0 #838383;
    padding-top: 5px;
}
.conference-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #cccccc;
}
.standings-legend li {
    color: #333;
    font-weight: 600;
}