:root{
  --bg:#070812;
  --panel:#10121f;
  --text:#f4f7fb;
  --muted:#a8b0c1;
  --pink:#ff5b93;
  --line:#242839;
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
  font-family:Inter,Arial,"Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--text);
}

body{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}

main{
  flex:1;
}

a{
  color:inherit;
  text-decoration:none;
}

.container{
  width:min(1120px,100%);
  margin:auto;
}

/* TOP BANNER */
.top-banner{
  width:100%;
  background:#070812;
  padding:6px 0;
}

/* HEADER */
.top-fixed{ 
  position:sticky; 
  top:0; 
  z-index:999; 
  background:#070812; 
} 

.site-header{ 
  position:relative; 
  z-index:10; 
  background:linear-gradient(180deg,rgba(7,8,18,.98),rgba(7,8,18,.72)); 
}

.nav-wrap{
  height:76px;
  display:flex;
  align-items:center;
  gap:20px;
}

.logo{
  font-size:30px;
  white-space:nowrap;
}

.logo b{
  color:var(--pink);
}

.desktop-nav{
  display:flex;
  gap:18px;
  flex:1;
  justify-content:center;
  align-items:center;
}

.desktop-nav a{
  white-space:nowrap;
}

.icon-btn,
.mobile-btn{
  background:none;
  border:0;
  color:#fff;
  font-size:24px;
}

/* OLD ADS */
.ad-slot{
  display:block;
  width:100%;
  margin:6px 0;
  text-align:center;
}

.ad-slot img{
  width:100%;
  height:auto;
  max-height:90px;
  object-fit:contain;
  display:block;
}

.ads-top{
  margin-bottom:0;
}

.ads-middle{
  margin:6px 0;
}

.ads-before-grid{
  margin-bottom:8px;
}

/* ADS SPLIT */
.ads-split{
  position:relative;
  width:min(1120px,100%);
  margin:6px auto;
  overflow:hidden;
}

.ads-main{
  display:block;
  width:100%;
}

.ads-main img{
  width:100%;
  height:auto;
  max-height:90px;
  object-fit:contain;
  display:block;
}

/* invisible clickable left/right buttons */
.ads-btn{
  position:absolute;
  top:0;
  z-index:5;

  width:18%;
  height:100%;
  padding:0;

  background:transparent;
  border:0;
  box-shadow:none;
  outline:0;

  color:transparent;
  font-size:0;
  text-shadow:none;

  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}

.ads-split .ads-btn:first-child{
  left:0;
}

.ads-split .ads-btn:last-child{
  right:0;
}

.ads-btn:hover,
.ads-btn:focus,
.ads-btn:active{
  background:transparent;
  border:0;
  box-shadow:none;
  outline:0;
}

/* HERO */
.hero{
  padding:0 22px 20px;
  text-align:center;
}

.hero h1{
  font-size:36px;
  margin-top:0;
  margin-bottom:10px;
}

.hero span{
  color:var(--pink);
}

/* SEARCH */
.search-box{
  width:100%;
  max-width:520px;
  margin:auto;
  display:flex;
  background:#fff;
  border-radius:6px;
}

.search-box input{
  flex:1;
  padding:14px;
  border:0;
}

.search-box button{
  padding:0 18px;
  border:0;
}

/* VIDEO GRID */
.video-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

/* CARD */
.card{
  min-width:0;
}

.thumb{
  position:relative;
  display:block;
  aspect-ratio:16/9;
  border-radius:6px;
  overflow:hidden;
  background:#111827;
}

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

.badge{
  position:absolute;
  bottom:6px;
  font-size:12px;
  background:rgba(0,0,0,.72);
  color:#fff;
  padding:2px 7px;
  border-radius:4px;
}

.badge.left{
  left:6px;
}

.badge.right{
  right:6px;
}

.meta{
  display:flex;
  justify-content:space-between;
  color:var(--muted);
  font-size:13px;
  margin-top:7px;
}

.card h3{
  font-size:14px;
  line-height:1.35;
  margin:5px 0 0;
  color:#dfe5f1;
}

/* FOOTER */
.footer{
  margin-top:30px;
  border-top:1px solid var(--line);
  color:var(--muted);
  padding:18px 0;
  background:#070812;
  text-align:center;
  font-size:13px;
}

/* MOBILE */
@media (max-width:768px){
  .container{
    padding:0 14px;
  }

  .desktop-nav{
    display:flex;
    overflow-x:auto;
    white-space:nowrap;
    gap:8px;
    padding:6px 10px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }

  .desktop-nav::-webkit-scrollbar{
    display:none;
  }

  .desktop-nav a{
    flex:0 0 auto;
    padding:6px 10px;
    font-size:13px;
    background:#111;
    border-radius:6px;
  }

  .ads-split{
    width:100%;
    margin:4px auto;
  }

  .ads-main img{
    max-height:56px;
  }

  .ads-btn{
    width:20%;
  }

  .hero{
    padding:0 14px 18px;
  }

  .hero h1{
    font-size:30px;
  }

  .video-grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px 10px;
  }
}

@media (max-width:420px){
  .video-grid{
    grid-template-columns:1fr;
  }
}

.card h3 {
  font-size: 12px;
  margin: 6px 0 0 0;
  line-height: 1.3;
}


.top-banner {
  display: flex;
  justify-content: center;
  background: #070812;
  padding: 6px 0;
}

.top-banner .ads-split {
  width: min(1120px, 100%);
}

.video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  background: #000;
  padding: 10px;
  max-width: 1120px;
}

.video-wrapper video {
  max-height: 70vh;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  padding: 20px 10px;
}



@media (max-width:768px){
  html, body{
    height:100%;
    overflow-y:auto;
    overflow-x:hidden;
  }
  .bottom-banner{
    position:fixed !important;
    bottom:0 !important;
    left:0 !important;
    width:100% !important;
    z-index:9999 !important;
    margin:0 !important;
    padding:4px 0 !important;
  }

  .video-wrapper{
    position:fixed !important;
    top:55px !important;
    bottom:55px !important;
    left:0 !important;
    right:0 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    margin:0 !important;
    padding:8px !important;
    background:#000;
  }

  .video-wrapper video{
    max-height:100% !important;
    max-width:100% !important;
    width:auto !important;
    height:auto !important;
    object-fit:contain !important;
  }
  .top-banner img{
    width:100%;
    max-width:100%;
    height:auto;
    display:block;
    object-fit:contain;
  }

  .top-banner a{
    display:block;
    width:100%;
  }

  .top-banner{
    overflow:hidden;
  }
}


.logo {
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}



.logo-main {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  line-height: 1;
}

.logo-main b {
  color: var(--pink);
}


.logo-sub {
  display: block;
  font-size: 20px;
  color: rgba(255,255,255,0.78);
  margin-top: 2px;
  letter-spacing: -0.4px;
  line-height: 1;
  text-align: center;
}
