*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:#050d15;
  color:#fff;
  font-family:Arial,Helvetica,sans-serif;
}

body{
  padding-bottom:82px;
}

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

.app-header{
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 15px;
  background:#07111b;
  border-bottom:1px solid #152331;
  position:sticky;
  top:0;
  z-index:100;
}

.header-left,
.header-right{
  display:flex;
  align-items:center;
  gap:11px;
}

.menu-btn{
  border:0;
  background:transparent;
  color:#d5dce3;
  font-size:24px;
  padding:3px;
}

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:23px;
  font-weight:900;
}

.logo-mark{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:linear-gradient(135deg,#ff007d,#d000ff);
  font-size:15px;
}

.telegram-icon,
.search-top{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#101b26;
  font-size:20px;
}

.telegram-icon{
  background:#229ED9;
}

.category-tabs{
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:10px 12px;
  background:#07111b;
  position:sticky;
  top:70px;
  z-index:90;
  scrollbar-width:none;
}

.category-tabs::-webkit-scrollbar{
  display:none;
}

.category-tabs a{
  padding:11px 17px;
  border-radius:12px;
  color:#b5bec8;
  background:#0d1925;
  white-space:nowrap;
  font-size:14px;
}

.category-tabs a.active{
  background:linear-gradient(135deg,#ff0084,#f000cb);
  color:#fff;
  font-weight:700;
}

.page-content{
  max-width:1050px;
  margin:auto;
  padding:12px;
}

.video-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

.video-card{
  background:#0a151f;
  border:1px solid #142330;
  border-radius:13px;
  overflow:hidden;
}

.video-thumb{
  position:relative;
  aspect-ratio:16/12;
  background:#111;
  overflow:hidden;
}

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

.center-play{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:48px;
  height:48px;
  border-radius:50%;
  background:rgba(0,0,0,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:18px;
  border:2px solid rgba(255,255,255,.9);
}

.video-title{
  padding:9px 9px 4px;
  font-size:15px;
  line-height:1.35;
  font-weight:800;
  min-height:54px;
}

.video-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:6px 9px 10px;
  color:#8996a3;
  font-size:11px;
}

.empty-state{
  min-height:55vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:#7d8995;
  font-size:18px;
}

.empty-icon{
  font-size:44px;
}

.pagination{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:7px;
  margin-top:24px;
}

.pagination a{
  min-width:39px;
  height:39px;
  padding:0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:9px;
  background:#0d1925;
  color:#b8c2cc;
}

.pagination a.current{
  background:#ed008c;
  color:#fff;
}

.page-jump{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:13px auto 20px;
}

.page-jump input{
  width:145px;
  padding:11px;
  border:1px solid #213545;
  border-radius:10px;
  background:#0a151f;
  color:#fff;
}

.page-jump button{
  border:0;
  border-radius:10px;
  padding:0 19px;
  background:#ed008c;
  color:#fff;
  font-weight:800;
}

.bottom-nav{
  height:72px;
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:200;
  background:#07111b;
  border-top:1px solid #182532;
  display:grid;
  grid-template-columns:repeat(4,1fr);
}

.bottom-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  color:#9ba7b2;
  font-size:11px;
}

.bottom-icon{
  font-size:23px;
  line-height:1;
}

.bottom-item.active{
  color:#ff008c;
}

.details-container{
  max-width:760px;
  margin:auto;
  padding:12px;
}

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

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

.details-play{
  position:absolute;
  width:74px;
  height:74px;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:rgba(0,0,0,.72);
  border:3px solid white;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}

.details-title{
  font-size:24px;
  line-height:1.4;
  margin:16px 0 8px;
}

.details-meta{
  color:#8995a0;
  font-size:13px;
  margin-bottom:17px;
}

.caption-box{
  white-space:pre-wrap;
  font-size:17px;
  line-height:1.65;
  color:#d6dde3;
}

.video-link-label{
  margin-top:18px;
  font-size:20px;
  font-weight:900;
}

.big-video-link{
  display:block;
  margin-top:10px;
  padding:17px;
  border-radius:13px;
  background:#0e2944;
  border:1px solid #287acc;
  color:#68b6ff;
  font-size:20px;
  font-weight:900;
  line-height:1.5;
  overflow-wrap:anywhere;
}

.watch-btn{
  margin-top:12px;
  min-height:58px;
  border-radius:13px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(90deg,#ff006f,#df00e8);
  font-size:20px;
  font-weight:900;
}

.official-channel{
  margin-top:11px;
  min-height:52px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#229ED9;
  font-weight:800;
}

.related-section{
  margin-top:30px;
}

@media(min-width:700px){
  .video-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:360px){
  .video-title{
    font-size:13px;
  }

  .video-meta{
    font-size:10px;
  }
}

.section-head{
  padding:8px 2px 18px;
}

.section-head h1{
  margin:0 0 5px;
  font-size:26px;
}

.section-head p{
  margin:0;
  color:#84919d;
  font-size:14px;
}

.category-list-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}

.category-box{
  min-height:92px;
  background:#0c1823;
  border:1px solid #172838;
  border-radius:15px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:11px;
}

.category-emoji{
  width:45px;
  height:45px;
  min-width:45px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#ff0084,#a900ff);
  border-radius:13px;
  font-size:20px;
}

.category-info{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.category-info strong{
  font-size:15px;
}

.category-info span{
  color:#84919d;
  font-size:11px;
}

.category-arrow{
  color:#ff008c;
  font-size:26px;
}

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

.header-left{
  gap:8px;
}

.menu-btn{
  display:none !important;
}


/* =========================================
   CLEAN DETAILS PAGE
========================================= */

.detail-header{
  height:58px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 14px;
  background:#07111b;
  border-bottom:1px solid #172531;
  position:sticky;
  top:0;
  z-index:100;
}

.detail-back{
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:25px;
  color:#fff;
}

.detail-brand{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:19px;
  font-weight:800;
}

.detail-logo{
  color:#ff008c;
  font-size:17px;
}

.detail-page{
  width:100%;
  max-width:720px;
  margin:0 auto;
  padding:12px 12px 100px;
}


/* ORIGINAL IMAGE */

.main-post-image{
  width:100%;
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:16px;
  background:#101820;
}

.main-post-image img{
  width:100%;
  max-height:520px;
  display:block;
  object-fit:contain;
  background:#080f15;
}

.main-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:66px;
  height:66px;
  border-radius:50%;
  background:rgba(0,0,0,.65);
  border:3px solid #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-left:4px;
  font-size:25px;
  color:#fff;
}


/* CAPTION */

.original-caption{
  margin-top:17px;
  color:#f1f4f7;
  font-size:18px;
  line-height:1.62;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}


/* VIEW + TELEGRAM ROW */

.post-action-row{
  margin-top:17px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:14px;
  border-top:1px solid #182733;
}

.post-views{
  color:#96a3ae;
  font-size:14px;
  white-space:nowrap;
}

.detail-telegram-btn{
  min-height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:10px;
  background:#229ED9;
  color:#fff;
  font-size:13px;
  font-weight:800;
}


/* SMALL VIDEO BUTTON */

.small-video-button{
  width:100%;
  max-width:320px;
  min-height:46px;
  margin:15px auto 0;
  padding:10px 18px;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(90deg,#ff0078,#e600d8);
  color:#fff;
  font-size:16px;
  font-weight:900;
}


/* RELATED */

.clean-related{
  margin-top:30px;
  border-top:1px solid #182733;
  padding-top:22px;
}

.related-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:13px;
}

.related-heading h2{
  margin:0;
  font-size:22px;
}

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

.related-card{
  min-width:0;
  background:#0c1721;
  border:1px solid #172632;
  border-radius:13px;
  overflow:hidden;
}

.related-thumb{
  position:relative;
  width:100%;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#101820;
}

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

.related-play{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:42px;
  height:42px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.68);
  border:2px solid #fff;
  color:#fff;
  font-size:15px;
  padding-left:2px;
}

.related-title{
  padding:9px 9px 3px;
  font-size:14px;
  line-height:1.35;
  font-weight:700;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.related-meta{
  padding:5px 9px 10px;
  color:#8996a2;
  font-size:11px;
}


@media(max-width:480px){

  .detail-page{
    padding:9px 10px 95px;
  }

  .main-post-image{
    border-radius:13px;
  }

  .main-post-image img{
    max-height:460px;
  }

  .original-caption{
    font-size:16px;
    line-height:1.6;
  }

  .main-play{
    width:58px;
    height:58px;
    font-size:21px;
  }

  .detail-telegram-btn{
    font-size:12px;
    padding:0 11px;
  }

  .small-video-button{
    max-width:260px;
    font-size:15px;
  }

  .related-heading h2{
    font-size:20px;
  }

  .related-title{
    font-size:13px;
  }

}

.detail-page,
.detail-page *{
  max-width:100%;
}

.original-caption,
.related-title{
  overflow-wrap:anywhere;
  word-break:break-word;
}

body{
  overflow-x:hidden;
}

.clean-post-title{
  margin:16px 0 10px;
  font-size:23px;
  line-height:1.4;
  font-weight:900;
  color:#fff;
}

.video-action-title{
  margin-top:12px;
  margin-bottom:9px;
  font-size:15px;
  font-weight:800;
  color:#b8c3cc;
}

.video-action-buttons{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
  margin-bottom:17px;
}

.video-action-btn{
  min-height:45px;
  padding:9px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  border-radius:11px;
  font-size:14px;
  font-weight:900;
}

.video-action-btn.primary{
  background:linear-gradient(90deg,#ff0076,#ec00b5);
  color:#fff;
}

.video-action-btn.secondary{
  background:#122536;
  border:1px solid #29475e;
  color:#e7edf2;
}

.video-action-btn.help{
  grid-column:1 / -1;
  background:#18222d;
  border:1px solid #2c3d4c;
  color:#65baff;
}

@media(max-width:390px){
  .clean-post-title{
    font-size:20px;
  }

  .video-action-btn{
    font-size:13px;
    padding:8px;
  }
}

.clean-post-title{
  margin:18px 0 10px !important;
  font-size:22px !important;
  line-height:1.5 !important;
  font-weight:800 !important;
}

.video-action-title{
  margin:8px 0 10px !important;
  font-size:17px !important;
  font-weight:900 !important;
  color:#fff !important;
}

.video-action-buttons{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:9px !important;
  margin:0 0 20px !important;
}

.video-action-btn{
  min-height:48px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  border-radius:11px !important;
  font-size:14px !important;
  font-weight:900 !important;
}

.video-action-btn.primary{
  background:linear-gradient(90deg,#ff0078,#e400bf) !important;
  color:white !important;
}

.video-action-btn.secondary{
  background:#132636 !important;
  border:1px solid #355268 !important;
  color:white !important;
}

.video-action-btn.help{
  grid-column:1 / -1 !important;
  background:#102b3c !important;
  border:1px solid #2389c7 !important;
  color:#66c4ff !important;
}

.original-caption{
  margin-top:0 !important;
}

.related-grid-clean{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

.related-thumb-clean{
  aspect-ratio:16/10 !important;
}

.related-thumb-clean img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

.caption-link{
  color:#55b6ff;
  text-decoration:none;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.caption-link:active{
  opacity:.8;
}

/* COMPACT MAIN PHOTO */
.post-main-image{
  width:100% !important;
  aspect-ratio:16/9 !important;
  max-height:380px !important;
  overflow:hidden !important;
  border-radius:14px !important;
  background:#05090d !important;
}

.post-main-image img{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  display:block !important;
}

@media(max-width:480px){
  .post-main-image{
    max-height:300px !important;
  }
}

.post-actions-row{
  display:grid !important;
  grid-template-columns:auto 1fr !important;
  align-items:center !important;
  gap:12px !important;
  margin-top:18px !important;
  padding-top:14px !important;
  border-top:1px solid #182734 !important;
}

.post-views{
  color:#9ba7b3 !important;
  font-size:14px !important;
  white-space:nowrap !important;
}

.mini-telegram-btn{
  width:100% !important;
  min-height:44px !important;
  padding:0 14px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:11px !important;
  background:#169bd5 !important;
  color:#fff !important;
  font-size:14px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
}

@media(max-width:380px){
  .post-actions-row{
    grid-template-columns:1fr !important;
  }

  .mini-telegram-btn{
    width:100% !important;
  }
}

.related-clean{
  margin-top:26px !important;
}

.related-heading{
  font-size:21px !important;
  font-weight:900 !important;
  margin-bottom:12px !important;
}

.related-grid-clean{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
}

.related-card-clean{
  width:100% !important;
  overflow:hidden !important;
  border-radius:12px !important;
}

.related-thumb-clean{
  width:100% !important;
  aspect-ratio:16/10 !important;
  max-height:150px !important;
  overflow:hidden !important;
}

.related-thumb-clean img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

.related-title-clean{
  font-size:13px !important;
  line-height:1.4 !important;
  min-height:0 !important;
  padding:8px 8px 3px !important;
}

/* ANIMATED CTA BETWEEN POST & RELATED */
.related-cta-box{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:26px 0 28px;
  padding:14px;
  background:#0b1721;
  border:1px solid #1b3040;
  border-radius:15px;
  overflow:hidden;
}

.moving-cta{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:10px 12px;
  border-radius:12px;
  color:#fff;
  font-size:14px;
  font-weight:900;
  position:relative;
  transform:translateZ(0);
}

.moving-watch{
  background:linear-gradient(90deg,#ff0078,#e400bd);
  animation:watchMove 1.35s ease-in-out infinite;
  box-shadow:0 0 0 rgba(255,0,126,0);
}

.moving-help{
  background:#10334a;
  border:1px solid #1c9edc;
  color:#77d0ff;
  animation:helpMove 1.35s ease-in-out infinite .25s;
}

@keyframes watchMove{
  0%,100%{
    transform:translateY(0) scale(1);
    box-shadow:0 0 0 0 rgba(255,0,126,.32);
  }
  50%{
    transform:translateY(-4px) scale(1.025);
    box-shadow:0 8px 22px rgba(255,0,126,.25);
  }
}

@keyframes helpMove{
  0%,100%{
    transform:translateY(0) scale(1);
  }
  50%{
    transform:translateY(-4px) scale(1.025);
  }
}

.moving-cta:active{
  transform:scale(.97) !important;
}

@media(max-width:390px){
  .related-cta-box{
    grid-template-columns:1fr;
  }
}

/* FINAL DETAILS PAGE */

.post-main-image{
  width:100% !important;
  height:auto !important;
  aspect-ratio:16/9 !important;
  max-height:340px !important;
  position:relative !important;
  display:block !important;
  overflow:hidden !important;
  border-radius:15px !important;
  background:#05090d !important;
}

.post-main-image img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

.post-play{
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  transform:translate(-50%,-50%) !important;

  width:68px !important;
  height:68px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  border-radius:50% !important;
  border:3px solid #fff !important;

  background:rgba(0,0,0,.65) !important;
  color:#fff !important;

  font-size:27px !important;
  padding-left:4px !important;

  box-shadow:0 5px 20px rgba(0,0,0,.45) !important;
}

.post-actions-row{
  display:grid !important;
  grid-template-columns:auto 1fr !important;
  align-items:center !important;
  gap:12px !important;

  margin-top:14px !important;
  padding:0 !important;

  border:0 !important;
}

.post-views{
  color:#9aa7b2 !important;
  font-size:14px !important;
  white-space:nowrap !important;
}

.mini-telegram-btn{
  min-height:43px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  background:#159fd7 !important;
  color:#fff !important;

  border-radius:11px !important;
  font-weight:900 !important;
  font-size:14px !important;
}


.final-video-buttons{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:10px !important;

  margin-top:14px !important;
  margin-bottom:28px !important;
}

.final-video-btn{
  min-height:50px !important;

  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  padding:10px !important;

  border-radius:12px !important;

  text-align:center !important;
  font-size:14px !important;
  font-weight:900 !important;
}

.final-video-btn.watch{
  background:linear-gradient(90deg,#ff0078,#e700bc) !important;
  color:white !important;
  animation:videoPulse 1.4s ease-in-out infinite;
}

.final-video-btn.open{
  background:#112737 !important;
  border:1px solid #31536a !important;
  color:white !important;
  animation:videoPulse 1.4s ease-in-out infinite .2s;
}

.final-video-btn.how{
  grid-column:1 / -1 !important;

  background:#0d3249 !important;
  border:1px solid #139bd6 !important;
  color:#70d0ff !important;

  animation:videoPulse 1.4s ease-in-out infinite .4s;
}

@keyframes videoPulse{
  0%,100%{
    transform:scale(1);
  }

  50%{
    transform:scale(1.035);
  }
}

.related-clean{
  margin-top:8px !important;
}

.related-heading{
  font-size:21px !important;
  font-weight:900 !important;
  margin-bottom:12px !important;
}

.related-grid-clean{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:9px !important;
}

.related-thumb-clean{
  width:100% !important;
  aspect-ratio:16/10 !important;
  max-height:145px !important;
  overflow:hidden !important;
}

.related-thumb-clean img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}

@media(max-width:390px){

  .post-main-image{
    max-height:270px !important;
  }

  .post-actions-row{
    grid-template-columns:1fr 1.5fr !important;
  }

}

.related-title-clean{
  display:-webkit-box !important;
  -webkit-line-clamp:2 !important;
  -webkit-box-orient:vertical !important;
  overflow:hidden !important;

  padding:8px 9px 3px !important;

  color:#fff !important;
  font-size:13px !important;
  line-height:1.4 !important;
  font-weight:800 !important;
}

.related-meta-clean{
  padding:5px 9px 10px !important;
  color:#8996a3 !important;
  font-size:11px !important;
}
