:root {
    --accent: #71b9c9;
    --brand-teal: #4f9aae;
    --ink: #263841;
    --muted: rgba(38, 56, 65, 0.68);
    --paper: #f7fbfa;
    --veil: rgba(255, 255, 255, 0.7);
    --frame: rgba(255, 255, 255, 0.64);
    --deep: #1f3038;
    --shadow-soft: rgba(79, 154, 174, 0.2);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft JhengHei", "Noto Sans TC", "PingFang TC", Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.creator-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    isolation: isolate;
}

.background-art {
    position: fixed;
    inset: 0;
    z-index: -4;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 22% 24%, rgba(101, 169, 184, 0.52), transparent 31vw),
        radial-gradient(circle at 78% 16%, rgba(206, 231, 235, 0.66), transparent 34vw),
        radial-gradient(circle at 64% 82%, rgba(164, 217, 225, 0.35), transparent 30vw),
        linear-gradient(125deg, rgba(238, 246, 246, 0.86), rgba(255, 255, 255, 0.78) 48%, rgba(219, 238, 241, 0.54)),
        #e7f1f1;
}

.background-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.36), transparent 46%, rgba(255, 255, 255, 0.26));
    opacity: 0.78;
}

.background-art::after {
    content: "";
    position: absolute;
    inset: 8vh 7vw;
    border: 1px solid var(--frame);
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.safe-frame {
    position: absolute;
    inset: 16vh 16vw;
    border: 1px dashed rgba(24, 32, 35, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.white-veil {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.58) 52%, rgba(255, 255, 255, 0.24)),
        var(--veil);
    backdrop-filter: blur(1.4px) saturate(0.82);
}

.background-word {
    position: fixed;
    inset: 0;
    z-index: -2;
    display: grid;
    place-items: center;
    pointer-events: none;
    color: rgba(64, 117, 128, 0.09);
    font-size: clamp(6rem, 20vw, 18rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-shadow: 0 18px 48px rgba(255, 255, 255, 0.36);
    transform: translateY(4vh);
}

.bottom-fade {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: 38vh;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(66, 126, 137, 0.13));
}

.creator-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
    align-items: center;
    width: min(1280px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 76px) 0;
}

.hero-figure {
    --shadow-x: 0px;
    --shadow-y: 0px;
    position: relative;
    align-self: end;
    display: grid;
    justify-items: center;
    min-height: min(78vh, 760px);
}

.figure-image {
    position: relative;
    grid-area: 1 / 1;
    align-self: end;
    width: min(34vw, 470px);
    min-width: 310px;
    max-height: min(82vh, 760px);
    object-fit: contain;
    object-position: center bottom;
}

.figure-image-shadow {
    z-index: 0;
    opacity: 0.56;
    transform: translate(var(--shadow-x), var(--shadow-y));
    transition: transform 160ms ease-out;
    will-change: transform;
}

.figure-image-main {
    z-index: 1;
    filter: drop-shadow(0 28px 46px var(--shadow-soft));
}

.hero-profile {
    position: relative;
    display: grid;
    align-content: center;
    min-height: min(76vh, 680px);
    padding: clamp(24px, 4vw, 56px) 0 0;
}

h1 {
    margin: 0 0 clamp(1.6rem, 3vw, 2.4rem);
    color: var(--brand-teal);
    font-size: clamp(3rem, 5vw, 5.7rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
}

.profile-copy {
    max-width: 48rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.1rem, 1.7vw, 1.55rem);
    font-weight: 800;
    line-height: 1.72;
    text-wrap: pretty;
}

.social-links {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: clamp(1.25rem, 2vw, 2rem);
    margin-top: clamp(1.6rem, 3vw, 2.6rem);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms ease, filter 160ms ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 10px 18px rgba(34, 36, 42, 0.18));
}

.social-links a:focus-visible {
    outline: 2px solid rgba(79, 154, 174, 0.5);
    outline-offset: 8px;
}

.social-links img {
    display: block;
    width: auto;
    height: 34px;
    max-width: 58px;
    object-fit: contain;
}

.social-links .social-logo-youtube {
    height: 34px;
    max-width: 58px;
    transform: scale(1.28);
    transform-origin: center;
}

.creator-news {
    position: relative;
    z-index: 1;
    min-height: 86vh;
    margin: 0;
    overflow: hidden;
    padding: clamp(58px, 8vw, 110px) max(24px, calc((100vw - 1500px) / 2)) clamp(76px, 9vw, 130px);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.76), transparent 28vw),
        radial-gradient(circle at 82% 78%, rgba(127, 201, 215, 0.18), transparent 30vw),
        linear-gradient(180deg, rgba(235, 250, 252, 0.92), rgba(205, 243, 248, 0.76));
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(2rem, 5vw, 4.25rem);
}

.section-title {
    display: inline-flex;
    align-items: baseline;
    gap: 1.1rem;
    margin: 0;
    color: rgba(38, 56, 65, 0.82);
    letter-spacing: 0;
    line-height: 1.05;
}

.section-title-main {
    color: #234550;
    font-size: 5.2rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.92;
}

.section-title-sub {
    color: rgba(35, 69, 80, 0.78);
    font-size: 1.28rem;
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.news-carousel-shell {
    position: relative;
}

.carousel-controls {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.carousel-button {
    position: absolute;
    top: clamp(79px, 7.6vw, 121px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 14px 34px rgba(38, 56, 65, 0.1);
    font: inherit;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(-50%);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.carousel-button-prev {
    left: 0;
}

.carousel-button-next {
    right: 0;
}

.carousel-button:hover {
    transform: translateY(calc(-50% - 3px));
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 38px rgba(38, 56, 65, 0.14);
}

.carousel-button:focus-visible {
    outline: 2px solid rgba(79, 154, 174, 0.5);
    outline-offset: 5px;
}

.news-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(280px, 27vw, 430px);
    gap: clamp(1.25rem, 2vw, 2rem);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 2px 22px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    cursor: default;
    touch-action: pan-y;
    user-select: none;
    scrollbar-width: none;
}

.news-carousel::-webkit-scrollbar {
    display: none;
}

.news-carousel.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.news-carousel.is-dragging .news-card {
    pointer-events: none;
}

.news-card {
    display: grid;
    gap: 1rem;
    scroll-snap-align: start;
    color: var(--deep);
    cursor: pointer;
    -webkit-user-drag: none;
    transition: transform 160ms ease, filter 160ms ease;
}

.news-card * {
    -webkit-user-drag: none;
}

.news-card:hover {
    transform: translateY(-6px);
    filter: drop-shadow(0 18px 34px rgba(38, 56, 65, 0.12));
}

.news-card:focus-visible {
    outline: 3px solid rgba(79, 154, 174, 0.48);
    outline-offset: 8px;
}

.news-cover {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 18px 34px rgba(38, 56, 65, 0.1);
}

.news-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
}

.news-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.34;
}

.news-platform-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    object-fit: contain;
}

.news-platform-logo-youtube {
    height: clamp(58px, 7vw, 104px);
}

.news-platform-logo-twitch {
    height: clamp(72px, 8vw, 124px);
}

.news-cover span {
    position: relative;
    z-index: 1;
    color: rgba(58, 67, 74, 0.72);
    font-size: 2.85rem;
    font-weight: 900;
    letter-spacing: 0;
}

.news-card h3 {
    margin: 0;
    color: rgba(31, 48, 56, 0.9);
    font-size: clamp(1.05rem, 1.45vw, 1.45rem);
    font-weight: 900;
    letter-spacing: 0.03em;
    line-height: 1.38;
    text-align: center;
}

.site-footer {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: clamp(48px, 6vw, 84px) max(24px, calc((100vw - 1280px) / 2));
    color: #244650;
    background:
        radial-gradient(circle at 16% 0%, rgba(255, 255, 255, 0.92), transparent 25vw),
        radial-gradient(circle at 92% 28%, rgba(113, 185, 201, 0.13), transparent 24vw),
        linear-gradient(180deg, rgba(249, 253, 253, 0.98), rgba(231, 242, 244, 0.96));
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.footer-brand-block {
    display: grid;
    align-items: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem clamp(1rem, 2.8vw, 2.25rem);
}

.footer-nav span {
    position: relative;
    color: rgba(36, 70, 80, 0.74);
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    font-weight: 900;
    letter-spacing: 0.02em;
}

.footer-info {
    display: grid;
    gap: 0.85rem;
    padding-left: clamp(1.5rem, 4vw, 3rem);
    border-left: 1px solid rgba(36, 70, 80, 0.16);
    color: rgba(36, 70, 80, 0.74);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    font-weight: 800;
    line-height: 1.55;
}

.footer-info p {
    margin: 0;
}

.footer-maintainer {
    color: #244650;
    font-size: clamp(1.12rem, 1.55vw, 1.32rem);
}

.footer-copyright {
    margin-top: 0.6rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(36, 70, 80, 0.14);
}

@media (max-width: 980px) {
    .background-art::after {
        inset: 10vh 5vw;
    }

    .safe-frame {
        inset: 18vh 10vw;
    }

    .background-word {
        writing-mode: vertical-rl;
        font-size: clamp(5rem, 24vw, 9rem);
    }

    .creator-hero {
        grid-template-columns: 1fr;
        align-items: start;
        width: min(100% - 32px, 1280px);
        min-height: 100svh;
        padding: 28px 0 34px;
    }

    .hero-figure {
        order: 1;
        min-height: 48vh;
    }

    .hero-profile {
        order: 2;
        min-height: auto;
        padding-top: 8px;
    }

    .figure-image {
        width: min(58vw, 370px);
        min-width: 230px;
        max-height: 50vh;
    }

    .social-links {
        margin-top: 2rem;
        justify-self: start;
        justify-content: flex-start;
    }

    .creator-news {
        min-height: auto;
        padding: 66px 16px 88px;
    }

    .section-heading {
        justify-content: center;
        margin-bottom: 2.25rem;
    }

    .section-title-main {
        font-size: 4.1rem;
    }

    .section-title-sub {
        font-size: 1.08rem;
    }

    .carousel-button {
        top: min(21.95vw, 110px);
    }

    .news-carousel {
        grid-auto-columns: min(78vw, 390px);
    }

    .site-footer {
        padding: 50px 24px 58px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-info {
        padding-top: 1.6rem;
        padding-left: 0;
        border-top: 1px solid rgba(36, 65, 74, 0.16);
        border-left: 0;
    }
}

@media (max-width: 560px) {
    .creator-hero {
        width: min(100% - 28px, 1280px);
        padding: 22px 0 28px;
    }

    .hero-figure {
        min-height: 43vh;
    }

    .figure-image {
        width: min(72vw, 320px);
        max-height: 44vh;
    }

    h1 {
        font-size: clamp(2.75rem, 13vw, 4rem);
    }

    .profile-copy {
        font-size: 1rem;
        line-height: 1.78;
    }

    .social-links {
        gap: 1.05rem;
    }

    .social-links img {
        height: 30px;
        max-width: 52px;
    }

    .social-links .social-logo-youtube {
        height: 30px;
        max-width: 52px;
        transform: scale(1.25);
    }

    .section-heading {
        align-items: center;
    }

    .section-title {
        display: grid;
        gap: 0.35rem;
        justify-items: center;
        text-align: center;
    }

    .section-title-main {
        font-size: 3.25rem;
    }

    .section-title-sub {
        font-size: 1rem;
    }

    .carousel-button {
        top: min(23.625vw, 93px);
        width: 40px;
        height: 40px;
    }

    .news-carousel {
        grid-auto-columns: min(84vw, 330px);
        gap: 1rem;
    }

    .news-platform-logo-youtube {
        height: 54px;
    }

    .news-platform-logo-twitch {
        height: 66px;
    }

    .site-footer {
        padding: 42px 18px 48px;
    }

    .footer-nav {
        gap: 0.8rem 1.1rem;
    }
}
