/* DreamStory page components */

.sponsor-page {
    display: grid;
    gap: 18px;
}

.sponsor-hero-card,
.sponsor-list-card {
    padding: clamp(22px, 4vw, 42px);
}

.sponsor-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.sponsor-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-size: 1.35rem;
    margin-top: 0;
    box-shadow: 0 12px 26px color-mix(in oklch, var(--primary) 26%, transparent);
}

.sponsor-title h1 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    line-height: 1.2;
}

.sponsor-title p {
    margin: 10px 0 0;
    color: var(--text-soft);
}

.sponsor-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    padding: 14px 16px;
    border: 1px solid color-mix(in oklch, var(--primary) 35%, transparent);
    border-radius: 12px;
    background: color-mix(in oklch, var(--primary) 8%, transparent);
    color: var(--text-soft);
}

.sponsor-note span {
    color: var(--primary);
    font-weight: 850;
}

.sponsor-note p {
    margin: 0;
}

.sponsor-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.sponsor-method {
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: color-mix(in oklch, var(--card-solid) 52%, transparent);
    text-align: center;
}

.sponsor-method h2 {
    margin: 0;
    font-size: 1.28rem;
}

.sponsor-method p {
    margin: 0;
    color: var(--text-soft);
}

.qr-box {
    width: 170px;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background: var(--card-solid);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.qr-box span,
.sponsor-muted,
.sponsor-empty {
    color: var(--text-soft);
}

.sponsor-link-card {
    min-height: 150px;
}

.sponsor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 18px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 850;
}

.sponsor-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sponsor-list-head h2 {
    margin: 0;
    font-size: 1.25rem;
}

.sponsor-list-head span {
    color: var(--primary);
}

.sponsor-list-head strong {
    color: var(--text-soft);
}

.sponsor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sponsor-person {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in oklch, var(--card-solid) 42%, transparent);
}

.sponsor-avatar {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 850;
}

.sponsor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsor-person strong {
    display: block;
}

.sponsor-person em {
    margin-left: 6px;
    color: var(--primary);
    font-style: normal;
}

.sponsor-person span {
    color: var(--text-soft);
    font-size: 0.86rem;
}


.bangumi-page {
    min-width: 0;
}

.bangumi-panel {
    padding: clamp(22px, 4vw, 42px);
    overflow: visible;
}

.bangumi-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.bangumi-title-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    border-radius: 11px;
    background: var(--primary);
    color: white;
    box-shadow: 0 12px 26px color-mix(in oklch, var(--primary) 26%, transparent);
    margin-top: 14px;
}

.bangumi-title-mark svg,
.bangumi-title-mark i {
    width: 22px;
    height: 22px;
    display: block;
}

.bangumi-head h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}

.bangumi-head p {
    margin: 0 0 8px;
}

.bangumi-head span {
    color: var(--muted);
    font-size: 0.9rem;
}

.bangumi-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 260px;
    text-align: center;
    color: var(--muted);
}

.bangumi-empty strong {
    color: var(--text);
    font-size: 1.25rem;
}

.bangumi-tabs {
    display: flex;
    gap: 34px;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bangumi-tabs::-webkit-scrollbar {
    display: none;
}

.bangumi-tabs button,
.bangumi-filters button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.bangumi-tabs button {
    position: relative;
    padding: 14px 4px 16px;
    background: transparent;
    color: var(--muted);
    font-weight: 750;
    white-space: nowrap;
}

.bangumi-tabs button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: var(--primary);
    opacity: 0;
}

.bangumi-tabs button.active {
    color: var(--primary);
}

.bangumi-tabs button.active::after {
    opacity: 1;
}

.bangumi-tabs span,
.bangumi-filters span {
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in oklch, var(--primary) 14%, transparent);
    color: var(--primary);
    font-size: 0.78em;
}


.bangumi-section {
    display: none;
}

.bangumi-section.active {
    display: block;
}

.bangumi-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.bangumi-filters button {
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 750;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bangumi-filters button:hover {
    transform: translateY(-1px);
}

.bangumi-filters button.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 22px color-mix(in oklch, var(--primary) 28%, transparent);
}

.bangumi-filters button.active span {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}

.bangumi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
    gap: 14px;
}

.bangumi-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;
    color: white;
    background: color-mix(in oklch, var(--primary) 10%, #222);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bangumi-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.18);
}

.bangumi-card.is-hidden,
.bangumi-card.paged-hidden {
    display: none;
}

.bangumi-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.bangumi-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.bangumi-card:hover img {
    transform: scale(1.06);
}


.gallery-page {
    display: grid;
    gap: 18px;
}

.gallery-shell,
.gallery-album-detail {
    padding: 22px;
}

.gallery-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.gallery-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-head-main {
    min-width: 0;
}

.gallery-title-icon {
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
}

.gallery-title-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-head h1,
.gallery-detail-copy h1 {
    margin: 0;
    font-size: 1.9rem;
    line-height: 1.15;
}

.gallery-head p,
.gallery-detail-copy p {
    margin: 8px 0 0 46px;
    color: var(--text-soft);
}

.gallery-detail-copy p {
    margin-left: 0;
    color: rgba(255, 255, 255, 0.82);
}

.gallery-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 800;
}

.gallery-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in oklch, var(--card-solid) 42%, transparent);
}

.gallery-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.gallery-filters button,
.gallery-password-row button {
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.gallery-filters button {
    padding: 7px 12px;
    border-radius: 9px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
}

.gallery-filters button.active {
    background: var(--primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-album-card {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    color: white;
    background: color-mix(in oklch, var(--primary) 10%, #222);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-album-card:hover {
    transform: translateY(-4px) scale(1.012);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.18);
}

.gallery-album-cover {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-album-cover img,
.gallery-detail-hero img,
.gallery-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-album-cover img {
    transition: transform 0.35s ease;
}

.gallery-album-card:hover img {
    transform: scale(1.06);
}

.gallery-photo-count,
.gallery-lock-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.52);
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.gallery-photo-count {
    right: 10px;
}

.gallery-lock-badge {
    left: 10px;
}

.gallery-card-copy {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 56%;
    padding: 12px 14px 13px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 52%, transparent);
}

.gallery-card-copy h2 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-card-copy p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    line-height: 1.2;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.gallery-tags span {
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 750;
}


.gallery-detail-hero {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 18px;
    background: color-mix(in oklch, var(--primary) 10%, #222);
}

.gallery-detail-hero img {
    position: absolute;
    inset: 0;
}

.gallery-detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.08));
}

.gallery-detail-copy {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    color: white;
}

.gallery-back-link {
    display: inline-flex;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.gallery-lock {
    display: grid;
    gap: 10px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px dashed color-mix(in oklch, var(--primary) 38%, transparent);
    border-radius: 14px;
    background: color-mix(in oklch, var(--primary) 9%, transparent);
}

.gallery-lock p {
    margin: 0;
    color: var(--text-soft);
}

.gallery-password-row {
    display: flex;
    gap: 8px;
}

.gallery-password-row input {
    min-width: 0;
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--text);
}

.gallery-password-row button {
    padding: 9px 14px;
    border-radius: 10px;
    background: var(--primary);
    color: white;
}

.gallery-masonry {
    columns: var(--gallery-column-width) auto;
    column-gap: 12px;
}

.gallery-masonry.is-locked {
    display: none;
}

.gallery-photo-card {
    display: block;
    break-inside: avoid;
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 12px;
    background: color-mix(in oklch, var(--primary) 10%, transparent);
}

.gallery-photo-card img {
    display: block;
    height: auto;
    transition: transform 0.25s ease;
}

.gallery-photo-card:hover img {
    transform: scale(1.025);
}

.gallery-empty {
    padding: 28px;
    border-radius: 14px;
    background: color-mix(in oklch, var(--primary) 8%, transparent);
    color: var(--text-soft);
    text-align: center;
}


.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox.open {
    display: grid;
}

.gallery-lightbox img {
    max-width: min(100%, 1180px);
    max-height: 86vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox button {
    position: fixed;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: white;
    cursor: pointer;
    font: inherit;
    font-size: 1.8rem;
}

.gallery-lightbox-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
}

.gallery-lightbox-prev {
    left: 18px;
}

.gallery-lightbox-next {
    right: 18px;
}

.bangumi-no-cover {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 900;
}

.bangumi-status,
.bangumi-score {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.bangumi-status {
    left: 10px;
    background: #3b82f6;
}

.status-collect {
    background: #18c77b;
}

.status-doing {
    background: #f5ad00;
}

.status-on_hold {
    background: #f97316;
}

.status-dropped {
    background: #ef4444;
}

.bangumi-score {
    right: 10px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}

.bangumi-card-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16) 56%, transparent);
}

.bangumi-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    gap: 5px;
    padding: 14px;
}

.bangumi-info strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.98rem;
    line-height: 1.28;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.bangumi-info em,
.bangumi-info small {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
    font-size: 0.78rem;
}

.bangumi-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bangumi-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.bangumi-tag-row b {
    padding: 3px 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 700;
}

.bangumi-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.bangumi-pagination[hidden] {
    display: none;
}

.bangumi-pagination button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 12px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
    cursor: pointer;
    font-size: 1.35rem;
    font-weight: 800;
}

.bangumi-pagination button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.bangumi-pagination span {
    color: var(--muted);
    font-weight: 750;
}


.about-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 46px);
}

.about-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 14% 12%, color-mix(in oklch, var(--primary) 13%, transparent), transparent 18rem),
        radial-gradient(circle at 88% 28%, rgba(255, 120, 180, 0.12), transparent 20rem);
}

.about-shell > * {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    margin: 0 0 18px;
    color: var(--text);
    font-size: clamp(2rem, 4.8vw, 3rem);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.about-hero h1 span {
    background: linear-gradient(transparent 58%, color-mix(in oklch, var(--primary) 22%, transparent) 58%);
}

.about-hero p,
.about-section p,
.about-content,
.about-footer {
    color: var(--text-soft);
    line-height: 1.9;
}

.about-section {
    margin-top: 34px;
}

.about-section h2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--text);
    font-size: clamp(1.28rem, 2vw, 1.72rem);
    line-height: 1.25;
    font-weight: 900;
}

.about-section h2 span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
}

.about-links {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.about-links a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    color: var(--primary);
    font-weight: 800;
}

.about-links span {
    color: var(--text);
}

.about-links em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px dashed color-mix(in oklch, var(--primary) 42%, transparent);
    color: var(--primary);
    font-style: normal;
    white-space: nowrap;
}

.about-repos {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.about-repo-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in oklch, var(--card-solid) 45%, transparent);
    backdrop-filter: blur(16px);
    color: var(--text);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.about-repo-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in oklch, var(--primary) 30%, var(--line));
    background: color-mix(in oklch, var(--primary) 8%, var(--card-bg));
}

.about-repo-icon {
    display: grid;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
}

.about-repo-icon svg {
    width: 23px;
    height: 23px;
}

.about-repo-body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.about-repo-body strong,
.about-repo-body em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-repo-body strong {
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.3;
}

.about-repo-body em {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-style: normal;
    line-height: 1.45;
}

.about-repo-arrow {
    color: var(--text-soft);
}

.about-repo-arrow,
.about-repo-arrow svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 520px) {
    .about-repo-card {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 12px;
    }

    .about-repo-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .about-repo-arrow {
        display: none;
    }
}

.article-content .about-repo-card {
    color: var(--text);
}

.about-content {
    margin-top: 28px;
}

.about-content:empty {
    display: none;
}


.about-pdf-reader {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.about-pdf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed color-mix(in oklch, var(--primary) 28%, transparent);
}

.about-pdf-head h2 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.3;
}

.about-pdf-head h2 svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.about-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.about-pdf-actions a,
.about-pdf-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid color-mix(in oklch, var(--primary) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in oklch, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.about-pdf-actions button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.about-pdf-actions button.active {
    border-color: color-mix(in oklch, var(--primary) 44%, transparent);
    background: var(--primary);
    color: white;
}

.about-pdf-actions span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.about-pdf-frame {
    position: relative;
    display: grid;
    place-items: start center;
    overflow: auto;
    min-height: 720px;
    max-height: 86vh;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in oklch, var(--card-solid) 72%, transparent);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.about-pdf-frame canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.about-pdf-pages {
    display: none;
    width: 100%;
}

.about-pdf-frame.is-continuous {
    place-items: start stretch;
}

.about-pdf-frame.is-continuous > canvas {
    display: none;
}

.about-pdf-frame.is-continuous .about-pdf-pages {
    display: grid;
    gap: 18px;
    justify-items: center;
}

.about-pdf-page {
    display: grid;
    gap: 8px;
    justify-items: center;
    width: 100%;
}

.about-pdf-page-label {
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.about-portfolio-gallery {
    display: grid;
    gap: 14px;
    margin-top: 26px;
}

.about-portfolio-pages {
    display: grid;
    gap: 22px;
    max-height: min(78vh, 760px);
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in oklch, var(--card-solid) 58%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
    overscroll-behavior: contain;
    scroll-behavior: smooth;
}

.about-portfolio-pages::-webkit-scrollbar {
    width: 10px;
}

.about-portfolio-pages::-webkit-scrollbar-track {
    background: color-mix(in oklch, var(--text-soft) 10%, transparent);
    border-radius: 999px;
}

.about-portfolio-pages::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: color-mix(in oklch, var(--primary) 46%, transparent);
    background-clip: padding-box;
}

.about-portfolio-page {
    display: grid;
    gap: 10px;
    justify-items: center;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in oklch, var(--card-solid) 72%, transparent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.about-portfolio-page img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
}

.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 12, 16, 0.78);
    backdrop-filter: blur(10px);
}

.portfolio-lightbox img {
    max-width: min(100%, 1200px);
    max-height: 92vh;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.portfolio-lightbox button {
    position: fixed;
    top: 20px;
    right: 20px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    font-size: 1.3rem;
    cursor: pointer;
}

.about-pdf-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 12px;
    border: 1px solid color-mix(in oklch, var(--primary) 16%, transparent);
    border-radius: 10px;
    margin: 0;
    background: color-mix(in oklch, var(--card-solid) 86%, transparent);
    color: var(--text-soft);
    font-size: 0.86rem;
    text-align: center;
    pointer-events: none;
}

.about-pdf-status.is-hidden {
    display: none;
}

@media (max-width: 720px) {
    .about-pdf-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .about-pdf-actions {
        justify-content: flex-start;
    }

    .about-pdf-frame {
        min-height: 560px;
    }

    .about-portfolio-pages {
        max-height: 72vh;
        padding: 10px;
    }

    .about-portfolio-page {
        padding: 10px;
    }
}

.about-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
    font-style: italic;
}


.timeline-page {
    display: grid;
    gap: 16px;
}

.timeline-cover {
    position: relative;
    min-height: 126px;
    height: auto;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    color: white;
}

.timeline-cover-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(17, 20, 30, 0.76) 0 42%, rgba(17, 20, 30, 0.48) 72%, rgba(17, 20, 30, 0.68)),
        radial-gradient(circle at 90% 0, color-mix(in oklch, var(--primary) 28%, transparent), transparent 18rem);
    backdrop-filter: blur(4px);
}

.timeline-cover-main {
    position: relative;
    z-index: 1;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 8px;
}

.timeline-cover h1 {
    margin: 0;
    font-size: clamp(1.45rem, 2.2vw, 2.15rem);
    line-height: 1.1;
    color: white;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.timeline-cover p {
    max-width: 620px;
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.78);
    opacity: 1;
    font-size: 0.92rem;
}

.timeline-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.timeline-socials a,
.timeline-tags span {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.timeline-socials a {
    padding: 7px 13px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-weight: 800;
}

.timeline-stats {
    position: relative;
    width: fit-content;
    max-width: calc(100% - 48px);
    margin: 0 24px 18px;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
}

.timeline-stats span {
    display: grid;
    place-items: center;
    grid-template-columns: auto auto;
    gap: 6px;
    min-width: 78px;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.timeline-stats strong {
    font-size: 0.98rem;
    line-height: 1;
    color: white;
}

.timeline-stats em {
    font-style: normal;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.68);
    opacity: 1;
}

.timeline-stream {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 2px 0 2px 74px;
}


.timeline-compose {
    padding: 18px;
}

.timeline-compose-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.timeline-compose-head strong {
    position: relative;
    padding-left: 14px;
    font-size: 1.05rem;
}

.timeline-compose-head strong::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 4px;
    height: 0.9em;
    border-radius: 999px;
    background: var(--primary);
}

.timeline-compose-head span,
.timeline-compose-actions span,
.timeline-compose-login span {
    color: var(--text-soft);
}

.timeline-compose-form {
    display: grid;
    gap: 12px;
}

.timeline-compose textarea {
    width: 100%;
    resize: vertical;
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in oklch, var(--card-solid) 70%, transparent);
    color: var(--text);
    padding: 12px 14px;
    outline: none;
    font: inherit;
}

.timeline-compose textarea:focus {
    border-color: color-mix(in oklch, var(--primary) 55%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 12%, transparent);
}

.timeline-compose-image {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.timeline-compose-image textarea {
    width: 100%;
    min-height: 58px;
    resize: vertical;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: color-mix(in oklch, var(--card-solid) 70%, transparent);
    color: var(--text);
    font: inherit;
}

.timeline-compose-image textarea:focus {
    border-color: color-mix(in oklch, var(--primary) 55%, var(--line));
    box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 12%, transparent);
}

.timeline-compose-image label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 13px;
    border-radius: 12px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.timeline-compose-image input[type="file"] {
    display: none;
}

.timeline-image-clear {
    min-height: 40px;
    padding: 9px 13px;
    border: 0;
    border-radius: 12px;
    background: color-mix(in oklch, var(--text-soft) 12%, transparent);
    color: var(--text-soft);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.timeline-image-status {
    grid-column: 1 / -1;
    color: var(--text-soft);
    font-size: 0.9rem;
}

.timeline-image-status.has-file {
    color: var(--primary);
    font-weight: 800;
}

.timeline-compose-actions,
.timeline-compose-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.timeline-compose .submit,
.timeline-compose .primary-link {
    border-radius: 12px;
}

.timeline-stream::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(to bottom, transparent, color-mix(in oklch, var(--primary) 46%, transparent), transparent);
}


.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.timeline-node {
    position: absolute;
    left: -66px;
    top: 16px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 4px solid var(--page-bg);
    border-radius: 50%;
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 28px color-mix(in oklch, var(--primary) 22%, transparent);
    overflow: hidden;
    font-weight: 900;
}

.timeline-node img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-card {
    position: relative;
    padding: 18px;
}

.timeline-card::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 28px;
    width: 16px;
    height: 16px;
    transform: rotate(45deg);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--card-bg);
    backdrop-filter: blur(18px);
}

.timeline-card header,
.timeline-card footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.timeline-card header strong {
    font-size: 1.02rem;
}

.timeline-card time,
.timeline-card footer {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.timeline-text {
    margin-top: 12px;
    color: var(--text);
    line-height: 1.9;
}

.timeline-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 14px;
    max-width: 520px;
}

.timeline-image-grid.image-count-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

.timeline-image-grid.image-count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.timeline-image-grid.image-count-1 .timeline-image {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
}

.timeline-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.timeline-tags span {
    padding: 5px 10px;
    border-color: color-mix(in oklch, var(--primary) 18%, transparent);
    background: color-mix(in oklch, var(--primary) 10%, transparent);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.timeline-card footer {
    justify-content: flex-start;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.timeline-empty {
    padding: 24px;
    text-align: center;
}

@media (max-width: 1400px) {
    .sponsor-methods,
    .sponsor-list {
        grid-template-columns: 1fr;
    }

    .timeline-cover-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .timeline-socials {
        justify-content: flex-start;
    }

    .timeline-compose-actions,
    .timeline-compose-login,
    .timeline-compose-image {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .timeline-cover-main {
        height: auto;
        min-height: 0;
        padding: 18px 18px 12px;
    }

    .timeline-stats {
        max-width: calc(100% - 36px);
        margin: 0 18px 16px;
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline-stream {
        padding-left: 52px;
    }

    .timeline-stream::before {
        left: 20px;
    }

    .timeline-node {
        left: -48px;
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    .timeline-card {
        padding: 16px;
    }
}

.timeline-empty p {
    margin: 6px 0 0;
    color: var(--text-soft);
}
