* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

header {
    text-align: center;
    padding: 25px 20px;
    border-bottom: 2px solid #4a9eff;
    margin-bottom: 0;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    position: relative;
}

.visitor-counter {
    position: absolute;
    top: 15px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(74, 158, 255, 0.1);
    padding: 8px 15px;
    border: 1px solid #4a9eff;
    font-size: 0.85em;
}

.sponsor-badge {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    background: rgba(138, 180, 248, 0.1);
    padding: 8px 15px;
    border: 1px solid #8ab4f8;
    font-size: 0.75em;
    text-decoration: none;
    transition: all 0.3s;
}

.sponsor-badge:hover {
    background: rgba(138, 180, 248, 0.2);
    border-color: #4a9eff;
    transform: translateY(-2px);
}

.sponsor-label {
    color: #888;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sponsor-name {
    color: #8ab4f8;
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.sponsor-tagline {
    color: #4a9eff;
    font-size: 0.8em;
    font-style: italic;
}

.counter-label {
    color: #8ab4f8;
    font-weight: bold;
    letter-spacing: 1px;
}

.counter-number {
    color: #4a9eff;
    font-weight: bold;
    font-size: 1.1em;
    min-width: 60px;
    text-align: right;
    font-family: 'Courier New', monospace;
}

h1 {
    font-size: 2.8em;
    letter-spacing: 12px;
    margin-bottom: 10px;
    color: #4a9eff;
}

.subtitle {
    font-size: 0.85em;
    color: #8ab4f8;
    margin-bottom: 8px;
}

.disclaimer {
    font-size: 0.75em;
    color: #ff6b6b;
    font-weight: bold;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid #ff6b6b;
    display: inline-block;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    padding: 18px;
    background: #2a2a2a;
    border: 2px solid #4a9eff;
    border-left: none;
    border-right: none;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #4a9eff;
}

.stat-label {
    font-size: 0.75em;
    color: #8ab4f8;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
    padding: 0 20px;
}

.nav-btn {
    background: transparent;
    border: 2px solid #4a9eff;
    color: #4a9eff;
    padding: 10px 25px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-btn:hover {
    background: #4a9eff;
    color: #1a1a1a;
}

.nav-btn.active {
    background: #4a9eff;
    color: #1a1a1a;
}

.nav-btn .icon {
    margin-right: 8px;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    flex-wrap: wrap;
    padding: 18px;
    background: #2a2a2a;
    border: 2px solid #4a9eff;
    max-width: 100%;
    box-sizing: border-box;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.filter-group label {
    font-size: 0.9em;
    color: #8ab4f8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group select {
    background: #1a1a1a;
    border: 2px solid #4a9eff;
    color: #e0e0e0;
    padding: 8px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-group select:hover {
    background: #2a2a2a;
}

.filter-group select:focus {
    outline: none;
    border-color: #8ab4f8;
}

.reset-filters {
    background: #4a9eff;
    border: none;
    color: #1a1a1a;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: bold;
}

.reset-filters:hover {
    background: #8ab4f8;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

/* Timeline View - Horizontal Scrolling */
.timeline-instructions {
    text-align: center;
    padding: 15px;
    color: #8ab4f8;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-wrapper {
    width: 100%;
    height: calc(100vh - 350px);
    min-height: 500px;
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    padding: 30px 0;
}

.timeline-scroll-container {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    scroll-behavior: smooth;
    cursor: grab;
    padding: 40px;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.timeline-scroll-container:active {
    cursor: grabbing;
}

/* Hide scrollbar but keep functionality */
.timeline-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

.timeline-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(74, 158, 255, 0.3);
    border-radius: 4px;
}

.timeline-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 158, 255, 0.5);
}

/* Timeline line at bottom */
.timeline-line {
    position: absolute;
    bottom: 35px;
    left: 40px;
    height: 3px;
    background: linear-gradient(to right, transparent, #4a9eff 10%, #4a9eff 90%, transparent);
    z-index: 1;
}

.timeline-content {
    display: flex;
    gap: 60px;
    position: relative;
    min-width: max-content;
    padding: 0 40px 90px 40px;
    align-items: flex-end;
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px;
    max-width: 280px;
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
    padding-bottom: 10px;
}

/* Card appears above the timeline */
.timeline-card {
    background: #2a2a2a;
    border: 2px solid #4a9eff;
    padding: 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    margin-bottom: 15px;
}

.timeline-card:hover {
    border-color: #8ab4f8;
    transform: translateY(-8px);
    background: #333;
}

/* Connection line from card to timeline point */
.timeline-card::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 2px;
    height: 15px;
    background: linear-gradient(to bottom, #4a9eff, transparent);
    transform: translateX(-50%);
}

/* Timeline point on the line - PERFECTLY ALIGNED */
.timeline-point {
    width: 14px;
    height: 14px;
    background: #4a9eff;
    border: 3px solid #1a1a1a;
    border-radius: 50%;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    cursor: pointer;
    transition: all 0.3s;
}

.timeline-point:hover {
    transform: translateX(-50%) scale(1.5);
    background: #8ab4f8;
}

.timeline-date {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(74, 158, 255, 0.3);
}

.timeline-date .year {
    font-size: 1.8em;
    font-weight: bold;
    color: #4a9eff;
    letter-spacing: 2px;
}

.timeline-date .month-day {
    font-size: 0.75em;
    color: #8ab4f8;
    margin-top: 3px;
}

.timeline-card h3 {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #e0e0e0;
    line-height: 1.4;
    font-weight: bold;
}

.timeline-card .meta {
    font-size: 0.75em;
    color: #8ab4f8;
    margin-bottom: 10px;
}

.timeline-card .description {
    font-size: 0.8em;
    color: #b0b0b0;
    line-height: 1.5;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.timeline-card .tags {
    margin-top: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(74, 158, 255, 0.1);
    padding: 4px 8px;
    font-size: 0.65em;
    border: 1px solid rgba(74, 158, 255, 0.3);
    white-space: nowrap;
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(74, 158, 255, 0.2);
    border-color: #4a9eff;
}

.tag.agency {
    border-color: #4a9eff;
    color: #4a9eff;
}

.tag.location {
    border-color: #8ab4f8;
    color: #8ab4f8;
}

.tag.type {
    border-color: #ffd700;
    color: #ffd700;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #8ab4f8;
    font-size: 0.9em;
    opacity: 0.6;
    pointer-events: none;
}

/* Gallery View */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    background: #111;
    border: 1px solid #333;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover {
    border-color: #fff;
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 15px;
}

.gallery-item-info h4 {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.gallery-item-info p {
    font-size: 0.75em;
    color: #888;
}

/* Documents View */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.document-item {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 20px;
}

.document-item:hover {
    border-color: #fff;
}

.document-icon {
    font-size: 2em;
    flex: 0 0 50px;
    text-align: center;
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin-bottom: 5px;
}

.document-info .meta {
    font-size: 0.8em;
    color: #666;
}

/* Search View */
.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

#searchInput {
    flex: 1;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 1em;
}

#searchBtn {
    background: #fff;
    border: none;
    color: #000;
    padding: 15px 40px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1em;
    transition: all 0.3s;
}

#searchBtn:hover {
    background: #ddd;
}

#searchResults {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-result {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-result:hover {
    border-color: #fff;
}

.search-result h4 {
    margin-bottom: 10px;
}

.search-result .highlight {
    background: #333;
    padding: 2px 5px;
}

/* Stats View */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: #111;
    border: 1px solid #333;
    padding: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
}

.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.charts canvas {
    background: #111;
    border: 1px solid #333;
    padding: 20px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    overflow: auto;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background: #2a2a2a;
    margin: 50px auto;
    padding: 40px;
    border: 3px solid #4a9eff;
    width: 90%;
    max-width: 1200px;
    position: relative;
    animation: slideIn 0.4s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 2.5em;
    cursor: pointer;
    color: #4a9eff;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #4a9eff;
    background: transparent;
}

.close:hover {
    color: #ff6b6b;
    border-color: #ff6b6b;
    transform: rotate(90deg);
}

#modalBody img,
#modalBody video {
    max-width: 100%;
    margin: 20px 0;
    border: 2px solid #4a9eff;
}

#modalBody iframe {
    border: 2px solid #4a9eff;
}

#modalBody h2 {
    margin-bottom: 25px;
    color: #4a9eff;
    font-size: 2em;
}

#modalBody .modal-meta {
    color: #8ab4f8;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(74, 158, 255, 0.1);
    border: 1px solid rgba(74, 158, 255, 0.3);
    line-height: 2;
}

#modalBody .modal-meta strong {
    color: #4a9eff;
}

#modalBody .modal-description {
    line-height: 2;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(74, 158, 255, 0.05);
    border-left: 3px solid #4a9eff;
}

#modalBody .modal-description h3 {
    color: #4a9eff;
    margin-bottom: 15px;
}

#modalBody .modal-link {
    display: inline-block;
    background: #4a9eff;
    color: #1a1a1a;
    padding: 15px 30px;
    text-decoration: none;
    margin-top: 25px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border: 2px solid #4a9eff;
}

#modalBody .modal-link:hover {
    background: #8ab4f8;
}

/* Mobile Responsive - COMPLETE OVERHAUL */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container {
        width: 100%;
        padding: 0;
        overflow-x: hidden;
    }
    
    /* Header */
    header {
        padding: 10px;
        position: relative;
    }
    
    .visitor-counter {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin: 0 auto 10px;
        font-size: 0.7em;
        padding: 5px 10px;
        display: inline-flex;
        width: auto;
    }
    
    .sponsor-badge {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        margin: 0 auto 10px;
        font-size: 0.65em;
        padding: 6px 12px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        width: auto;
        text-align: center;
    }
    
    .sponsor-label {
        font-size: 0.8em;
    }
    
    .sponsor-name {
        font-size: 1em;
    }
    
    .sponsor-tagline {
        font-size: 0.75em;
    }
    
    .counter-label {
        font-size: 0.9em;
    }
    
    .counter-number {
        font-size: 1em;
        min-width: 40px;
    }
    
    .header-content {
        width: 100%;
    }
    
    h1 {
        font-size: 1.2em !important;
        letter-spacing: 2px !important;
        margin-bottom: 8px;
        word-break: break-word;
    }
    
    .subtitle {
        font-size: 0.65em !important;
        padding: 0 5px;
        line-height: 1.4;
    }
    
    .disclaimer {
        font-size: 0.6em !important;
        padding: 5px 8px;
        margin: 8px auto 0;
        max-width: 90%;
        line-height: 1.3;
    }
    
    /* Stats Bar */
    .stats-bar {
        gap: 8px !important;
        padding: 10px 5px !important;
        flex-wrap: wrap;
        justify-content: space-around;
        border-left: 2px solid #4a9eff !important;
        border-right: 2px solid #4a9eff !important;
        margin: 10px 0 !important;
    }
    
    .stat-item {
        gap: 3px !important;
        min-width: 50px !important;
        flex: 0 0 calc(25% - 10px) !important;
        max-width: 70px;
    }
    
    .stat-number {
        font-size: 1em !important;
        line-height: 1;
    }
    
    .stat-label {
        font-size: 0.55em !important;
        letter-spacing: 0.5px !important;
        white-space: nowrap;
    }
    
    /* Navigation */
    .main-nav {
        gap: 6px;
        padding: 0 5px;
        margin: 10px 0;
    }
    
    .nav-btn {
        padding: 8px 10px !important;
        font-size: 0.65em !important;
        letter-spacing: 0.5px;
        flex: 1 1 calc(33.333% - 6px);
        min-width: 0;
        white-space: nowrap;
    }
    
    .nav-btn .icon {
        margin-right: 3px;
        font-size: 1.1em;
    }
    
    /* Filters */
    .filters {
        flex-direction: column;
        gap: 10px !important;
        padding: 12px 8px !important;
        margin: 10px 5px !important;
        width: calc(100% - 10px) !important;
        box-sizing: border-box !important;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        width: 100%;
    }
    
    .filter-group label {
        font-size: 0.75em;
        text-align: left;
    }
    
    .filter-group select {
        width: 100%;
        padding: 10px;
        font-size: 0.8em;
    }
    
    .reset-filters {
        width: 100%;
        padding: 10px;
        font-size: 0.8em;
    }
    
    /* Timeline View */
    .timeline-instructions {
        font-size: 0.7em;
        padding: 8px 5px;
        letter-spacing: 1px;
    }
    
    .timeline-wrapper {
        height: calc(100vh - 500px);
        min-height: 350px;
        padding: 15px 0;
        width: 100%;
        overflow: hidden;
    }
    
    .timeline-scroll-container {
        padding: 15px 5px;
        width: 100%;
    }
    
    .timeline-line {
        left: 5px;
        bottom: 25px;
    }
    
    .timeline-content {
        gap: 25px;
        padding: 0 5px 60px 5px;
    }
    
    .timeline-item {
        min-width: 200px !important;
        max-width: 200px !important;
    }
    
    .timeline-card {
        padding: 12px;
    }
    
    .timeline-card::after {
        bottom: -12px;
        height: 12px;
    }
    
    .timeline-point {
        width: 12px;
        height: 12px;
        border-width: 2px;
        bottom: -7px;
    }
    
    .timeline-date {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .timeline-date .year {
        font-size: 1.3em !important;
        letter-spacing: 1px;
    }
    
    .timeline-date .month-day {
        font-size: 0.65em !important;
    }
    
    .timeline-card h3 {
        font-size: 0.75em !important;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .timeline-card .meta {
        font-size: 0.65em !important;
        margin-bottom: 8px;
    }
    
    .timeline-card .description {
        font-size: 0.7em !important;
        max-height: 45px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .timeline-card .tags {
        gap: 3px;
        margin-top: 10px;
    }
    
    .tag {
        font-size: 0.55em !important;
        padding: 2px 5px;
    }
    
    .scroll-indicator {
        font-size: 0.7em;
        bottom: 8px;
    }
    
    /* Gallery View */
    .view {
        padding: 0 5px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 0;
    }
    
    .gallery-item {
        width: 100%;
    }
    
    .gallery-item img,
    .gallery-item video {
        height: 180px !important;
        width: 100%;
    }
    
    .gallery-item-info {
        padding: 10px;
    }
    
    .gallery-item-info h4 {
        font-size: 0.8em !important;
        line-height: 1.3;
    }
    
    .gallery-item-info p {
        font-size: 0.65em !important;
        line-height: 1.3;
    }
    
    /* Documents View */
    .documents-list {
        gap: 10px;
        padding: 0;
    }
    
    .document-item {
        padding: 12px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .document-icon {
        font-size: 1.5em !important;
        flex: none;
    }
    
    .document-info {
        width: 100%;
    }
    
    .document-info h4 {
        font-size: 0.8em !important;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .document-info .meta {
        font-size: 0.65em !important;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .document-info p {
        font-size: 0.7em !important;
        line-height: 1.3;
    }
    
    /* Videos View */
    .videos-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 0;
    }
    
    .video-item {
        width: 100%;
    }
    
    .video-item video {
        height: 180px !important;
        width: 100%;
    }
    
    .video-item-info {
        padding: 10px;
    }
    
    .video-item-info h4 {
        font-size: 0.8em !important;
        line-height: 1.3;
    }
    
    .video-item-info p {
        font-size: 0.65em !important;
        line-height: 1.3;
    }
    
    /* Search View */
    .search-container {
        flex-direction: column;
        padding: 0;
        gap: 8px;
    }
    
    #searchInput {
        padding: 12px;
        font-size: 0.85em;
        width: 100%;
    }
    
    #searchBtn {
        padding: 12px;
        font-size: 0.85em;
        width: 100%;
    }
    
    #searchResults {
        gap: 10px;
        padding: 0;
    }
    
    .search-result {
        padding: 12px;
    }
    
    .search-result h4 {
        font-size: 0.8em !important;
        line-height: 1.3;
        margin-bottom: 5px;
    }
    
    .search-result .meta {
        font-size: 0.65em !important;
        margin-bottom: 8px;
    }
    
    .search-result p {
        font-size: 0.7em !important;
        line-height: 1.3;
    }
    
    .search-stats {
        font-size: 0.75em;
        padding: 12px 5px;
    }
    
    /* Analysis View */
    .analysis-container {
        padding: 5px;
    }
    
    .analysis-container h2 {
        font-size: 1.3em !important;
        margin-bottom: 15px !important;
        padding: 0 5px;
    }
    
    .insights {
        padding: 15px 10px;
        font-size: 0.75em !important;
        line-height: 1.5;
    }
    
    .insights p {
        margin-bottom: 10px;
    }
    
    .insights strong {
        display: inline;
    }
    
    .charts {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Modal */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 5px auto !important;
        padding: 10px !important;
        max-height: 95vh !important;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
    }
    
    .close {
        right: 5px !important;
        top: 5px !important;
        font-size: 1.5em !important;
        width: 30px !important;
        height: 30px !important;
        z-index: 10;
        padding: 0;
        line-height: 1;
    }
    
    #modalBody {
        padding-right: 0;
        overflow-y: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    #modalBody h2 {
        font-size: 0.9em !important;
        margin-bottom: 8px !important;
        padding-right: 35px;
        line-height: 1.2;
        flex-shrink: 0;
    }
    
    #modalBody .modal-meta {
        padding: 8px;
        font-size: 0.65em !important;
        line-height: 1.3;
        margin-bottom: 8px;
        flex-shrink: 0;
    }
    
    #modalBody .modal-meta strong {
        display: inline;
        margin-right: 5px;
    }
    
    #modalBody .modal-meta br {
        display: none;
    }
    
    #modalBody .modal-description {
        padding: 8px;
        font-size: 0.65em !important;
        line-height: 1.3;
        margin-bottom: 8px;
        flex-shrink: 0;
        max-height: 60px;
        overflow: hidden;
    }
    
    #modalBody .modal-description h3 {
        font-size: 0.85em;
        margin-bottom: 5px;
    }
    
    #modalBody .modal-link {
        padding: 8px 12px;
        font-size: 0.65em !important;
        display: block;
        text-align: center;
        margin-top: 8px;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }
    
    #modalBody .tags {
        margin-top: 8px;
        flex-shrink: 0;
    }
    
    #modalBody img,
    #modalBody video {
        margin: 8px 0;
        max-width: 100%;
        height: auto;
        max-height: 40vh;
        object-fit: contain;
        flex-shrink: 1;
    }
    
    #modalBody iframe {
        width: 100% !important;
        height: 45vh !important;
        min-height: 250px;
        flex-shrink: 1;
        margin: 8px 0;
    }
    
    /* Pagination */
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 12px 5px;
        justify-content: center;
    }
    
    .pagination button {
        padding: 6px 10px !important;
        font-size: 0.75em !important;
        min-width: 32px;
    }
    
    .pagination .page-info {
        font-size: 0.75em !important;
        padding: 0 5px;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        order: -1;
    }
    
    /* View Headers */
    .view-header {
        padding: 0 5px 12px;
        margin-bottom: 15px;
    }
    
    .view-header h2 {
        font-size: 1.3em !important;
        margin-bottom: 5px;
    }
    
    .result-count {
        font-size: 0.75em !important;
    }
    
    /* Footer */
    footer {
        padding: 25px 10px;
        margin-top: 30px;
        font-size: 0.7em !important;
    }
    
    footer p {
        margin: 5px 0;
        line-height: 1.4;
    }
    
    /* Loading */
    .loading {
        font-size: 1em;
        padding: 30px 10px;
    }
}

/* Extra Small Mobile (iPhone SE, small Android) */
@media (max-width: 375px) {
    h1 {
        font-size: 1em !important;
        letter-spacing: 1px !important;
    }
    
    .subtitle {
        font-size: 0.6em !important;
    }
    
    .disclaimer {
        font-size: 0.55em !important;
    }
    
    .stats-bar {
        gap: 5px;
        padding: 8px 3px;
    }
    
    .stat-item {
        min-width: 55px;
        flex: 0 0 calc(25% - 5px);
    }
    
    .stat-number {
        font-size: 1em !important;
    }
    
    .stat-label {
        font-size: 0.55em !important;
    }
    
    .nav-btn {
        padding: 6px 8px !important;
        font-size: 0.6em !important;
        flex: 1 1 calc(50% - 6px);
    }
    
    .timeline-item {
        min-width: 170px !important;
        max-width: 170px !important;
    }
    
    .timeline-card {
        padding: 10px;
    }
    
    .timeline-date .year {
        font-size: 1.1em !important;
    }
    
    .timeline-card h3 {
        font-size: 0.7em !important;
    }
    
    .timeline-card .meta,
    .timeline-card .description {
        font-size: 0.6em !important;
    }
    
    .tag {
        font-size: 0.5em !important;
        padding: 2px 4px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .timeline-wrapper {
        height: calc(100vh - 350px);
        min-height: 250px;
    }
    
    header {
        padding: 8px 10px;
    }
    
    .stats-bar {
        padding: 8px 5px;
    }
    
    .stat-number {
        font-size: 1em !important;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
    color: #888;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}


/* Additional View Styles */
.view-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.view-header h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.result-count {
    color: #888;
    font-size: 0.9em;
}

.search-stats {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.9em;
}

.analysis-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.insights {
    background: #2a2a2a;
    border: 2px solid #4a9eff;
    padding: 40px;
    line-height: 1.8;
}

.insights strong {
    color: #4a9eff;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.video-item {
    background: #111;
    border: 1px solid #333;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.video-item:hover {
    border-color: #fff;
    transform: scale(1.02);
}

.video-item video {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.video-item-info {
    padding: 15px;
}

.video-item-info h4 {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.video-item-info p {
    font-size: 0.75em;
    color: #888;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px;
}

.pagination button {
    background: transparent;
    border: 2px solid #4a9eff;
    color: #4a9eff;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    transition: all 0.3s;
    min-width: 40px;
}

.pagination button:hover:not(:disabled) {
    background: #4a9eff;
    color: #1a1a1a;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination button.active {
    background: #4a9eff;
    color: #1a1a1a;
}

.pagination .page-info {
    color: #8ab4f8;
    font-size: 0.9em;
    padding: 0 15px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #4a9eff;
    color: #8ab4f8;
    font-size: 0.85em;
    background: #2a2a2a;
}

footer p {
    margin: 8px 0;
}
