.loading-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.loading-shape,
.loading-media[data-media-skeleton]::before {
    background: #302a36;
    background: color-mix(in srgb, var(--surface, #19191f) 87%, #b0a0bd);
    border-radius: 8px;
    animation: site-skeleton-pulse 1.4s ease-in-out infinite alternate;
}

html.light .loading-shape,
html.light .loading-media[data-media-skeleton]::before {
    background: color-mix(in srgb, var(--surface, #fff) 84%, #888093);
}

.loading-shape { display: block; }
.loading-lines { display: grid; gap: 10px; min-width: 0; }
.loading-line { height: 11px; width: 100%; }
.loading-line.short { width: 57%; }
.loading-title { height: 24px; width: min(230px, 75%); }
.loading-avatar { width: 56px; height: 56px; border-radius: 50%; }
.loading-field { width: 100%; height: 42px; }
.loading-field.compact { width: min(160px, 65%); }
.loading-card { aspect-ratio: 2 / 3; border-radius: 14px; }
.loading-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    overflow: hidden;
}
.loading-section-cards { margin-bottom: 26px; }
.loading-panel { display: grid; gap: 18px; }
.initial-loading .loading-outage { display: none; }
body:has(#account-connection-notice button:not(:disabled)) .initial-loading > :not(.loading-outage) { display: none; }
body:has(#account-connection-notice button:not(:disabled)) .initial-loading .loading-outage { display: block; }
.loading-profile-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
.loading-profile-preview { padding-block: clamp(24px, 7vw, 64px); }
.loading-member { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; }
.loading-member .loading-avatar { width: 44px; height: 44px; }
.loading-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; max-width: 460px; }
.loading-thumb { height: 54px; }
.loading-stats { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; margin-top: 16px; }
.loading-chart { width: clamp(65px, 17vw, 104px); aspect-ratio: 1; border-radius: 50%; }

.loading-media[data-media-skeleton] { isolation: isolate; }
.loading-media[data-media-skeleton]::before { content: ""; position: absolute; inset: 5%; z-index: -1; border-radius: 15%; }
.watch-details.is-loading #title-actions:empty::before {
    content: "";
    display: block;
    width: min(260px, 100%);
    height: 35px;
    margin: 4px 0 14px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--surface, #19191f) 87%, #b0a0bd);
    animation: site-skeleton-pulse 1.4s ease-in-out infinite alternate;
}
.watch-details.is-loading .watch-facts > div { position: relative; }
.watch-details.is-loading .watch-facts > div > span { visibility: hidden; }
.watch-details.is-loading .watch-facts > div::after {
    content: "";
    position: absolute;
    inset: 4px 10% auto 0;
    height: 18px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--surface, #19191f) 87%, #b0a0bd);
    animation: site-skeleton-pulse 1.4s ease-in-out infinite alternate;
}

@keyframes site-skeleton-pulse { from { opacity: .55; } to { opacity: .98; } }
@media (max-width: 760px) {
    .loading-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .loading-cards > :nth-child(n + 4) { display: none; }
}
@media (max-width: 440px) {
    .loading-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .loading-cards > :nth-child(n + 3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .loading-shape, .loading-media[data-media-skeleton]::before,
    .watch-details.is-loading #title-actions:empty::before,
    .watch-details.is-loading .watch-facts > div::after { animation: none; }
}
