/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #070707;
    color: #f5f5f5;
    overflow-x: hidden;
}


/* =========================================================
   MAIN BACKGROUND
========================================================= */

main {
    min-height: 100vh;
    position: relative;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(190, 0, 0, 0.18),
            transparent 25%
        ),
        radial-gradient(
            circle at 90% 40%,
            rgba(30, 70, 130, 0.12),
            transparent 28%
        ),
        #070707;
}


/* subtle diagonal lines */

main::before {
    content: "";
    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 80px,
            rgba(255, 255, 255, 0.018) 81px,
            transparent 82px
        );

    pointer-events: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.top-nav {
    width: 100%;
    padding: 25px 5%;

    position: relative;
    z-index: 5;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 17px;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.04);

    color: #fff;
    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.back-btn iconify-icon {
    font-size: 19px;
}

.back-btn:hover {
    background: #d60918;
    border-color: #d60918;
    transform: translateX(-4px);
}


/* =========================================================
   MAIN HEADER
========================================================= */

.main-header {
    width: min(1100px, 90%);
    margin: 40px auto 90px;

    text-align: center;

    position: relative;
    z-index: 2;
}

.header-tag {
    margin-bottom: 18px;

    color: #e50914;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 5px;
    text-transform: uppercase;
}

.main-header h1 {
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 0.95;

    font-weight: 900;

    letter-spacing: 2px;

    text-transform: uppercase;

    color: #f2f2f2;

    text-shadow:
        3px 3px 0 #450000,
        0 0 25px rgba(229, 9, 20, 0.15);
}

.main-header h1 span {
    display: block;

    color: #e50914;

    text-shadow:
        3px 3px 0 #650000,
        0 0 30px rgba(229, 9, 20, 0.3);
}

.header-description {
    max-width: 650px;

    margin: 25px auto 0;

    color: #999;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================================================
   COMMON SECTION
========================================================= */

.archive-section {
    width: min(1100px, 90%);
    margin: 0 auto 120px;

    position: relative;
    z-index: 2;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 35px;
}

.section-number {
    min-width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    border: 1px solid #e50914;

    color: #e50914;

    font-size: 14px;
    font-weight: 700;

    transform: skewX(-8deg);
}

.section-label {
    margin-bottom: 5px;

    color: #777;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;
}

.section-heading h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #fff;
}


/* =========================================================
   BOX OFFICE TABLE
========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.025);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}

table {
    width: 100%;
    min-width: 700px;

    border-collapse: collapse;
}

thead {
    background: #b50715;
}

th {
    padding: 18px 20px;

    text-align: left;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    color: #fff;
}

th:not(:first-child),
td:not(:first-child) {
    text-align: center;
}

td {
    padding: 17px 20px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.06);

    color: #aaa;

    font-size: 14px;
}

td:first-child {
    color: #eee;
    font-weight: 600;
}

td:last-child {
    color: #ddd;
    font-weight: 600;
}

tbody tr {
    transition: background 0.25s ease;
}

tbody tr:hover {
    background: rgba(229, 9, 20, 0.08);
}

tbody tr:last-child td {
    border-bottom: none;
}


/* highest collection */

tbody .highest {
    background:
        linear-gradient(
            90deg,
            rgba(229, 9, 20, 0.16),
            transparent
        );
}

.highest td:last-child {
    color: #ff2635;
}


/* =========================================================
   TRILOGY CARD
========================================================= */

.trilogy-card {
    margin-top: 30px;

    display: grid;
    grid-template-columns: 1.5fr 1fr;

    border: 1px solid rgba(229, 9, 20, 0.25);

    background:
        linear-gradient(
            120deg,
            rgba(229, 9, 20, 0.09),
            rgba(255, 255, 255, 0.025)
        );

    border-radius: 12px;

    overflow: hidden;
}

.trilogy-info {
    padding: 30px;
}

.small-label {
    margin-bottom: 8px;

    color: #e50914;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 3px;
}

.trilogy-info h3 {
    margin-bottom: 20px;

    font-size: 22px;
}

.trilogy-info ul {
    list-style: none;
}

.trilogy-info li {
    display: flex;
    justify-content: space-between;

    padding: 12px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    color: #aaa;
}

.trilogy-info li:last-child {
    border-bottom: none;
}

.trilogy-info li strong {
    color: #eee;
}

.trilogy-total {
    min-height: 220px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    border-left: 1px solid rgba(255, 255, 255, 0.08);

    background:
        radial-gradient(
            circle,
            rgba(229, 9, 20, 0.16),
            transparent 65%
        );
}

.trilogy-total span {
    color: #777;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 3px;
}

.trilogy-total strong {
    margin: 12px 0;

    color: #e50914;

    font-size: clamp(2rem, 4vw, 3.5rem);

    text-shadow:
        0 0 25px rgba(229, 9, 20, 0.25);
}

.trilogy-total small {
    color: #777;
}


/* =========================================================
   CANCELLED MOVIES
========================================================= */

.story-card {
    display: grid;
    grid-template-columns: 70px 1fr;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.025);

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.story-marker {
    display: flex;

    justify-content: center;
    align-items: flex-start;

    padding-top: 30px;

    background: #a80715;

    color: #fff;
}

.story-marker iconify-icon {
    font-size: 28px;
}

.story-content {
    padding: 35px;
}

.story-content h3 {
    margin-bottom: 25px;

    font-size: clamp(1.4rem, 3vw, 2.2rem);

    line-height: 1.2;
}

.fact {
    margin-bottom: 22px;

    color: #aaa;

    font-size: 15px;

    line-height: 1.8;
}

.fact strong {
    color: #eee;
}

.fact em {
    color: #ddd;
}


/* Fun fact */

.fun-fact {
    display: grid;
    grid-template-columns: 45px 1fr;

    gap: 15px;

    margin-top: 30px;

    padding: 20px;

    border-left: 3px solid #e50914;

    background:
        linear-gradient(
            90deg,
            rgba(229, 9, 20, 0.12),
            rgba(255, 255, 255, 0.025)
        );
}

.fun-icon {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #e50914;

    color: #fff;
}

.fun-icon iconify-icon {
    font-size: 22px;
}

.fun-fact strong {
    color: #e50914;
}

.fun-fact p {
    margin-top: 8px;

    color: #aaa;

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   PARKER'S FACTS
========================================================= */

.facts-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.parker-fact {
    position: relative;

    padding: 30px;

    min-height: 300px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.045),
            rgba(255, 255, 255, 0.015)
        );

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.parker-fact::after {
    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -45px;
    bottom: -45px;

    border-radius: 50%;

    background: rgba(229, 9, 20, 0.1);
}

.parker-fact:hover {
    transform: translateY(-7px);

    border-color: rgba(229, 9, 20, 0.45);

    background:
        linear-gradient(
            145deg,
            rgba(229, 9, 20, 0.08),
            rgba(255, 255, 255, 0.02)
        );
}

.fact-number {
    margin-bottom: 25px;

    color: #e50914;

    font-size: 42px;

    font-weight: 900;

    line-height: 1;

    opacity: 0.7;
}

.parker-fact h3 {
    margin-bottom: 15px;

    font-size: 19px;

    color: #fff;
}

.parker-fact p {
    color: #999;

    font-size: 14px;

    line-height: 1.8;
}

.parker-fact p strong {
    color: #eee;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    position: relative;
    z-index: 2;

    padding: 40px 20px;

    text-align: center;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    background: #050505;
}

.footer-logo {
    margin-bottom: 10px;

    color: #e50914;

    font-size: 20px;

    font-weight: 900;

    letter-spacing: 4px;
}

footer p {
    color: #666;

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

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

    .parker-fact {
        min-height: auto;
    }

    .trilogy-card {
        grid-template-columns: 1fr;
    }

    .trilogy-total {
        min-height: 180px;

        border-left: none;

        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 600px) {

    .top-nav {
        padding: 20px;
    }

    .main-header {
        width: 90%;

        margin-top: 30px;
        margin-bottom: 70px;
    }

    .header-tag {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .header-description {
        font-size: 13px;
    }

    .archive-section {
        width: 92%;

        margin-bottom: 85px;
    }

    .section-heading {
        gap: 12px;
    }

    .section-number {
        min-width: 42px;
        height: 42px;

        font-size: 11px;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }

    .section-label {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .table-wrapper {
        border-radius: 8px;
    }

    th,
    td {
        padding: 14px 12px;
    }

    .story-card {
        grid-template-columns: 1fr;
    }

    .story-marker {
        padding: 12px;

        align-items: center;
    }

    .story-marker iconify-icon {
        font-size: 22px;
    }

    .story-content {
        padding: 25px 20px;
    }

    .fact {
        font-size: 14px;
    }

    .fun-fact {
        grid-template-columns: 1fr;

        padding: 18px;
    }

    .trilogy-info {
        padding: 22px 18px;
    }

    .trilogy-info li {
        gap: 15px;

        font-size: 13px;
    }

    .parker-fact {
        padding: 24px;
    }

    .fact-number {
        font-size: 34px;
    }

}