/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.sh-hero {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    padding: 80px 0 76px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sh-hero__bg {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 580px;
    height: 580px;
    pointer-events: none;
    animation: heroSpin 90s linear infinite;
}
.sh-hero__bg svg { width: 100%; height: 100%; }

@keyframes heroSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

.sh-hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
}

.sh-hero__kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 22px;
}

.sh-hero__title {
    font-family: var(--font-display);
    font-size: clamp(72px, 11vw, 130px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 0.88;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 56px;
}

/* ── Counters ── */
.sh-hero__counters {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.sh-counter {
    padding-right: 52px;
}
.sh-counter:last-of-type { padding-right: 0; }

.sh-counter__sep {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    margin-right: 52px;
    flex-shrink: 0;
}

.sh-counter__num {
    font-family: var(--font-display);
    font-size: clamp(52px, 7vw, 80px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--accent);
}

.sh-counter__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
}

/* ─── Page body ────────────────────────────────────────────────────────────── */
.sh-page {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
}

/* ─── Section ──────────────────────────────────────────────────────────────── */
.sh-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}
.sh-section--last {
    border-bottom: none;
    padding-bottom: 100px;
}

.sh-section__head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 44px;
}

.sh-section__ghost {
    font-family: var(--font-display);
    font-size: 88px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--border);
    flex-shrink: 0;
    margin-top: -8px;
    user-select: none;
}

.sh-section__kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.sh-section__title {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--dark);
    line-height: 1;
}

/* ─── Horizontal bar chart ─────────────────────────────────────────────────── */
.sh-bars {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 700px;
}

/* initial state — revealed by JS adding .visible to section */
.sh-bar {
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity  0.32s ease both,
        transform 0.32s ease both;
    transition-delay: var(--delay, 0s);
}
.sh-section.visible .sh-bar {
    opacity: 1;
    transform: none;
}

.sh-bar__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.sh-bar__flag { font-size: 18px; line-height: 1; flex-shrink: 0; }

.sh-bar__label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-bar__count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--mid);
    min-width: 24px;
    text-align: right;
    flex-shrink: 0;
}

.sh-bar__track {
    height: 9px;
    background: var(--border);
    border-radius: 5px;
    overflow: hidden;
}
.sh-bar__track--sm { height: 6px; }

.sh-bar__fill {
    height: 100%;
    background: var(--c, var(--accent));
    border-radius: 5px;
    width: 0;
    transition: width 1.1s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: 0s;
}

/* ── Countries 2-col ── */
.sh-countries {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 52px;
}

/* ─── Month chart ──────────────────────────────────────────────────────────── */
.sh-months {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 228px;
}

.sh-month {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: var(--delay, 0s);
}
.sh-section.visible .sh-month {
    opacity: 1;
    transform: none;
}

.sh-month__count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--mid);
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sh-month--peak .sh-month__count {
    color: var(--accent);
    font-weight: 600;
}

.sh-month__col {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.sh-month__fill {
    width: 100%;
    background: #D5D3CC;
    border-radius: 3px 3px 0 0;
    height: 0;
    transition: height 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: 0s;
}
.sh-month--peak .sh-month__fill {
    background: var(--accent);
}

.sh-month__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 8px;
    text-align: center;
}
.sh-month--peak .sh-month__label {
    color: var(--accent);
    font-weight: 600;
}

/* ─── Donut + Level legend ─────────────────────────────────────────────────── */
.sh-level {
    display: flex;
    align-items: center;
    gap: 64px;
}

.sh-donut-wrap {
    flex-shrink: 0;
}

.sh-donut {
    width: 224px;
    height: 224px;
}

.sh-donut__seg {
    opacity: 0;
    transition: opacity 0.5s ease;
    transition-delay: calc(var(--i, 0) * 0.1s + 0.1s);
}
.sh-section.visible .sh-donut__seg {
    opacity: 1;
}

.sh-donut__big {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    fill: var(--dark);
    letter-spacing: -0.02em;
}

.sh-donut__sub {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ── Legend ── */
.sh-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.sh-legend__row {
    display: grid;
    grid-template-columns: 10px 130px 1fr 44px 36px;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: calc(var(--j, 0) * 0.07s + 0.15s);
}
.sh-section.visible .sh-legend__row {
    opacity: 1;
    transform: none;
}

.sh-legend__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sh-legend__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-legend__bar-track {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    display: block;
}

.sh-legend__bar-fill {
    display: block;
    height: 100%;
    background: var(--c, var(--accent));
    border-radius: 3px;
    width: 0;
    transition: width 1s cubic-bezier(0.22, 0.61, 0.36, 1);
    transition-delay: 0s;
}

.sh-legend__pct {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--mid);
    text-align: right;
    white-space: nowrap;
}

.sh-legend__cnt {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

/* ─── Empty state ──────────────────────────────────────────────────────────── */
.sh-empty {
    color: var(--muted);
    font-size: 14px;
    font-style: italic;
}

/* ─── Organizer rank ───────────────────────────────────────────────────────── */
.sh-bar__rank {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.06em;
    flex-shrink: 0;
    min-width: 22px;
}

/* ─── Event type cards ─────────────────────────────────────────────────────── */
.sh-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 680px;
}

.sh-type-card {
    padding: 30px 26px 26px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--c, var(--accent));
    border-radius: 3px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    transition-delay: var(--delay, 0s);
}
.sh-section.visible .sh-type-card {
    opacity: 1;
    transform: none;
}

.sh-type-card__icon {
    width: 26px;
    height: 26px;
    color: var(--c, var(--accent));
    margin-bottom: 18px;
}
.sh-type-card__icon svg { width: 100%; height: 100%; }

.sh-type-card__num {
    font-family: var(--font-display);
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--c, var(--accent));
    margin-bottom: 8px;
}

.sh-type-card__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.sh-type-card__note {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

/* ─── Most Viewed list ─────────────────────────────────────────────────────── */
.sh-views {
    display: flex;
    flex-direction: column;
}

.sh-view {
    display: grid;
    grid-template-columns: 28px 1fr 180px 110px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: var(--delay, 0s);
}
.sh-view:last-child { border-bottom: none; }
.sh-section.visible .sh-view {
    opacity: 1;
    transform: none;
}

.sh-view__rank {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    flex-shrink: 0;
}

.sh-view__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sh-view__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.15s;
}
.sh-view__name:hover { color: var(--accent); }

.sh-view__meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sh-view__bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.sh-view__count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--mid);
    text-align: right;
    white-space: nowrap;
}
.sh-view__count span {
    font-size: 10px;
    color: var(--muted);
    margin-left: 2px;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .sh-level { flex-direction: column; align-items: flex-start; gap: 40px; }
    .sh-legend__row { grid-template-columns: 10px 110px 1fr 40px 32px; gap: 10px; }
    .sh-view { grid-template-columns: 28px 1fr 120px 90px; gap: 12px; }
}

@media (max-width: 700px) {
    .sh-countries { grid-template-columns: 1fr; gap: 12px; }
    .sh-section__title { font-size: 36px; }
    .sh-section__ghost { font-size: 64px; }
    .sh-months { gap: 6px; }
    .sh-type-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .sh-view { grid-template-columns: 24px 1fr 80px; gap: 10px; }
    .sh-view__bar { display: none; }
}

@media (max-width: 540px) {
    .sh-hero { padding: 56px 0 52px; }
    .sh-hero__inner, .sh-page { padding: 0 20px; }
    .sh-hero__bg { width: 320px; height: 320px; right: -80px; }
    .sh-counter__sep { display: none; }
    .sh-hero__counters { gap: 28px; flex-wrap: wrap; }
    .sh-counter { padding-right: 0; }
    .sh-section { padding: 52px 0; }
    .sh-months { gap: 4px; height: 190px; }
    .sh-month__label { font-size: 9px; }
    .sh-legend__row { grid-template-columns: 10px 90px 1fr 36px; }
    .sh-legend__cnt { display: none; }
    .sh-type-grid { grid-template-columns: 1fr; gap: 12px; }
    .sh-type-card { padding: 22px 20px 20px; }
    .sh-type-card__num { font-size: 42px; }
    .sh-view { grid-template-columns: 22px 1fr 70px; }
}
