
:root{--text:#222;--nav-bg:#292929;--nav-text:#00A8F6;--h1:#004B5E;--content-bg:#D4D4D4;--tab-border:#4A4A4A;--tab-inactive:#CCC;--tab-active:#F00808;--tab-active-text:#0A5B83;--cam-bg:#F2ACAC;--cam-border:#080101;--cam-alt:#0D0101;--href:#0A5B83}
*{box-sizing:border-box}
body{margin:0;background:var(--content-bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
a{color:var(--href);text-decoration:none}a:hover{opacity:.9}img{max-width:100%;height:auto;display:block}
header.site-header{background:var(--nav-bg);color:var(--nav-text);position:sticky;top:0;z-index:20}
.header-inner{max-width:1200px;margin:auto;display:flex;align-items:center;gap:12px;padding:8px 12px}
.brand img{height:40px;width:auto}.burger{margin-left:auto;display:inline-flex;align-items:center;gap:8px;background:transparent;border:1px solid #444;color:#fff;padding:8px 10px;border-radius:8px;cursor:pointer}
.burger span{display:inline-block;width:18px;height:2px;background:#fff;box-shadow:0 5px 0 #fff,0 -5px 0 #fff}
nav.main-nav{background:#1f1f1f;border-top:1px solid #3a3a3a;overflow:hidden}.nav-inner{max-width:1200px;margin:auto;padding:6px 12px}
.nav-list{display:flex;flex-wrap:wrap;gap:6px 10px;list-style:none;margin:0;padding:0}.nav-list a{display:inline-block;padding:6px 10px;border:1px solid #444;border-radius:8px;color:var(--nav-text)}
.nav-list a[aria-current="page"]{border-color:#F00808;color:#fff;background:#3a2020}nav.main-nav[hidden]{display:none!important}
main{padding:16px;margin:auto;max-width:1200px}h1{color:var(--h1);margin:10px 0 8px}.subline{font-size:.95rem;margin:0 0 8px}.hub-count{font-size:.9rem;color:#555;margin:0 0 18px}
.country-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:14px 0 24px}
.country-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dcdcdc;border-radius:12px;padding:16px;min-height:190px;transition:.18s}
.country-card:hover{border-color:#F00808;transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.country-head{display:flex;align-items:center;gap:10px}.country-flag{font-size:32px;line-height:1}.country-title{font-size:1.2rem;font-weight:800;color:#004B5E}
.country-description{color:#666;font-size:.92rem;line-height:1.45;margin:12px 0;flex:1}.country-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto}
.country-live{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:20px;background:#eafaf0;color:#00894d;font-weight:800;font-size:.85rem;white-space:nowrap}
.country-live::before{content:"";width:8px;height:8px;border-radius:50%;background:#00c853;display:inline-block}.country-arrow{color:#0A5B83;font-weight:800;white-space:nowrap}
.country-card:hover .country-arrow{color:#F00808}
.live-now-section{margin:4px 0 28px;min-width:0}.live-now-section h2{color:#0A5B83;margin:0 0 12px}.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;width:100%;min-width:0}
.live-card{background:var(--cam-bg);border:1px solid var(--cam-border);border-radius:10px;padding:8px;text-align:center;min-height:235px;min-width:0;width:100%;overflow:hidden;transition:.15s}.live-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.live-media{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:7px;background:#111}.live-media img{width:100%;height:100%;object-fit:cover}.hd-badge{position:absolute;top:6px;left:6px;background:#F00808;color:#fff;font-size:.7rem;font-weight:800;padding:2px 5px;border-radius:4px;z-index:1}
.live-username{font-weight:700;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-meta{font-size:.85rem;color:var(--cam-alt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-cta{text-align:center;margin:24px 0 0}.live-cta-text{font-weight:700;margin:0 0 12px}.explore-button{display:inline-block;background:#292929;color:#00A8F6;border:1px solid #444;border-radius:9px;padding:11px 18px;font-weight:800}.explore-button:hover{background:#1f1f1f;color:#fff}
.empty-state,.seo-block{background:#fff;border:1px solid #e6e6e6;border-radius:12px;padding:16px}.empty-state{text-align:center;margin-bottom:24px}
.seo-block{max-width:1200px;margin:0 auto 28px}.seo-block h2,.seo-block h3{color:#0A5B83}.seo-block h2{margin:0 0 8px}.seo-block p{margin:8px 0}
details summary{cursor:pointer;font-weight:bold;color:var(--href);margin-bottom:8px}details[open] summary{color:var(--tab-active-text)}
@media(min-width:768px){.seo-scroll{max-height:420px;overflow-y:auto;padding-right:10px}}
.site-footer{background:#000;color:#fff;padding:40px 20px;text-align:center}.footer-container{max-width:1200px;margin:0 auto}.footer-heading{color:#fff;font-size:1rem;margin:20px 0 8px}.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px;margin:12px auto 24px;max-width:1000px}
.footer-links a{color:#ccc}.footer-links a:hover{color:#F00808}.footer-bottom{font-size:.95rem;color:#bbb;margin-top:20px}.footer-bottom a{color:#00A8F6}
@media(max-width:600px){.country-grid{grid-template-columns:repeat(2,1fr);gap:8px}.country-card{min-height:190px;padding:11px 9px;border-radius:9px}.country-head{display:block}.country-flag{font-size:24px}.country-title{display:block;font-size:14px;margin-top:4px}.country-description{font-size:12px;line-height:1.3;margin:8px 0}.country-footer{display:block}.country-live{font-size:11px;padding:4px 7px;margin-bottom:6px}.country-arrow{display:block;font-size:12px}.live-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.live-card{height:253px;min-height:253px;padding:4px;border-radius:6px;min-width:0;overflow:hidden}.live-media{border-radius:4px}.live-username{font-size:14px;margin-top:4px}.live-meta{font-size:12px;margin-top:2px;max-width:100%}}
@media(hover:none){.country-card:hover{transform:none;box-shadow:none}}
.country-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.country-card{min-height:150px}.country-head{display:flex}.country-flag{color:#0A5B83;font-weight:800;font-size:22px}.country-footer{flex-wrap:wrap}.live-card{min-height:150px;height:auto}.demo-icon{display:grid;place-items:center;aspect-ratio:4/3;background:#e7e9ed;color:#004B5E;font-size:28px;font-weight:700;border-radius:6px}.pagination{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.pagination a,.pagination span{padding:8px 12px;background:#fff;border-radius:6px}.pagination [aria-current]{background:#292929;color:white}.notice{font-size:.85rem;color:#444}.live-meta{white-space:normal}.nav-list a:focus-visible,a:focus-visible{outline:3px solid #004B5E;outline-offset:2px}@media(max-width:950px){.country-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.country-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-card{height:auto;min-height:150px}}

:root{--text:#222;--nav-bg:#292929;--nav-text:#00A8F6;--h1:#004B5E;--content-bg:#D4D4D4;--tab-border:#4A4A4A;--tab-inactive:#CCC;--tab-active:#F00808;--tab-active-text:#0A5B83;--cam-bg:#F2ACAC;--cam-border:#080101;--cam-alt:#0D0101;--href:#0A5B83}
*{box-sizing:border-box}
body{margin:0;background:var(--content-bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif}
a{color:var(--href);text-decoration:none}a:hover{opacity:.9}img{max-width:100%;height:auto;display:block}
header.site-header{background:var(--nav-bg);color:var(--nav-text);position:sticky;top:0;z-index:20}
.header-inner{max-width:1200px;margin:auto;display:flex;align-items:center;gap:12px;padding:8px 12px}
.brand img{height:40px;width:auto}.burger{margin-left:auto;display:inline-flex;align-items:center;gap:8px;background:transparent;border:1px solid #444;color:#fff;padding:8px 10px;border-radius:8px;cursor:pointer}
.burger span{display:inline-block;width:18px;height:2px;background:#fff;box-shadow:0 5px 0 #fff,0 -5px 0 #fff}
nav.main-nav{background:#1f1f1f;border-top:1px solid #3a3a3a;overflow:hidden}.nav-inner{max-width:1200px;margin:auto;padding:6px 12px}
.nav-list{display:flex;flex-wrap:wrap;gap:6px 10px;list-style:none;margin:0;padding:0}.nav-list a{display:inline-block;padding:6px 10px;border:1px solid #444;border-radius:8px;color:var(--nav-text)}
.nav-list a[aria-current="page"]{border-color:#F00808;color:#fff;background:#3a2020}nav.main-nav[hidden]{display:none!important}
main{padding:16px;margin:auto;max-width:1200px}h1{color:var(--h1);margin:10px 0 8px}.subline{font-size:.95rem;margin:0 0 8px}.hub-count{font-size:.9rem;color:#555;margin:0 0 18px}
.country-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:14px 0 24px}
.country-card{display:flex;flex-direction:column;background:#fff;border:1px solid #dcdcdc;border-radius:12px;padding:16px;min-height:190px;transition:.18s}
.country-card:hover{border-color:#F00808;transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.country-head{display:flex;align-items:center;gap:10px}.country-flag{font-size:32px;line-height:1}.country-title{font-size:1.2rem;font-weight:800;color:#004B5E}
.country-description{color:#666;font-size:.92rem;line-height:1.45;margin:12px 0;flex:1}.country-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto}
.country-live{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:20px;background:#eafaf0;color:#00894d;font-weight:800;font-size:.85rem;white-space:nowrap}
.country-live::before{content:"";width:8px;height:8px;border-radius:50%;background:#00c853;display:inline-block}.country-arrow{color:#0A5B83;font-weight:800;white-space:nowrap}
.country-card:hover .country-arrow{color:#F00808}
.live-now-section{margin:4px 0 28px;min-width:0}.live-now-section h2{color:#0A5B83;margin:0 0 12px}.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px;width:100%;min-width:0}
.live-card{background:var(--cam-bg);border:1px solid var(--cam-border);border-radius:10px;padding:8px;text-align:center;min-height:235px;min-width:0;width:100%;overflow:hidden;transition:.15s}.live-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.live-media{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:7px;background:#111}.live-media img{width:100%;height:100%;object-fit:cover}.hd-badge{position:absolute;top:6px;left:6px;background:#F00808;color:#fff;font-size:.7rem;font-weight:800;padding:2px 5px;border-radius:4px;z-index:1}
.live-username{font-weight:700;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-meta{font-size:.85rem;color:var(--cam-alt);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-cta{text-align:center;margin:24px 0 0}.live-cta-text{font-weight:700;margin:0 0 12px}.explore-button{display:inline-block;background:#292929;color:#00A8F6;border:1px solid #444;border-radius:9px;padding:11px 18px;font-weight:800}.explore-button:hover{background:#1f1f1f;color:#fff}
.empty-state,.seo-block{background:#fff;border:1px solid #e6e6e6;border-radius:12px;padding:16px}.empty-state{text-align:center;margin-bottom:24px}
.seo-block{max-width:1200px;margin:0 auto 28px}.seo-block h2,.seo-block h3{color:#0A5B83}.seo-block h2{margin:0 0 8px}.seo-block p{margin:8px 0}
details summary{cursor:pointer;font-weight:bold;color:var(--href);margin-bottom:8px}details[open] summary{color:var(--tab-active-text)}
@media(min-width:768px){.seo-scroll{max-height:420px;overflow-y:auto;padding-right:10px}}
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.75);display:none;z-index:9998}.modal{position:fixed;inset:0;display:none;place-items:center;z-index:9999;padding:16px}
.overlay[aria-hidden="false"],.modal[aria-hidden="false"]{display:grid}.dialog{max-width:600px;width:100%;background:#fff;border-radius:14px;overflow:auto;max-height:90vh}
.dialog header{background:#292929;color:#00A8F6;padding:12px 16px;font-weight:700}.dialog .body{padding:12px 16px;color:#000}.dialog .legal-warning{background:#fff3cd;border:1px solid #ffe08a;color:#533f03;border-radius:8px;padding:10px 12px;margin:10px 0}
.dialog footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;background:#f5f5f5}.btn{border:0;border-radius:8px;padding:10px 14px;cursor:pointer;font:inherit}.btn.primary{background:#292929;color:#00A8F6}.btn.secondary{background:#e3e3e3;color:#111}
.site-footer{background:#000;color:#fff;padding:40px 20px;text-align:center}.footer-container{max-width:1200px;margin:0 auto}.footer-heading{color:#fff;font-size:1rem;margin:20px 0 8px}.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px;margin:12px auto 24px;max-width:1000px}
.footer-links a{color:#ccc}.footer-links a:hover{color:#F00808}.footer-bottom{font-size:.95rem;color:#bbb;margin-top:20px}.footer-bottom a{color:#00A8F6}
#backToTop{position:fixed;bottom:24px;right:24px;background:#00A8F6;color:#fff;border:0;border-radius:50%;width:46px;height:46px;font-size:1.4rem;cursor:pointer;display:none;z-index:99}
@media(max-width:600px){.country-grid{grid-template-columns:repeat(2,1fr);gap:8px}.country-card{min-height:190px;padding:11px 9px;border-radius:9px}.country-head{display:block}.country-flag{font-size:24px}.country-title{display:block;font-size:14px;margin-top:4px}.country-description{font-size:12px;line-height:1.3;margin:8px 0}.country-footer{display:block}.country-live{font-size:11px;padding:4px 7px;margin-bottom:6px}.country-arrow{display:block;font-size:12px}.live-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.live-card{height:253px;min-height:253px;padding:4px;border-radius:6px;min-width:0;overflow:hidden}.live-media{border-radius:4px}.live-username{font-size:14px;margin-top:4px}.live-meta{font-size:12px;margin-top:2px;max-width:100%}}
@media(hover:none){.country-card:hover{transform:none;box-shadow:none}}

.country-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.country-card{min-height:145px}.country-flag{color:#0A5B83;font-size:22px;font-weight:800}.live-card{min-height:170px;height:auto}.demo-icon{aspect-ratio:4/3;background:#e5e7eb;display:grid;place-items:center;border-radius:6px;color:#004B5E;font-size:24px}@media(max-width:900px){.country-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.site-footer{background:#000;color:#fff;padding:40px 20px;text-align:center;position:relative}
.footer-container{max-width:1200px;margin:0 auto}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 16px;margin:24px auto;max-width:1000px;font-size:1rem;line-height:1.4}
.footer-links a{color:#ccc;text-decoration:none;transition:color .2s ease}
.footer-links a:hover{color:#F00808}
.footer-bottom{font-size:.95rem;color:#bbb;margin-top:20px}
.footer-bottom a{color:#00A8F6;text-decoration:none}
.footer-bottom a:hover{color:#F00808}
#backToTop{position:fixed;bottom:24px;right:24px;background:#00A8F6;color:#fff;border:none;border-radius:50%;width:46px;height:46px;font-size:1.4rem;cursor:pointer;display:none;z-index:99}
#backToTop:hover{background:#F00808}

/* V1.1: homepage visual parity */
body{min-height:100vh;display:flex;flex-direction:column}
main{width:100%;margin:0 auto;flex:1 0 auto}
.site-footer{margin-top:auto;flex-shrink:0}
.live-card{height:auto;min-height:235px}
.live-media{aspect-ratio:auto;overflow:visible;border-radius:0;background:transparent}
.live-media img{width:auto;height:auto;object-fit:initial}
.live-username,.live-meta{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.live-meta.location-meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pagination a.page-btn{padding:6px 10px;border-radius:8px;background:var(--tab-inactive);color:#4B8FC4;border:1px solid var(--tab-border)}
.pagination a.page-btn[aria-current="page"]{background:var(--tab-active);color:var(--tab-active-text);border-color:var(--tab-active)}
.live-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.live-card{background:var(--cam-bg);border:1px solid var(--cam-border);border-radius:10px;padding:8px;text-align:center;transition:.15s}
.live-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.live-username{font-weight:700;margin-top:6px}
.live-meta{font-size:.85rem;color:var(--cam-alt)}

/* ✅ HD badge */
.live-media{position:relative}
.hd-badge{
  position:absolute;
  top:6px;
  left:6px;
  background:#60A4F7;
  color:#000;
  font-size:11px;
  font-weight:700;
  padding:2px 6px;
  border-radius:4px;
  line-height:1;
  z-index:2;
}

/* MOBILE GRID: 2 rooms per row */
@media (max-width: 600px) {
  .live-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .live-card {
    background: var(--cam-bg);
    border: 1px solid var(--cam-border);
    border-radius: 6px;
    padding: 4px;
    height: 253px;
    font-size: 13px;
    text-align: center;
    overflow: hidden;
  }

  .live-card img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 1px solid #fff;
    margin: 0 auto;
    display: block;
  }

  .live-username {
    font-weight: 700;
    margin-top: 4px;
    font-size: 14px;
  }

  .live-meta {
    font-size: 12px;
    margin-top: 2px;
  }
}

/* Disable hover lift on touch devices */
@media (hover: none) {
  .live-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Pagination */
nav.pagination{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin:20px 0}
.page-btn{border:1px solid var(--tab-border);background:var(--tab-inactive);color:#4B8FC4;border-radius:8px;padding:6px 10px;cursor:pointer}
.page-btn[aria-current="page"]{background:var(--tab-active);color:var(--tab-active-text);border-color:var(--tab-active)}
.page-btn:disabled{opacity:.5;cursor:not-allowed}


@media(max-width:600px){.live-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-card{min-height:235px;height:253px}.live-media img{max-width:100%}}

/* V1.2: keep the age dialog footer independent of the sticky site footer. */
.dialog footer{margin:0;flex:none;width:auto;min-height:0}
.dialog .body p{margin:1em 0}
.live-cta {
    margin: 24px 0 28px;
}
