.tour-notes {
    border-top: 1px solid var(--line);
    padding: 14px;
    color: var(--ink);
}

.tour-notes h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1rem;
    text-transform: uppercase;
}

.tour-notes ul,
.tour-notes ol {
    margin: 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.tour-notes li + li {
    margin-top: 4px;
}

.tour-notes a,
.tour-setlist a {
    border-bottom: 1px solid var(--primary-accent);
    color: var(--ink);
}

.tour-notes a:hover,
.tour-setlist a:hover {
    border-bottom-color: var(--primary-active);
}

.tour-setlist {
    padding: 14px;
}

.tour-setlist .song {
    border-top: 1px solid #202020;
    padding: 8px 0;
}

.tour-setlist .song:first-child {
    border-top: 0;
}

.tour-setlist .setlistComment {
    margin-top: 10px;
    color: var(--primary-accent);
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.show-list {
    display: grid;
}

.show-row-header,
.show-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.show-row-header {
    border-top: 1px solid #202020;
    border-bottom: 1px solid #202020;
    padding: 9px 14px;
    color: var(--moremuted);
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.show-row-header span:last-child {
    grid-column: 2 / -1;
}

.show-row {
    align-items: center;
    min-height: 86px;
    border-top: 1px solid #202020;
    padding: 12px 14px;
    color: inherit;
}

.tour-page .content-inner a.show-row {
    color: inherit;
    border-bottom: 0;
}

.show-row-header + .show-row,
.show-row:first-child {
    border-top: 0;
}

.show-row:hover {
    background: var(--row-hover);
}

.show-row:focus-visible {
    outline: 1px solid var(--primary-accent);
    outline-offset: -1px;
}

.source-card.no-thumb img {
    display: none;
}

.embed-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px;
    align-items: flex-start;
}

.embed-item {
    flex: 1 1 100%;
    min-width: 0;
}

.embed-item .instagram-media {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
}

@media (min-width: 540px) {
    .embed-item {
        flex: 1 1 calc(50% - 6px);
        max-width: calc(50% - 6px);
    }
}

@media (min-width: 1080px) {
    .embed-item {
        flex: 1 1 calc(33.333% - 8px);
        max-width: calc(33.333% - 8px);
    }
}

.embed-item-video {
    flex-basis: 100%;
    max-width: 100%;
    position: relative;
    aspect-ratio: 16 / 9;
    height: auto;
}

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

.show-row.is-past {
    opacity: .74;
}

.show-row-stat strong,
.show-row-stat span,
.show-row-main strong,
.show-row-main span,
.show-row-venue strong,
.show-row-venue span,
.show-row-meta span {
    display: block;
}

.show-row-stat strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.05;
}

.show-row-date {
    display: grid;
    align-content: center;
    gap: 3px;
    padding-top: 3px;
    font-variant-numeric: tabular-nums;
}

.show-row-date strong {
    font-size: .9rem;
    line-height: 1;
    text-transform: uppercase;
}

.show-row-date span {
    line-height: 1;
}

.show-row-stat span,
.show-row-main span,
.show-row-venue span {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.show-row-main,
.show-row-venue {
    min-width: 0;
}

.show-row-main strong,
.show-row-venue strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.15;
}

.show-row-main span,
.show-row-venue strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.show-row-venue {
    grid-column: 3;
}

.show-row-venue strong {
    font-size: .9rem;
}

.show-row-meta {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.show-row-meta span {
    border: 1px solid #343434;
    background: #0c0c0c;
    padding: 4px 7px;
    color: var(--muted);
    font-size: .64rem;
    font-weight: 900;
    text-transform: uppercase;
}

@media (min-width: 760px) and (min-height: 560px) {
    .tour-page .section-hero {
        grid-template-columns: minmax(0, 1fr);
        padding-right: 200px;
    }

    .tour-page .section-hero-copy {
        display: grid;
        grid-column: 1;
        gap: 10px;
        align-content: end;
    }

    .tour-page .section-hero-copy .eyebrow,
    .tour-page .section-hero h1,
    .tour-page .section-hero-copy > p {
        grid-column: auto;
    }

    .tour-page .section-hero-stats {
        position: absolute;
        right: 28px;
        bottom: 28px;
        grid-template-columns: 1fr;
        width: 132px;
    }

    .tour-page .section-hero-stats span {
        min-height: 76px;
    }

    .show-list {
        grid-template-columns: 94px max-content max-content minmax(120px, 1fr);
        column-gap: 28px;
    }

    .show-row {
        grid-column: 1 / -1;
        grid-template-columns: subgrid;
        column-gap: inherit;
        min-height: 76px;
        padding: 13px 18px;
    }

    .show-row-header {
        grid-column: 1 / -1;
        grid-template-columns: subgrid;
        column-gap: inherit;
        padding: 9px 18px;
    }

    .show-row-header span:last-child {
        grid-column: auto;
        justify-self: end;
    }

    .show-row-venue {
        grid-column: auto;
    }

    .show-row-meta {
        grid-column: auto;
        justify-content: flex-end;
    }
}

.tour-name-page .archive-month-card-label {
    display: grid;
}

/* ── Tour Stats Page ───────────────────────────────────────────────────────── */

.tour-stats-filter {
    border-top: 1px solid var(--line);
    padding: 14px;
}

.tour-stats-filter .eyebrow {
    margin-bottom: 10px;
}

.tour-stats-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.tour-stats-filter-field {
    display: grid;
    gap: 5px;
    flex: 1 1 180px;
    min-width: 0;
}

.tour-stats-filter-field span {
    color: var(--muted);
    font-size: .64rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tour-stats-filter-field select {
    appearance: none;
    background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    font-size: .82rem;
    height: 38px;
    padding: 0 32px 0 10px;
    width: 100%;
    cursor: pointer;
}

.tour-stats-filter-field select:focus {
    border-color: var(--primary-accent);
    outline: none;
}

.tour-stats-filter-or {
    color: var(--moremuted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    padding-bottom: 10px;
    flex: 0 0 auto;
}

.tour-stats-filter-clear {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
    flex: 0 0 auto;
    align-self: flex-end;
}

.tour-stats-filter-clear:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

/* Ranked list */
.stats-rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
}

.stats-rank-row {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #202020;
    padding: 10px 14px;
    min-height: 54px;
}

.stats-rank-list li:first-child {
    border-top: 0;
}

.stats-rank-num {
    color: var(--moremuted);
    font-size: .7rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.stats-rank-body {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.stats-rank-label {
    color: var(--ink);
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-rank-label:hover {
    color: var(--ink);
    opacity: .7;
}

.stats-rank-bar {
    display: block;
    height: 3px;
    background: #1e1e1e;
    border-radius: 2px;
    overflow: hidden;
}

.stats-rank-bar span {
    display: block;
    height: 100%;
    background: var(--primary-accent);
    border-radius: 2px;
    opacity: .7;
    transition: opacity .15s;
}

.stats-rank-row:hover .stats-rank-bar span {
    opacity: 1;
}

.stats-rank-value {
    display: grid;
    gap: 2px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.stats-rank-value em {
    font-style: normal;
    display: block;
    color: var(--moremuted);
    font-size: .6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1;
}

.stats-rank-value:not(em) {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.1;
}

/* Two-column grid for countries + years */
.stats-two-col {
    display: grid;
    gap: 0;
}

.stats-two-col .section-panel {
    border-top: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-two-col .section-panel:first-child {
    border-top: 1px solid var(--line);
    border-radius: var(--panel-radius, 0) var(--panel-radius, 0) 0 0;
}

.stats-two-col .section-panel:last-child {
    border-radius: 0 0 var(--panel-radius, 0) var(--panel-radius, 0);
}

/* Most Discussed: replace venue col with stat col */
.stats-page-discussed .show-row {
    grid-template-columns: 72px minmax(0, 1fr) 80px;
}

@media (min-width: 680px) {
    .stats-two-col {
        grid-template-columns: 1fr 1fr;
    }

    .stats-two-col .section-panel {
        border-top: 1px solid var(--line);
        border-radius: 0;
    }

    .stats-two-col .section-panel:first-child {
        border-right: 0;
        border-radius: var(--panel-radius, 0) 0 0 var(--panel-radius, 0);
    }

    .stats-two-col .section-panel:last-child {
        border-radius: 0 var(--panel-radius, 0) var(--panel-radius, 0) 0;
    }

    .stats-rank-row {
        padding: 10px 18px;
    }
}

@media (min-width: 760px) and (min-height: 560px) {
    .stats-rank-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-rank-row {
        border-left: 1px solid #202020;
    }

    .stats-rank-list li:first-child,
    .stats-rank-list li:nth-child(2) {
        border-top: 0;
    }

    .stats-rank-list li:nth-child(odd) {
        border-left: 0;
    }
}
