* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 25, 30, 0.055),
            transparent 38%
        ),
        #090a0c;

    color: #f4f4f5;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    display: flex;
    flex-direction: column;
}


/* =========================
   HOME EYEBROW
========================= */

.hero-eyebrow {
    color: #e51b23;

    font-size: 20px;

    font-weight: 900;

    letter-spacing: 4px;
}


/* =========================
   FULL SCREEN PAGE LOADER
========================= */

.page-loader {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: #000000;

    display: flex;

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

    z-index: 999999;

    opacity: 1;

    visibility: visible;

    transition:
        opacity .5s ease,
        visibility .5s ease;
}


.page-loader.hidden {
    opacity: 0;

    visibility: hidden;

    pointer-events: none;
}


/* LOADER CONTAINER */

.loader-container {
    width: 105px;

    height: 105px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}


/* RED SPINNING CIRCLE */

.loader-ring {
    position: absolute;

    inset: 0;

    width: 105px;

    height: 105px;

    border-radius: 50%;

    border: 3px solid rgba(215, 25, 32, .18);

    border-top-color: #d71920;

    border-right-color: #e52229;

    animation:
        loaderSpin 1s linear infinite;

    box-shadow:
        0 0 18px rgba(215, 25, 32, .18);
}


/* LOGO IN CENTER */

.loader-logo {
    width: 62px;

    height: 62px;

    object-fit: contain;

    position: relative;

    z-index: 2;

    filter:
        drop-shadow(
            0 0 15px rgba(255, 0, 0, .15)
        );

    animation:
        loaderPulse 1.5s ease-in-out infinite;
}


/* SPIN */

@keyframes loaderSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* LOGO PULSE */

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);

        opacity: .9;
    }

    50% {
        transform: scale(1.06);

        opacity: 1;
    }

}


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

.site-header {
    height: 74px;

    border-bottom: 1px solid #1d2025;

    background: rgba(9, 10, 12, 0.92);

    backdrop-filter: blur(16px);

    position: sticky;

    top: 0;

    z-index: 100;
}


.header-inner {
    width: min(1180px, 92%);

    height: 100%;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================
   BRAND
========================= */

.site-brand {
    display: flex;

    align-items: center;

    gap: 11px;

    color: white;

    text-decoration: none;
}


.site-brand img {
    width: 42px;

    height: 42px;

    object-fit: contain;
}


.site-brand div {
    display: flex;

    flex-direction: column;

    line-height: 1;
}


.site-brand strong {
    font-size: 16px;

    letter-spacing: .2px;
}


.site-brand span {
    margin-top: 4px;

    color: #e31b23;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 3px;
}


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

.navigation {
    display: flex;

    align-items: center;

    gap: 8px;
}


.navigation a {
    color: #858a92;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    padding: 9px 14px;

    border-radius: 7px;

    transition:
        color .2s ease,
        background .2s ease;
}


.navigation a:hover {
    color: #ffffff;

    background: #15171b;
}


.navigation a.active {
    color: #ffffff;

    background: #15171b;
}


/* =========================
   HOME
========================= */

.home {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;
}


.hero {
    width: min(850px, 92%);

    padding: 105px 0 130px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;
}


.hero-logo {
    width: 145px;

    height: 145px;

    object-fit: contain;

    margin-bottom: 34px;

    filter:
        drop-shadow(
            0 15px 45px rgba(0, 0, 0, .6)
        );
}


.hero-content {
    display: flex;

    flex-direction: column;

    align-items: center;
}


/* HOME EYEBROW */

.hero .eyebrow {
    color: #e51b23;

    font-size: 20px;

    font-weight: 900;

    letter-spacing: 4px;

    line-height: 1.2;

    margin: 0;
}


/* HOME DESCRIPTION */

.hero-description {
    max-width: 610px;

    margin: 22px 0 0;

    color: #898e96;

    font-size: 16px;

    line-height: 1.75;
}


/* =========================
   HERO BUTTONS
========================= */

.hero-actions {
    display: flex;

    gap: 10px;

    margin-top: 32px;
}


.primary-button,
.secondary-button {
    padding: 12px 20px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 800;

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


.primary-button {
    color: white;

    background: #d71920;

    border: 1px solid #e52229;
}


.primary-button:hover {
    background: #ee2028;

    transform: translateY(-1px);
}


.secondary-button {
    color: #dfe1e5;

    background: #111317;

    border: 1px solid #282c32;
}


.secondary-button:hover {
    background: #181b20;

    border-color: #3a3f47;

    transform: translateY(-1px);
}


/* =========================
   YOUTUBE PAGE
========================= */

.youtube-page {
    flex: 1;

    width: min(1180px, 92%);

    margin: auto;
}


/* =========================
   CHANNEL HEADER
========================= */

.channel-header {
    margin-top: 28px;

    overflow: hidden;

    border: 1px solid #20242a;

    border-radius: 12px;

    background: #0e1013;
}


/* =========================
   CHANNEL BANNER
========================= */

.channel-banner {
    height: 225px;

    background:
        linear-gradient(
            90deg,
            #15171b,
            #0d0f12
        );

    background-size: cover;

    background-position: center;

    position: relative;
}


.channel-banner::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            transparent 40%,
            rgba(8, 9, 11, .65)
        );
}


/* =========================
   CHANNEL INFO
========================= */

.channel-info {
    display: flex;

    align-items: center;

    gap: 22px;

    padding: 0 30px 28px;

    position: relative;
}


.channel-avatar {
    width: 108px;

    height: 108px;

    margin-top: -54px;

    border-radius: 50%;

    object-fit: cover;

    border: 5px solid #0e1013;

    background: #0e1013;

    position: relative;

    z-index: 2;
}


.channel-details {
    padding-top: 20px;
}


.channel-details h1 {
    margin: 0;

    font-size: 28px;

    font-weight: 900;
}


.channel-details p {
    margin: 6px 0 14px;

    color: #777d85;

    font-size: 14px;
}


.channel-button {
    display: inline-flex;

    padding: 8px 13px;

    border-radius: 6px;

    background: #ffffff;

    color: #090a0c;

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    transition:
        background .2s ease,
        transform .2s ease;
}


.channel-button:hover {
    background: #e8e8e8;

    transform: translateY(-1px);
}


/* =========================
   UPLOADS
========================= */

.uploads-section {
    padding: 60px 0 100px;
}


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

.section-heading {
    display: flex;

    justify-content: space-between;

    align-items: end;

    margin-bottom: 22px;
}


.section-heading h2 {
    margin: 7px 0 0;

    font-size: 32px;

    letter-spacing: -1px;
}


/* =========================
   VIDEO GRID
   IMPORTANT:
   This now uses the PAGE
   scrollbar instead of its
   own internal scrollbar.
========================= */

.video-grid {
    width: 100%;

    display: grid;

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

    gap: 20px;

    /*
     * IMPORTANT:
     * Removed max-height.
     */

    max-height: none;

    /*
     * IMPORTANT:
     * Removed internal scrolling.
     */

    overflow: visible;

    padding:
        4px
        4px
        20px;

    align-content: start;
}


/* =========================
   VIDEO CARD
========================= */

.video-card {
    overflow: hidden;

    border: 1px solid #20242a;

    border-radius: 10px;

    background: #0e1013;

    color: white;

    text-decoration: none;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;

    min-width: 0;
}


.video-card:hover {
    transform: translateY(-3px);

    border-color: #353a42;

    background: #111317;
}


/* =========================
   THUMBNAIL
========================= */

.thumbnail-wrapper {
    aspect-ratio: 16 / 9;

    overflow: hidden;

    position: relative;

    background: #15171b;
}


.thumbnail-wrapper img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .3s ease;
}


.video-card:hover .thumbnail-wrapper img {
    transform: scale(1.025);
}


/* =========================
   WATCH OVERLAY
========================= */

.watch-overlay {
    position: absolute;

    left: 12px;

    bottom: 12px;

    padding: 6px 9px;

    border-radius: 5px;

    background: rgba(0, 0, 0, .75);

    color: white;

    font-size: 11px;

    font-weight: 800;

    opacity: 0;

    transform: translateY(4px);

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.video-card:hover .watch-overlay {
    opacity: 1;

    transform: translateY(0);
}


/* =========================
   VIDEO INFO
========================= */

.video-info {
    padding: 15px;
}


.video-info h3 {
    margin: 0;

    font-size: 15px;

    line-height: 1.45;

    font-weight: 800;

    display: -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}


.video-info span {
    display: block;

    margin-top: 9px;

    color: #686e76;

    font-size: 12px;
}


/* =========================
   LOADING / EMPTY / ERROR
========================= */

.loading,
.empty-state,
.error-state {
    padding: 55px 20px;

    text-align: center;

    border: 1px solid #20242a;

    border-radius: 10px;

    color: #777d85;

    background: #0e1013;

    grid-column: 1 / -1;
}


.error-state {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.error-state strong {
    color: #ffffff;
}


/* =========================
   LEGAL PAGES
========================= */

.legal-page {
    flex: 1;

    width: min(850px, 92%);

    margin: auto;

    padding: 80px 0 100px;
}


.legal-container {
    padding: 42px;

    border: 1px solid #20242a;

    border-radius: 12px;

    background: #0e1013;
}


.legal-container h1 {
    margin: 10px 0 7px;

    font-size: 42px;

    letter-spacing: -1.5px;
}


.legal-updated {
    margin: 0 0 45px;

    color: #686e76;

    font-size: 13px;
}


.legal-container section {
    margin-top: 36px;
}


.legal-container h2 {
    margin: 0 0 10px;

    font-size: 18px;
}


.legal-container p {
    margin: 0;

    color: #92969e;

    font-size: 14px;

    line-height: 1.8;
}


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

.site-footer {
    border-top: 1px solid #1d2025;

    background: #0c0e11;
}


.footer-inner {
    width: min(1180px, 92%);

    min-height: 70px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-left {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #60656d;

    font-size: 12px;
}


.footer-logo {
    width: 27px;

    height: 27px;

    object-fit: contain;

    opacity: .8;
}


.footer-links {
    display: flex;

    align-items: center;

    gap: 15px;
}


.footer-links a {
    color: #666b73;

    text-decoration: none;

    font-size: 12px;

    transition:
        color .2s ease;
}


.footer-links a:hover {
    color: #ffffff;
}


/* =========================
   SOCIAL ICONS
========================= */

.social-link {
    display: flex;

    align-items: center;

    justify-content: center;
}


.social-link svg {
    width: 15px;

    height: 15px;

    fill: #666b73;

    transition:
        fill .2s ease,
        transform .2s ease;
}


.social-link:hover svg {
    fill: #ffffff;

    transform: scale(1.08);
}


.footer-separator {
    width: 1px;

    height: 15px;

    background: #292d33;

    margin: 0 2px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 850px) {

    .video-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        max-height: none;

        overflow: visible;
    }


    .channel-banner {
        height: 180px;
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .site-header {
        height: auto;
    }


    .header-inner {
        padding: 13px 0;

        gap: 12px;
    }


    .navigation a {
        padding: 8px 10px;
    }


    /* =========================
       HOME
    ========================= */

    .hero {
        padding: 75px 0 95px;
    }


    .hero-logo {
        width: 115px;

        height: 115px;
    }


    .hero .eyebrow {
        font-size: 16px;

        letter-spacing: 3px;
    }


    .hero h1 {
        font-size: 42px;

        letter-spacing: -1.8px;
    }


    .hero-actions {
        width: 100%;

        flex-direction: column;
    }


    .primary-button,
    .secondary-button {
        width: 100%;
    }


    /* =========================
       CHANNEL
    ========================= */

    .channel-banner {
        height: 140px;
    }


    .channel-info {
        align-items: flex-start;

        padding:
            0
            18px
            22px;

        gap: 15px;
    }


    .channel-avatar {
        width: 78px;

        height: 78px;

        margin-top: -39px;
    }


    .channel-details {
        padding-top: 13px;
    }


    .channel-details h1 {
        font-size: 21px;
    }


    /* =========================
       UPLOADS
    ========================= */

    .uploads-section {
        padding:
            45px
            0
            65px;
    }


    .section-heading {
        margin-bottom: 18px;
    }


    .section-heading h2 {
        font-size: 28px;
    }


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

        max-height: none;

        overflow: visible;

        padding:
            0
            0
            10px;
    }


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

    .legal-page {
        padding:
            45px
            0
            65px;
    }


    .legal-container {
        padding:
            27px
            22px;
    }


    .legal-container h1 {
        font-size: 34px;
    }


    .footer-inner {
        padding:
            18px
            0;

        flex-direction: column;

        justify-content: center;
    }


    .footer-links {
        flex-wrap: wrap;

        justify-content: center;
    }

}
