.vcr-raceboard-upcoming {
    margin-bottom: 26px;
}

.vcr-raceboard-upcoming-grid {
    gap: 20px;
}

.vcr-upcoming-note {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #a0aec0 !important;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 10px;
    border-radius: 6px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/**
 * VCR Raceboard Shortcode Styles
 * 
 * Color reference from VCR Graphics Page:
 * - GM (blu): #1e3a5f, #2c5282, #3182ce
 * - GR (verde): #1a4d2e, #276749, #38a169
 * - Accent: #e53e3e (red), #dd6b20 (orange)
 */

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

/* Timezone selector - inline in Races header */
.vcr-raceboard-tz-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vcr-timezone-select {
    padding: 6px 10px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    background: rgba(45,55,72,0.9) !important;
    color: #e2e8f0 !important;
    cursor: pointer;
    min-width: 200px;
}

.vcr-timezone-select:focus {
    outline: none !important;
    border-color: #63b3ed !important;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.15) !important;
}

.vcr-timezone-select option,
.vcr-timezone-select optgroup {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

/* Filter sections */
.vcr-filter-section {
    margin-bottom: 16px;
    background: rgba(30,40,55,0.85);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.vcr-filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}

.vcr-filter-toggle:hover {
    background: rgba(255,255,255,0.04);
}

.vcr-filter-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a0aec0;
}

.vcr-filter-toggle-chevron {
    transition: transform 0.2s;
    color: #718096;
    font-size: 14px;
}

.vcr-filter-section.open .vcr-filter-toggle-chevron {
    transform: rotate(180deg);
}

.vcr-filter-body {
    display: none;
    padding: 0 16px 14px 16px;
}

.vcr-filter-section.open .vcr-filter-body {
    display: block;
}

.vcr-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.vcr-filter-row:last-child {
    margin-bottom: 0;
}

.vcr-filter-label {
    font-size: 11px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 70px;
}

.vcr-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.vcr-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
    background: transparent;
    color: #8b949e;
    border: 1.5px solid rgba(139,148,158,0.3);
}

.vcr-filter-pill:hover {
    color: var(--pill-color, #a0aec0) !important;
    border-color: var(--pill-color, rgba(139,148,158,0.6)) !important;
    background: color-mix(in srgb, var(--pill-color, #a0aec0) 15%, transparent) !important;
    box-shadow: 0 0 8px color-mix(in srgb, var(--pill-color, #a0aec0) 30%, transparent) !important;
}

.vcr-filter-pill.active {
    border-color: currentColor;
}

.vcr-filter-date-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.vcr-filter-date {
    padding: 4px 8px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    background: rgba(45,55,72,0.9) !important;
    color: #e2e8f0 !important;
    font-family: inherit;
}

.vcr-filter-date:focus {
    outline: none !important;
    border-color: #63b3ed !important;
}

.vcr-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: #fc8181;
    border: 1.5px solid rgba(252,129,129,0.3);
    transition: all 0.15s;
    margin-left: auto;
}

/* Collapsible sections */
.vcr-collapse {
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    background: rgba(20,26,36,0.85);
    margin-top: 32px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(0,0,0,0.28);
}

.vcr-collapse-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px;
    color: #e2e8f0 !important;
    background: rgba(36,48,66,0.9) !important;
    border: none !important;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, transform 0.2s;
    border-bottom: 3px solid #3182ce !important;
}

.vcr-collapse-trigger:hover {
    background: rgba(52,69,94,0.95) !important;
    color: #e2e8f0 !important;
}

.vcr-collapse-trigger:focus {
    outline: 2px solid #63b3ed !important;
    outline-offset: -2px;
}

.vcr-collapse-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0 !important;
}

.vcr-collapse-active-filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-left: 8px;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.vcr-active-filter-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 11px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    border: 1.5px solid;
    line-height: 1.4;
    white-space: nowrap;
}

.vcr-collapse-hint {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #718096 !important;
    font-style: italic;
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
}

.vcr-collapse-open .vcr-collapse-hint {
    opacity: 0;
    pointer-events: none;
}

.vcr-collapse-icon {
    font-size: 20px;
    color: #63b3ed !important;
    transition: transform 0.3s ease;
}

.vcr-collapse:not(.vcr-collapse-open) .vcr-collapse-icon {
    transform: rotate(-90deg);
}

.vcr-collapse-open .vcr-collapse-icon {
    transform: rotate(0deg);
}

.vcr-collapse-content {
    padding: 18px 22px 24px 22px;
    background: rgba(15,20,30,0.9);
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.vcr-collapse:not(.vcr-collapse-open) .vcr-collapse-content {
    display: none;
}

.vcr-collapse-content .vcr-filter-section {
    margin-bottom: 22px;
}

/* Screen-reader only utility */
.vcr-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.vcr-filter-reset:hover {
    border-color: #fc8181;
    background: rgba(252,129,129,0.1);
}

.vcr-raceboard-card.vcr-filtered-out,
.vcr-raceboard-card.hidden {
    display: none !important;
}

.vcr-sort-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    background: transparent !important;
    color: #63b3ed !important;
    border: 1.5px solid rgba(99,179,237,0.4) !important;
    transition: all 0.2s !important;
}

.vcr-sort-toggle:hover {
    background: rgba(99,179,237,0.15) !important;
    border-color: #63b3ed !important;
}

.vcr-sort-toggle[data-order="desc"] .vcr-sort-icon {
    transform: rotate(180deg);
}

.vcr-filter-pill.active[data-value="past"] {
    color: #f56565 !important;
    border-color: #f56565 !important;
    background: rgba(245,101,101,0.15) !important;
}

.vcr-raceboard-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   LOGIN REQUIRED & EMPTY STATE
   ======================================== */

.vcr-raceboard-login-required,
.vcr-raceboard-empty {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.vcr-raceboard-login-icon,
.vcr-raceboard-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.vcr-raceboard-login-required h3,
.vcr-raceboard-empty h3 {
    color: #2d3748;
    font-size: 24px;
    margin: 0 0 12px 0;
}

.vcr-raceboard-login-required p,
.vcr-raceboard-empty p {
    color: #718096;
    font-size: 16px;
    margin: 0 0 24px 0;
}

.vcr-raceboard-login-btn {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vcr-raceboard-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

/* ========================================
   SECTIONS
   ======================================== */

.vcr-raceboard-section {
    margin-bottom: 40px;
}

.vcr-raceboard-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #3182ce;
}

.vcr-raceboard-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #e2e8f0 !important;
    margin: 0;
}

/* Section icon */
.vcr-section-icon {
    flex-shrink: 0;
    color: #e2e8f0 !important;
}

/* ========================================
   CONTROLS (Rows selector & Pagination)
   ======================================== */

.vcr-raceboard-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.vcr-raceboard-cards-selector {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vcr-raceboard-cards-selector label {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #a0aec0 !important;
    white-space: nowrap;
}

.vcr-raceboard-cards-select {
    padding: 4px 8px !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    background: rgba(45,55,72,0.9) !important;
    color: #e2e8f0 !important;
    cursor: pointer;
}

.vcr-raceboard-cards-select option {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

.vcr-raceboard-cards-select:focus {
    outline: none !important;
    border-color: #63b3ed !important;
}

.vcr-raceboard-rows-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vcr-raceboard-rows-selector label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.vcr-raceboard-rows-select {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.vcr-raceboard-rows-select:hover {
    border-color: #3182ce;
}

.vcr-raceboard-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vcr-raceboard-page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 6px !important;
    background: rgba(45,55,72,0.9) !important;
    color: #e2e8f0 !important;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vcr-raceboard-page-btn:hover:not(:disabled) {
    background: rgba(99,179,237,0.25) !important;
    color: #63b3ed !important;
    border-color: #63b3ed !important;
}

.vcr-raceboard-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.vcr-raceboard-page-info {
    font-size: 13px;
    color: #a0aec0 !important;
    white-space: nowrap;
}

/* ========================================
   CARD GRID (3 per row)
   ======================================== */

.vcr-raceboard-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ========================================
   CHAMPIONSHIP/RACE CARD
   ======================================== */

.vcr-raceboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.vcr-raceboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #3182ce;
}

.vcr-raceboard-card.hidden {
    display: none;
}

/* Card with background image */
.vcr-raceboard-card.vcr-raceboard-card-with-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.vcr-raceboard-card.vcr-raceboard-card-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.7) 0%, rgba(20, 20, 20, 0.85) 100%);
    z-index: 1;
    border-radius: 12px;
}

.vcr-raceboard-card.vcr-raceboard-card-with-bg > * {
    position: relative;
    z-index: 2;
}

.vcr-raceboard-card.vcr-raceboard-card-with-bg .vcr-raceboard-card-title,
.vcr-raceboard-card.vcr-raceboard-card-with-bg .vcr-raceboard-card-desc,
.vcr-raceboard-card.vcr-raceboard-card-with-bg .vcr-raceboard-stat-value,
.vcr-raceboard-card.vcr-raceboard-card-with-bg .vcr-raceboard-stat-icon {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vcr-raceboard-card.vcr-raceboard-card-with-bg .vcr-stat-svg {
    stroke: #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.vcr-raceboard-card.vcr-raceboard-card-with-bg .vcr-raceboard-card-body {
    background: transparent;
}

.vcr-raceboard-card.vcr-raceboard-card-with-bg .vcr-raceboard-card-footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Championship card specific styles */
.vcr-raceboard-championship-card .vcr-raceboard-card-stats {
    grid-template-columns: repeat(3, 1fr);
}

/* Championship badges section */
.vcr-raceboard-badges-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.vcr-raceboard-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vcr-raceboard-badge-label {
    font-size: 9px;
    font-weight: 600;
    color: #718096;
    min-width: 60px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vcr-raceboard-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.vcr-raceboard-card-with-bg .vcr-raceboard-badge-label {
    color: rgba(255, 255, 255, 0.8);
}

.vcr-raceboard-card-with-bg .vcr-raceboard-badges-section {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Races Slider */
.vcr-races-slider {
    margin-top: 12px;
    border: 2px solid #e53e3e;
    border-radius: 8px;
    overflow: hidden;
}

.vcr-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
}

.vcr-slider-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vcr-slider-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Reset button styles completely */
button.vcr-slider-arrow,
.vcr-slider-nav button.vcr-slider-arrow {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-family: inherit !important;
    font-size: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.vcr-slider-arrow {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1 !important;
}

.vcr-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.4) !important;
}

.vcr-slider-arrow:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.vcr-slider-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.vcr-slider-arrow svg {
    stroke: #fff !important;
    width: 14px !important;
    height: 14px !important;
}

.vcr-slider-counter {
    font-size: 11px;
    color: #fff;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
}

.vcr-slider-container {
    position: relative;
    width: 100%;
    min-height: 80px;
}

.vcr-race-slide {
    display: none;
    padding: 12px;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.vcr-race-slide.active {
    display: block;
}

.vcr-race-slide.vcr-slide-with-bg {
    background-color: #1a202c;
}

.vcr-race-slide.vcr-slide-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.vcr-race-slide > * {
    position: relative;
    z-index: 2;
}

.vcr-slide-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none !important;
}

.vcr-slide-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.vcr-slide-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.vcr-slide-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.vcr-slide-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 8px;
}

/* Registration badge */
.vcr-reg-badge {
    display: inline-block !important;
    padding: 0px 4px !important;
    margin: 0 !important;
    border-radius: 2px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.2px !important;
    border: none !important;
    cursor: default;
    line-height: 1.3 !important;
    vertical-align: middle !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

button.vcr-reg-badge {
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

button.vcr-reg-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.vcr-reg-badge-open {
    background: #38a169 !important;
    color: #fff !important;
}

.vcr-reg-badge-urgent {
    background: #d69e2e !important;
    color: #fff !important;
}

.vcr-reg-badge-closed {
    background: #e53e3e !important;
    color: #fff !important;
}

/* Race stats badges */
.vcr-raceboard-race-stats-badges {
    display: flex;
    gap: 6px;
    margin: 8px 0;
}

.vcr-race-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: default;
}

.vcr-race-stat-badge svg {
    flex-shrink: 0;
}

.vcr-race-stat-total {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: #fff;
    border: 1px solid #4a5568;
}

.vcr-race-stat-completed {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
    border: 1px solid #2f855a;
}

.vcr-race-stat-remaining {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: #fff;
    border: 1px solid #2b6cb0;
}

.vcr-raceboard-championship-dates {
    display: flex;
    gap: 16px;
    margin: 8px 0 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.vcr-raceboard-date-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vcr-raceboard-date-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    font-weight: 600;
}

.vcr-raceboard-date-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a202c;
}

.vcr-raceboard-card-with-bg .vcr-raceboard-date-label {
    color: rgba(255, 255, 255, 0.7);
}

.vcr-raceboard-card-with-bg .vcr-raceboard-date-value {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vcr-raceboard-card-with-bg .vcr-raceboard-championship-dates {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Next race section */
.vcr-raceboard-next-race {
    margin-top: 12px;
    padding: 10px;
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-radius: 8px;
    border: 2px solid #e53e3e;
    position: relative;
    overflow: hidden;
}

/* Next race with background image */
.vcr-raceboard-next-race.vcr-next-race-with-bg {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #1a202c;
}

.vcr-raceboard-next-race.vcr-next-race-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
}

.vcr-raceboard-next-race.vcr-next-race-with-bg > * {
    position: relative;
    z-index: 2;
}

.vcr-raceboard-next-race.vcr-next-race-with-bg .vcr-raceboard-next-race-label {
    color: rgba(255, 255, 255, 0.9);
}

.vcr-raceboard-next-race.vcr-next-race-with-bg .vcr-raceboard-next-race-name {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.vcr-raceboard-next-race.vcr-next-race-with-bg .vcr-raceboard-next-race-date {
    color: rgba(255, 255, 255, 0.85);
}

.vcr-raceboard-next-race.vcr-next-race-with-bg .vcr-raceboard-next-race-badges {
    border-top-color: rgba(255, 255, 255, 0.3);
}

.vcr-raceboard-next-race-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2c5282;
    font-weight: 600;
    margin-bottom: 4px;
}

.vcr-raceboard-next-race-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.vcr-raceboard-next-race-link:hover {
    transform: translateX(4px);
}

.vcr-raceboard-next-race-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c5282;
}

.vcr-raceboard-next-race-date {
    font-size: 11px;
    color: #4a5568;
}

.vcr-raceboard-next-race-link:hover .vcr-raceboard-next-race-name {
    color: #1a365d;
}

.vcr-raceboard-card-with-bg .vcr-raceboard-next-race {
    background: rgba(255, 255, 255, 0.95);
}

.vcr-raceboard-next-race-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(144, 205, 244, 0.5);
}

/* Race card: Hero image section */
.vcr-race-card-hero {
    position: relative;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #1e3a5f;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.vcr-race-card-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.30) 0%, rgba(15,23,42,0.60) 100%);
    z-index: 1;
}

.vcr-race-card-hero > * {
    position: relative;
    z-index: 2;
}

.vcr-race-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    background: rgba(0,0,0,0.45);
    margin: -14px -16px 0 -16px;
    padding: 10px 16px;
}

.vcr-race-hero-top .vcr-raceboard-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
}

.vcr-race-hero-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.vcr-race-hero-bottom {
    position: absolute;
    bottom: 10px;
    left: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* Championship hero: slightly shorter since no track line */
.vcr-champ-card-hero {
    min-height: 200px;
}

.vcr-race-hero-datetime {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.vcr-race-card-hero .vcr-raceboard-card-title,
.vcr-race-card-hero h3.vcr-raceboard-card-title {
    color: #fff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    margin: 0 !important;
    font-size: 17px !important;
}

.vcr-race-card-hero .vcr-track-badge {
    background: rgba(0,0,0,0.45) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.25) !important;
    margin: 0;
}

/* Race card: Info section */
.vcr-race-card-info {
    position: relative;
    padding: 20px 16px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #1a202c;
    color: #cbd5e0;
}

.vcr-race-card-info::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,179,237,0.5), transparent);
    border-radius: 2px;
}

/* Session mini-table */
.vcr-session-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    overflow: hidden;
}

.vcr-session-table-row {
    display: table-row;
}

.vcr-session-table-cell {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    padding: 5px 4px;
    border: 1px solid rgba(255,255,255,0.12);
}

.vcr-session-table-row:last-child .vcr-session-table-cell {
    background: rgba(0,0,0,0.15);
}

/* Card divider line (matches hero/info separator) */
.vcr-card-divider {
    position: relative;
    height: 2px;
    margin: 4px 0;
    background: transparent;
}

.vcr-card-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(99,179,237,0.5), transparent);
    border-radius: 2px;
}

/* Weather + Participants row */
.vcr-card-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vcr-race-card-info .vcr-raceboard-card-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -14px;
    padding: 10px 16px;
    border-radius: 0 0 12px 12px;
    background: rgba(0,0,0,0.2);
}

.vcr-race-card-info .vcr-raceboard-card-stat {
    color: #a0aec0;
}

.vcr-race-card-info .vcr-raceboard-stat-value {
    color: #e2e8f0;
}

.vcr-race-card-info .vcr-card-reg-not .vcr-card-reg-text {
    color: #718096;
}

.vcr-race-card-info .vcr-card-reg-registered .vcr-card-reg-text {
    color: #48bb78;
}

/* Championship card header (unchanged) */
.vcr-raceboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
}

.vcr-raceboard-card-platform {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.vcr-raceboard-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vcr-raceboard-card-title,
.vcr-raceboard-card h3.vcr-raceboard-card-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a202c;
    margin: 0 0 6px 0 !important;
    line-height: 1.3 !important;
}

/* Title icons (team in championship, teammate registered) */
.vcr-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: help;
    flex-shrink: 0;
}

/* Registration status line below title */
.vcr-card-reg-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.vcr-card-reg-not .vcr-card-reg-text {
    font-size: 11px;
    font-weight: 500;
    color: #a0aec0;
}

.vcr-card-reg-registered .vcr-card-reg-text {
    font-size: 11px;
    font-weight: 600;
    color: #48bb78;
}

.vcr-cancel-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    background: transparent !important;
    color: #fc8181 !important;
    border: 1.5px solid rgba(252,129,129,0.4) !important;
}

.vcr-cancel-badge:hover {
    background: #fc8181 !important;
    color: #0d1117 !important;
    border-color: #fc8181 !important;
    box-shadow: 0 0 10px rgba(252,129,129,0.4) !important;
}

.vcr-raceboard-card-desc {
    font-size: 12px !important;
    color: #718096;
}

/* Track badge */
.vcr-track-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: transparent !important;
    color: #a0aec0 !important;
    border: 1.5px solid rgba(160,174,192,0.3) !important;
    margin: 6px 0;
}

.vcr-track-badge-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.vcr-track-badge-clickable:hover {
    background: rgba(99,179,237,0.1) !important;
    color: #63b3ed !important;
    border-color: #63b3ed !important;
    transform: scale(1.02);
}

.vcr-raceboard-card-with-bg .vcr-track-badge {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #e2e8f0 !important;
    border-color: rgba(255,255,255,0.2) !important;
}

/* Track layout modal */
.vcr-track-layout-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.vcr-track-layout-modal.active {
    display: flex;
}

.vcr-track-layout-modal .vcr-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    max-height: 80vh;
    position: relative;
}

.vcr-track-layout-modal img {
    max-width: 100%;
    max-height: 60vh;
    border-radius: 8px;
    display: block;
}

.vcr-track-layout-modal .vcr-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #1a202c;
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.vcr-track-layout-modal .vcr-modal-close:hover {
    background: #2d3748;
}

/* Weather clickable indicator */
.vcr-weather-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.vcr-weather-clickable:hover {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Weather modal */
.vcr-weather-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.vcr-weather-modal.active {
    display: flex;
}

.vcr-weather-modal .vcr-modal-content {
    background: #1a202c;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(99,179,237,0.2);
    max-width: 320px;
    width: 100%;
    position: relative;
}

.vcr-weather-modal .vcr-modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.vcr-weather-modal .vcr-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #e2e8f0;
}

.vcr-weather-modal .vcr-weather-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vcr-weather-modal .vcr-weather-item {
    background: rgba(255,255,255,0.06);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
}

.vcr-weather-modal .vcr-weather-item-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.vcr-weather-modal .vcr-weather-item-label {
    font-size: 10px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vcr-weather-modal .vcr-weather-item-value {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

.vcr-weather-modal .vcr-weather-updated {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 11px;
    color: #718096;
    text-align: center;
}

.vcr-weather-modal .vcr-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #2d3748;
    color: #e2e8f0;
    border: 1px solid rgba(255,255,255,0.15);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vcr-weather-modal .vcr-modal-close:hover {
    background: #4a5568;
}

.vcr-raceboard-card-track {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.vcr-raceboard-card-track {
    font-size: 13px;
    color: #4a5568;
    margin: 0 0 12px 0;
}

.vcr-raceboard-card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: auto;
}

.vcr-raceboard-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #4a5568;
}

.vcr-raceboard-stat-icon {
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}

.vcr-stat-svg {
    flex-shrink: 0;
}

.vcr-raceboard-stat-value {
    font-weight: 500;
}

.vcr-raceboard-card-footer {
    padding: 10px 12px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 6px;
}

.vcr-raceboard-card-footer .vcr-raceboard-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
    min-width: 0;
    white-space: nowrap;
}

.vcr-raceboard-btn-standings {
    background: transparent !important;
    color: #ecc94b !important;
    border: 1.5px solid #ecc94b !important;
}

.vcr-raceboard-btn-standings:hover {
    background: #ecc94b !important;
    color: #0d1117 !important;
    border-color: #ecc94b !important;
    box-shadow: 0 0 14px rgba(236,201,75,0.5) !important;
}

/* Coming Soon Modal */
.vcr-coming-soon-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.vcr-coming-soon-modal.active {
    display: flex;
}

.vcr-coming-soon-content {
    background: linear-gradient(135deg, #1a202c, #2d3748);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    color: #fff;
    position: relative;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.vcr-coming-soon-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.vcr-coming-soon-close:hover {
    background: rgba(255,255,255,0.3);
}

.vcr-coming-soon-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.vcr-coming-soon-content h3 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.vcr-coming-soon-content p {
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

/* ========================================
   STATUS BADGES
   ======================================== */

.vcr-raceboard-status {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vcr-raceboard-status-ongoing {
    background: #38a169;
    color: #fff;
}

.vcr-raceboard-status-upcoming {
    background: #dd6b20;
    color: #fff;
}

.vcr-raceboard-status-completed {
    background: #718096;
    color: #fff;
}

.vcr-raceboard-reg-open {
    background: rgba(0, 0, 0, 0.2);
    color: #48bb78;
}

.vcr-raceboard-reg-urgent {
    background: rgba(0, 0, 0, 0.2);
    color: #f6ad55;
    animation: vcr-reg-pulse 2s ease-in-out infinite;
}

.vcr-raceboard-reg-critical {
    background: rgba(0, 0, 0, 0.2);
    color: #f56565;
    animation: vcr-reg-pulse 1s ease-in-out infinite;
}

.vcr-raceboard-reg-running {
    background: rgba(0, 0, 0, 0.2);
    color: #63b3ed;
    animation: vcr-reg-live-pulse 1.5s ease-in-out infinite;
}

.vcr-raceboard-reg-finished {
    background: rgba(0, 0, 0, 0.2);
    color: #a0aec0;
}

.vcr-raceboard-reg-cancelled {
    background: rgba(0, 0, 0, 0.2);
    color: #fc8181;
}

.vcr-raceboard-card-past {
    opacity: 0.7;
}

.vcr-raceboard-card-past .vcr-race-card-hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

@keyframes vcr-reg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes vcr-reg-live-pulse {
    0%, 100% { opacity: 1; color: #63b3ed; }
    50% { opacity: 0.7; color: #90cdf4; }
}

.vcr-raceboard-reg-closed {
    background: rgba(0, 0, 0, 0.2);
    color: #f56565;
}

.vcr-raceboard-reg-full {
    background: rgba(0, 0, 0, 0.2);
    color: #ecc94b;
}

.vcr-reg-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1;
}

.vcr-reg-status-pill .vcr-reg-icon {
    width: 14px;
    height: 14px;
    display: block;
}

.vcr-reg-status-pill .vcr-reg-text {
    font-size: 11px;
}

/* ========================================
   RACES PANEL (expanded from card)
   ======================================== */

.vcr-raceboard-races-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vcr-raceboard-races-panel-content {
    max-width: 1100px;
    width: 100%;
    max-height: 85vh;
    background: #1a202c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
}

.vcr-races-panel-content-with-bg {
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #1a202c;
}

.vcr-races-panel-content-with-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 100%);
    border-radius: 12px;
    z-index: 0;
    pointer-events: none;
}

.vcr-races-panel-content-with-bg > * {
    position: relative;
    z-index: 1;
}

.vcr-raceboard-races-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    backdrop-filter: blur(4px);
}

.vcr-raceboard-races-panel-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Races Table */
.vcr-raceboard-races-table-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(26, 32, 44, 0.85);
}

.vcr-raceboard-races-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.vcr-raceboard-races-table thead {
    background: rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 0;
}

.vcr-raceboard-races-table th {
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.vcr-raceboard-races-table td {
    padding: 10px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    vertical-align: middle;
    color: #fff;
}

.vcr-raceboard-races-table tbody tr:hover {
    background: rgba(255,255,255,0.1);
}

.vcr-races-table-datetime {
    white-space: nowrap;
    color: rgba(255,255,255,0.8);
}

.vcr-races-table-name a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.vcr-races-table-name a:hover {
    color: #fc8181;
    text-decoration: underline;
}

.vcr-races-table-track a {
    color: #90cdf4;
    text-decoration: none;
}

.vcr-races-table-track a:hover {
    text-decoration: underline;
}

.vcr-races-table-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.vcr-races-table-register {
    text-align: center;
}

.vcr-raceboard-races-panel > .vcr-raceboard-races-list {
    max-width: 900px;
    width: 100%;
    max-height: 80vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.vcr-raceboard-races-panel .vcr-raceboard-races-list {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* ========================================
   RACE CARD
   ======================================== */

.vcr-raceboard-races-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vcr-raceboard-race {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    transition: all 0.2s ease;
}

.vcr-raceboard-race:hover {
    border-color: #3182ce;
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.15);
}

.vcr-raceboard-race-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.vcr-raceboard-round {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    background: #edf2f7;
    color: #4a5568;
    border-radius: 4px;
    text-transform: uppercase;
}

.vcr-raceboard-race-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
    flex: 1;
}

.vcr-raceboard-race-datetime {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #4a5568;
}

/* ========================================
   RACE INFO ROW
   ======================================== */

.vcr-raceboard-race-info {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 12px;
}

.vcr-raceboard-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4a5568;
}

.vcr-raceboard-info-icon {
    font-size: 16px;
}

.vcr-raceboard-reg-status {
    margin-left: auto;
    font-weight: 600;
}

.vcr-raceboard-reg-open {
    color: #38a169;
}

.vcr-raceboard-reg-urgent {
    color: #dd6b20;
    animation: vcr-reg-pulse 2s ease-in-out infinite;
}

.vcr-raceboard-reg-critical {
    color: #e53e3e;
    animation: vcr-reg-pulse 1s ease-in-out infinite;
}

.vcr-raceboard-reg-running {
    color: #3182ce;
    animation: vcr-reg-live-pulse 1.5s ease-in-out infinite;
}

.vcr-raceboard-reg-finished {
    color: #a0aec0;
}

.vcr-raceboard-reg-closed {
    color: #e53e3e;
}

.vcr-raceboard-reg-full {
    color: #dd6b20;
    font-weight: 700;
}

/* ========================================
   RACE ACTIONS
   ======================================== */

.vcr-raceboard-race-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vcr-raceboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vcr-raceboard-btn-icon {
    font-size: 14px;
}

.vcr-raceboard-btn-details {
    background: #63b3ed !important;
    color: #0d1117 !important;
    border: 1.5px solid #63b3ed !important;
    box-shadow: 0 0 14px rgba(99,179,237,0.5) !important;
}

.vcr-raceboard-btn-details:hover {
    background: transparent !important;
    color: #63b3ed !important;
    border-color: #63b3ed !important;
    box-shadow: none !important;
}

.vcr-raceboard-btn-details.active {
    background: #63b3ed !important;
    color: #1a202c !important;
    border-color: #63b3ed !important;
}

.vcr-raceboard-btn-register {
    background: #48bb78 !important;
    color: #0d1117 !important;
    border: 1.5px solid #48bb78 !important;
    box-shadow: 0 0 14px rgba(72,187,120,0.5) !important;
}

.vcr-raceboard-btn-register:hover {
    background: transparent !important;
    color: #48bb78 !important;
    border-color: #48bb78 !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

.vcr-raceboard-btn-registered {
    background: rgba(72,187,120,0.15) !important;
    color: #48bb78 !important;
    border: 1.5px solid rgba(72,187,120,0.4) !important;
    cursor: default;
}

.vcr-raceboard-btn-closed,
.vcr-raceboard-btn-full {
    background: rgba(252,129,129,0.1) !important;
    color: #fc8181 !important;
    border: 1.5px solid rgba(252,129,129,0.3) !important;
    cursor: not-allowed;
}

.vcr-raceboard-btn-ineligible {
    background: rgba(246,173,85,0.1) !important;
    color: #f6ad55 !important;
    border: 1.5px solid rgba(246,173,85,0.3) !important;
    cursor: not-allowed;
}

/* ========================================
   RACE DETAILS PANEL
   ======================================== */

.vcr-raceboard-race-details {
    margin-top: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.vcr-raceboard-details-section {
    margin-bottom: 16px;
}

.vcr-raceboard-details-section:last-child {
    margin-bottom: 0;
}

.vcr-raceboard-details-section h5 {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 8px 0;
}

.vcr-raceboard-sessions,
.vcr-raceboard-categories,
.vcr-raceboard-weather,
.vcr-raceboard-rules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vcr-raceboard-session,
.vcr-raceboard-category {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
}

.vcr-raceboard-category {
    background: linear-gradient(135deg, #ebf8ff 0%, #bee3f8 100%);
    border-color: #90cdf4;
    color: #2c5282;
    font-weight: 600;
}

.vcr-raceboard-restrictions {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #4a5568;
}

.vcr-raceboard-restrictions li {
    margin-bottom: 4px;
}

.vcr-raceboard-weather span,
.vcr-raceboard-rules span {
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
}

/* ========================================
   LOADING STATE
   ======================================== */

.vcr-raceboard-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.vcr-raceboard-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: vcr-spin 0.8s linear infinite;
}

@keyframes vcr-spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   CLOSE BUTTON
   ======================================== */

.vcr-raceboard-btn-close {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.vcr-raceboard-btn-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.vcr-raceboard-btn-view {
    background: linear-gradient(135deg, #2c5282 0%, #3182ce 100%);
    color: #fff;
}

.vcr-raceboard-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
    .vcr-raceboard-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vcr-raceboard-container {
        padding: 10px;
    }
    
    /* Section header mobile */
    .vcr-raceboard-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vcr-raceboard-section-title {
        font-size: 18px !important;
        flex-wrap: wrap;
    }
    
    /* Inline note wraps under title on mobile */
    .vcr-upcoming-note {
        font-size: 11px !important;
        padding: 3px 8px;
        margin-left: 0;
    }
    
    /* Collapsible section mobile */
    .vcr-collapse {
        margin-top: 20px;
    }
    
    .vcr-collapse-trigger {
        padding: 12px 14px !important;
        font-size: 18px !important;
        flex-wrap: wrap;
    }
    
    .vcr-collapse-active-filters {
        margin-left: 0;
        margin-top: 4px;
        width: 100%;
    }
    
    .vcr-active-filter-badge {
        font-size: 10px !important;
        padding: 1px 7px;
    }
    
    .vcr-collapse-content {
        padding: 12px 10px 16px 10px;
    }
    
    /* Controls row: wrap to 2 rows on mobile */
    .vcr-raceboard-controls {
        width: 100%;
        gap: 10px;
        justify-content: flex-start;
    }
    
    /* Timezone full-width on mobile */
    .vcr-raceboard-tz-inline {
        order: -1;
        width: 100%;
    }
    
    .vcr-timezone-select {
        min-width: 0 !important;
        flex: 1;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Show selector + pagination side by side */
    .vcr-raceboard-cards-selector {
        flex-shrink: 0;
    }
    
    .vcr-raceboard-cards-select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Filter sections mobile */
    .vcr-filter-section {
        margin-bottom: 12px;
    }
    
    .vcr-filter-toggle {
        padding: 8px 12px;
    }
    
    .vcr-filter-body {
        padding: 0 12px 12px 12px;
    }
    
    .vcr-filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .vcr-filter-label {
        min-width: auto;
    }
    
    .vcr-filter-pills {
        gap: 4px;
    }
    
    .vcr-filter-pill {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    .vcr-filter-date-inputs {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .vcr-filter-date {
        flex: 1;
        min-width: 120px;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    .vcr-filter-reset {
        margin-left: 0;
        margin-top: 4px;
    }
    
    /* Pagination compact */
    .vcr-raceboard-pagination {
        gap: 6px;
    }
    
    .vcr-raceboard-page-info {
        font-size: 11px !important;
    }
    
    /* Card grid - single column on mobile */
    .vcr-raceboard-card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Card styles mobile */
    .vcr-raceboard-card {
        border-radius: 10px;
    }
    
    .vcr-race-card-hero {
        min-height: 150px;
        padding: 12px;
        border-radius: 10px 10px 0 0;
    }
    
    .vcr-race-card-info {
        padding: 12px;
    }
    
    .vcr-race-card-info .vcr-raceboard-card-footer {
        margin: 8px -12px -12px -12px;
        padding: 10px 12px;
    }
    
    .vcr-raceboard-card-header {
        padding: 10px 12px;
    }
    
    .vcr-raceboard-card-body {
        padding: 12px;
    }
    
    .vcr-raceboard-card-title,
    .vcr-raceboard-card h3.vcr-raceboard-card-title {
        font-size: 15px !important;
        line-height: 1.4 !important;
    }
    
    .vcr-raceboard-card-stats {
        gap: 6px;
    }
    
    .vcr-raceboard-card-stat {
        font-size: 11px;
    }
    
    .vcr-raceboard-card-footer {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }
    
    .vcr-raceboard-card-footer .vcr-raceboard-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Race list mobile */
    .vcr-raceboard-race-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .vcr-raceboard-race-name {
        font-size: 15px;
    }
    
    .vcr-raceboard-race-datetime {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
        font-size: 13px;
    }
    
    .vcr-raceboard-race-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .vcr-raceboard-info-item {
        font-size: 13px;
    }
    
    .vcr-raceboard-reg-status {
        margin-left: 0;
    }
    
    .vcr-raceboard-race-actions {
        flex-direction: column;
    }
    
    .vcr-raceboard-btn {
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* Panel modal mobile - full screen, header always visible */
    .vcr-raceboard-races-panel {
        padding: 0 !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }
    
    .vcr-raceboard-races-panel-content {
        max-width: 100% !important;
        max-height: 100% !important;
        width: 100% !important;
        height: 100% !important;
        border-radius: 0 !important;
        overflow: hidden !important;
    }
    
    .vcr-raceboard-races-panel-header {
        padding: 10px 14px !important;
        flex-shrink: 0 !important;
        gap: 8px;
    }
    
    .vcr-raceboard-races-panel-header h3 {
        font-size: 13px !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .vcr-raceboard-races-panel-header .vcr-raceboard-btn-close {
        flex-shrink: 0 !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
    
    .vcr-raceboard-races-table-wrapper {
        flex: 1 1 0 !important;
        overflow-y: auto !important;
        padding: 10px !important;
        min-height: 0 !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Races table mobile - convert to cards layout */
    .vcr-raceboard-races-table-wrapper {
        padding: 10px;
        overflow-x: hidden;
    }
    
    .vcr-raceboard-races-table {
        font-size: 12px;
        min-width: 0;
        display: block;
    }
    
    .vcr-raceboard-races-table thead {
        display: none;
    }
    
    .vcr-raceboard-races-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .vcr-raceboard-races-table tbody tr {
        display: flex;
        flex-wrap: wrap;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 12px;
        gap: 8px;
        border: none !important;
    }
    
    .vcr-raceboard-races-table tbody tr:hover {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .vcr-raceboard-races-table td {
        padding: 0;
        border: none !important;
    }
    
    /* Date/Time - full width top */
    .vcr-raceboard-races-table td.vcr-races-table-datetime {
        width: 100%;
        font-size: 11px;
        color: rgba(255,255,255,0.7);
        order: 1;
    }
    
    /* Race name - full width */
    .vcr-raceboard-races-table td.vcr-races-table-name {
        width: 100%;
        font-size: 14px;
        font-weight: 600;
        order: 2;
    }
    
    /* Track - full width */
    .vcr-raceboard-races-table td.vcr-races-table-track {
        width: 100%;
        font-size: 12px;
        order: 3;
        margin-bottom: 4px;
    }
    
    /* Badges row */
    .vcr-raceboard-races-table td.vcr-races-table-game,
    .vcr-raceboard-races-table td.vcr-races-table-platform,
    .vcr-raceboard-races-table td.vcr-races-table-categories {
        order: 4;
    }
    
    /* Register badge */
    .vcr-raceboard-races-table td.vcr-races-table-register {
        order: 5;
        margin-left: auto;
    }
    
    /* Slider Next Events mobile */
    .vcr-races-slider {
        margin-top: 10px;
    }
    
    .vcr-slider-header {
        padding: 6px 10px;
    }
    
    .vcr-slider-title {
        font-size: 11px;
    }
    
    .vcr-slider-nav {
        gap: 4px;
    }
    
    .vcr-slider-prev,
    .vcr-slider-next {
        width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
    }
    
    .vcr-race-slide {
        padding: 10px;
    }
    
    .vcr-slide-name {
        font-size: 13px;
    }
    
    .vcr-slide-date {
        font-size: 11px;
    }
    
    .vcr-slide-badges {
        gap: 2px;
        margin-top: 6px;
    }
    
    .vcr-reg-badge {
        font-size: 8px !important;
        padding: 0px 3px !important;
    }
    
    /* Track badge mobile */
    .vcr-track-badge {
        font-size: 12px;
        padding: 5px 10px;
    }
    
    /* Championship card dates mobile */
    .vcr-raceboard-championship-dates {
        gap: 12px;
        margin: 6px 0 10px 0;
        padding: 6px 0;
    }
    
    .vcr-raceboard-date-label {
        font-size: 9px;
    }
    
    .vcr-raceboard-date-value {
        font-size: 12px;
    }
    
    /* Championship stats mobile - 3 columns */
    .vcr-raceboard-championship-card .vcr-raceboard-card-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }
    
    .vcr-raceboard-championship-card .vcr-raceboard-card-stat {
        flex-direction: column;
        text-align: center;
        gap: 2px;
    }
    
    .vcr-raceboard-championship-card .vcr-raceboard-stat-value {
        font-size: 10px;
    }
    
    /* Next race section mobile */
    .vcr-raceboard-next-race {
        margin-top: 10px;
        padding: 8px;
    }
    
    .vcr-raceboard-next-race-label {
        font-size: 9px;
        margin-bottom: 3px;
    }
    
    .vcr-raceboard-next-race-name {
        font-size: 12px;
    }
    
    .vcr-raceboard-next-race-date {
        font-size: 10px;
    }
    
    /* Status badges mobile */
    .vcr-raceboard-status {
        font-size: 9px;
        padding: 3px 8px;
    }
    
    /* Pagination mobile */
    .vcr-raceboard-page-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .vcr-raceboard-rows-select {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    /* Weather modal mobile */
    .vcr-weather-modal .vcr-modal-content {
        max-width: 95%;
        padding: 16px;
    }
    
    /* Track layout modal mobile */
    .vcr-track-layout-modal .vcr-modal-content {
        max-width: 95%;
        padding: 12px;
    }
}

/* Extra small screens (< 480px) */
@media (max-width: 480px) {
    .vcr-raceboard-container {
        padding: 8px;
    }
    
    .vcr-raceboard-section-title {
        font-size: 16px !important;
    }
    
    .vcr-collapse-trigger {
        font-size: 16px !important;
        padding: 10px 12px !important;
    }
    
    .vcr-upcoming-note {
        font-size: 10px !important;
        display: block;
        width: 100%;
    }
    
    /* Controls: all stack vertically on very small screens */
    .vcr-raceboard-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .vcr-raceboard-tz-inline {
        width: 100%;
    }
    
    .vcr-raceboard-cards-selector {
        justify-content: space-between;
    }
    
    .vcr-raceboard-pagination {
        justify-content: center;
    }
    
    /* Filter pills even smaller */
    .vcr-filter-pill {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    .vcr-filter-toggle-label {
        font-size: 12px;
    }
    
    .vcr-filter-date-inputs {
        flex-direction: column;
        gap: 6px;
    }
    
    .vcr-filter-date {
        width: 100%;
        min-width: 0;
    }
    
    .vcr-raceboard-card-title,
    .vcr-raceboard-card h3.vcr-raceboard-card-title {
        font-size: 14px !important;
    }
    
    .vcr-raceboard-card-stats {
        grid-template-columns: 1fr;
    }
    
    .vcr-raceboard-race-datetime {
        flex-direction: column;
        gap: 4px;
    }
    
    .vcr-raceboard-btn {
        padding: 14px 16px;
    }
}

/* ========================================
   RACE DETAILS MODAL - MOBILE
   ======================================== */

@media (max-width: 768px) {
    #vcr-race-details-modal {
        padding: 8px !important;
    }
    
    #vcr-race-details-modal .vcr-race-details-content {
        height: 90vh !important;
        max-height: 90vh !important;
        border-radius: 10px !important;
    }
    
    #vcr-race-details-modal .vcr-race-details-header {
        padding: 12px 14px !important;
    }
    
    #vcr-race-details-modal .vcr-race-details-header h2 {
        font-size: 15px !important;
    }
    
    #vcr-race-details-modal .vcr-race-details-tabs {
        padding: 8px 10px !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
    }
    
    #vcr-race-details-modal .vcr-race-details-tab {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
    
    #vcr-race-details-modal .vcr-race-details-panel {
        padding: 12px !important;
    }
}

/* ========================================
   REGISTRATION WIZARD - MOBILE
   ======================================== */

@media (max-width: 768px) {
    #vcr-registration-wizard {
        padding: 8px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-content {
        max-height: 95vh !important;
        border-radius: 10px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-header {
        padding: 12px 14px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-header h3 {
        font-size: 15px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-steps {
        padding: 10px !important;
        gap: 8px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-step {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-body {
        padding: 14px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-option {
        padding: 12px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-option h4 {
        font-size: 14px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-option p {
        font-size: 12px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-footer {
        padding: 12px 14px !important;
        flex-direction: column-reverse !important;
        gap: 8px !important;
    }
    
    #vcr-registration-wizard .vcr-wizard-footer button {
        width: 100% !important;
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
    
    /* Wizard info boxes mobile */
    .vcr-wizard-info,
    .vcr-wizard-error {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    /* Cancel button mobile */
    .vcr-cancel-registration-btn {
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
    
    /* Team card mobile */
    .vcr-team-card {
        margin-bottom: 12px !important;
    }
    
    /* Team member cards mobile - stack vertically */
    .vcr-team-member-card {
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    
    /* Team driver select mobile */
    .vcr-team-driver-select {
        font-size: 16px !important; /* Prevents iOS zoom on focus */
        padding: 12px 10px !important;
    }
    
    /* Car change select mobile */
    .vcr-change-car-select {
        font-size: 12px !important;
        padding: 6px !important;
    }
    
    /* Action buttons mobile */
    .vcr-update-car-btn,
    .vcr-cancel-team-member-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }
}

/* ========================================
   TEMPLATE MODAL - MOBILE  
   ======================================== */

@media (max-width: 768px) {
    #vcr-template-modal {
        padding: 8px !important;
    }
    
    #vcr-template-modal .vcr-template-modal-content {
        max-width: 100% !important;
        max-height: 90vh !important;
        border-radius: 10px !important;
    }
    
    #vcr-template-modal .vcr-template-modal-header {
        padding: 12px 14px !important;
    }
    
    #vcr-template-modal #vcr-template-modal-body {
        padding: 14px !important;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.vcr-raceboard-race-details {
    animation: vcr-slideDown 0.3s ease;
}

@keyframes vcr-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════
   FREE BADGE (races & championships)
   ═══════════════════════════════════════ */
.vcr-free-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #48bb78, #38a169) !important;
    color: #fff !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 10px;
    line-height: 1;
    white-space: nowrap;
    animation: vcr-free-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(72,187,120,0.5);
}

.vcr-free-badge svg {
    flex-shrink: 0;
}

/* Badge inside card footer (next to register button) */
.vcr-raceboard-card-footer .vcr-free-badge {
    margin-left: 6px;
    vertical-align: middle;
}

/* Badge inside championship button area */
.vcr-btn-team-register + .vcr-free-badge {
    display: block;
    width: fit-content;
    margin: 4px auto 0;
}

/* Badge inside championship slider */
.vcr-slide-header .vcr-free-badge {
    margin-left: 4px;
    padding: 1px 6px;
    font-size: 9px;
}

/* Badge inside championship reg modal choice buttons */
.vcr-choice-fee .vcr-free-badge {
    font-size: 10px;
    padding: 2px 8px;
    animation: vcr-free-pulse 2s ease-in-out infinite;
}

@keyframes vcr-free-pulse {
    0%, 100% {
        box-shadow: 0 0 6px rgba(72,187,120,0.4);
    }
    50% {
        box-shadow: 0 0 16px rgba(72,187,120,0.8), 0 0 30px rgba(72,187,120,0.3);
    }
}

/* ═══════════════════════════════════════
   STAT FILL LEVEL COLORS (cars & players)
   ═══════════════════════════════════════ */
.vcr-raceboard-card-stat.vcr-stat-warning {
    color: #ecc94b;
}
.vcr-raceboard-card-stat.vcr-stat-warning .vcr-raceboard-stat-icon svg {
    stroke: #ecc94b;
}
.vcr-raceboard-card-stat.vcr-stat-critical {
    color: #fc5c65;
}
.vcr-raceboard-card-stat.vcr-stat-critical .vcr-raceboard-stat-icon svg {
    stroke: #fc5c65;
}

/* ═══════════════════════════════════════
   PREMIUM GATE — Free-user restrictions
   ═══════════════════════════════════════ */

/* Championship card overlay for free users */
.vcr-raceboard-championship-card.vcr-rb-gated-card {
    position: relative;
    pointer-events: none;
}
.vcr-raceboard-championship-card.vcr-rb-gated-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.7);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    z-index: 5;
}
.vcr-rb-gate-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #b8860b44, #ffd70022);
    border: 1px solid #ffd70044;
    border-radius: 10px;
    padding: 10px 20px;
    color: #ffd700;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
}
.vcr-rb-gate-overlay svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Login overlay variant (grey instead of gold) */
.vcr-rb-gate-login-overlay {
    background: linear-gradient(135deg, rgba(139,148,158,0.25), rgba(139,148,158,0.10));
    border-color: rgba(139,148,158,0.4);
    color: #c9d1d9;
    pointer-events: auto;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.vcr-rb-gate-login-overlay:hover {
    background: linear-gradient(135deg, rgba(139,148,158,0.4), rgba(139,148,158,0.2));
    color: #fff;
}
.vcr-raceboard-championship-card.vcr-rb-gated-login::after {
    background: rgba(13, 17, 23, 0.75);
}

/* Filter body overlay for free users */
.vcr-filter-body.vcr-rb-gated-filters {
    position: relative;
    pointer-events: none;
    user-select: none;
    min-height: 60px;
}
.vcr-filter-body.vcr-rb-gated-filters::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(2px);
    z-index: 5;
}

/* Tab content gate (Participants, Track Stats) */
.vcr-rb-tab-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 20px;
    text-align: center;
}
.vcr-rb-tab-gate-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b8860b22, #ffd70011);
    border: 1px solid #ffd70033;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vcr-rb-tab-gate-icon svg {
    color: #ffd700;
}
.vcr-rb-tab-gate-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffd700;
}
.vcr-rb-tab-gate-sub {
    font-size: 12px;
    color: #8b949e;
    max-width: 300px;
    line-height: 1.5;
}

/* Premium-highlighted tab buttons (Participants, Track Stats for free users) */
#vcr-race-details-modal .vcr-race-details-tab.vcr-rb-premium-tab {
    background: #ffd700 !important;
    color: #1a202c !important;
    font-weight: 700 !important;
    border-color: #ffd700 !important;
    border-bottom-color: #ffd700 !important;
}
#vcr-race-details-modal .vcr-race-details-tab.vcr-rb-premium-tab:hover {
    background: #e6c200 !important;
    color: #1a202c !important;
}
#vcr-race-details-modal .vcr-race-details-tab.vcr-rb-premium-tab.active {
    background: #ffd700 !important;
    color: #1a202c !important;
    border-bottom-color: #ffd700 !important;
}
#vcr-race-details-modal .vcr-race-details-content.with-bg .vcr-race-details-tab.vcr-rb-premium-tab {
    color: #1a202c !important;
}
