/* BullasWeather · En directo, tercera revisión */
.live-jump{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;margin:0 0 20px;padding:2px 0 10px}
.live-jump a{display:inline-flex;align-items:center;flex:none;min-height:42px;padding:8px 15px;border:1px solid #c8d9e8;border-radius:999px;background:#fff;color:#0c4e7c;font-size:.83rem;font-weight:800;text-decoration:none;white-space:nowrap}
.live-jump a:hover{background:#eaf4fa}
.live-jump a:focus-visible,.live-catalog a:focus-visible,.live-catalog summary:focus-visible{outline:3px solid #f7bd59;outline-offset:2px}
.live-dashboard,.live-rankings,.live-explorer,.live-catalog,.live-climate{scroll-margin-top:100px}
.live-dashboard{overflow:hidden;margin-bottom:24px;border-radius:20px;background:#092e4e;color:#fff;box-shadow:0 12px 30px rgba(13,43,76,.12)}
.live-dashboard-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:20px;padding:24px 28px 21px;background:linear-gradient(115deg,#092e4e,#0b5783)}
.live-dashboard-head .eyebrow{margin:0 0 8px;color:#91d9eb}
.live-dashboard-head h2{margin:0;font-size:clamp(1.65rem,3vw,2.2rem);line-height:1.1;letter-spacing:-.04em}
.live-dashboard-head p:last-child{margin:8px 0 0;color:#cae5f3;font-size:.89rem}
.live-network-summary{text-align:right}
.live-network-summary strong{display:block;font-size:2.1rem;line-height:1.05;letter-spacing:-.05em}
.live-network-summary small{display:block;color:#bfd9eb}
.live-dashboard-meta{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:9px 28px;background:rgba(255,255,255,.06);font-size:.78rem;color:#d2e7f3}
.live-dashboard-meta .status{display:inline-flex;align-items:center;gap:7px}
.live-dashboard-meta .status:before{content:"";width:7px;height:7px;border-radius:50%;background:#47d6a1}
.live-dashboard-meta .status.warn:before{background:#ffc463}
.live-dashboard-values{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.live-metric{min-width:0;padding:19px 22px;border-top:1px solid rgba(255,255,255,.1);border-right:1px solid rgba(255,255,255,.1)}
.live-metric:last-child{border-right:0}
.live-metric small{display:block;min-height:30px;color:#b5d9eb;text-transform:uppercase;font-size:.68rem;font-weight:800;letter-spacing:.06em}
.live-metric strong{display:block;margin:5px 0;font-size:clamp(1.18rem,2vw,1.55rem);letter-spacing:-.035em;white-space:nowrap}
.live-metric span{display:block;overflow-wrap:anywhere;color:#d0e3ee;font-size:.73rem;line-height:1.35}
.live-rankings{margin:0 0 26px;padding:18px;border:1px solid var(--line);border-radius:17px;background:#fff}
.live-rankings-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:15px}
.live-rankings h2{margin:0;font-size:1.1rem;letter-spacing:-.02em}
.live-rankings p{margin:3px 0 0;color:var(--muted);font-size:.79rem}
.live-rank-tabs,.live-map-tabs{display:flex;gap:7px;flex-wrap:wrap}
.live-rank-tabs button,.live-map-tabs button{min-height:42px;padding:8px 13px;border:1px solid #ccddec;border-radius:9px;background:#f4f8fc;color:#0b5288;font:inherit;font-size:.82rem;font-weight:800;cursor:pointer}
.live-rank-tabs button[aria-selected="true"],.live-map-tabs button[aria-selected="true"]{border-color:#0b5783;background:#0b5783;color:#fff}
.live-rank-tabs button[data-rank="max"][aria-selected="true"]{border-color:#bd3428;background:#bd3428}
.live-rank-tabs button[data-rank="min"][aria-selected="true"]{border-color:#2563ad;background:#2563ad}
.live-rank-tabs button[data-rank="rain"][aria-selected="true"]{border-color:#087c91;background:#087c91}
.live-rank-tabs button[data-rank="wind"][aria-selected="true"]{border-color:#7542ad;background:#7542ad}
.live-rank-tabs button:focus-visible,.live-map-tabs button:focus-visible,.climate-card:focus-visible{outline:3px solid #f7bd59;outline-offset:2px}
.live-rank-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-height:156px}
.live-rank-card{display:flex;flex-direction:column;min-width:0;min-height:154px;padding:15px;border:1px solid #e1e9f2;border-radius:15px;background:radial-gradient(circle at 100% 0,#fff2ee 0 30px,#fff 31px);text-decoration:none;color:#152d47}
.live-rank-card:hover{border-color:#8bc7e5;box-shadow:0 5px 16px #1232}
.live-rank-medal{display:block;width:33px;height:33px;font-size:1.25rem;line-height:1.6}
.live-rank-station{display:block;margin:4px 0 12px;font-size:.82rem;line-height:1.25;font-weight:800;overflow-wrap:anywhere}
.live-rank-value{display:block;margin-top:auto;color:#c93629;font-size:1.5rem;line-height:1.1;font-weight:900;letter-spacing:-.03em}
.live-rank-podium[data-rank-theme="min"] .live-rank-value{color:#2563ad}
.live-rank-podium[data-rank-theme="rain"] .live-rank-value{color:#087c91}
.live-rank-podium[data-rank-theme="wind"] .live-rank-value{color:#7542ad}
.live-rank-podium[data-rank-theme="min"] .live-rank-card{background:radial-gradient(circle at 100% 0,#eaf3ff 0 30px,#fff 31px)}
.live-rank-podium[data-rank-theme="rain"] .live-rank-card{background:radial-gradient(circle at 100% 0,#e8f9fa 0 30px,#fff 31px)}
.live-rank-podium[data-rank-theme="wind"] .live-rank-card{background:radial-gradient(circle at 100% 0,#f4ebff 0 30px,#fff 31px)}
.live-rank-extra{display:block;margin-top:5px;color:#60738b;font-size:.7rem;font-weight:650;line-height:1.25}
.live-rank-message{grid-column:1/-1;align-self:center;text-align:center}
.live-rank-source{position:absolute;left:-10000px;top:0;width:1000px;height:800px;border:0;visibility:hidden;pointer-events:none}
.live-rank-footer{display:flex;justify-content:flex-end;margin-top:11px}
.live-rank-footer a{color:var(--blue);font-size:.82rem;font-weight:800}
.live-feature-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:18px}
.live-feature-grid .panel{min-width:0;display:flex;flex-direction:column}
.live-feature-grid .panel-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.live-feature-grid .panel-head small{font-size:.73rem;color:var(--muted);font-weight:650}
.live-feature-grid .panel-foot{margin-top:auto}
.live-embed{position:relative;height:390px;overflow:hidden;background:#e6f0f6}
.live-embed iframe{position:absolute;top:-90px;left:0;width:100%;height:calc(100% + 90px);border:0;opacity:0;pointer-events:none;transition:opacity .2s}
.live-embed.is-ready iframe{opacity:1;pointer-events:auto}
.live-embed.is-ready .live-embed-fallback{display:none}
.live-embed-fallback{position:absolute;inset:0;display:grid;place-items:center;color:#0a5288;text-align:center}
.live-embed-fallback img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.live-embed-fallback span{position:relative;max-width:90%;padding:8px 12px;border-radius:8px;background:#fff;box-shadow:0 2px 12px #1234;font-weight:800;font-size:.79rem}
.live-feature-grid .webcam-image{display:block;height:390px;overflow:hidden;background:#e6f0f6}
.live-feature-grid .webcam-image img{width:100%;height:100%;object-fit:cover}
.live-explorer{margin-top:39px}
.live-explorer .section-head{margin-bottom:16px}
.live-explorer .section-head h2{font-size:clamp(1.55rem,2.3vw,2rem);margin:0 0 5px}
.live-explorer .section-head p{margin:0;color:var(--muted);font-size:.87rem}
.live-map-tabs{margin:0 0 13px}
.live-map-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-bottom:15px;padding:17px;border:1px solid var(--line);border-radius:15px;background:#fff}
.live-map-controls label{min-width:0;color:#415b70;font-size:.77rem;font-weight:800}
.live-map-controls select,.live-map-controls input{display:block;width:100%;min-height:44px;margin-top:6px;padding:8px 10px;border:1px solid #c9dbe9;border-radius:9px;background:#fff;color:#143b59;font:inherit;font-size:.89rem}
.live-map-controls [hidden]{display:none}
.live-map-viewer{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fff}
.live-map-viewer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 19px;border-bottom:1px solid var(--line)}
.live-map-viewer-head h3{margin:0;font-size:1rem}
.live-map-viewer-head a{color:var(--blue);font-weight:800;font-size:.82rem}
.live-map-viewer-head a[hidden],.live-map-viewer-image img[hidden]{display:none}
.live-map-viewer-image{display:grid;place-items:center;min-height:270px;background:#f1f5f9}
.live-map-viewer-image img{display:block;width:100%;max-height:820px;object-fit:contain}
.live-map-error{padding:20px;color:#a53434;font-size:.86rem}
.live-map-viewer-foot{padding:11px 19px;color:var(--muted);font-size:.78rem}
.live-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:26px}
.live-product-grid .info-card{min-width:0}
.live-network-explorer{margin-top:26px;padding:19px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 5px 20px rgba(24,50,78,.045)}
.live-network-explorer-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:0 0 17px}
.live-network-explorer-head .eyebrow{margin:0 0 5px;color:#0a7094;font-size:.7rem;font-weight:900;letter-spacing:.1em}
.live-network-explorer-head h2{margin:0 0 5px;color:#162d48;font-size:clamp(1.3rem,2.3vw,1.8rem);letter-spacing:-.035em}
.live-network-explorer-head p:last-child{margin:0;color:var(--muted);font-size:.85rem;line-height:1.4}
.live-network-explorer-actions{display:flex;flex-wrap:wrap;gap:9px}
.live-network-explorer-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 15px;border:1px solid #a8c9df;border-radius:9px;color:#0b5783;text-decoration:none;font-size:.82rem;font-weight:850;white-space:nowrap}
.live-network-explorer-actions a:hover{background:#eef7fc}
.live-network-explorer-actions .live-network-full{border-color:#0b5783;background:#0b5783;color:#fff}
.live-network-explorer-actions .live-network-full:hover{background:#083f68}
.live-network-explorer-actions a:focus-visible,.live-network-explorer iframe:focus-visible{outline:3px solid #f7bd59;outline-offset:2px}
.live-network-explorer iframe{display:block;width:100%;height:870px;border:1px solid #d5e3ed;border-radius:13px;background:#f7fafc;visibility:hidden}
.live-network-explorer iframe.is-ready{visibility:visible}
.live-network-embed-fallback{padding:22px;text-align:center;background:#f7fafc;border:1px solid #d5e3ed;border-radius:13px}
.live-network-embed-fallback[hidden]{display:none}
.live-catalog{margin-top:35px}
.live-catalog .section-head{margin-bottom:15px}
.live-catalog .section-head h2{margin:0 0 5px;font-size:1.5rem}
.live-catalog .section-head p{margin:0;color:var(--muted);font-size:.86rem}
.live-catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;align-items:start}
.live-catalog-group{min-width:0;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden}
.live-catalog-group summary{min-height:55px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 16px;color:#143b59;font-size:.9rem;font-weight:850;cursor:pointer;list-style:none}
.live-catalog-group summary::-webkit-details-marker{display:none}
.live-catalog-group summary:after{content:'+';font-size:1.25rem;font-weight:500;color:#0b5783}
.live-catalog-group[open] summary:after{content:'−'}
.live-catalog-group ul{margin:0;padding:0 16px 12px;list-style:none}
.live-catalog-group li{border-top:1px solid #e8eff5}
.live-catalog-group li a{display:block;padding:11px 0;color:#0c5790;font-size:.83rem;font-weight:750;text-decoration:none;overflow-wrap:anywhere}
.live-catalog-group li a:hover{text-decoration:underline}
.live-catalog-note{margin:0;padding:2px 16px 16px;color:#765b33;font-size:.72rem;line-height:1.4}
.live-climate{margin-top:35px}
.live-climate .section-head{margin-bottom:15px}
.live-climate .section-head h2{margin:0 0 5px;font-size:1.5rem}
.live-climate .section-head p{margin:0;color:var(--muted);font-size:.86rem}
.live-climate-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.climate-card{display:flex;flex-direction:column;gap:9px;min-width:0;min-height:155px;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff;color:#142c44;text-decoration:none;box-shadow:0 5px 20px rgba(24,50,78,.045)}
.climate-card:hover{border-color:#8bc7e5;transform:translateY(-2px)}
.climate-card:nth-child(3n+2){background:#f5f9fd}
.climate-card:nth-child(6n+5),.climate-card:nth-child(6n+6){background:#f2f6fd}
.climate-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:12px;background:#f2f6fb;font-size:1.25rem}
.climate-card strong{margin-top:auto;font-size:.82rem;line-height:1.2;overflow-wrap:anywhere}
.climate-card small{color:var(--muted);font-size:.7rem;line-height:1.35}
.live-feature-grid .panel-foot a,.live-map-viewer-head a{min-height:36px;display:inline-flex;align-items:center}
@media(max-width:1100px){.live-climate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.live-dashboard-values{grid-template-columns:repeat(3,minmax(0,1fr))}.live-metric:nth-child(3){border-right:0}.live-feature-grid{grid-template-columns:1fr 1fr}.live-embed,.live-feature-grid .webcam-image{height:310px}.live-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-catalog-grid{grid-template-columns:1fr}}
@media(max-width:680px){.live-dashboard-head{grid-template-columns:1fr;padding:22px 18px 17px}.live-network-summary{text-align:left}.live-network-summary strong{font-size:1.6rem}.live-dashboard-meta{padding:10px 18px}.live-dashboard-values{grid-template-columns:repeat(2,minmax(0,1fr))}.live-metric{padding:15px 14px}.live-metric:nth-child(3){border-right:1px solid rgba(255,255,255,.1)}.live-metric:nth-child(even){border-right:0}.live-metric:last-child{grid-column:1/-1}.live-metric strong{font-size:1.32rem}.live-rank-tabs{width:100%}.live-rank-tabs button{flex:1}.live-rank-podium{grid-template-columns:1fr;min-height:0}.live-rank-card{min-height:100px;display:grid;grid-template-columns:34px 1fr auto;grid-template-rows:auto auto;column-gap:10px;align-items:center}.live-rank-medal{grid-row:1/3}.live-rank-station{grid-column:2/4;margin:0}.live-rank-value{grid-column:2;margin:0;font-size:1.34rem}.live-rank-extra{grid-column:3;margin:0;text-align:right}.live-feature-grid{grid-template-columns:1fr}.live-embed,.live-feature-grid .webcam-image{height:330px}.live-embed iframe{top:-70px;height:calc(100% + 70px)}.live-map-controls{grid-template-columns:1fr;padding:14px}.live-product-grid{grid-template-columns:1fr 1fr;gap:10px}.live-product-grid .info-card{padding:17px}.live-product-grid .info-card h2{font-size:1.05rem}.live-feature-grid .panel-foot{flex-wrap:wrap}.live-climate-grid{grid-auto-flow:column;grid-auto-columns:minmax(195px,68vw);grid-template-columns:none;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 12px}.climate-card{scroll-snap-align:start}}
@media(max-width:380px){.live-embed,.live-feature-grid .webcam-image{height:290px}.live-metric span{font-size:.69rem}.live-product-grid{grid-template-columns:1fr}.live-rank-card{grid-template-columns:34px 1fr}.live-rank-station{grid-column:2}.live-rank-extra{grid-column:2;text-align:left}}
@media(max-width:680px){.live-rank-tabs button{flex:1 1 calc(50% - 7px)}}
@media(max-width:680px){.live-network-explorer{padding:12px}.live-network-explorer-actions{width:100%}.live-network-explorer-actions a{flex:1 1 140px;white-space:normal;text-align:center}.live-network-explorer iframe{height:920px}}

/* BW_OBS_SPOTLIGHT_20260930 */
.live-bullas-spotlight{grid-column:1/-1;display:grid;grid-template-columns:minmax(210px,1.45fr) repeat(4,minmax(110px,1fr));gap:9px;margin-top:3px}
.live-city-current,.live-city-stat{min-width:0;min-height:102px;padding:13px 16px;border:1px solid rgba(195,225,246,.23);border-radius:13px;background:rgba(4,32,56,.48)}
.live-city-current{display:flex;flex-direction:column;justify-content:center;color:#fff;text-decoration:none}
.live-city-current:hover,.live-city-current:focus-visible{border-color:#87d8fa;background:rgba(7,52,82,.85)}
.live-city-current:focus-visible{outline:3px solid #f7bd59;outline-offset:2px}
.live-city-name{font-size:.72rem;font-weight:850;letter-spacing:.035em;color:#bfe9f7}
.live-city-current strong{display:block;margin:2px 0 0;font-size:clamp(2.1rem,3.1vw,3.2rem);line-height:1.07;letter-spacing:-.055em;white-space:nowrap}
.live-city-age{font-size:.68rem;color:#bddeed}
.live-city-stat{display:flex;flex-direction:column;justify-content:center;gap:7px}
.live-city-stat small{font-size:.64rem;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:#c9e0ed}
.live-city-stat strong{font-size:clamp(1.04rem,1.65vw,1.45rem);letter-spacing:-.035em;line-height:1.18;overflow-wrap:anywhere}
.live-city-stat.is-high strong{color:#ff8b79}
.live-city-stat.is-low strong{color:#8bc7ff}
.live-city-stat.is-rain strong{color:#80e0e9}
.live-city-stat.is-wind strong{color:#ffe1a3}
@media(max-width:1050px){.live-bullas-spotlight{grid-template-columns:repeat(4,minmax(0,1fr))}.live-city-current{grid-column:1/-1;min-height:104px}}
@media(max-width:680px){.live-bullas-spotlight{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.live-city-current{min-height:94px}.live-city-stat{min-height:72px;padding:10px 12px}.live-city-stat strong{font-size:1.18rem}}

/* BW_OBS_MAPCARD_20260930B */
.bw-map-station-card[hidden]{display:none!important}
.bw-map-station-card{position:absolute;z-index:5;top:9px;right:9px;width:min(247px,calc(100% - 18px));max-height:calc(100% - 18px);overflow:auto;border:1px solid #294e6c;border-radius:13px;background:#08243c;color:#fff;box-shadow:0 8px 24px #081f3577}
.bw-map-station-card a{display:block;padding:11px 13px 12px;color:inherit;text-decoration:none}
.bw-map-station-card a:hover,.bw-map-station-card a:focus-visible{background:#103f62;outline:2px solid #66cefc;outline-offset:-2px}
.bw-map-station-card .bw-name{display:block;margin-right:22px;font-size:13px;font-weight:850;line-height:1.2}
.bw-map-station-card .bw-age{display:block;margin-top:3px;color:#b7d7e9;font-size:10px}
.bw-map-station-card .bw-temp{display:block;margin:5px 0;color:#fff;font-size:24px;font-weight:900;line-height:1}
.bw-map-station-card .bw-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 8px;font-size:11px;line-height:1.3}
.bw-map-station-card .bw-figures span{min-width:0;overflow-wrap:anywhere}
.bw-map-station-card .bw-figures b{color:#b6def4;font-weight:700}
.bw-map-station-card .bw-open{display:block;margin-top:9px;padding:6px;border-radius:7px;background:#2db9f3;color:#05283e;text-align:center;font-size:11px;font-weight:850}
.bw-map-station-card .bw-close{position:absolute;z-index:2;top:5px;right:6px;width:25px;height:25px;border:0;border-radius:6px;background:#1b4865;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.bw-map-station-card .bw-close:hover,.bw-map-station-card .bw-close:focus-visible{background:#2b759c}


/* ==========================================================
   BullasWeather En Directo · Mini BullasLive V2
   2026-10-05
   ========================================================== */

.live-feature-grid{
  grid-template-columns:minmax(0,1.65fr) minmax(330px,.95fr);
  align-items:stretch;
}

/* ----------------------------------------------------------
   Consola superior del mapa
   ---------------------------------------------------------- */

.live-mini-console{
  padding:14px 16px 12px;
  background:linear-gradient(180deg,#0a3454,#092c48);
  border-bottom:1px solid rgba(255,255,255,.12);
  color:#fff;
}

.live-mini-console-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:11px;
}

.live-mini-console-head>div{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.live-mini-console-head strong{
  font-size:1rem;
  font-weight:900;
}

.live-mini-console-head span{
  font-size:.76rem;
  opacity:.78;
}

.live-mini-status{
  font-size:.72rem!important;
  font-weight:800;
  white-space:nowrap;
  color:#b9ddff;
}

.live-mini-vars{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.live-mini-vars button{
  appearance:none;
  border:1px solid rgba(255,255,255,.23);
  background:rgba(4,25,43,.68);
  color:#eef7ff;
  min-height:35px;
  padding:7px 11px;
  border-radius:999px;
  font:inherit;
  font-size:.75rem;
  font-weight:850;
  cursor:pointer;
  transition:.16s ease;
}

.live-mini-vars button:hover{
  background:#104d75;
  border-color:#76b9e5;
}

.live-mini-vars button.active{
  background:#f08a22;
  border-color:#ffb45f;
  color:#071522;
  box-shadow:0 3px 12px rgba(240,138,34,.23);
}

.live-mini-vars button:focus-visible{
  outline:3px solid #f7bd59;
  outline-offset:2px;
}

/* ----------------------------------------------------------
   Mapa
   ---------------------------------------------------------- */

.live-embed{
  height:510px;
}

/* ----------------------------------------------------------
   Webcam
   En escritorio se alarga para acompañar la altura total
   del mapa + consola + ranking.
   ---------------------------------------------------------- */

.live-feature-grid .webcam-image{
  height:760px;
  min-height:760px;
}

.live-feature-grid .webcam-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* ----------------------------------------------------------
   Ranking operativo
   ---------------------------------------------------------- */

.live-mini-ranking{
  padding:13px 14px 15px;
  border-top:1px solid #dce8f1;
  background:#f7fafc;
}

.live-mini-ranking-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:10px;
}

.live-mini-ranking-title{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.live-mini-ranking-title strong{
  color:#12243a;
  font-size:.92rem;
  white-space:nowrap;
}

.live-mini-rank-select{
  appearance:auto;
  max-width:240px;
  min-width:165px;
  height:34px;
  padding:4px 8px;
  border:1px solid #bfd3e2;
  border-radius:8px;
  background:#fff;
  color:#15304a;
  font:inherit;
  font-size:.73rem;
  font-weight:800;
  cursor:pointer;
}

.live-mini-rank-select:focus{
  outline:2px solid #2684c7;
  outline-offset:1px;
}

.live-mini-ranking-head a{
  color:#075da0;
  font-size:.73rem;
  font-weight:850;
  text-decoration:none;
  white-space:nowrap;
}

.live-mini-rank-list{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}

.live-mini-rank-list .rankitem{
  position:relative;
  overflow:hidden;
  min-width:0;
  display:grid;
  grid-template-columns:27px 1fr;
  grid-template-rows:auto auto;
  align-items:center;
  column-gap:7px;
  padding:9px 10px;
  border:1px solid #d4e1eb;
  border-radius:12px;
  background:#fff;
}

.live-mini-rank-list .rankitem:before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:var(--barw,0%);
  background:linear-gradient(
    90deg,
    rgba(56,189,248,.12),
    rgba(249,115,22,.10)
  );
}

.live-mini-rank-list .rankitem>*{
  position:relative;
  z-index:1;
}

.live-mini-rank-list .emoji{
  grid-row:1/3;
  font-size:1.05rem;
}

.live-mini-rank-list .rlabel{
  color:#6b7c8e;
  font-size:.62rem;
  font-weight:850;
}

.live-mini-rank-list .rstation{
  color:#14283e;
  font-size:.69rem;
  line-height:1.15;
  font-weight:850;
  overflow:hidden;
  text-overflow:ellipsis;
}

.live-mini-rank-list .rval{
  grid-column:2;
  margin-top:4px;
  color:#083c64;
  font-size:1rem;
  font-weight:950;
}

.live-mini-rank-list .rval small{
  margin-left:2px;
  font-size:.62rem;
  font-weight:800;
  color:#718296;
}

.live-mini-loading{
  grid-column:1/-1;
  padding:10px;
  color:#718296;
  font-size:.77rem;
}

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

@media(max-width:1050px){
  .live-feature-grid{
    grid-template-columns:minmax(0,1.35fr) minmax(300px,1fr);
  }

  .live-mini-rank-list{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .live-feature-grid .webcam-image{
    height:650px;
    min-height:650px;
  }
}

@media(max-width:900px){
  .live-feature-grid{
    grid-template-columns:1fr 1fr;
  }

  .live-embed{
    height:430px;
  }

  .live-feature-grid .webcam-image{
    height:580px;
    min-height:580px;
  }
}

@media(max-width:680px){
  .live-feature-grid{
    grid-template-columns:1fr;
  }

  .live-mini-console-head{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }

  .live-mini-vars{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:4px;
    scrollbar-width:thin;
  }

  .live-mini-vars button{
    flex:0 0 auto;
  }

  .live-mini-ranking-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .live-mini-ranking-title{
    width:100%;
    justify-content:space-between;
  }

  .live-mini-rank-select{
    flex:1;
    max-width:none;
  }

  .live-mini-rank-list{
    grid-template-columns:1fr 1fr;
  }

  .live-embed{
    height:390px;
  }

  .live-feature-grid .webcam-image{
    height:340px;
    min-height:340px;
  }
}

/* ==========================================================
   BullasWeather En Directo · Mini BullasLive V3
   Ajuste final de altura + arranque limpio Noroeste
   ========================================================== */

/* La altura de la webcam se calcula exactamente por JS
   respecto al panel izquierdo completo */
@media(min-width:681px){
  .live-feature-grid .webcam-image{
    min-height:0!important;
    height:500px;
  }
}

/* No mostrar Bullas-Cehegín durante el arranque interno de V12 */
.live-embed.is-ready:not(.mini-scope-ready) iframe{
  opacity:0!important;
  pointer-events:none!important;
}

/* Una vez Noroeste está realmente preparado */
.live-embed.mini-scope-ready iframe{
  opacity:1!important;
  pointer-events:auto!important;
}

/* Pantalla limpia mientras BullasLive termina de arrancar */
.live-embed.is-ready:not(.mini-scope-ready)::after{
  content:"Preparando mapa SUREMET · Comarca del Noroeste…";
  position:absolute;
  inset:0;
  z-index:25;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
  background:
    radial-gradient(circle at center,#174d70 0,#0b3452 48%,#082a44 100%);
  color:#dcefff;
  font-size:.84rem;
  font-weight:850;
  letter-spacing:.01em;
}

.live-embed.mini-scope-ready::after{
  display:none!important;
}

/* móvil: webcam independiente, no sincronizada */
@media(max-width:680px){
  .live-feature-grid .webcam-image{
    height:340px!important;
    min-height:340px!important;
  }
}

/* ==========================================================
   BullasWeather En Directo · Mini BullasLive V4 FINAL
   ========================================================== */

/* ----------------------------------------------------------
   WEBCAM
   La tarjeta derecha se estira exactamente hasta el final
   de mapa + ranking y LA IMAGEN ocupa todo el espacio libre.
   ---------------------------------------------------------- */

.live-feature-grid{
  align-items:stretch!important;
}

.live-feature-grid .live-webcam-panel{
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
  height:auto!important;
  min-height:0!important;
  overflow:hidden;
}

.live-feature-grid .live-webcam-panel .webcam-image{
  flex:1 1 0!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:hidden!important;
}

.live-feature-grid .live-webcam-panel .webcam-image img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
  object-fit:cover!important;
}

.live-feature-grid .live-webcam-panel .panel-foot{
  flex:0 0 auto!important;
}

/* ----------------------------------------------------------
   ARRANQUE LIMPIO DEL MAPA

   V3 podía considerar listo el iframe antes de que V12
   terminase todos sus fitBounds. V4 exige mini-v4-ready.
   ---------------------------------------------------------- */

.live-embed:not(.mini-v4-ready) iframe{
  opacity:0!important;
  pointer-events:none!important;
}

.live-embed:not(.mini-v4-ready)::after{
  content:"Preparando mapa SUREMET · Comarca del Noroeste…";
  position:absolute;
  inset:0;
  z-index:1000;
  display:flex!important;
  align-items:center;
  justify-content:center;
  padding:20px;
  text-align:center;
  background:
    radial-gradient(
      circle at center,
      #174d70 0,
      #0b3452 48%,
      #082a44 100%
    );
  color:#dcefff;
  font-size:.84rem;
  font-weight:850;
}

.live-embed.mini-v4-ready::after{
  display:none!important;
}

.live-embed.mini-v4-ready.is-ready iframe{
  opacity:1!important;
  pointer-events:auto!important;
}

/* En móvil webcam independiente */
@media(max-width:680px){
  .live-feature-grid .live-webcam-panel{
    height:auto!important;
  }

  .live-feature-grid .live-webcam-panel .webcam-image{
    flex:none!important;
    height:340px!important;
    min-height:340px!important;
  }
}

/* ==========================================================
   BullasWeather En Directo · Mini BullasLive V5
   Ajuste fino mapa/webcam
   ========================================================== */

/*
   Antes: ~63/37
   Ahora: ~60/40
   Cambio deliberadamente pequeño.
*/
@media(min-width:1051px){
  .live-feature-grid{
    grid-template-columns:
      minmax(0,1.52fr)
      minmax(350px,1fr)!important;
  }
}

/*
   En pantallas intermedias también damos un poco más
   de aire a la webcam, sin cambiar el diseño.
*/
@media(min-width:901px) and (max-width:1050px){
  .live-feature-grid{
    grid-template-columns:
      minmax(0,1.28fr)
      minmax(310px,1fr)!important;
  }
}
