.header-ad {
  overflow: visible;
}  
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}
.races-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.race-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 20px;
    padding: 14px 14px;
    background: linear-gradient(135deg, #FFF9F7, #EBEDF2);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    align-items: center;
    position: relative;
}

.race-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 5px;
    background: #0077b6;
    border-radius: 5px;
}

.race-date {
    text-align: center;
    font-weight: 800;
}
.race-date .month {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    color: #777;
}
.race-date .day {
    font-size: 26px;
}

.race-title {
    font-size: 22px;
    font-weight: 800;
    color: #383636;
    text-decoration: none;
}
.race-title:hover {
    color: #0077b6;
}

.race-circuit {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.race-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.meta-pill {
    display: inline-flex; 
    flex-direction: column; 
    align-items: flex-start;
    background: #eef2f7;
    min-width: 320px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}
.meta-pill .meta-header {
    display: inline-flex; 
    align-items: center;
    gap: 6px;
    margin-bottom: 3px; 
    text-transform: uppercase;
    color: #695D5D;
}
.meta-pill .meta-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.meta-pill .meta-line {
    display: inline-flex; 
    gap: 6px;
}
.meta-pill.pole {
    border-left: 4px solid #e10600;
}
.meta-pill.fastest {
    border-left: 4px solid #6a00ff;
}

.race-actions {
    grid-column: 2;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
    justify-self: end;
}
.race-actions i {
    cursor: pointer;
    color: #555;
}
.race-actions i:hover {
    color: #000;
}
.meta-detail {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
}
.meta-detail,
.meta-detail a,
.meta-detail strong {
    font-size: 17px !important; /* Nombres más grandes */
    font-weight: 700 !important;
    color: #1F0404 !important;
    line-height: 22px !important;
}
.meta-detail a:hover {
    color: #e10600 !important;
}
.meta-line .sep {
    margin: 0 6px;
    color: #999;
}
.meta-pill a {
    font-weight: 600;
}

.meta-pill.winner {
    border-left: 4px solid #28a745;
}
.icon-wrap {
    position: relative;
    display: inline-block;
    margin-right: 6px;
    font-size: 15px;
}

.icon-wrap i.fa {
    color: #555;
}

.locked .icon-wrap i.fa {
    color: #aaa;
}
.race-main {
    display: grid;
    grid-template-columns: 1fr auto; 
    gap: 12px;
    align-items: start;
}
.lock-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    font-size: 9px;
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    color: #d00000;
}
.meta-missing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-missing .edit-icon {
    font-size: 11px;
    color: #999;
    text-decoration: none;
}

.meta-missing .edit-icon:hover {
    color: #28a745;
}
.race-status-icons {
    grid-column: 2;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-self: end;
}
.text-info {
    color: #17a2b8 !important;
}

.text-danger {
    color: #dc3545 !important; 
}

.text-warning {
    color: #ffc107 !important; 
}

.text-primary {
    color: #007bff !important; 
}
.pager {
    display: flex;
    justify-content:间-between;
    list-style: none;
    padding: 20px 0;
    margin: 30px 0 10px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
}
.pager-btn {
    display: inline-block;
}
.pager-btn a {
    display: flex !important;
    align-items: center;
    gap: 12px;
    background: #3E97CF !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1) !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.pager-btn a:hover {
    background: #3E84CF !important;
    border-color: #3E84CF !important;
    box-shadow: 0 0 20px rgba(225, 6, 0, 0.4) !important;
    transform: translateY(-3px);
    color: #fff !important;
}

.year-navigation {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.pager-btn i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.previous a:hover i {
    transform: translateX(-5px); 
}

.next a:hover i {
    transform: translateX(5px); 
}
 .race-title {
    font-size: 22px;
    font-weight: 800;
    color: #383636;
    text-decoration: none;
}
    .meta-pill {
    position: relative;
    min-width: 300px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f6f6f6;
    font-size: 13px;
}
.meta-pill .meta-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: rgba(0,0,0,0.08);
    pointer-events: none;
}
.meta-pill .meta-content {
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.meta-pill.winner { border-left: 4px solid #0d6efd; }
.meta-pill.pole   { border-left: 4px solid #ffc107; }
.meta-pill.fastest{ border-left: 4px solid #dc3545; }
.race-status-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.icon-sep {
    color: #aaa;
    margin: 0 4px;
}
.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3em;
    margin-left: 10px;
}
.race-meta {
    margin-top: 10px;
}
.icon-wrap {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}
.lock-icon {
    position: absolute;
    top: -2px;
    right: -2px; 
    font-size: 8px; 
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    color: #d00000;
    line-height: 1;  
    box-shadow: 0 0 2px rgba(0,0,0,0.2); 
}
.expand-all-wrapper {
    text-align: right;
    margin-bottom: 10px;
}

.expand-all-btn {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 20px;
    color: #0d6efd; 
}
.race-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1500px;
    margin: 20px auto;
    padding: 0 16px;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px 18px;
    text-decoration: none;
    color: #111;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-left: 6px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
}

.nav-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}
.nav-card,
.nav-card:hover {
    text-decoration: none;
}

.nav-card.prev {
    justify-content: flex-start;
    padding-right: 40px;
}

.nav-card.next {
    justify-content: flex-end;
    text-align: right;
    padding-left: 40px;
}

.nav-card.accent-blue {
    border-left-color: #2563eb;
}

.nav-card.accent-red {
    border-left: none;
    border-right: 5px solid #e10600;
}

.nav-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.nav-year {
    font-size: 20px;
    font-weight: 700;
}


.nav-card.next i {
    margin-left: 6px; 
}
.page-actions {
    max-width: 1500px;
    margin: 0 auto 16px;
    padding: 0 6vw;
    display: flex;
    justify-content: flex-end;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid transparent;
    transition: all .15s ease;
    font-size: 14px;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    text-decoration: none;
}

/* Acentos */
.action-btn.accent-blue {
    border-left-color: #2563eb;
}

.action-btn i {
    font-size: 14px;
    color: #2563eb;
}
.table-responsive{
    width:100%;
    overflow-x:visible;
}
.table-dpi{
    width:100%;
    background:#fff;
    border-collapse:collapse;
}
.table-dpi th{
    background:#222;
    color:#fff;
    padding:8px;
    cursor:pointer;
    text-align: center; 
}
.table-dpi td{
    padding:6px;
    border-bottom:1px solid #ddd;
    text-align:center;
}

.table-dpi th:first-child,
.table-dpi th:nth-child(2)   {
    text-align: left;
}

.consistency-title {
    font-size: 20px;
    font-weight: bold;
    margin: 25px 0 5px;
}
.table-dpi td:first-child, 
.table-dpi td:nth-child(2)  {
    text-align: left;
}
#list-toggle .list-group-item {
    border: none;
    margin-bottom: 5px;
    border-radius: 8px !important;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

#list-toggle .list-group-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

#list-toggle .list-group-item.active {
    background: linear-gradient(45deg, #d90429, #ef233c);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(217, 4, 41, 0.3);
}

.box.border.primary {
    background: #ffffff !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.box.border.primary:hover {
    transform: translateY(-5px);
}
.box-title {
    background: #1a1a1a !important; 
    padding: 12px 15px !important;
    border-radius: 10px 10px 0 0;
}

.box-title h4 {
    color: #ffffff !important;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background-color: #f1f7ff !important; 
}

.table td a {
    color: #0056b3 !important; 
    font-weight: 700;
    text-decoration: none;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.table td a:hover {
    color: #ffffff !important;
    background-color: #0056b3 !important;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0,86,179,0.3);
}

.pos-badge {
    background: #2b2d42;
    color: white;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    min-width: 30px;
    display: inline-block;
    text-align: center;
}

.data-number {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 600;
    color: #444;
} 
@media(max-width:768px){
    .hidden-xs{display:none;}
    .table-dpi td,.table-dpi th{
        font-size:12px;
        padding:4px;
    }
}
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 768px) {

    .table-dpi {
        border-collapse: separate;
        border-spacing: 0;
    }

    .table-dpi th,
    .table-dpi td {
        white-space: nowrap;
    }


    .table-dpi .sticky-driver {
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 3;
    }


    .table-dpi thead .sticky-driver {
        z-index: 5;
    }


    .table-dpi .sticky-driver::after {
        content: "";
        position: absolute;
        top: 0;
        right: -1px;
        width: 6px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(to right, rgba(0,0,0,.15), transparent);
    }
}

@media (max-width: 480px) {
    .f1-paddock-theme .pager {
        flex-direction: column;
        gap: 15px;
    }
    .f1-paddock-theme .pager-btn a {
        justify-content: center;
        width: 100%;
    }
}

.btn-dpi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #28a745;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-dpi i {
    font-size: 14px;
}

.btn-dpi:hover {
    background: #218838;
    color: #fff;
}

@media (max-width: 600px) {
   
    .race-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,.05);
        border: 1px solid #f0f0f0;
    }

    .race-date {
        display: flex;
        align-items: baseline;
        gap: 10px;
        text-align: left;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        margin-bottom: 4px;
    }

    .race-date .month {
        font-size: 14px;
        margin-bottom: 0;
    }

    .race-date .day {
        font-size: 22px;
        line-height: 1;
    }

    .race-main {
        grid-template-columns: 1fr; 
    }

    .meta-pill {
        min-width: 0; 
        width: 100%; 
        border-radius: 12px; 
        padding: 10px 12px;
        box-sizing: border-box;
    }

    .race-meta {
        flex-direction: column; 
        gap: 8px;
    }


    .race-actions, 
    .race-status-icons {
        grid-column: 1; 
        justify-self: start;
        margin-top: 10px;
        width: 100%;
        justify-content: flex-start;
    }

    .race-title {
        font-size: 18px;
        line-height: 1.2;
    }

    .pager-btn a {
        padding: 8px 16px;
        font-size: 13px;
    }
}