/* Shared styling for swingers/<country>.html pages (loaded after each page's inline styles) */
:root { --ok: #10b981; --warn: #ffb400; --bad: #ff5c5c; --card-bg: linear-gradient(160deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)); }
html { scroll-behavior: smooth; }

/* Page shell */
main.container { padding: 3.5rem 3rem 4rem; position: relative; overflow: clip; }
main.container:hover { transform: none; border-color: var(--glass-border); }
main.container::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; background: radial-gradient(60% 100% at 50% 0%, rgba(255,0,128,0.16), transparent 70%), radial-gradient(40% 80% at 85% 0%, rgba(121,40,202,0.18), transparent 70%); pointer-events: none; z-index: -1; }
.back-link { font-size: 0.8rem; letter-spacing: 0.14em; padding: 0.7rem 1.2rem; border-radius: 50px; border: 1px solid var(--glass-border); background: rgba(10,10,14,0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0.8; transition: opacity 0.3s, border-color 0.3s, color 0.3s; }
.back-link:hover { opacity: 1; border-color: var(--accent-1); color: var(--accent-1); }

h2.page-title { display: flex; align-items: center; justify-content: center; gap: 0.9rem; flex-wrap: wrap; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.03em; }
h2.page-title img { width: 1.1em !important; margin: 0 !important; border-radius: 10px !important; box-shadow: 0 6px 24px rgba(0,0,0,0.6); }
h2.page-title .pt-text { background: linear-gradient(120deg, #fff 0%, #ffd1e8 35%, var(--accent-1) 70%, #b06bff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }
h2.page-title + p { font-size: 0.85rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.55); }

.notice-box { max-width: 1100px; margin-left: auto; margin-right: auto; border-radius: 18px; border: 1px solid rgba(255,0,128,0.25); background: linear-gradient(90deg, rgba(255,0,128,0.09), rgba(121,40,202,0.07)); }
.notice-box strong { color: #ff8cc6; font-weight: 700; }

/* Table toolbar: Hide DEAD + counts */
.tbl-tools { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; }
.tbl-toggle { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.55rem 1.1rem 0.55rem 0.6rem; border-radius: 50px; border: 1px solid var(--glass-border); background: rgba(0,0,0,0.35); cursor: pointer; user-select: none; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.85); transition: border-color 0.3s; }
.tbl-toggle:hover { border-color: rgba(255,0,128,0.5); }
.tbl-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tbl-toggle .sw { position: relative; width: 42px; height: 24px; border-radius: 50px; background: rgba(255,255,255,0.12); transition: background 0.3s; flex-shrink: 0; }
.tbl-toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.tbl-toggle input:checked + .sw { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); }
.tbl-toggle input:checked + .sw::after { transform: translateX(18px); }
.tbl-toggle input:focus-visible + .sw { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.tbl-count { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.55; }
.tier-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
body.hide-dead tr.is-dead { display: none; }
.table-container tr.tier-off { display: none; }
.tier-legend .tier { cursor: pointer; user-select: none; transition: opacity 0.15s, transform 0.15s, outline-color 0.15s; outline: 2px solid transparent; outline-offset: 2px; }
.tier-legend .tier:hover { transform: translateY(-1px); }
.tier-legend.has-active .tier:not(.is-active) { opacity: 0.4; }
.tier-legend .tier.is-active { outline-color: rgba(255,255,255,0.85); }

/* Table */
.table-container { background: var(--card-bg); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 24px; padding: 0.75rem 1rem; margin-top: 1.25rem; }
.table-container table { min-width: 720px; }
.table-container th { text-align: center; font-size: 0.7rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); opacity: 1; border-bottom: 1px solid rgba(255,0,128,0.35); }
.table-container th:nth-child(2) { text-align: left; }
.table-container td { text-align: center; vertical-align: middle; padding: 1rem 0.9rem; }
.table-container td:nth-child(2) { text-align: left; }
.table-container tbody tr:nth-child(even) td { background: rgba(255,255,255,0.015); }
.table-container tbody tr:hover td { background: rgba(255,0,128,0.06); }
.table-container td[colspan] { text-align: center; }
.row-num { opacity: 0.4; font-weight: 700; font-size: 0.85rem; }
.club-cell { display: flex; flex-direction: column; gap: 0.45rem; align-items: flex-start; }
.club-line { display: block; line-height: 1.5; }
.club-line .maps-ico { vertical-align: middle; margin-left: 0.45rem; }
.club-cell .table-link { font-weight: 500; font-size: 1rem; line-height: 1.35; }
.club-cell .favicon { flex-shrink: 0; }
.club-host { font-size: 0.72rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); text-decoration: none; word-break: break-all; }
.club-host:hover { color: #ff8cc6; }
.maps-ico { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); flex-shrink: 0; transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.maps-ico:hover { background: rgba(255,255,255,0.14); border-color: rgba(234,67,53,0.6); transform: translateY(-1px) scale(1.06); }
.maps-ico svg { width: 15px; height: 15px; display: block; }
.city-cell { font-weight: 400; }
.type-cell { font-size: 0.82rem; color: rgba(255,255,255,0.6); white-space: nowrap; }

/* Status pills */
.st-pill { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.35rem 0.75rem; border-radius: 50px; border: 1px solid currentColor; }
.st-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.st-live { color: var(--ok); background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.4); }
.st-warn { color: var(--warn); background: rgba(255,180,0,0.08); border-color: rgba(255,180,0,0.35); }
.st-dead { color: var(--bad); background: rgba(255,60,60,0.08); border-color: rgba(255,60,60,0.35); }
.st-note { display: block; margin-top: 0.35rem; font-size: 0.72rem; color: rgba(255,255,255,0.45); white-space: normal; text-transform: none; letter-spacing: 0; max-width: 260px; margin-left: auto; margin-right: auto; }

/* Tier pills */
.tier { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 0.28rem 0.7rem; border-radius: 50px; line-height: 1.2; }
.tier-legendary { color: #1a1000; background: linear-gradient(135deg, #fff1a8, #ffc83d 45%, #ff9a1f); box-shadow: 0 0 0 1px rgba(255,210,80,0.6), 0 4px 18px -4px rgba(255,190,40,0.7); position: relative; overflow: hidden; }
.tier-legendary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.75) 50%, transparent 70%); transform: translateX(-120%); animation: tier-shine 3.2s infinite; }
@keyframes tier-shine { 60%, 100% { transform: translateX(120%); } }
.tier-famous { color: #fff; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); box-shadow: 0 4px 16px -4px rgba(255,0,128,0.7); }
.tier-popular { color: #ffd2ea; background: rgba(255,0,128,0.14); border: 1px solid rgba(255,0,128,0.5); }
.tier-established { color: #c8b5ff; background: rgba(121,40,202,0.16); border: 1px solid rgba(150,90,255,0.45); }
.tier-small { color: rgba(255,255,255,0.65); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); }
.tier-not_venue { color: rgba(255,255,255,0.5); background: transparent; border: 1px dashed rgba(255,255,255,0.25); }
.tier-closed { color: var(--bad); background: rgba(255,60,60,0.08); border: 1px solid rgba(255,60,60,0.35); }

/* Cards / sections */
.section-divider { display: flex; align-items: center; gap: 1rem; text-align: center; font-size: 1.9rem; font-weight: 900; letter-spacing: -0.01em; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,0,128,0.5)); }
.section-divider::after { background: linear-gradient(270deg, transparent, rgba(121,40,202,0.6)); }
.club-card { background: var(--card-bg), rgba(14,12,18,0.6); backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 26px; transition: border-color 0.35s, box-shadow 0.35s; }
.club-card:hover { border-color: rgba(255,0,128,0.4); box-shadow: 0 24px 50px -28px rgba(255,0,128,0.5); }
.club-rank { background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); box-shadow: 0 4px 14px -4px rgba(255,0,128,0.7); }
.club-desc strong { color: #fff; font-weight: 700; }
.club-desc li::marker { color: var(--accent-1); }
.club-img[src=""], .club-img:not([src]) { display: none; }
.meta-value { color: #ff8cc6; }
.faq-item { background: var(--card-bg); }
.sources { text-align: center; }

@media (max-width: 768px) {
    main.container { padding: 2.5rem 1rem 3rem; border-radius: 28px; }
    .section-divider { font-size: 1.4rem; }
    /* Table becomes stacked cards */
    .table-container { padding: 0.5rem; background: none; border: none; overflow: visible; }
    .table-container table, .table-container tbody, .table-container tr, .table-container td { display: block; width: 100%; min-width: 0; }
    .table-container thead { display: none; }
    .table-container tbody tr { margin-bottom: 0.9rem; padding: 1rem 1.1rem; border-radius: 18px; border: 1px solid var(--glass-border); background: var(--card-bg); position: relative; text-align: center; }
    .table-container tbody tr td, .table-container tbody tr:nth-child(even) td, .table-container tbody tr:hover td { background: none; border: none; padding: 0.3rem 0; text-align: center; }
    .table-container td.num-cell { position: absolute; top: 0.8rem; left: 1rem; width: auto; padding: 0; }
    .club-cell { align-items: center; }
}

/* City quick filter */
.city-filter { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; text-align: center; }
.city-filter-label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); margin-right: 0.25rem; }
.city-chip { font: inherit; font-size: 0.78rem; font-weight: 600; text-align: center; cursor: pointer; color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); border-radius: 50px; padding: 0.3rem 0.8rem; transition: background 0.15s, border-color 0.15s, transform 0.15s; }
.city-chip:hover { transform: translateY(-1px); border-color: rgba(255,255,255,0.5); }
.city-chip.is-active { color: #fff; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); border-color: transparent; box-shadow: 0 4px 16px -4px rgba(255,0,128,0.7); }
.city-chip-n { opacity: 0.65; font-size: 0.7rem; margin-left: 0.15rem; }
