/* Detail page widths */
.page-event-detail .container,
.page-talent-detail .container {
    width: min(1300px, calc(100vw - 96px));
}

@media (min-width: 1680px) {
    .page-event-detail .container,
    .page-talent-detail .container {
        width: min(1360px, calc(100vw - 104px));
    }
}

@media (max-width: 900px) {
    .page-event-detail .container,
    .page-talent-detail .container {
        width: min(100%, calc(100vw - 24px));
    }
}

/* Extracted from main.css: detail pages and related responsive rules */

.talent-detail-hero,
.detail-hero {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.18fr);
    gap: 24px;
    align-items: stretch;
}

.talent-figure-card,
.talent-profile-card,
.talent-info-card,
.detail-visual-card,
.detail-panel,
.detail-summary-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.talent-figure-card,
.detail-visual-card {
    padding: 18px;
    align-self: start;
}

.page-talent-detail .talent-figure-card {
    display: block;
}

.page-talent-detail .talent-figure-stage-wrap {
    position: relative;
    min-width: 0;
}

.talent-figure-stage,
.detail-visual-stage {
    aspect-ratio: 3 / 4;
    min-height: 520px;
    max-height: 720px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.talent-figure-stage img,
.detail-visual-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    max-width: 88%;
    max-height: 92%;
    margin: 0 auto;
}

.page-talent-detail .talent-figure-nav {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-talent-detail .talent-figure-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 30px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(54, 81, 111, 0.46);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: none;
    transition: color 0.18s ease, transform 0.18s ease, opacity 0.18s ease;
    transform: translateY(-50%);
    opacity: 0;
}

.page-talent-detail .talent-figure-arrow::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    margin: 0 auto;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 1px;
}

.page-talent-detail .talent-figure-arrow-prev {
    left: 16px;
}

.page-talent-detail .talent-figure-arrow-prev::before {
    transform: rotate(45deg);
}

.page-talent-detail .talent-figure-arrow-next {
    right: 16px;
}

.page-talent-detail .talent-figure-arrow-next::before {
    transform: rotate(225deg);
}

.page-talent-detail .talent-figure-arrow:hover:not(:disabled) {
    color: rgba(54, 81, 111, 0.68);
    transform: translateY(calc(-50% - 1px));
}

.page-talent-detail .talent-figure-stage-wrap:hover .talent-figure-arrow,
.page-talent-detail .talent-figure-stage-wrap:focus-within .talent-figure-arrow {
    opacity: 1;
}

.page-talent-detail .talent-figure-arrow:disabled {
    opacity: 0.18;
    cursor: default;
    transform: translateY(-50%);
}

@media (hover: none) {
    .page-talent-detail .talent-figure-arrow {
        opacity: 1;
    }
}

.page-talent-detail .talent-figure-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 7px;
    pointer-events: auto;
    transform: translateX(-50%);
}

.page-talent-detail .talent-figure-dot {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    font-size: 0;
    line-height: 0;
    color: transparent;
    box-shadow: 0 0 0 1px rgba(74, 142, 199, 0.28);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease;
}

.page-talent-detail .talent-figure-dot.is-active {
    background: #4a8ec7;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.92);
    transform: scale(1.15);
}

.detail-cover-stage {
    aspect-ratio: 16 / 9;
    min-height: 360px;
    max-height: 460px;
}

.detail-cover-stage img {
    object-fit: contain;
    object-position: center;
    background: #f8fafc;
    max-width: 100%;
    max-height: 100%;
}

.event-title-block {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.event-owner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dbe3f0;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.event-owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-owner-name {
    margin-bottom: 4px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.event-title-copy h1 {
    margin: 0;
}

.talent-side-panel,
.detail-panel {
    display: grid;
    gap: 18px;
}

.talent-profile-card,
.talent-info-card,
.detail-summary-card,
.metric-card,
.info-stack {
    padding: 28px;
}

.talent-profile-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.talent-mini-avatar {
    width: 72px;
    height: 72px;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    border: 1px solid #dbe3f0;
    margin: 58px 0 0;
    align-self: start;
}

.talent-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.talent-tags,
.detail-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    min-height: 40px;
}

.talent-tags .status-badge,
.talent-tags .group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 0;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
}

.talent-profile-card h1,
.detail-summary-card h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.page-talent-detail .talent-name-heading {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-talent-detail .talent-gender-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    flex: 0 0 30px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(2px);
}

.page-talent-detail .talent-gender-badge.is-male {
    color: #2f6fb3;
    background: #e8f3ff;
    border-color: #c8def8;
}

.page-talent-detail .talent-gender-badge.is-female {
    color: #c2557c;
    background: #ffeaf3;
    border-color: #f7cddd;
}

.page-talent-detail .talent-gender-badge.is-neutral {
    color: #6b57a8;
    background: #f1ecff;
    border-color: #ddd2ff;
}

.talent-subtitle,
.detail-description.lead {
    margin: 10px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}
.info-card-title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
}

.key-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.metric-card {
    border: 1px solid #edf1f7;
    border-radius: 18px;
    background: #fbfdff;
}

.metric-label {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.metric-value {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
}

.metric-sub {
    display: block;
    margin-top: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.info-stack {
    border: 1px solid #edf1f7;
    border-radius: 20px;
    background: #fff;
}

.info-row,
.info-row-compact {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid #eef2f7;
}
.info-row:first-child,
.info-row-compact:first-child {
    padding-top: 0;
    border-top: none;
}

.info-label,
.info-row-label {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

.info-row-social {
    grid-template-columns: 1fr;
}

.info-row-social .social-links {
    margin-top: 0;
}

.page-talent-detail .talent-info-card {
    padding: 22px 24px;
}

.page-talent-detail .talent-info-card .info-row {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
}

.page-talent-detail .talent-info-card .info-label {
    font-size: 13px;
}

.page-talent-detail .talent-info-card .info-value {
    font-size: 15px;
    line-height: 1.55;
}

.page-talent-detail .talent-info-card .info-value-rich {
    line-height: 1.6;
}

.page-talent-detail .talent-info-card .info-row-social {
    grid-template-columns: 1fr;
    padding-bottom: 0;
}

.page-talent-detail .talent-info-card .social-links {
    margin-top: 0;
}

.page-talent-detail .talent-info-card .social-links a,
.page-talent-detail .talent-info-card .social-link-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.page-talent-detail .talent-info-card .social-link-placeholder {
    background: #f1f5f9;
    color: #94a3b8;
}

.info-value,
.info-row-value {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.info-value-rich {
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 1180px) {

    .talent-detail-hero,
    .detail-hero {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .talent-figure-stage {
        min-height: 480px;
    }

    .detail-cover-stage {
        min-height: 300px;
        max-height: 380px;
    }
}

@media (max-width: 960px) {

    .talent-detail-hero,
    .detail-hero,
    .key-metrics {
        grid-template-columns: 1fr;
    }

    .talent-figure-stage,
    .detail-visual-stage {
        aspect-ratio: 4 / 5;
        min-height: 380px;
        max-height: 520px;
    }

    .detail-cover-stage {
        aspect-ratio: 16 / 9;
        min-height: 0;
        max-height: none;
    }
}

@media (max-width: 768px) {

    .talent-profile-head,
    .info-row,
    .info-row-compact {
        grid-template-columns: 1fr;
    }

    .talent-profile-card,
    .detail-summary-card {
        padding: 22px;
    }

    .page-talent-detail .talent-info-card {
        padding: 20px;
    }

    .talent-tags,
    .detail-eyebrow {
        margin-bottom: 14px;
        min-height: 36px;
    }

    .event-title-block,
    .talent-profile-head {
        grid-template-columns: 60px minmax(0, 1fr);
        gap: 14px;
    }

    .event-owner-avatar,
    .talent-mini-avatar {
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .talent-mini-avatar {
        margin-top: 52px;
    }

    .talent-profile-card h1,
    .detail-summary-card h1 {
        font-size: 28px;
    }

    .talent-figure-stage,
    .detail-visual-stage {
        min-height: 320px;
        max-height: 460px;
    }

    .page-talent-detail .talent-figure-nav {
        inset: 0;
    }

    .page-talent-detail .talent-figure-arrow {
        width: 28px;
        height: 40px;
    }

    .page-talent-detail .talent-figure-arrow::before {
        width: 9px;
        height: 9px;
    }

    .page-talent-detail .talent-figure-arrow-prev {
        left: 12px;
    }

    .page-talent-detail .talent-figure-arrow-next {
        right: 12px;
    }

    .page-talent-detail .talent-figure-dots {
        bottom: 12px;
        gap: 6px;
    }
}

.detail-shell .detail-hero {
    grid-template-columns: minmax(0, 1.22fr) clamp(340px, 27vw, 420px);
    gap: 24px;
    align-items: stretch;
}

.detail-shell .detail-media-grid,
.detail-shell .detail-panel-single {
    border-radius: 24px;
}

.detail-shell .detail-media-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(172px, 24%, 220px);
    gap: 18px;
    min-width: 0;
    align-self: stretch;
}

.detail-shell .detail-media-grid.is-cover-only {
    grid-template-columns: minmax(0, 1fr);
}

.detail-shell .detail-media-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.detail-shell .detail-media-card-square,
.detail-shell .detail-media-card-long {
    min-height: 0;
}

.detail-shell .detail-media-card-long {
    position: relative;
}

.detail-shell .detail-media-label {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    border: 1px solid #d7e5f4;
    background: #f6fbff;
    color: #4c6885;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
}

.detail-shell .detail-media-stage {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
}

.detail-shell button.detail-media-stage {
    padding: 0;
    border: 0;
    cursor: zoom-in;
}

.detail-shell .detail-square-stage {
    aspect-ratio: 1 / 1;
    min-height: 0;
}

.detail-shell .detail-square-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.detail-shell .detail-gift-stage {
    display: block;
    min-height: clamp(360px, 34vw, 560px);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    cursor: zoom-in;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.detail-shell .detail-gift-stage-wrap {
    position: relative;
}

.detail-shell .detail-gift-stage img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    min-height: 0;
    object-fit: contain;
    object-position: center top;
    background: transparent;
    margin: 0;
}

.detail-shell .detail-gift-stage::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.detail-shell .detail-gift-scrollbar {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    width: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.detail-shell .detail-gift-stage-wrap:hover .detail-gift-scrollbar {
    opacity: 1;
}

.detail-shell .detail-gift-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 1px;
    width: 4px;
    min-height: 44px;
    border-radius: 999px;
    background: rgba(202, 220, 244, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.detail-shell .detail-media-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.detail-shell .detail-media-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.detail-shell .detail-media-preview {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    overflow: hidden;
    padding: 0;
    background: rgba(8, 14, 22, 0.8);
}

.detail-shell .detail-media-preview[hidden] {
    display: none;
}

.detail-shell .detail-media-preview-backdrop {
    position: fixed;
    inset: 0;
    border: 0;
    background: transparent;
    cursor: zoom-out;
}

.detail-shell .detail-media-preview-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.detail-shell .detail-media-preview[data-detail-preview-kind="cover"] .detail-media-preview-dialog {
    width: 100%;
}

.detail-shell .detail-media-preview-frame {
    width: 100%;
    height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 14px;
    cursor: grab;
    overscroll-behavior: contain;
    touch-action: none;
}

.detail-shell .detail-media-preview-frame.is-dragging {
    cursor: grabbing;
}

.detail-shell .detail-media-preview-image {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    margin: 0 auto;
    border-radius: 10px;
    user-select: none;
    -webkit-user-drag: none;
}

.detail-shell .detail-media-preview-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 3;
    display: grid;
    place-items: center;
    margin: 0;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(12, 18, 26, 0.82);
    color: #f8fffd;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body.detail-media-preview-open {
    overflow: hidden;
}

.detail-shell .detail-panel {
    min-width: 0;
    display: flex;
    align-self: stretch;
    height: 100%;
}

.detail-shell .detail-panel-single {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 16px 18px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-shell .detail-eyebrow {
    margin-bottom: 8px;
}

.detail-shell .detail-eyebrow .status-badge,
.detail-shell .detail-eyebrow .group-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-bottom: 0;
}

.detail-shell .event-title-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    margin: 0;
}

.detail-shell .event-owner-avatar {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    flex-shrink: 0;
    margin: 0;
}

.detail-shell .event-title-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-shell .event-owner-name {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.2;
}

.detail-shell .detail-panel-single h1 {
    font-size: 24px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.detail-shell .detail-campaign-banner {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #c7e8f8;
    border-radius: 16px;
    background: linear-gradient(180deg, #f3fbff 0%, #eef8ff 100%);
}

.detail-shell .detail-campaign-title {
    color: #0f4c65;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.detail-shell .detail-campaign-copy,
.detail-shell .detail-campaign-deadline {
    color: #35566d;
    font-size: 13px;
    line-height: 1.55;
}

.detail-shell .detail-campaign-deadline {
    font-weight: 700;
}

.detail-shell .detail-description.lead {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-shell .info-stack {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: visible;
    margin-top: 10px;
}

.detail-shell .info-stack-flat {
    border: none;
    border-radius: 0;
    background: transparent;
}

.detail-shell .info-row,
.detail-shell .detail-tag-block {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #e7edf3;
}

.detail-shell .info-stack-flat > :first-child {
    border-top: none;
    padding-top: 0;
}

.detail-shell .info-row-label {
    color: #667a91;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.detail-shell .info-row-value,
.detail-shell .detail-tag-block .info-row-value,
.detail-shell .detail-tag-block .tag-list {
    min-width: 0;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.detail-shell .detail-tag-block .tag-list {
    margin: 0;
    align-items: center;
}

.detail-shell .info-row-time .info-row-value {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.detail-shell .detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-shell .detail-source-block {
    margin-top: auto;
    padding-top: 12px;
}

.detail-shell .detail-actions-bottom {
    margin-top: 0;
    padding-top: 0;
}

.detail-shell .detail-source-note {
    margin: 6px 0 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.45;
}

.detail-shell .detail-actions .btn,
.detail-shell .detail-actions .btn-link-disabled {
    flex: 0 0 auto;
}

@media (max-width: 1180px) {
    .detail-shell .detail-hero {
        grid-template-columns: minmax(0, 1fr) clamp(300px, 31vw, 380px);
        gap: 22px;
    }

    .detail-shell .detail-media-grid {
        grid-template-columns: minmax(0, 1fr) clamp(156px, 26%, 200px);
        gap: 16px;
    }

    .detail-shell .detail-panel-single {
        padding: 14px 16px 12px;
    }

    .detail-shell .detail-panel-single h1 {
        font-size: 21px;
    }

    .detail-shell .info-row,
    .detail-shell .detail-tag-block {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 6px 10px;
    }
}

@media (max-width: 960px) {
    .detail-shell .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-shell .detail-media-grid,
    .detail-shell .detail-panel {
        width: 100%;
        height: auto;
    }

    .detail-shell .detail-media-grid {
        grid-template-columns: minmax(0, 1fr) clamp(180px, 28vw, 240px);
    }

    .detail-shell .detail-panel-single {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .detail-shell .detail-media-grid {
        grid-template-columns: 1fr;
    }

    .detail-shell .detail-panel-single {
        padding: 14px 14px 12px;
    }

    .detail-shell .detail-eyebrow {
        margin-bottom: 8px;
        min-height: 36px;
    }

    .detail-shell .event-title-block {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
    }

    .detail-shell .event-owner-avatar {
        display: none;
        width: 60px;
        height: 60px;
        border-radius: 18px;
    }

    .detail-shell .detail-panel-single h1 {
        font-size: 20px;
    }

    .detail-shell .detail-square-stage,
    .detail-shell .detail-gift-stage {
        min-height: 0;
    }

    .detail-shell .detail-square-stage {
        aspect-ratio: 1 / 1;
    }

    .detail-shell .detail-gift-stage {
        height: clamp(320px, 82vw, 520px);
    }

    .detail-shell .info-row,
    .detail-shell .detail-tag-block {
        grid-template-columns: 1fr;
        gap: 4px;
        align-items: stretch;
    }

    .detail-shell .detail-media-foot {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* Talent card final state */
#talentList.talent-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

#talentList .talent-card {
    padding: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


#talentList .talent-card {
    padding-bottom: 22px;
}

#talentList .talent-card .avatar {
    width: 112px;
    height: 112px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    overflow: hidden;
    margin: 24px auto 16px;
    border: 4px solid #f1f5f9;
    background: #f8fafc;
    display: block;
    flex: 0 0 auto;
}

#talentList .talent-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#talentList .talent-card h2,
#talentList .talent-card p,
#talentList .talent-card a {
    padding-left: 24px;
    padding-right: 24px;
}

#talentList .talent-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

#talentList .talent-card p {
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
    word-break: break-word;
    overflow-wrap: anywhere;
}

#talentList .talent-card a.detail-link {
    margin-top: 10px;
    font-weight: 700;
}

#talentList .talent-card.is-clickable-card {
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

#talentList .talent-card.is-clickable-card:hover {
    transform: translateY(-3px);
    border-color: #9fd7cf;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

#talentList .talent-card.is-clickable-card:focus-visible {
    outline: 2px solid #7dd3c8;
    outline-offset: 3px;
}

@media (max-width: 768px) {

    #talentList .talent-card h2,
    #talentList .talent-card p,
    #talentList .talent-card a {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.filter-box:has(#keywordInput) {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
    gap: 20px 24px;
    align-items: stretch;
    padding: 22px;
}

.filter-box:has(#keywordInput) .filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
}

.filter-box:has(#keywordInput) #keywordInput {
    grid-column: 1 / -1;
}

.filter-box:has(#keywordInput) input,
.filter-box:has(#keywordInput) select {
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    border-radius: 14px;
}

.filter-box:has(#keywordInput)>div[style*="margin-top: 12px"] {
    margin-top: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-self: start;
}

.filter-box:has(#keywordInput) #searchBtn,
.filter-box:has(#keywordInput) #resetBtn {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
}

.filter-box:has(#keywordInput) #searchBtn {
    background: var(--primary);
    color: #fff;
    border: none;
}

.filter-box:has(#keywordInput) #searchBtn:hover {
    background: var(--primary-hover);
}

.filter-box:has(#keywordInput) #resetBtn {
    background: #eef2f7;
    color: var(--text);
    border: 1px solid #d7dee8;
}

.filter-box:has(#keywordInput) #resetBtn:hover {
    background: #e5e7eb;
}

.filter-box:has(#keywordInput) #filterSummary {
    grid-column: 2;
    margin-top: -4px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    align-self: start;
}

#eventList.event-list {
    gap: 16px;
}

#eventList .event-card {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    align-items: center;
    border-radius: 20px;
}

#eventList .event-card .cover {
    width: 100%;
    min-height: 0;
    height: 156px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

#eventList .event-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#eventList .event-card h2 {
    margin: 6px 0 12px;
    font-size: 22px;
    line-height: 1.28;
    letter-spacing: -0.01em;
}

#eventList .event-card .status-badge {
    margin-bottom: 2px;
}

#eventList .event-meta {
    display: grid;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.65;
}

#eventList .event-card .detail-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    font-size: 15px;
}

#paginationBar.pagination-bar {
    margin-top: 18px;
    padding: 0 4px;
}

#paginationBar .pagination-actions {
    gap: 10px;
}

#paginationBar .pagination-actions button {
    min-width: 92px;
}

@media (max-width: 1080px) {
    .filter-box:has(#keywordInput) {
        grid-template-columns: 1fr;
    }

    .filter-box:has(#keywordInput) #filterSummary {
        grid-column: auto;
        margin-top: 2px;
    }

    #eventList .event-card {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 18px;
    }

    #eventList .event-card .cover {
        height: 138px;
    }
}

@media (max-width: 768px) {
    .filter-box:has(#keywordInput) .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-box:has(#keywordInput)>div[style*="margin-top: 12px"] {
        grid-template-columns: 1fr;
    }

    #eventList .event-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    #eventList .event-card .cover {
        height: 190px;
    }

    #eventList .event-card h2 {
        font-size: 20px;
    }

    #paginationBar.pagination-bar {
        gap: 10px;
    }
}





/* Detail page top skeleton */
.detail-page-skeleton {
    --detail-skeleton-base: #edf2f8;
    --detail-skeleton-line: #d8e2ee;
}

.detail-page-skeleton .detail-skeleton-surface,
.detail-page-skeleton .detail-skeleton-line,
.detail-page-skeleton .detail-skeleton-pill,
.detail-page-skeleton .detail-skeleton-avatar,
.detail-page-skeleton .detail-skeleton-block {
    position: relative;
    overflow: hidden;
    background: var(--detail-skeleton-base);
}

.detail-page-skeleton .detail-skeleton-surface::before,
.detail-page-skeleton .detail-skeleton-line::before,
.detail-page-skeleton .detail-skeleton-pill::before,
.detail-page-skeleton .detail-skeleton-avatar::before,
.detail-page-skeleton .detail-skeleton-block::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.86) 48%, transparent 100%);
    animation: detail-loading-shimmer 1.8s ease-in-out infinite;
}

.detail-page-skeleton .detail-skeleton-line,
.detail-page-skeleton .detail-skeleton-pill,
.detail-page-skeleton .detail-skeleton-avatar,
.detail-page-skeleton .detail-skeleton-block {
    color: transparent;
}

.detail-page-skeleton .detail-skeleton-line {
    display: block;
    height: 14px;
    border-radius: 999px;
}

.detail-page-skeleton .detail-skeleton-line-breadcrumb {
    width: min(280px, 54%);
    margin: 0 0 14px;
}

.detail-page-skeleton .detail-actions-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-page-skeleton .detail-skeleton-pill {
    display: inline-flex;
    width: 88px;
    height: 34px;
    border-radius: 999px;
}

.detail-page-skeleton .detail-skeleton-pill.is-wide {
    width: 128px;
}

.detail-page-skeleton .detail-skeleton-pill.is-short {
    width: 108px;
}

.detail-page-skeleton .detail-skeleton-pill-button {
    width: 144px;
    height: 40px;
}

.detail-page-skeleton .detail-eyebrow-skeleton {
    margin-bottom: 12px;
}

.detail-page-skeleton .detail-skeleton-avatar {
    background: linear-gradient(135deg, #dde6f2 0%, #f2f6fb 100%);
}

.detail-page-skeleton .detail-title-copy-skeleton,
.detail-page-skeleton .detail-profile-copy-skeleton {
    min-width: 0;
}

.detail-page-skeleton .detail-skeleton-line-owner {
    width: 112px;
    margin: 4px 0 10px;
}

.detail-page-skeleton .detail-skeleton-heading {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.detail-page-skeleton .detail-skeleton-heading span,
.detail-page-skeleton .detail-description-skeleton span {
    display: block;
    height: 16px;
    border-radius: 999px;
    background: var(--detail-skeleton-line);
    position: relative;
    overflow: hidden;
}

.detail-page-skeleton .detail-skeleton-heading span::before,
.detail-page-skeleton .detail-description-skeleton span::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.86) 48%, transparent 100%);
    animation: detail-loading-shimmer 1.8s ease-in-out infinite;
}

.detail-page-skeleton .detail-skeleton-heading span:last-child,
.detail-page-skeleton .detail-description-skeleton .is-short {
    width: 72%;
}

.detail-page-skeleton .detail-description-skeleton {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.detail-page-skeleton .detail-description-skeleton span:first-child {
    width: 100%;
}

.detail-page-skeleton .detail-description-skeleton span:nth-child(2) {
    width: 92%;
}

.detail-page-skeleton .detail-info-skeleton,
.detail-page-skeleton .detail-info-card-skeleton {
    margin-top: 12px;
}

.detail-page-skeleton .detail-skeleton-line-label {
    width: 62px;
    height: 12px;
}

.detail-page-skeleton .detail-skeleton-line-value {
    width: 84%;
    align-self: center;
}

.detail-page-skeleton .detail-skeleton-line-value.is-wide {
    width: 96%;
}

.detail-page-skeleton .detail-tag-list-skeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.detail-page-skeleton .detail-tag-list-skeleton-social {
    padding-top: 2px;
}

.detail-page-skeleton .detail-key-metrics-skeleton .metric-card,
.detail-page-skeleton .detail-info-card-skeleton {
    background: #fff;
}

.detail-page-skeleton .detail-metric-skeleton {
    display: grid;
    gap: 10px;
}

.detail-page-skeleton .detail-skeleton-line-metric {
    width: 64%;
    height: 28px;
}

.detail-page-skeleton .detail-skeleton-line-sub {
    width: 82%;
    height: 13px;
}

.detail-page-skeleton .detail-skeleton-line-section {
    width: 132px;
    margin-bottom: 4px;
}

.detail-page-skeleton .detail-skeleton-block-copy {
    width: 100%;
    min-height: 74px;
    border-radius: 16px;
}

.detail-page-skeleton .detail-media-stage.detail-skeleton-surface {
    background: linear-gradient(135deg, #e6eef8 0%, #f8fbff 100%);
}

.detail-page-skeleton .talent-figure-stage.detail-skeleton-surface {
    background: linear-gradient(180deg, #ecf2fa 0%, #f9fbff 100%);
}

@keyframes detail-loading-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 768px) {
    .detail-page-skeleton .detail-skeleton-line-breadcrumb {
        width: min(220px, 72%);
    }

    .detail-page-skeleton .detail-skeleton-pill-button {
        width: 132px;
    }

    .detail-page-skeleton .detail-skeleton-line-owner {
        width: 96px;
    }

    .detail-page-skeleton .detail-skeleton-line-value,
    .detail-page-skeleton .detail-skeleton-line-value.is-wide,
    .detail-page-skeleton .detail-skeleton-line-metric,
    .detail-page-skeleton .detail-skeleton-line-sub {
        width: 100%;
    }

    .detail-page-skeleton .detail-skeleton-block-copy {
        min-height: 64px;
    }
}

/* Talent detail reuses homepage event structures; only keep page-level layout here. */
.page-talent-detail .talent-detail-home-card-list {
    align-items: start;
}

.page-talent-detail .talent-detail-home-card-list .event-status-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px 0 27px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
    box-sizing: border-box;
}

.page-talent-detail .talent-detail-home-card-list .event-status-pill::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    transform: translateY(-50%);
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill,
.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .group-badge {
    min-height: 22px;
    height: 22px;
    margin: 0 !important;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill {
    padding: 0 8px 0 22px;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill::before {
    left: 7px;
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-upcoming {
    background: rgba(220, 247, 240, 0.92) !important;
    color: #0f766e !important;
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-upcoming::before {
    left: 7px;
    width: 12px;
    height: 12px;
    background: center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Ccircle cx='7' cy='7' r='5.25' stroke='%230f8b8d' stroke-width='1.5'/%3E%3Cpath d='M7 7V3.55' stroke='%230f8b8d' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M7 7L8.45 8.45' stroke='%230f8b8d' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-live {
    background: rgba(254, 226, 226, 0.92) !important;
    color: #b91c1c !important;
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-live::before {
    background: currentColor;
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.32);
    animation: talent-detail-status-live-pulse 1.5s ease-out infinite;
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-neutral {
    background: #fff4db !important;
    color: #a16207 !important;
    padding-left: 9px;
    padding-right: 9px;
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-neutral::before {
    content: none;
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-ended {
    background: rgba(229, 231, 235, 0.92) !important;
    color: #475569 !important;
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .event-status-pill.is-ended::before {
    width: 8px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

@keyframes talent-detail-status-live-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.34);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

.page-talent-detail .talent-detail-home-card-list .home-event-card-cover-badges .group-badge {
    padding: 0 8px;
    border-color: rgba(139, 193, 182, 0.96) !important;
    background: rgba(247, 253, 251, 0.86) !important;
    color: #2f6f67 !important;
}

.page-event-detail #relatedEvents.related-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start;
}

.page-event-detail #relatedEvents .related-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.page-event-detail #relatedEvents .related-card:hover {
    transform: translateY(-3px);
    border-color: #9fd7cf;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.page-event-detail #relatedEvents .related-card:focus-visible {
    outline: 2px solid #7dd3c8;
    outline-offset: 3px;
}

.page-event-detail #relatedEvents .related-card .cover {
    aspect-ratio: 1 / 1;
    min-height: 0;
    margin: 0;
    border-radius: 14px;
}

.page-event-detail #relatedEvents .related-card .cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-event-detail #relatedEvents .related-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.page-event-detail #relatedEvents .related-card p {
    margin: 0;
}

.page-event-detail #relatedEvents .related-card .related-reason {
    margin-top: auto;
    padding-top: 8px;
    font-size: 13px;
    line-height: 1.55;
}
/* Talent detail timeline header aligns to the top-left. */
.page-talent-detail .stage6-insight-section > .section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    column-gap: 24px;
    row-gap: 12px;
    margin-bottom: 12px;
}

.page-talent-detail .stage6-insight-section .timeline-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 240px));
    align-items: start;
    gap: 12px;
    justify-content: end;
    flex: 0 0 auto;
}

.page-talent-detail .stage6-insight-section .timeline-toolbar select {
    width: 100%;
    min-width: 0;
    margin: 0;
}

@media (max-width: 1180px) {
    .page-talent-detail .stage6-insight-section > .section-header {
        grid-template-columns: 1fr;
    }

    .page-talent-detail .stage6-insight-section .timeline-toolbar {
        justify-content: stretch;
    }
}

@media (max-width: 640px) {
    .page-talent-detail .stage6-insight-section .timeline-toolbar {
        grid-template-columns: 1fr;
    }
}
