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

body {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f1a 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.back-btn {
    position: absolute;
    left: 0;
    top: 0;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.back-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: translateY(-2px);
}

h1 {
    font-size: 3em;
    color: #00ff00;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    margin-top: 50px;
    letter-spacing: 8px;
    font-weight: 300;
}

.tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    letter-spacing: 4px;
    margin-top: 10px;
    font-style: italic;
}

main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 16px;
    padding: 30px;
}

h2 {
    color: #00ff00;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5em;
    letter-spacing: 3px;
    font-weight: 400;
}

/* Facts Section */
.facts-section {
    text-align: center;
}

.fact-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.fact-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.fact-text {
    font-size: 1.2em;
    line-height: 1.7;
    margin-bottom: 15px;
}

.fact-source {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.fact-source a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fact-source a:hover {
    color: #00ff00;
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.xfiles-btn {
    background: linear-gradient(135deg, #00ff00 0%, #00aa00 100%);
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.xfiles-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background: transparent;
    border: none;
    padding: 0;
}

.stat-card {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #00ff00;
}

.stat-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
}

/* Episodes Section */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.episode-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.episode-card:hover {
    border-color: #00ff00;
    transform: translateY(-3px);
}

.episode-number {
    color: #00ff00;
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.episode-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.episode-desc {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Characters Section */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.character-card {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.character-card.mulder {
    border-color: rgba(0, 100, 255, 0.5);
}

.character-card.scully {
    border-color: rgba(255, 100, 100, 0.5);
}

.character-name {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 5px;
}

.character-actor {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
}

.character-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
    line-height: 1.5;
}

/* Mythology Section */
.mythology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.myth-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.myth-item:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

.myth-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.myth-text {
    font-size: 0.9em;
}

/* Gallery Section */
.gallery-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(0, 255, 0, 0.1);
    border: 1px dashed rgba(0, 255, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-placeholder:hover {
    background: rgba(0, 255, 0, 0.2);
}

.gallery-placeholder span {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.gallery-placeholder p {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 0 10px;
}

.gallery-instruction {
    text-align: center;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Video Section */
.video-section {
    background: rgba(0, 0, 0, 0.4);
}

.section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 1em;
}

.video-category {
    margin-bottom: 40px;
}

.video-category:last-of-type {
    margin-bottom: 30px;
}

.video-category h3 {
    color: #00ff00;
    font-size: 1.1em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    letter-spacing: 2px;
    font-weight: 500;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.video-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    border-color: #00ff00;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.2);
}

.video-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 15px;
}

.video-info h4 {
    color: #fff;
    font-size: 1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.video-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
    line-height: 1.4;
}

.video-resources {
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.video-resources h3 {
    color: #00ff00;
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 2px;
}

.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.resource-link:hover {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.4);
    transform: translateX(5px);
}

.resource-icon {
    font-size: 1.5em;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 0, 0.2);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

.trust-no-one {
    color: #00ff00;
    margin-top: 10px;
    letter-spacing: 3px;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
        letter-spacing: 4px;
        margin-top: 55px;
    }

    .back-btn {
        position: relative;
        display: inline-block;
        margin-bottom: 15px;
    }

    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-number {
        font-size: 2em;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }

    .characters-grid {
        grid-template-columns: 1fr;
    }

    .mythology-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .resource-links {
        grid-template-columns: 1fr;
    }
}
