*{margin:0;padding:0;box-sizing:border-box}

html,body{
  background:#0b0b0b;
  color:#fff;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

body{
  min-width:320px;
}

a{
  color:#7db7ff;
  text-decoration:none;
}

a:hover{
  color:#fff;
  text-decoration:underline;
}

.layout{
  display:flex;
  min-height:100vh;
  width:100%;
}

.sidebar{
  width:260px;
  flex-shrink:0;
  background:#111;
}

.sidebar-inner{
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
  padding:20px 16px;
}

.site-title{font-size:24px;font-weight:800;margin-bottom:20px}
.site-title a{color:#fff;text-decoration:none}

.reset-link{
  display:block;
  background:#222;
  padding:8px;
  margin-bottom:16px;
  text-align:center;
  color:#fff;
  text-decoration:none;
  border-radius:4px;
}
.reset-link:hover{background:#333}

.sidebar-section{margin-bottom:20px}
.sidebar-section h4{
  font-size:11px;
  text-transform:uppercase;
  opacity:.6;
  margin-bottom:6px;
}

.icon-nav a{
  display:flex;
  gap:8px;
  padding:6px;
  font-size:13px;
  color:#ccc;
  text-decoration:none;
  border-radius:4px;
}
.icon-nav a:hover,
.icon-nav a.active{
  background:#333;
  color:#fff;
  font-weight:700;
}

.tag-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.tag-cloud a{
  font-size:11px;
  padding:3px 7px;
  background:#222;
  border-radius:12px;
  color:#ccc;
  text-decoration:none;
}
.tag-cloud a:hover,
.tag-cloud a.active{
  background:#333;
  color:#fff;
}

.content{
  flex:1;
  width:100%;
  min-width:0;
}

.page-intro{
  max-width:1600px;
  margin:0 auto;
  padding:24px 20px 18px;
}

.page-intro h2{
  font-size:28px;
  line-height:1.1;
  margin-bottom:8px;
}

.page-intro p{
  max-width:760px;
  color:#d8d8d8;
  font-size:14px;
  line-height:1.5;
}

.masonry{
  column-count:6;
  column-gap:0;
  width:100%;
}

.card{
  display:inline-block;
  width:100%;
  break-inside:avoid;
  position:relative;
  aspect-ratio:4/3;
  overflow:hidden;
  background:#000;
  text-decoration:none;
}

.card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .3s ease;
}

.card:hover img{
  transform:scale(1.05);
}

.name{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:20px 8px 6px;
  font-size:12px;
  font-weight:600;
  color:#fff;
  background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,.35),transparent);
  z-index:3;
}

.badges{
  position:absolute;
  top:6px;
  left:6px;
  display:flex;
  gap:4px;
  z-index:4;
}

.badge{
  font-size:10px;
  padding:2px 6px;
  font-weight:700;
  color:#fff;
  border-radius:4px;
}

.badge.live{background:#c62828}
.badge.hd{background:#1565c0}
.badge.new{background:#2e7d32}
.badge.offline{background:#555}

.flag-overlay{
  position:absolute;
  top:6px;
  right:6px;
  font-size:18px;
  background:rgba(0,0,0,.55);
  padding:4px 6px;
  border-radius:6px;
  z-index:4;
}

.viewer-count{
  position:absolute;
  bottom:32px;
  left:6px;
  background:rgba(0,0,0,.55);
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  color:#ddd;
  z-index:4;
}

.load-more-wrapper{
  display:flex;
  justify-content:center;
  padding:30px 0;
}

#loadMore{
  background:#111;
  border:1px solid rgba(255,255,255,.3);
  color:#fff;
  padding:10px 26px;
  cursor:pointer;
  border-radius:4px;
}

#loadMore:disabled{
  cursor:wait;
  opacity:.55;
}

.content-text{
  max-width:1600px;
  margin:0 auto 80px;
  padding:0 20px;
  font-size:13px;
  line-height:1.55;
  color:#d8d8d8;
}

.content-text h2{
  font-size:22px;
  margin-bottom:12px;
  color:#fff;
}

.content-text h3{
  font-size:18px;
  margin:20px 0 10px;
  color:#fff;
}

.content-text p{
  margin-bottom:14px;
}

.content-text ul,
.content-text ol{
  margin:10px 0 20px 18px;
}

.content-text li{
  margin-bottom:6px;
}

.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
}

.room-page{
  max-width:1600px;
  margin:0 auto;
  padding:24px 20px 80px;
  font-size:13px;
  line-height:1.55;
  color:#d8d8d8;
}

.room-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,1fr);
  gap:40px;
  align-items:start;
}

.room-media{
  position:relative;
  background:#000;
  aspect-ratio:4/3;
  overflow:hidden;
}

.room-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.media-cta{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  background:#e01f4f;
  color:#fff;
  border-radius:4px;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

.media-cta:hover{
  background:#ff3365;
  color:#fff;
  text-decoration:none;
}

.media-cta.muted{
  background:rgba(37,37,37,.92);
  border:1px solid rgba(255,255,255,.16);
}

.media-cta.muted:hover{
  background:#333;
}

.room-copy h1{
  font-size:28px;
  line-height:1.15;
  margin-bottom:12px;
  color:#fff;
}

.room-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
}

.room-meta span{
  background:#191919;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  color:#ddd;
  font-size:12px;
  padding:6px 10px;
}

.room-copy p{
  color:#ddd;
  line-height:1.55;
  margin-bottom:14px;
}

.room-copy .room-status{
  display:inline-block;
  padding:8px 10px;
  border-radius:4px;
  font-weight:700;
  font-size:13px;
}

.room-status.online{
  background:rgba(46,125,50,.18);
  color:#b9f6c3;
}

.room-status.offline{
  background:rgba(255,255,255,.08);
  color:#f0d08a;
}

.primary-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 20px;
  background:#e01f4f;
  color:#fff;
  border-radius:4px;
  font-weight:800;
  text-decoration:none;
}

.primary-cta:hover{
  background:#ff3365;
  color:#fff;
  text-decoration:none;
}

.primary-cta.muted{
  background:#252525;
  border:1px solid rgba(255,255,255,.16);
}

.primary-cta.muted:hover{
  background:#333;
}

.room-details{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  margin-top:40px;
  color:#d8d8d8;
  font-size:13px;
  line-height:1.55;
}

.room-details h2{
  color:#fff;
  font-size:22px;
  margin-bottom:12px;
}

.performer-wiki{
  margin-top:40px;
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.12);
}

.performer-wiki h2{
  color:#fff;
  font-size:22px;
  line-height:1.25;
  margin-bottom:16px;
}

.wiki-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:start;
}

.performer-wiki p{
  color:#d8d8d8;
  font-size:13px;
  line-height:1.55;
  margin-bottom:14px;
}

.wiki-facts{
  background:none;
  border:0;
  border-radius:0;
  padding:0;
}

.wiki-facts h3{
  color:#fff;
  font-size:18px;
  margin-bottom:10px;
}

.wiki-facts ul,
.wiki-subsection ul{
  margin-left:18px;
  color:#d8d8d8;
  font-size:13px;
  line-height:1.55;
}

.wiki-facts li,
.wiki-subsection li{
  margin-bottom:8px;
}

.wiki-subsection{
  margin-top:18px;
  padding-top:0;
  border-top:0;
}

.wiki-subsection h3{
  color:#fff;
  font-size:18px;
  margin:20px 0 10px;
}

.wiki-note{
  color:#aaa;
  font-size:12px;
  line-height:1.45;
}

.wiki-facts a{
  color:#9fc8ff;
}

.wiki-facts span{
  color:#aaa;
  font-size:12px;
}

.related-streams{
  margin-top:34px;
  padding-top:24px;
  border-top:1px solid rgba(255,255,255,.12);
}

.related-streams h2{
  color:#fff;
  font-size:18px;
  margin-bottom:8px;
}

.related-streams p{
  color:#d8d8d8;
  margin-bottom:14px;
}

.related-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:10px;
}

.related-card{
  display:block;
  min-width:0;
  color:#d8d8d8;
  text-decoration:none;
}

.related-card:hover{
  color:#fff;
  text-decoration:none;
}

.related-image{
  position:relative;
  aspect-ratio:4/3;
  background:#000;
  overflow:hidden;
  margin-bottom:6px;
}

.related-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .25s ease;
}

.related-card:hover img{
  transform:scale(1.04);
}

.related-image .badge{
  position:absolute;
  top:5px;
  left:5px;
  z-index:2;
  font-size:9px;
  padding:2px 5px;
}

.related-card strong,
.related-card span,
.related-card small{
  display:block;
}

.related-card strong{
  color:#fff;
  font-size:11px;
  line-height:1.25;
  margin-bottom:2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.related-card span{
  font-size:10px;
  color:#cfcfcf;
  margin-bottom:2px;
}

.related-card small{
  font-size:10px;
  color:#9f9f9f;
  line-height:1.3;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.error{
  padding:20px;
  color:#ffb6c7;
}

.mobile-header{
  display:none;
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:52px;
  background:#111;
  z-index:2000;
  padding:0 14px;
  align-items:center;
  justify-content:space-between;
}

.mobile-title{
  font-weight:800;
  font-size:16px;
}

.burger{
  width:32px;
  height:24px;
  background:none;
  border:none;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  cursor:pointer;
}

.burger span{
  height:3px;
  background:#fff;
  border-radius:2px;
}

@media(max-width:1400px){.masonry{column-count:5}}
@media(max-width:1200px){.masonry{column-count:4}}

@media(max-width:900px){
  body{padding-top:52px}
  .mobile-header{display:flex}

  .sidebar{
    position:fixed;
    top:52px;
    left:-260px;
    height:calc(100vh - 52px);
    transition:left .25s ease;
    z-index:1500;
  }
  .sidebar.open{left:0}
  body.menu-open{overflow:hidden}

  .masonry{column-count:3}
  .two-cols,
  .room-hero,
  .room-details,
  .wiki-grid{
    grid-template-columns:1fr;
  }

  .related-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:600px){
  .masonry{column-count:2}
  .page-intro h2,
  .room-copy h1{font-size:26px}
  .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
