:root {

    --background: #05060a;

    --surface: rgba(15, 17, 25, 0.72);

    --surface-hover: rgba(22, 25, 35, 0.9);

    --text: #f5f7fb;

    --muted: #8d94a5;

    --blue: #536dff;

    --purple: #8b5cf6;

    --cyan: #00d9ff;

    --red: #ff4057;

    --border: rgba(255, 255, 255, 0.09);

}


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

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


html {
    min-height: 100%;

    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    background: var(--background);

    color: var(--text);

    font-family: "GTA Art Deco", sans-serif;

    overflow-x: hidden;

}


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

.background {

    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: -1;

}


.gradient {

    position: absolute;

    width: 650px;

    height: 650px;

    border-radius: 50%;

    filter: blur(150px);

    opacity: 0.18;

    transition: transform 1s ease;

}


.gradient-blue {

    top: -300px;

    left: -250px;

    background: var(--blue);

}


.gradient-purple {

    right: -300px;

    bottom: -300px;

    background: var(--purple);

}


/* GRID */

.grid {

    position: absolute;

    inset: 0;

    background-image:

        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            transparent 90%
        );

    -webkit-mask-image:
        linear-gradient(
            to bottom,
            black 0%,
            transparent 90%
        );

}


/* PARTICLES */

#particles {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

}


/* NOISE */

.noise {

    position: absolute;

    inset: -50%;

    opacity: 0.025;

    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");

    pointer-events: none;

}


/* =========================================
   CONTAINER
========================================= */

.container {

    width: min(
        560px,
        calc(100% - 28px)
    );

    margin: 0 auto;

    padding: 55px 0 35px;

}


/* =========================================
   PROFILE
========================================= */

.profile {

    text-align: center;

    animation:
        fadeUp 0.8s ease both;

}


.avatar-wrapper {

    position: relative;

    width: 122px;

    height: 122px;

    margin: 0 auto 20px;

}


.avatar-glow {

    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--purple)
        );

    filter: blur(25px);

    opacity: 0.25;

}


.avatar-ring {

    position: absolute;

    inset: -6px;

    border-radius: 50%;

    background:
        conic-gradient(
            var(--cyan),
            var(--blue),
            var(--purple),
            var(--cyan)
        );

    animation:
        rotate 7s linear infinite;

}


.avatar {

    position: absolute;

    inset: 4px;

    overflow: hidden;

    border-radius: 50%;

    background: #090a10;

    border: 4px solid var(--background);

}


.avatar img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


.online-dot {

    position: absolute;

    right: 3px;

    bottom: 4px;

    width: 18px;

    height: 18px;

    border-radius: 50%;

    background: #25e98b;

    border: 4px solid var(--background);

    box-shadow:
        0 0 15px rgba(37, 233, 139, 0.8);

}

/* AVATAR — ESTADO EN DIRECTO */

.online-dot.is-live {
    background: var(--red);
    box-shadow:
        0 0 15px rgba(255, 64, 87, 0.8);
}


.profile h1 {

    font-size: 38px;

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;

}


.verified {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 18px;

    height: 18px;

    margin-left: 4px;

    border-radius: 50%;

    background: var(--blue);

    color: white;

    font-size: 11px;

    vertical-align: middle;

}


.username {

    margin-top: 6px;

    color: var(--muted);

    font-size: 13px;

}


.description {

    margin-top: 12px;

    color: #b5bbc8;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

}


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

.video-card {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    margin-top: 32px;

    overflow: hidden;

    border-radius: 24px;

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

    background: #10121a;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.4);

    isolation: isolate;

    animation:
        fadeUp 0.8s 0.1s ease both;
}



/* THUMBNAIL */

.video-thumbnail {

    position: absolute;

    inset: 0;

    display: block;

    width: 100%;

    height: 100%;

    object-fit: contain;

    object-position: center;

    z-index: 0;

    transition:
        transform 0.8s ease;

}


.video-card:hover .video-thumbnail {

    transform: scale(1.015);

}


/* LIGHT THUMBNAIL OVERLAY */

.video-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        rgba(0, 0, 0, 0.10);

}


/* BOTTOM GRADIENT */

.video-overlay::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.62) 0%,
            rgba(0, 0, 0, 0.32) 38%,
            rgba(0, 0, 0, 0.05) 75%,
            rgba(0, 0, 0, 0.00) 100%
        );

}


/* CONTENT */

.video-content {

    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 20px;

}


/* TOP */

.video-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.video-badge,
.video-duration {

    padding: 7px 10px;

    border-radius: 7px;

    background:
        rgba(0, 0, 0, 0.55);

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

    backdrop-filter: blur(10px);

    color: white;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

}


.video-duration {

    letter-spacing: 0;

}


/* BOTTOM */

.video-bottom {

    max-width: 460px;

}


.video-category {

    display: block;

    color: #b9c1ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.3px;

}


.video-content h2 {

    margin-top: 6px;

    color: white;

    font-size: 28px;

    line-height: 1.05;

    font-weight: 900;

    letter-spacing: -1.3px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.video-description {
    margin-top: 7px;

    color: rgba(255, 255, 255, 0.75);

    font-size: 11px;

    line-height: 1.5;

    /* Máximo 2 líneas */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-clamp: 2;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 100%;
}


/* BUTTON */

.video-button {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    width: fit-content;

    margin-top: 15px;

    padding: 11px 15px;

    border-radius: 10px;

    background: white;

    color: #080910;

    text-decoration: none;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 0.5px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.video-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(255, 255, 255, 0.2);

}


/* =========================================
   LIVE
========================================= */

.live-card {

    display: flex;

    align-items: center;

    gap: 15px;

    min-height: 78px;

    margin-top: 14px;

    padding: 14px 17px;

    border-radius: 18px;

    border: 1px solid var(--border);

    background: var(--surface);

    backdrop-filter: blur(15px);

    cursor: pointer;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;

}


.live-card:hover {

    transform: translateY(-3px);

    border-color:
        rgba(255, 255, 255, 0.18);

    background:
        var(--surface-hover);

}


.live-card:focus-visible {

    outline: 2px solid var(--blue);

    outline-offset: 3px;

}


.live-indicator {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    min-width: 48px;

    color: #777e8f;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 0.8px;

}


.live-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #555b69;

}


.live-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

    flex: 1;

}


.live-info strong {

    font-size: 14px;

}


.live-info span {

    color: var(--muted);

    font-size: 11px;

}


.live-arrow {

    color: #646b7b;

    font-size: 18px;

    transition:
        0.25s;

}


.live-card:hover .live-arrow {

    color: white;

    transform:
        translate(3px, -3px);

}


/* =========================================
   SOCIAL LINKS
========================================= */

.links {

    display: flex;

    flex-direction: column;

    gap: 11px;

    margin-top: 14px;

}


.link-card {

    display: flex;

    align-items: center;

    gap: 14px;

    min-height: 70px;

    padding: 11px 16px;

    border-radius: 17px;

    border: 1px solid var(--border);

    background: var(--surface);

    backdrop-filter: blur(15px);

    color: white;

    text-decoration: none;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;

    animation:
        fadeUp 0.8s 0.25s ease both;

}


.link-card:hover {

    transform: translateY(-3px);

    background: var(--surface-hover);

}


/* SOCIAL LOGO CONTAINER */

.link-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 45px;

    height: 45px;

    border-radius: 13px;

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

    overflow: hidden;

}


/* OFFICIAL SOCIAL ICON — WHITE */

.link-icon img {

    display: block;

    width: 23px;

    height: 23px;

    object-fit: contain;

    opacity: 1;

    transition:
        transform 0.25s ease;

}


.link-card:hover .link-icon img {

    transform:
        scale(1.08);

}


/* TEXT */

.link-info {

    display: flex;

    flex-direction: column;

    gap: 3px;

    flex: 1;

}


.link-info strong {

    font-size: 14px;

}


.link-info span {

    color: var(--muted);

    font-size: 11px;

}


/* EXTERNAL WINDOW ICON */

.external-icon {

    position: relative;

    display: inline-block;

    width: 16px;

    height: 16px;

    flex-shrink: 0;

    color: #606777;

    transition:
        color 0.25s ease,
        transform 0.25s ease;

}

.external-icon-square {

    position: absolute;

    width: 10px;

    height: 10px;

    border: 1.4px solid currentColor;

    border-radius: 2px;

}

.external-icon-square:first-child {

    left: 1px;

    bottom: 1px;

}

.external-icon-square-front {

    right: 1px;

    top: 1px;

    background: var(--surface);

}

.link-card:hover .external-icon,
.live-card:hover .external-icon {

    color: white;

    transform:
        translate(2px, -2px);

}


/* PLATFORM HOVER */

.twitch:hover {

    border-color:
        rgba(145, 70, 255, 0.5);

}


.youtube:hover {

    border-color:
        rgba(255, 50, 50, 0.45);

}


.instagram:hover {

    border-color:
        rgba(220, 80, 150, 0.45);

}


.tiktok:hover {

    border-color:
        rgba(0, 220, 240, 0.45);

}


.discord:hover {

    border-color:
        rgba(100, 120, 255, 0.45);

}


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

.socials {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 8px;
    margin-top: 24px;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    padding: 0;
    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;

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

    text-decoration: none;

    line-height: 0;

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

.socials a img {
    display: block;

    width: 14px;
    height: 14px;

    margin: 0;
    padding: 0;

    object-fit: contain;

    opacity: 0.85;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.socials a:hover {
    background: rgba(255, 255, 255, 0.07);

    border-color: rgba(255, 255, 255, 0.15);

    transform: translateY(-2px);
}

.socials a:hover img {
    opacity: 1;
    transform: scale(1.08);
}


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

footer {

    display: flex;

    justify-content: center;

    gap: 9px;

    margin-top: 30px;

    color: #4e5564;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes fadeUp {

    from {

        opacity: 0;

        transform:
            translateY(20px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes rotate {

    from {

        transform:
            rotate(0deg);

    }

    to {

        transform:
            rotate(360deg);

    }

}


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

@media (max-width: 600px) {

    .container {
        width: calc(100% - 22px);
        padding-top: 40px;
    }

    .profile h1 {
        font-size: 34px;
    }

    .video-card {
        height: 290px;
    }

    .video-content h2 {
        font-size: 25px;
    }

    .video-description {
        font-size: 10px;
    }


    /* SOCIAL ICONS — MOBILE */

    .socials {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 100%;

        gap: 8px;
        margin-top: 24px;
    }

    .socials a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 32px;
        height: 32px;

        padding: 0;
        margin: 0;

        line-height: 0;

        flex: 0 0 32px;
    }

    .socials a img {
        display: block;

        width: 14px;
        height: 14px;

        margin: 0;
        padding: 0;
    }
}

/* =========================================
   GTA ART DECO — GLOBAL TYPOGRAPHY
   Font files are self-hosted in assets/fonts.
========================================= */
:root {
    --gta-pink: #f3a9c5;
    --gta-cream: #fff0e7;
}

body,
button,
input,
textarea,
select {
    font-family: "GTA Art Deco", sans-serif;
}

/* =========================================
   GTA VI COUNTDOWN — BELOW AVATAR
========================================= */
.gta-countdown {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 520px;
    min-height: 174px;
    margin: 28px auto 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 218, 232, 0.38);
    border-radius: 18px;
    background-color: #201923;
    background-image: url("assets/fondo-countdown.webp");
    background-position: center center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
    animation: fadeUp 0.8s 0.05s ease both;
}

.gta-countdown-shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(12, 9, 18, 0.16), rgba(12, 9, 18, 0.02)),
        linear-gradient(0deg, rgba(10, 7, 15, 0.22), rgba(10, 7, 15, 0.00));
}

.gta-countdown-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 174px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 17px 16px 14px;
    text-align: center;
}

.gta-countdown-kicker {
    color: #ffe1ec;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.gta-countdown-title {
    color: #fff8f2;
    font-size: clamp(19px, 4.5vw, 28px);
    font-weight: 900;
    letter-spacing: 0.4px;
    line-height: 1.05;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.gta-countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(5px, 1.8vw, 12px);
    margin-top: 3px;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.countdown-unit {
    display: flex;
    min-width: 47px;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 5px 7px 4px;
    border: 1px solid rgba(255, 228, 237, 0.22);
    border-radius: 8px;
    background: rgba(15, 11, 19, 0.58);
    backdrop-filter: blur(5px);
}

.countdown-unit span {
    color: #ffc1d8;
    font-size: clamp(22px, 5vw, 31px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 0 16px rgba(243, 169, 197, 0.28);
}

.countdown-unit small {
    color: #fff2f6;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

.countdown-separator {
    margin-top: -10px;
    color: #ffd2e1;
    font-size: 22px;
    opacity: 0.85;
}

.gta-countdown-date {
    color: rgba(255, 244, 248, 0.94);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gta-countdown-date span {
    padding: 0 5px;
    color: #f3a9c5;
}

@media (max-width: 600px) {
    .gta-countdown {
        min-height: 160px;
        margin-top: 0px;
        margin-bottom: 19px;
        border-radius: 15px;
        background-position: center 52%;
        background-size: cover;
    }

    .gta-countdown-content {
        min-height: 160px;
        gap: 7px;
        padding: 14px 8px 12px;
    }

    .gta-countdown-kicker {
        font-size: 8px;
        letter-spacing: 1.6px;
    }

    .gta-countdown-title {
        font-size: clamp(16px, 5.1vw, 23px);
        letter-spacing: 0;
    }

    .gta-countdown-timer {
        gap: 4px;
    }

    .countdown-unit {
        min-width: 0;
        width: clamp(48px, 17vw, 62px);
        padding: 6px 4px 5px;
    }

    .countdown-unit span {
        font-size: clamp(21px, 6.5vw, 27px);
    }

    .countdown-unit small {
        font-size: 7px;
        letter-spacing: 0.6px;
    }

    .countdown-separator {
        font-size: 17px;
        margin-top: -8px;
    }

    .gta-countdown-date {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
}


/* FIX v5: keep the full profile block together and above the countdown */
.profile {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    isolation: isolate;
}

.profile .avatar-wrapper {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.profile h1,
.profile .username,
.profile .description {
    position: relative;
    z-index: 2;
    display: block;
    width: auto;
    max-width: 100%;
}

.profile h1 {
    margin-top: 0;
    clear: both;
}

.gta-countdown {
    margin-top: 28px;
    position: relative;
    z-index: 1;
    background-position: center center;
    background-size: 100% 100%;
}

.gta-countdown-shade {
    background:
        linear-gradient(90deg, rgba(12, 9, 18, 0.12), rgba(12, 9, 18, 0.00)),
        linear-gradient(0deg, rgba(10, 7, 15, 0.18), rgba(10, 7, 15, 0.00));
}


/* WEBSITE LINK */
.website:hover {
    border-color: rgba(163, 177, 164, 0.55);
}

.link-icon svg {
    color: #ffffff;
    display: block;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.link-card:hover .link-icon svg {
    transform: scale(1.08);
}
