/* ============================================================
   KinkSports Wrestlers — "Pink Noir" design system
   Hot-pink on cinematic violet-black. Oswald + Inter.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

.ksw {
	--ks-pink: #ff2d7e;
	--ks-pink-bright: #ff5ca8;
	--ks-pink-deep: #c20e55;
	--ks-bg: #0b0a0f;
	--ks-surface: #16131c;
	--ks-surface-2: #221c2b;
	--ks-line: rgba(255, 255, 255, .08);
	--ks-text: #ffffff;
	--ks-text-2: #c7c2d0;
	--ks-text-3: #837e8e;
	--ks-win: #ff5ca8;
	--ks-loss: #837e8e;
	--ks-grad-fade: linear-gradient(to top, #0b0a0f 0%, rgba(11, 10, 15, .55) 38%, transparent 100%);
	--ks-grad-pink: linear-gradient(135deg, #ff2d7e, #c20e55);

	font-family: 'Inter', system-ui, sans-serif;
	color: var(--ks-text);
	background: var(--ks-bg);
	-webkit-font-smoothing: antialiased;
}
.ksw *, .ksw *::before, .ksw *::after { box-sizing: border-box; }
.ksw img { display: block; max-width: 100%; height: auto; }

/* anular cualquier color del tema (links rojos, headings oscuros) dentro del scope */
.ksw a, .ksw a:visited, .ksw a:hover, .ksw a:focus { color: inherit !important; text-decoration: none; }
.ksw h1, .ksw h2, .ksw h3, .ksw h4 { color: var(--ks-text) !important; }

/* shared headings */
.ksw-h2 {
	font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.35rem;
	text-transform: uppercase; letter-spacing: .18em; margin: 0 0 26px; position: relative;
	padding-left: 18px;
}
.ksw-h2::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 5px; height: 1.2em; border-radius: 4px; background: var(--ks-grad-pink);
	box-shadow: 0 0 16px rgba(255, 45, 126, .6);
}

/* ============================================================
   SINGLE — cinematic hero
   ============================================================ */
.ksw-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; padding: 0; overflow: hidden; }
.ksw-hero::before {
	content: ""; position: absolute; inset: 0;
	background-image: var(--ks-hero-bg); background-size: cover; background-position: center 18%;
	transform: scale(1.06); filter: saturate(1.05) contrast(1.02);
}
.ksw-hero::after { content: ""; position: absolute; inset: 0; background: var(--ks-grad-fade); }
.ksw-hero-inner {
	position: relative; z-index: 2; width: 100%; max-width: 1240px; margin: 0 auto;
	padding: 64px 40px; display: flex; gap: 48px; align-items: flex-end; flex-wrap: wrap;
}
.ksw-hero-photo {
	flex: 0 0 300px; max-width: 300px; border-radius: 16px; overflow: hidden;
	border: 1px solid var(--ks-line);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 45, 126, .15);
}
.ksw-hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.ksw-hero-meta { flex: 1; min-width: 280px; }
.ksw-eyebrow {
	margin: 0 0 14px; font-size: .72rem; font-weight: 600; letter-spacing: .32em;
	text-transform: uppercase; color: var(--ks-pink); display: inline-flex; align-items: center; gap: 10px;
}
.ksw-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--ks-pink); display: inline-block; }
.ksw-name {
	font-family: 'Oswald', sans-serif; font-weight: 700; line-height: .92;
	font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; letter-spacing: .01em; margin: 0;
	text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}
.ksw-nickname {
	margin: 14px 0 0; font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 1.5rem;
	color: var(--ks-pink-bright); letter-spacing: .04em;
}

/* glass record chips */
.ksw-record { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.ksw-rec {
	position: relative; min-width: 104px; padding: 16px 24px; text-align: center;
	background: rgba(255, 255, 255, .05); border: 1px solid var(--ks-line); border-radius: 14px;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	transition: transform .3s ease, border-color .3s ease;
}
.ksw-rec:hover { transform: translateY(-3px); border-color: rgba(255, 45, 126, .5); }
.ksw-rec-num { display: block; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 2.3rem; line-height: 1; }
.ksw-rec-lbl { display: block; margin-top: 8px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ks-text-3); }
.ksw-rec--win .ksw-rec-num { color: var(--ks-win); }
.ksw-rec--loss .ksw-rec-num { color: var(--ks-loss); }

/* body */
.ksw-body { max-width: 1240px; margin: 0 auto; padding: 64px 40px 96px; }
.ksw-section + .ksw-section { margin-top: 64px; }

/* stats — editorial grid with hairlines */
.ksw-stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	border: 1px solid var(--ks-line); border-radius: 14px; overflow: hidden;
}
.ksw-stat { padding: 22px 24px; border-right: 1px solid var(--ks-line); border-bottom: 1px solid var(--ks-line); background: rgba(255, 255, 255, .015); }
.ksw-stat-label { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ks-text-3); }
.ksw-stat-value { display: block; margin-top: 9px; font-size: 1.1rem; font-weight: 600; color: var(--ks-text); }

.ksw-bio { max-width: 780px; font-size: 1.1rem; line-height: 1.8; color: var(--ks-text-2); }

.ksw-video { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.ksw-video iframe, .ksw-video video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* gallery */
.ksw-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ksw-gallery-item { position: relative; overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.ksw-gallery-item::after {
	content: ""; position: absolute; inset: 0; background: var(--ks-grad-pink); opacity: 0;
	mix-blend-mode: overlay; transition: opacity .35s ease;
}
.ksw-gallery-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.ksw-gallery-item:hover img { transform: scale(1.09); }
.ksw-gallery-item:hover::after { opacity: .22; }

/* Her Collection (WooCommerce products) — tarjetas Pink Noir 16:9 */
.ksw-shop-section ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.ksw-shop-section ul.products li.product {
	display: flex !important; flex-direction: column; width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
	background: var(--ks-surface); border: 1px solid var(--ks-line); border-radius: 14px; overflow: hidden;
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ksw-shop-section ul.products li.product:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(255, 45, 126, .28); border-color: rgba(255, 45, 126, .35); }
/* imagen: ocupa todo el ancho con proporción 16:9 (el bug era que faltaba width:100%) */
.ksw-shop-section li.product a { display: block; color: inherit; text-decoration: none; }
.ksw-shop-section li.product img,
.ksw-shop-section li.product a img {
	width: 100% !important; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
	display: block; margin: 0 !important; border-radius: 0 !important; background: var(--ks-surface-2);
}
.ksw-shop-section li.product .woocommerce-loop-product__title,
.ksw-shop-section li.product h2,
.ksw-shop-section li.product h3 {
	font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 1rem !important; line-height: 1.25;
	text-transform: uppercase; letter-spacing: .03em; color: var(--ks-text) !important;
	padding: 14px 16px 6px !important; margin: 0 !important;
}
.ksw-shop-section li.product .price {
	display: block; padding: 0 16px 12px; margin: 0; font-family: 'Oswald', sans-serif;
	color: var(--ks-pink-bright) !important; font-weight: 600; font-size: 1.05rem;
}
.ksw-shop-section li.product .price:empty { display: none; padding: 0; }
.ksw-shop-section li.product .price ins { text-decoration: none; }
.ksw-shop-section li.product .price del { color: var(--ks-text-3) !important; opacity: .7; font-weight: 400; font-size: .92rem; }
.ksw-shop-section li.product .button,
.ksw-shop-section li.product .add_to_cart_button,
.ksw-shop-section li.product .added_to_cart {
	display: block; margin: auto 16px 16px !important; padding: 11px !important;
	background: var(--ks-grad-pink) !important; color: #fff !important; border: 0 !important; border-radius: 8px !important;
	text-align: center; text-transform: uppercase; letter-spacing: .08em; font-family: 'Oswald', sans-serif;
	font-size: .78rem !important; font-weight: 600; line-height: 1.2; box-shadow: 0 6px 18px rgba(255, 45, 126, .3);
	transition: filter .25s ease, transform .25s ease;
}
.ksw-shop-section li.product .button:hover,
.ksw-shop-section li.product .add_to_cart_button:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ksw-shop-section li.product .added_to_cart { margin-top: 0 !important; background: var(--ks-surface-2) !important; box-shadow: none; }
/* ocultar rating vacío que algunos temas inyectan */
.ksw-shop-section li.product .star-rating:empty { display: none; }

/* lightbox */
.ksw-lb { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; padding: 30px; background: rgba(6, 5, 9, .94); cursor: zoom-out; backdrop-filter: blur(6px); }
.ksw-lb.is-open { display: flex; animation: ksw-fade .25s ease; }
.ksw-lb img { max-width: 92vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .8); }
.ksw-lb-close { position: absolute; top: 22px; right: 30px; font-size: 2.6rem; line-height: 1; color: #fff; cursor: pointer; opacity: .8; }
.ksw-lb-close:hover { color: var(--ks-pink); opacity: 1; }
@keyframes ksw-fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   ROSTER
   ============================================================ */
.ksw-roster { max-width: 1320px; margin: 0 auto; padding: 56px 40px 96px; }

/* título + contador */
.ksw-roster-head { margin-bottom: 22px; }
.ksw-roster-titlewrap { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ksw-roster-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.ksw-roster-count { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ks-pink); padding: 5px 12px; border: 1px solid rgba(255, 45, 126, .35); border-radius: 999px; }

/* ---- barra de filtros (auditada, blindada vs el tema, distribuida en grupos) ---- */
.ksw-filters {
	display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
	margin-bottom: 32px; padding: 14px 18px; border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
	border: 1px solid var(--ks-line);
}
.ksw-filter-group { display: flex; align-items: center; gap: 14px 16px; flex-wrap: wrap; }
.ksw-filter-group--main { flex: 1 1 460px; }
.ksw-filter-group--aux { gap: 10px; }

/* reset duro: el tema pinta button/input con su estilo rosa; aquí lo neutralizamos */
.ksw-filters button, .ksw-filters input {
	-webkit-appearance: none !important; appearance: none !important;
	min-width: 0 !important; line-height: normal !important; text-shadow: none !important;
	font-family: 'Inter', sans-serif !important; margin: 0 !important;
}

/* búsqueda con ícono */
.ksw-search-wrap { position: relative; flex: 1 1 220px; max-width: 300px; min-width: 180px; display: flex; align-items: center; }
.ksw-search-icon { position: absolute; left: 14px; z-index: 1; color: var(--ks-text-3); pointer-events: none; transition: color .25s ease; }
.ksw-search-wrap:focus-within .ksw-search-icon { color: var(--ks-pink); }
.ksw-filters .ksw-search {
	width: 100% !important; height: 42px !important; padding: 0 14px 0 40px !important;
	background: var(--ks-bg) !important; border: 1px solid var(--ks-line) !important; border-radius: 10px !important;
	color: var(--ks-text) !important; font-size: .9rem !important; text-transform: none !important;
	outline: none !important; box-shadow: none !important;
	transition: border-color .25s ease, box-shadow .25s ease;
}
.ksw-search::placeholder { color: var(--ks-text-3) !important; opacity: 1; }
.ksw-filters .ksw-search:focus { border-color: var(--ks-pink) !important; box-shadow: 0 0 0 3px rgba(255, 45, 126, .16) !important; }

/* sliders de rango (altura / peso) */
.ksw-range { flex: 0 0 158px; }
.ksw-range-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.ksw-range-label { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ks-text-3); }
.ksw-range-out { font-size: .72rem; font-weight: 600; color: var(--ks-text); font-variant-numeric: tabular-nums; }
.ksw-range-slider { position: relative; height: 18px; }
.ksw-range-slider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.ksw-range-fill { position: absolute; top: 50%; transform: translateY(-50%); height: 4px; border-radius: 4px; background: var(--ks-grad-pink); }
.ksw-range input[type=range] { position: absolute; left: 0; top: 0; width: 100%; height: 18px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ksw-range input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.ksw-range input[type=range]::-moz-range-track { background: none; border: 0; }
.ksw-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: #fff; border: 3px solid var(--ks-pink); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
.ksw-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--ks-pink); cursor: pointer; }

/* orden segmentado */
.ksw-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--ks-bg); border: 1px solid var(--ks-line); border-radius: 10px; }
.ksw-filters .ksw-seg-btn { height: 34px !important; padding: 0 14px !important; background: transparent !important; border: 0 !important; color: var(--ks-text-3) !important; font-weight: 600 !important; font-size: .76rem !important; text-transform: none !important; letter-spacing: normal !important; border-radius: 7px !important; box-shadow: none !important; cursor: pointer; transition: all .2s ease; }
.ksw-filters .ksw-seg-btn:hover { color: var(--ks-text) !important; }
.ksw-filters .ksw-seg-btn.is-active { background: var(--ks-pink) !important; color: #fff !important; }

/* chips toggle */
.ksw-filters .ksw-chip { height: 38px !important; padding: 0 16px !important; background: var(--ks-bg) !important; border: 1px solid var(--ks-line) !important; border-radius: 999px !important; color: var(--ks-text-2) !important; font-weight: 600 !important; font-size: .8rem !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; cursor: pointer; transition: all .22s ease; }
.ksw-filters .ksw-chip:hover { border-color: rgba(255, 45, 126, .55) !important; color: var(--ks-text) !important; }
.ksw-filters .ksw-chip.is-active { background: var(--ks-pink) !important; border-color: transparent !important; color: #fff !important; }

/* clear */
.ksw-filters .ksw-clear { height: 38px !important; padding: 0 6px !important; background: transparent !important; border: 0 !important; color: var(--ks-text-3) !important; font-weight: 600 !important; font-size: .76rem !important; letter-spacing: .06em !important; text-transform: uppercase !important; box-shadow: none !important; cursor: pointer; transition: color .2s ease; }
.ksw-filters .ksw-clear:hover { color: var(--ks-pink) !important; }

.ksw-roster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 24px; }

.ksw-card { position: relative; display: block; text-decoration: none; color: inherit; border-radius: 16px; overflow: hidden; background: var(--ks-surface); transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s ease; }
.ksw-card:hover { transform: translateY(-6px); box-shadow: 0 18px 42px rgba(0, 0, 0, .55); z-index: 2; }
.ksw-card.is-featured { box-shadow: 0 0 0 2px var(--ks-pink); }
.ksw-card-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.ksw-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ksw-card:hover .ksw-card-photo img { transform: scale(1.09); }
.ksw-card-noimg { width: 100%; height: 100%; background: linear-gradient(135deg, #1b1622, #2a2036); }

/* nickname + record SIEMPRE visibles, SIN cambio en hover (no se "prende") */
.ksw-card-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 16px 14px; display: flex; flex-direction: column; gap: 4px; background: linear-gradient(to top, rgba(11, 10, 15, .98) 0%, rgba(11, 10, 15, .78) 42%, rgba(11, 10, 15, .25) 78%, transparent 100%); }
.ksw-card-nickname { font-family: 'Oswald', sans-serif; font-weight: 500; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ks-pink-bright); }
.ksw-card-rec { font-size: .72rem; letter-spacing: .04em; color: var(--ks-text-2); }
.ksw-card-star { position: absolute; top: 12px; right: 14px; display: block; width: 18px; height: 18px; color: var(--ks-pink); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .7)); }

.ksw-card-body { padding: 14px 16px; text-align: center; }
.ksw-card-name { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ks-text) !important; transition: color .25s ease; }
.ksw-card:hover .ksw-card-name { color: var(--ks-pink) !important; }

.ksw-card.is-hidden { display: none; }
.ksw-roster-empty { grid-column: 1 / -1; text-align: center; padding: 48px; color: var(--ks-text-3); font-size: 1.05rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
	.ksw-hero-inner, .ksw-body, .ksw-roster { padding-left: 22px; padding-right: 22px; }
	.ksw-roster-grid { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 18px; }
}

/* ---------- MÓVIL: 1 tarjeta por renglón + todo optimizado ---------- */
@media (max-width: 560px) {
	/* hero (página individual) */
	.ksw-hero { min-height: 0; }
	.ksw-hero-inner { flex-direction: column; align-items: flex-start; padding: 32px 18px; gap: 20px; }
	.ksw-hero-photo { flex: 0 0 auto; width: 66%; max-width: 230px; }
	.ksw-name { font-size: clamp(2.3rem, 13vw, 3.4rem); }
	.ksw-nickname { font-size: 1.15rem; }
	.ksw-record { gap: 10px; width: 100%; }
	.ksw-rec { min-width: 0; flex: 1; padding: 12px 6px; }
	.ksw-rec-num { font-size: 1.7rem; }

	/* cuerpo (página individual) */
	.ksw-body { padding: 38px 18px 56px; }
	.ksw-section + .ksw-section { margin-top: 42px; }
	.ksw-h2 { font-size: 1.2rem; }
	.ksw-stats { grid-template-columns: 1fr 1fr; }
	.ksw-bio { font-size: 1rem; }
	.ksw-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.ksw-shop-section ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; }

	/* roster: filtros apilados, compactos (FIX: sin estiramiento vertical) */
	.ksw-roster { padding: 28px 16px 56px; }
	.ksw-roster-title { font-size: 2rem; }
	.ksw-filters { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px; }
	.ksw-filters .ksw-filter-group { flex: 0 0 auto !important; width: 100%; }
	.ksw-filter-group--main { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
	.ksw-filter-group--main > * { flex: 0 0 auto !important; width: 100%; max-width: none; }
	.ksw-search-wrap { min-width: 0; }
	.ksw-range { flex: 0 0 auto !important; }
	/* sliders más cómodos al tacto */
	.ksw-range-slider { height: 24px; }
	.ksw-range input[type=range] { height: 24px !important; }
	.ksw-range input[type=range]::-webkit-slider-thumb { width: 20px; height: 20px; margin-top: 0; }
	.ksw-range input[type=range]::-moz-range-thumb { width: 18px; height: 18px; }
	/* fila de acciones */
	.ksw-filter-group--aux { display: flex; flex-wrap: wrap; gap: 10px; }
	.ksw-seg { width: 100%; }
	.ksw-filters .ksw-seg-btn { flex: 1; height: 40px !important; }
	.ksw-filters .ksw-chip { flex: 1 1 calc(50% - 5px); text-align: center; height: 40px !important; }
	.ksw-filters .ksw-clear { width: 100%; text-align: center; height: 36px !important; }

	/* UNA tarjeta por renglón */
	.ksw-roster-grid { grid-template-columns: 1fr; gap: 18px; }
	.ksw-card-photo { aspect-ratio: 4 / 5; }
	.ksw-card-overlay { padding: 34px 18px 16px; }
	.ksw-card-name { font-size: 1.3rem; }
	.ksw-card-nickname { font-size: 1.1rem; }
	.ksw-card-rec { font-size: .82rem; }
	.ksw-card-star { font-size: 1.2rem; }
}
