@import url('/_assets/static.tildacdn.com/css/fonts-tildasans.css');

:root {
    --ink: #2b1c36;
    --violet: #7c2db8;
    --violet-deep: #4e176f;
    --lilac: #ead8ff;
    --aqua: #7edfd3;
    --peach: #ffcfb8;
    --paper: #fffaf5;
    --line: rgba(78, 23, 111, 0.16);
    --shadow: 0 24px 70px rgba(70, 34, 87, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgba(126, 223, 211, 0.22), transparent 25rem),
        radial-gradient(circle at 88% 20%, rgba(255, 207, 184, 0.42), transparent 28rem),
        var(--paper);
    font-family: 'TildaSans', 'Trebuchet MS', sans-serif;
    line-height: 1.68;
}

a {
    color: inherit;
}

.planet-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 14px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 250, 245, 0.9);
    backdrop-filter: blur(18px);
}

.planet-brand {
    text-decoration: none;
    letter-spacing: 0.12em;
    font-size: 15px;
}

.planet-brand strong {
    color: var(--violet);
}

.planet-header nav {
    display: flex;
    gap: 24px;
}

.planet-header nav a {
    position: relative;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
}

.planet-header nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 2px;
    background: var(--violet);
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.planet-header nav a:hover::after,
.planet-header nav a:focus-visible::after {
    transform: scaleX(1);
}

.episode-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(34px, 6vw, 90px);
    align-items: center;
    min-height: 660px;
    padding: clamp(64px, 9vw, 130px) clamp(24px, 7vw, 110px);
    overflow: hidden;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.94), rgba(246, 233, 255, 0.86)),
        repeating-linear-gradient(135deg, transparent 0 28px, rgba(124, 45, 184, 0.04) 28px 29px);
}

.episode-hero::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--violet), var(--aqua), var(--peach), var(--violet));
}

.hero-glow {
    position: absolute;
    z-index: -1;
    width: 380px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.62;
    animation: float-glow 8s ease-in-out infinite alternate;
}

.hero-glow-one {
    top: -160px;
    left: -90px;
    background: rgba(126, 223, 211, 0.45);
}

.hero-glow-two {
    right: -130px;
    bottom: -170px;
    background: rgba(255, 181, 207, 0.5);
    animation-delay: -3s;
}

@keyframes float-glow {
    to {
        transform: translate3d(28px, 22px, 0) scale(1.08);
    }
}

.episode-hero-copy {
    max-width: 820px;
}

.episode-kicker {
    margin: 0 0 18px;
    color: var(--violet-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.19em;
}

.episode-hero h1 {
    margin: 0;
    color: var(--violet);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(44px, 7vw, 92px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.episode-summary {
    max-width: 720px;
    margin: 28px 0 0;
    color: #5b4367;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.5;
}

.episode-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.episode-tags span {
    padding: 9px 15px;
    border: 1px solid rgba(124, 45, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.episode-cover {
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
    transform: rotate(1.2deg);
}

.episode-cover::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 22px -22px -22px 22px;
    border: 1px solid rgba(124, 45, 184, 0.24);
    border-radius: 36px;
}

.episode-cover img,
.episode-cover-placeholder {
    display: block;
    width: 100%;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.episode-cover img {
    aspect-ratio: 1.35;
    object-fit: cover;
}

.episode-cover-placeholder {
    display: grid;
    place-content: center;
    aspect-ratio: 1.35;
    color: white;
    background: linear-gradient(145deg, var(--violet-deep), var(--violet) 52%, #d566b5);
    text-align: center;
}

.episode-cover-placeholder span {
    font-size: 14px;
    letter-spacing: 0.25em;
}

.episode-cover-placeholder strong {
    margin-top: 8px;
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
}

.episode-content-shell {
    width: min(100% - 36px, 1040px);
    margin: 0 auto;
    padding: 72px 0 96px;
}

.media-section {
    margin: 0 0 64px;
}

.media-section h2,
.story h2,
.author-card h2 {
    color: var(--violet-deep);
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
}

.media-section h2 {
    margin: 0 0 18px;
    font-size: 20px;
    letter-spacing: 0.08em;
}

.video-frame {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    border-radius: 30px;
    background: #1d1124;
    box-shadow: var(--shadow);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

audio {
    width: 100%;
}

.story {
    position: relative;
    padding: clamp(28px, 6vw, 78px);
    border: 1px solid var(--line);
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 20px 60px rgba(78, 23, 111, 0.09);
}

.story::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 28%;
    height: 5px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(90deg, var(--violet), var(--aqua));
}

.story p {
    margin: 0 0 1.25em;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.78;
}

.story h2 {
    margin: 2.2em 0 0.8em;
    font-size: clamp(28px, 4vw, 43px);
    line-height: 1.12;
    text-align: center;
}

.story h2:first-child {
    margin-top: 0;
}

.dialogue {
    padding: 18px 22px;
    border-radius: 18px;
}

.dialogue-semirik {
    border-left: 5px solid var(--violet);
    color: var(--violet-deep);
    background: rgba(234, 216, 255, 0.46);
}

.dialogue-other {
    border-left: 5px solid #2b9588;
    color: #164f4a;
    background: rgba(126, 223, 211, 0.18);
}

.story-note {
    margin: 30px 0;
    padding: 24px 28px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(255, 207, 184, 0.48), rgba(255, 255, 255, 0.8));
    font-size: 18px;
}

.story-image {
    margin: 44px 0;
}

.story-image img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(50, 28, 63, 0.16);
}

.story-image figcaption {
    margin-top: 12px;
    color: #6c5b73;
    font-size: 14px;
    text-align: center;
}

.author-card {
    margin-top: 56px;
    padding: 34px;
    border-radius: 30px;
    background: linear-gradient(130deg, var(--violet-deep), #8839ae 58%, #b853a0);
    color: white;
}

.author-card .episode-kicker,
.author-card h2 {
    color: white;
}

.author-card h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
}

.author-card p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.episode-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 34px;
}

.episode-nav-link {
    display: flex;
    flex-direction: column;
    min-height: 112px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.episode-nav-link:hover,
.episode-nav-link:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(78, 23, 111, 0.12);
}

.episode-nav-link small {
    color: var(--violet);
    letter-spacing: 0.12em;
}

.episode-nav-link strong {
    margin-top: 8px;
    font-family: Georgia, serif;
    font-size: 22px;
}

.episode-nav-next {
    text-align: right;
}

.planet-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 34px clamp(20px, 5vw, 72px);
    color: rgba(255, 255, 255, 0.82);
    background: var(--ink);
}

.planet-footer a {
    text-decoration: none;
    letter-spacing: 0.09em;
    font-size: 13px;
}

@media (max-width: 780px) {
    .planet-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .planet-header nav {
        gap: 18px;
    }

    .episode-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 62px;
    }

    .episode-cover {
        width: min(90%, 440px);
    }

    .episode-content-shell {
        width: min(100% - 24px, 1040px);
        padding-top: 48px;
    }

    .story {
        border-radius: 28px;
    }

    .episode-navigation {
        grid-template-columns: 1fr;
    }

    .episode-nav-next {
        text-align: left;
    }

    .planet-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
