/* CREATOR CORNER — YouTube profile and introduction video */

.creator-corner {
    position: relative;
    padding: 82px 0 92px;
    overflow: hidden;
    border-top: 3px solid var(--ink);
    background: linear-gradient(135deg, #fff8e7 0 47%, #ffe6ee 47% 100%);
    isolation: isolate;
}

.creator-corner-grid {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image:
        linear-gradient(rgba(36, 34, 56, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 34, 56, 0.055) 1px, transparent 1px);
    background-size: 32px 32px;
}

.creator-corner::before,
.creator-corner::after {
    position: absolute;
    z-index: -1;
    width: 260px;
    aspect-ratio: 1;
    border: 3px solid var(--ink);
    border-radius: 50%;
    content: "";
}

.creator-corner::before {
    top: -145px;
    left: -90px;
    background: var(--blue);
}

.creator-corner::after {
    right: -115px;
    bottom: -170px;
    background: var(--yellow);
}

.creator-corner-wrap {
    position: relative;
}

.creator-heading {
    display: flex;
    margin-bottom: 38px;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.creator-heading p,
.creator-heading h2,
.creator-heading small {
    margin: 0;
}

.creator-heading p {
    width: 100%;
    font-family: "Caveat", cursive;
    font-size: 23px;
    font-weight: 700;
}

.creator-heading p span {
    display: inline-grid;
    width: 43px;
    margin-right: 8px;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    font-family: monospace;
    font-size: 10px;
}

.creator-heading h2 {
    font-family: "Bowlby One", sans-serif;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 400;
    line-height: 0.95;
    text-transform: uppercase;
}

.creator-heading h2 em {
    color: var(--pink);
    font-style: normal;
    -webkit-text-stroke: 2px var(--ink);
    text-shadow: 4px 5px 0 var(--yellow);
}

.creator-heading > small {
    padding: 8px 12px;
    transform: rotate(-1deg);
    border: 2px solid var(--ink);
    background: white;
    box-shadow: 3px 3px 0 var(--ink);
    font-family: monospace;
    font-weight: 900;
    text-transform: uppercase;
}

.creator-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.55fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 54px);
}

.youtube-profile-card,
.youtube-video-card {
    position: relative;
    border: 3px solid var(--ink);
    background: var(--paper);
    box-shadow: 10px 11px 0 var(--ink);
}

.youtube-profile-card {
    display: flex;
    padding: 42px 30px 28px;
    align-items: flex-start;
    flex-direction: column;
    transform: rotate(-1deg);
    border-radius: 24px 9px 24px 9px;
}

.youtube-card-tape {
    position: absolute;
    top: -14px;
    left: 50%;
    width: 105px;
    height: 29px;
    transform: translateX(-50%) rotate(2deg);
    background: rgba(255, 217, 61, 0.83);
}

.youtube-avatar-wrap {
    position: relative;
    width: 124px;
    margin-bottom: 24px;
    aspect-ratio: 1;
}

.youtube-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--ink);
    border-radius: 28px;
    box-shadow: 6px 6px 0 var(--pink);
}

.youtube-avatar-wrap span {
    position: absolute;
    right: -13px;
    bottom: -10px;
    display: grid;
    width: 43px;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: #ff3158;
    box-shadow: 3px 3px 0 var(--ink);
    color: white;
    font-size: 15px;
}

.youtube-card-label {
    margin: 0 0 7px;
    color: #e52a4f;
    font-family: monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.youtube-profile-card h3 {
    margin: 0;
    font-family: "Bowlby One", sans-serif;
    font-size: clamp(25px, 2.8vw, 39px);
    font-weight: 400;
    line-height: 1;
}

.youtube-profile-card > strong {
    margin-top: 8px;
    color: var(--purple-dark);
    font-family: monospace;
    font-size: 13px;
}

.youtube-profile-card > p:not(.youtube-card-label) {
    margin: 20px 0 25px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.65;
}

.youtube-channel-link {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding: 13px 15px;
    align-items: center;
    justify-content: space-between;
    border: 2px solid var(--ink);
    border-radius: 11px;
    background: var(--pink);
    box-shadow: 4px 5px 0 var(--ink);
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.youtube-channel-link:not(.is-disabled):hover {
    transform: translateY(-3px);
    box-shadow: 6px 8px 0 var(--ink);
}

.youtube-channel-link.is-disabled {
    opacity: 0.65;
}

.youtube-profile-note {
    align-self: flex-end;
    margin-top: 20px;
    color: var(--purple-dark);
    font-family: "Caveat", cursive;
    font-size: 19px;
    font-weight: 700;
}

.youtube-video-card {
    align-self: center;
    overflow: hidden;
    transform: rotate(0.7deg);
    border-radius: 14px;
}

.youtube-window-bar {
    display: flex;
    height: 46px;
    padding: 0 16px;
    align-items: center;
    gap: 7px;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
}

.youtube-window-bar span {
    width: 11px;
    aspect-ratio: 1;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
}

.youtube-window-bar span:nth-child(1) { background: var(--pink); }
.youtube-window-bar span:nth-child(2) { background: var(--yellow); }
.youtube-window-bar span:nth-child(3) { background: var(--mint); }

.youtube-window-bar small {
    margin-left: auto;
    font-family: monospace;
    font-size: 9px;
    font-weight: 900;
}

.youtube-player {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    place-items: center;
    background: #251f46;
}

.youtube-player > img,
.youtube-player > iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    border: 0;
    object-fit: cover;
}

.youtube-player::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20, 17, 41, 0.48), transparent 58%);
    content: "";
    pointer-events: none;
}

.youtube-player.is-playing::after {
    display: none;
}

.youtube-player button {
    position: relative;
    z-index: 2;
    display: grid;
    min-width: 128px;
    padding: 16px 20px;
    place-items: center;
    gap: 7px;
    border: 3px solid white;
    border-radius: 17px;
    color: white;
    background: #ff3158;
    box-shadow: 6px 7px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.22s ease;
}

.youtube-player button:hover {
    transform: translateY(-4px) scale(1.03);
}

.youtube-player button span {
    font-size: 25px;
}

.youtube-player button strong {
    font-family: monospace;
    font-size: 11px;
}

.youtube-player-empty {
    align-content: center;
    color: white;
    text-align: center;
    gap: 9px;
}

.youtube-player-empty::after {
    display: none;
}

.youtube-player-empty > span {
    font-size: 42px;
}

.youtube-player-empty > strong {
    font-family: "Bowlby One", sans-serif;
    font-size: clamp(19px, 3vw, 28px);
    font-weight: 400;
}

.youtube-player-empty > small {
    opacity: 0.75;
}

.youtube-video-copy {
    display: grid;
    padding: 23px 25px 26px;
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    border-top: 2px solid var(--ink);
    background: var(--blue);
}

.youtube-video-copy small {
    font-family: monospace;
    font-size: 9px;
    font-weight: 900;
}

.youtube-video-copy h3 {
    margin: 5px 0 0;
    font-family: "Bowlby One", sans-serif;
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 400;
    line-height: 1;
}

.youtube-video-copy p {
    margin: 0;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.6;
}

.creator-doodle {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.creator-doodle-star {
    top: 45%;
    left: 3%;
    color: var(--purple);
    font-size: 42px;
}

.creator-doodle-play {
    right: 3%;
    bottom: 12%;
    transform: rotate(12deg);
    color: var(--pink);
    font-size: 33px;
}

@media (max-width: 900px) {
    .creator-corner {
        padding-block: 70px 80px;
    }

    .creator-layout {
        grid-template-columns: 1fr;
    }

    .youtube-profile-card {
        display: grid;
        grid-template-columns: 124px minmax(0, 1fr);
        align-items: center;
        gap: 0 25px;
    }

    .youtube-avatar-wrap {
        grid-row: 1 / 6;
        margin: 0;
    }

    .youtube-channel-link,
    .youtube-profile-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .creator-heading h2 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .creator-heading > small {
        display: none;
    }

    .youtube-profile-card {
        display: flex;
        padding-inline: 23px;
    }

    .youtube-avatar-wrap {
        width: 105px;
        margin-bottom: 22px;
    }

    .youtube-video-copy {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
