/* ==========================================================================
   Radar page — the hub: cities first, then people.
   Editorial layout, sibling to the magazine (content_page.css).
   Flat surfaces, hairline rules, uppercase furniture, red as the only accent.
   ========================================================================== */

.radar-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 1.5rem 4rem;
    color: #eee;
}

.radar-page a {
    text-decoration: none;
}

/* --- Masthead ------------------------------------------------------------
 *
 * Banner height, not a splash. It carries the one thing a visitor comes here
 * to do -- find a city -- so the search box lives in it.
 */

.radar-masthead {
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid #fff;
    padding-bottom: 1.25rem;
}

.radar-masthead-inner {
    position: relative;
    z-index: 2;
}

.radar-title {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.radar-strapline {
    margin: 0.6rem 0 1.1rem;
    color: #999;
    font-size: 0.95rem;
    max-width: 60ch;
}

/* Sweep behind the masthead — brand furniture, deliberately faint so the
   type stays the loudest thing on the page. */
.radar-sweep-bg {
    position: absolute;
    top: 50%;
    right: 2%;
    width: 300px;
    height: 300px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    mask-image: radial-gradient(circle, #000 45%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle, #000 45%, transparent 72%);
}

.radar-ring,
.radar-beam {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radar-ring {
    border: 1px solid rgba(255, 0, 0, 0.28);
}

.radar-ring-1 { width: 110px; height: 110px; }
.radar-ring-2 { width: 200px; height: 200px; }
.radar-ring-3 { width: 290px; height: 290px; }

.radar-beam {
    width: 290px;
    height: 290px;
    background: conic-gradient(from 0deg, rgba(255, 0, 0, 0.35) 0deg, rgba(255, 0, 0, 0.05) 45deg, transparent 90deg, transparent 360deg);
    animation: radar-sweep-spin 6s linear infinite;
}

@keyframes radar-sweep-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .radar-beam {
        animation: none;
    }
}

/* --- City search --------------------------------------------------------- */

.radar-filter {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.radar-filter-input {
    flex: 1 1 auto;
    max-width: 420px;
    padding: 0.7rem 0.9rem;
    background: #0e0e0e;
    border: 1px solid #333;
    border-radius: 0;
    color: #eee;
    font-size: 0.9rem;
    font-family: inherit;
}

.radar-filter-input::placeholder {
    color: #666;
}

.radar-filter-input:focus {
    outline: none;
    border-color: #ff0000;
}

.radar-filter-empty {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #777;
}

.radar-filter-empty[hidden] {
    display: none;
}

/* --- Your city ----------------------------------------------------------- */

.radar-yourcity {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #111;
    border: 1px solid #262626;
    border-left: 3px solid #ff0000;
}

.radar-yourcity-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ff0000;
}

.radar-yourcity-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
}

.radar-yourcity-name:hover {
    color: #ff0000;
}

.radar-yourcity-meta {
    font-size: 0.8rem;
    color: #888;
}

.radar-yourcity-links {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
}

.radar-yourcity-links a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ccc;
    border-bottom: 1px solid #ff0000;
    padding-bottom: 2px;
}

.radar-yourcity-links a:hover {
    color: #fff;
}

/* --- Shared section furniture -------------------------------------------- */

.radar-section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff;
    margin: 3rem 0 0.75rem;
}

.radar-section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #333;
}

.radar-section-intro {
    color: #888;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.radar-sub {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ff0000;
    margin: 2rem 0 0.75rem;
}

.radar-section-intro + .radar-sub {
    margin-top: 0;
}

/* --- Cities -------------------------------------------------------------- */

.radar-countries {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 3rem;
}

/* The home market spans the page: it carries the tiles, and it is the block
   the page exists for. */
.radar-country--home {
    grid-column: 1 / -1;
}

.radar-country[hidden] {
    display: none;
}

.radar-country-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 0.9rem;
}

.radar-country-name {
    font-size: 0.95rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
}

.radar-country-name a {
    color: #fff;
}

.radar-country-name a:hover {
    color: #ff0000;
}

.radar-country-count {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    white-space: nowrap;
}

/* 4, 3, 2, 1 columns: each divides the twelve tiles evenly. */
.radar-hot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 1rem;
}

.radar-hot-tile {
    position: relative;
    display: block;
    padding: 1.1rem 1.1rem 1rem;
    background: #111;
    border: 1px solid #222;
    transition: background 0.2s, border-color 0.2s;
}

.radar-hot-tile[hidden] {
    display: none;
}

.radar-hot-tile:hover {
    background: #161616;
    border-color: #ff0000;
}

.radar-hot-rank {
    position: absolute;
    top: 0.6rem;
    right: 0.8rem;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    opacity: 0.08;
}

.radar-hot-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
}

.radar-hot-tile:hover .radar-hot-name {
    color: #ff0000;
}

.radar-hot-count {
    display: block;
    margin-top: 0.75rem;
    padding-top: 0.55rem;
    border-top: 1px solid #262626;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ff0000;
}

.radar-hot-members {
    font-weight: 400;
    color: #888;
}

.radar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.radar-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    color: #aaa;
    border: 1px solid #262626;
    transition: color 0.15s, border-color 0.15s;
}

.radar-chip[hidden] {
    display: none;
}

.radar-chip:hover {
    color: #fff;
    border-color: #555;
}

.radar-chip.has-gigs {
    color: #ddd;
    border-color: #3a3a3a;
}

.radar-chip.has-gigs:hover {
    border-color: #ff0000;
    color: #fff;
}

.radar-chip-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: #ff0000;
}

/* The folded tail of a long country. A search overrides the fold. */
.radar-countries:not(.is-searching) .radar-country.is-folded .radar-chip--tail {
    display: none;
}

.radar-more {
    margin-top: 0.75rem;
    padding: 0;
    background: none;
    border: none;
    border-bottom: 1px solid #ff0000;
    color: #aaa;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.radar-more:hover {
    color: #fff;
}

.radar-more[hidden],
.radar-countries.is-searching .radar-more {
    display: none;
}

.radar-contact {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #262626;
    font-size: 0.85rem;
    color: #888;
}

.radar-contact a {
    color: #ddd;
    font-weight: 600;
    border-bottom: 1px solid #ff0000;
}

.radar-contact a:hover {
    color: #ff0000;
}

/* --- On the wire --------------------------------------------------------- */

.radar-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #262626;
}

.radar-feed-item {
    display: flex;
    gap: 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #262626;
}

.radar-feed-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #333;
    color: #ff0000;
    font-size: 0.8rem;
}

.radar-feed-body {
    min-width: 0;
}

.radar-feed-body p {
    margin: 0;
}

.radar-feed-line {
    font-size: 0.92rem;
    line-height: 1.4;
    color: #aaa;
    overflow-wrap: anywhere;
}

.radar-feed-actor {
    font-weight: 700;
    color: #fff;
}

.radar-feed-target {
    font-weight: 700;
    color: #eee;
}

.radar-feed-actor:hover,
.radar-feed-target:hover {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #ff0000;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.radar-feed-body .radar-feed-quote {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    font-style: italic;
    color: #ccc;
    overflow-wrap: anywhere;
}

.radar-feed-body .radar-feed-meta {
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #777;
}

.radar-feed-quiet {
    padding: 1.25rem 1.1rem;
    background: #111;
    border: 1px solid #262626;
    color: #999;
    font-size: 0.9rem;
}

.radar-feed-quiet p {
    margin: 0;
}

.radar-feed-quiet .radar-feed-quiet-title {
    font-weight: 700;
    color: #eee;
    margin-bottom: 0.3rem;
}

.radar-feed-quiet a {
    color: #ddd;
    font-weight: 600;
    border-bottom: 1px solid #ff0000;
}

.radar-feed-quiet a:hover {
    color: #ff0000;
}

/* --- On Moshradar: bands, promoters, labels ------------------------------ */

.radar-people {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2px;
}

.radar-person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    background: #111;
    border: 1px solid #222;
    transition: background 0.2s, border-color 0.2s;
    min-width: 0;
}

.radar-person:hover {
    background: #161616;
    border-color: #ff0000;
}

.radar-person-img {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    object-fit: cover;
    background: #1a1a1a;
}

.radar-person-img--blank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: #555;
    border: 1px solid #262626;
}

.radar-person-body {
    min-width: 0;
}

.radar-person-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radar-person:hover .radar-person-name {
    color: #ff0000;
}

.radar-person-tick {
    font-size: 0.75rem;
    color: #ff0000;
}

.radar-person-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.radar-cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin-top: 2rem;
}

.radar-cta {
    display: block;
    padding: 1.2rem 1.2rem 1.1rem;
    background: #111;
    border: 1px solid #222;
    border-top: 3px solid #ff0000;
    transition: background 0.2s, border-color 0.2s;
}

.radar-cta:hover {
    background: #161616;
    border-color: #ff0000;
}

.radar-cta-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ff0000;
}

.radar-cta-title {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.15rem;
    font-weight: 900;
    color: #fff;
}

.radar-cta-sub {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #999;
}

/* Gig rows (the listed-gigs block) --------------------------------------- */

.radar-wire-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #262626;
}

.radar-wire-item {
    border-bottom: 1px solid #262626;
}

.radar-wire-link {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.7rem 0;
}

.radar-wire-date {
    flex: 0 0 auto;
    width: 2.4rem;
    text-align: center;
    border-right: 1px solid #333;
    padding-right: 0.5rem;
}

.radar-wire-day {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.radar-wire-month {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ff0000;
    margin-top: 0.15rem;
}

.radar-wire-body {
    min-width: 0;
}

.radar-wire-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: #eee;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.radar-wire-link:hover .radar-wire-title {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #ff0000;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.radar-wire-meta {
    display: block;
    font-size: 0.75rem;
    color: #777;
    margin-top: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two abreast once there is room for it. */
@media (min-width: 900px) {
    .radar-wire-list--cols {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 2.25rem;
    }
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .radar-hot-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .radar-sweep-bg {
        right: -12%;
        opacity: 0.35;
    }

    .radar-countries {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .radar-page {
        padding: 90px 1rem 3rem;
    }

    .radar-sweep-bg {
        display: none;
    }

    /* Two abreast even on a phone: one column made the twelve tiles several
       screens long before the first chip. */
    .radar-hot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .radar-hot-tile {
        padding: 0.8rem 0.8rem 0.75rem;
    }

    .radar-hot-name {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .radar-hot-rank {
        font-size: 1.3rem;
    }

    .radar-hot-count {
        margin-top: 0.5rem;
        padding-top: 0.4rem;
        font-size: 0.72rem;
    }

    .radar-filter-input {
        max-width: none;
    }

    .radar-yourcity-links {
        margin-left: 0;
    }

    .radar-cta-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 320px) {
    .radar-hot-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Custom scrollbars (matches the magazine) ---------------------------- */

html {
    scrollbar-width: thin;
    scrollbar-color: #444 #101010;
}

::-webkit-scrollbar {
    width: 10px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #101010;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border: 2px solid #101010;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff0000;
}

::-webkit-scrollbar-corner {
    background: #101010;
}
