* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Poppins', 'Arial', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #1a1a3e, #24243e);
    min-height: 100vh;
    color: white;
}

.mode-toggle-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(8, 10, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 152, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo span {
    color: #ff9800;
}

.mode-buttons {
    display: flex;
    gap: 12px;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cfd8dc;
    padding: 8px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
}

.mode-btn.active {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #0f0c29;
    border-color: #ff9800;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.35);
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.timeline-view {
    padding: 80px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.timeline-header h1 span {
    color: #ff9800;
}

.timeline-header .subtitle {
    color: #ccc;
    font-size: 14px;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #ff9800 5%, #ff5722 50%, #ff9800 95%, transparent);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 45px;
    display: flex;
    justify-content: center;
    width: 100%;
    z-index: 2;
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}

.timeline-item.left {
    justify-content: flex-start;
}

.timeline-item.right {
    justify-content: flex-end;
}

.timeline-content {
    width: 45%;
    background: rgba(18, 22, 35, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 6px solid;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--event-color), transparent);
    opacity: 0.8;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px var(--event-color);
    border-color: var(--event-color);
}

/* Floating year marker positioned on the central timeline line */
.timeline-year-marker {
    position: absolute;
    top: 24px; /* Center-aligned with the 16px timeline dot at 25px top */
    font-size: 13.5px;
    font-weight: 700;
    color: #ff9800;
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.45);
    white-space: nowrap;
    z-index: 5;
    background: transparent;
}

/* Position year to the right of the center line for left-aligned cards */
.timeline-item.left .timeline-year-marker {
    left: calc(50% + 20px);
    text-align: left;
}

/* Position year to the left of the center line for right-aligned cards */
.timeline-item.right .timeline-year-marker {
    right: calc(50% + 20px);
    text-align: right;
}


.timeline-content .title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.timeline-content .subtitle {
    font-size: 13px;
    color: #ccc;
    margin-bottom: 10px;
}

.grade-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 10px;
    margin-right: 8px;
}

.location-badge {
    display: inline-block;
    background: rgba(255, 152, 0, 0.3);
    padding: 2px 8px;
    border-radius: 15px;
    font-size: 10px;
}


/* Museum panel/corridor position badge */
.panel-badge {
    display: inline-block;
    background: rgba(103, 58, 183, 0.2);
    border: 1px solid rgba(103, 58, 183, 0.45);
    color: #ce93d8;
    padding: 2px 9px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 500;
}

/* Topic name label above card title */
.topic-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--event-color, #ff9800);
    opacity: 0.85;
    margin-bottom: 4px;
    margin-top: 6px;
}

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.chapter-badge-row {
    margin-bottom: 6px;
}

.chapter-badge {
    display: inline-block;
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid rgba(0, 188, 212, 0.35);
    color: #00bcd4;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.cause-preview {
    font-size: 12px;
    color: #aaa;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #ff9800;
    border-radius: 50%;
    border: 3px solid #fff;
    z-index: 2;
    top: 25px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.era-divider {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 24px 0 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 4;
}

.era-divider::before,
.era-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 152, 0, 0.4), transparent);
}

.era-label {
    background: #12123a;
    border: 1px solid rgba(255, 152, 0, 0.5);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    color: #ff9800;
    white-space: nowrap;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 5;
}


.timeline-controls {
    position: sticky;
    top: 75px;
    background: rgba(18, 22, 35, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 28px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0 auto 40px;
    max-width: fit-content;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-btn {
    background: rgba(255, 152, 0, 0.12);
    border: 1px solid rgba(255, 152, 0, 0.3);
    padding: 10px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #ff9800;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.nav-btn:hover {
    background: #ff9800;
    color: #1a1a2e;
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.2);
}

.search-box {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    width: 280px;
    outline: none;
    font-size: 13.5px;
    transition: all 0.3s ease;
}

.search-box:focus {
    border-color: #ff9800;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.25);
    background: rgba(0, 0, 0, 0.6);
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0bec5;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff9800, #ff5722);
    color: #0f0c29;
    border-color: #ff9800;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.35);
}

.scroll-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff9800;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.scroll-indicator:hover {
    transform: scale(1.1);
}



.timeline-message {
    text-align: center;
    padding: 50px;
}

@media (max-width: 768px) {
    .mode-toggle-bar {
        flex-direction: column;
    }

    .timeline-view {
        padding-top: 120px;
    }

    .timeline-controls {
        top: 110px;
        flex-direction: column;
        align-items: center;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start !important;
        padding-left: 40px;
    }

    .timeline-content {
        width: calc(100% - 40px);
    }

    .timeline-dot {
        left: 20px;
    }

    .era-divider {
        display: none;
    }

    .timeline-year-marker {
        position: relative;
        top: 0;
        left: 0 !important;
        right: 0 !important;
        display: inline-block;
        background: #ff9800;
        color: #1a1a2e;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: bold;
        margin-bottom: 10px;
        text-shadow: none;
        white-space: normal;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #ff9800;
    border-radius: 4px;
}

.card-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-content:hover .card-image {
    transform: scale(1.06);
}

.ai-label-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(45deg, #9c27b0, #e91e63);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Staggered entrance animation for timeline cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-item:nth-child(2) { animation-delay: 0.10s; }
.timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-item:nth-child(4) { animation-delay: 0.20s; }
.timeline-item:nth-child(5) { animation-delay: 0.25s; }
.timeline-item:nth-child(6) { animation-delay: 0.30s; }
.timeline-item:nth-child(7) { animation-delay: 0.35s; }
.timeline-item:nth-child(8) { animation-delay: 0.40s; }
.timeline-item:nth-child(9) { animation-delay: 0.45s; }
.timeline-item:nth-child(10) { animation-delay: 0.50s; }

/* Interactive Timeline Dot Scaling & Glowing */
.timeline-item:hover .timeline-dot {
    background: #ffffff;
    border-color: #ff9800;
    transform: translateX(-50%) scale(1.35);
    box-shadow: 0 0 12px #ff9800;
}

/* --- Enriched Schema Styles --- */

.event-icon-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.event-type-pill {
    display: inline-block;
    background: rgba(30, 136, 229, 0.25);
    border: 1px solid rgba(30, 136, 229, 0.45);
    color: #64b5f6;
    padding: 2px 9px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    margin-right: 6px;
}

.era-badge-inline {
    display: inline-block;
    background: rgba(0, 188, 212, 0.2);
    border: 1px solid rgba(0, 188, 212, 0.4);
    color: #4dd0e1;
    padding: 2px 9px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
}

.people-org-section {
    margin-top: 12px;
    margin-bottom: 8px;
}

.people-org-label {
    font-size: 9px;
    color: #90a4ae;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.person-tag, .org-tag {
    display: inline-block;
    background: rgba(103, 58, 183, 0.25);
    border: 1px solid rgba(103, 58, 183, 0.45);
    color: #ce93d8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 9px;
    margin-right: 4px;
    margin-bottom: 4px;
}

.what-happened {
    font-size: 13px;
    color: #cfd8dc;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 12px;
}

.cause-effect-container {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.cause-box, .effect-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px;
    font-size: 11.5px;
    color: #b0bec5;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cause-box {
    border-left: 3px solid #ff9800;
}

.effect-box {
    border-left: 3px solid #4caf50;
}

.cause-effect-label {
    font-size: 9px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.cause-box .cause-effect-label {
    color: #ffb74d;
}

.effect-box .cause-effect-label {
    color: #81c784;
}

.arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #78909c;
    font-size: 14px;
}

.timeline-connections {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    margin-top: 10px;
    font-size: 11px;
}

.connection-link {
    color: #ffb74d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.connection-link:hover {
    color: #ffe0b2;
}

.chapter-badge-small {
    background: rgba(0, 188, 212, 0.15);
    color: #84ffff;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
}

/* People and Organizations Section on Timeline Cards */
.people-org-section {
    margin: 12px 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.people-org-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #90a4ae;
    margin-bottom: 8px;
}

.person-tag, .org-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 6px;
    margin-bottom: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.person-tag {
    background: linear-gradient(135deg, #673ab7, #512da8);
    color: white;
    border: 1px solid rgba(103, 58, 183, 0.5);
}

.org-tag {
    background: linear-gradient(135deg, #00bcd4, #0097a7);
    color: white;
    border: 1px solid rgba(0, 188, 212, 0.5);
}

/* ===== COMPACT COMPARISON MODE ===== */

.compare-panel {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(18, 22, 35, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 10px 20px;
    margin: 0 auto 28px;
    max-width: fit-content;
    flex-wrap: wrap;
    justify-content: center;
}

.compare-panel-label {
    font-size: 12px;
    font-weight: 700;
    color: #78909c;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.compare-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compare-checkboxes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.compare-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #90a4ae;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.compare-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
}

.compare-checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1.5px solid #90a4ae;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #0a0a1a;
    font-weight: bold;
    transition: all 0.2s;
}

.compare-checkbox-label:has(input:checked) {
    color: white;
    border-color: var(--board-color, #ff9800);
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.15);
}

.compare-mode-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #b0bec5;
    background: rgba(0, 0, 0, 0.2);
    padding: 6px 12px;
    border-radius: 8px;
    width: fit-content;
}

.mode-radio {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #90a4ae;
    transition: color 0.2s;
}

.mode-radio:hover {
    color: white;
}

.mode-radio:has(input:checked) {
    color: #ff9800;
}

.timeline.compare-parallel-active::before {
    display: none;
}

.timeline.compare-parallel-active, .timeline.compare-merged-active {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.compare-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin-bottom: 35px;
    position: relative;
}

.compare-cell {
    flex: 1;
    display: flex;
    min-width: 0;
}

.compare-cell.main-cell {
    justify-content: flex-end;
    padding-right: 40px;
}

.compare-cell.secondary-cell {
    justify-content: flex-start;
    padding-left: 40px;
}

/* Multi-Board Parallel Layout */
.compare-row-multi {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    padding-bottom: 20px;
}

.multi-headers {
    display: flex;
    margin-bottom: 20px;
    min-width: min-content;
}

.multi-header {
    flex: 1;
    min-width: 300px;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 10px;
    border-radius: 8px 8px 0 0;
}

.multi-row-group {
    display: flex;
    position: relative;
    margin-bottom: 35px;
    min-width: min-content;
}

.multi-year-top {
    padding-left: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.multi-cells-container {
    display: flex;
    flex: 1;
}

.compare-cell.multi-cell {
    flex: 1;
    min-width: 300px;
    justify-content: center;
    padding: 0 10px;
}

.compare-cell.multi-cell .timeline-content {
    border-left: 1px solid rgba(255,255,255,0.1);
    border-right: 1px solid rgba(255,255,255,0.1);
    border-top: 4px solid var(--event-color);
}

/* Board Badge (Merged view or Multi view) */
.board-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compare-center {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.compare-center::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.compare-row:first-child .compare-center::before {
    top: 50%;
}

.compare-row:last-child .compare-center::before {
    bottom: 50%;
}

.compare-year-badge {
    background: #0a0c16;
    border: 2px solid var(--badge-color, #ff9800);
    color: var(--badge-color, #ff9800);
    border-radius: 24px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 750;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 0 12px var(--badge-glow, rgba(255, 152, 0, 0.2));
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.compare-cell .timeline-content {
    width: 100%;
    max-width: 520px;
    margin: 0;
    padding: 20px;
}

.compare-cell.main-cell .timeline-content {
    border-left: none;
    border-right: 6px solid var(--event-color);
}

.compare-cell.main-cell .timeline-content::after {
    background: linear-gradient(to left, var(--event-color), transparent);
}

.compare-cell .timeline-content:hover {
    transform: translateY(-5px) scale(1.01);
}

.compare-placeholder {
    width: 100%;
    max-width: 520px;
    background: rgba(18, 22, 35, 0.2);
    border: 1.5px dashed rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    color: #607d8b;
    text-align: center;
    min-height: 140px;
    transition: border-color 0.2s;
}

.compare-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.placeholder-icon {
    font-size: 26px;
    margin-bottom: 8px;
    opacity: 0.4;
}

.placeholder-text {
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}

.sec-loading {
    text-align: center;
    padding: 40px 10px;
    color: #78909c;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .compare-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .compare-cell {
        width: 100%;
        padding: 0 20px !important;
        justify-content: center !important;
    }
    
    .compare-cell .timeline-content,
    .compare-placeholder {
        max-width: 600px;
    }
    
    .compare-center {
        width: 100%;
        height: auto;
        padding: 5px 0;
        order: -1;
    }
    
    .compare-center::before {
        display: none;
    }
    
    .compare-cell.main-cell .timeline-content {
        border-right: none;
        border-left: 6px solid var(--event-color);
    }
    
    .compare-cell.main-cell .timeline-content::after {
        background: linear-gradient(to right, var(--event-color), transparent);
    }
}
