/* Minidrama mobile improvements - 2026-08-02 */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
img,video,iframe{max-width:100%}
@media (max-width: 700px){
  body{overflow-x:hidden}
  .header{padding:12px 14px!important}
  .header h1{font-size:1.45rem!important;line-height:1.25!important}
  .search-container{margin:14px auto!important;padding:0 12px!important}
  #search-input{min-height:46px;padding:11px 16px!important;font-size:16px!important}
  .category-bar{padding:9px 0!important;overflow:hidden}
  .category-menu{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:8px!important;overflow-x:auto!important;padding:2px 12px 7px!important;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .category-menu::-webkit-scrollbar{display:none}
  .category-item{flex:0 0 auto!important}
  .cat-btn{flex:0 0 auto!important;white-space:nowrap!important;padding:9px 14px!important;min-height:40px;display:inline-flex!important;align-items:center;justify-content:center;font-size:.82rem!important;scroll-snap-align:start}
  .category-item .submenu{position:fixed!important;left:12px!important;right:12px!important;top:auto!important;min-width:0!important;max-height:55vh;overflow-y:auto}
  .main-wrapper{display:block!important;padding:14px 12px!important}
  .content-area{min-width:0}
  .content-area>h2{font-size:1.15rem;margin-bottom:14px!important}
  .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .post-card{border-radius:10px!important;box-shadow:0 2px 7px rgba(0,0,0,.09)!important}
  .post-card:hover{transform:none!important}
  .post-card img{height:auto!important;aspect-ratio:2/3;object-fit:cover!important}
  .post-card-content{padding:10px!important}
  .post-card h3{font-size:.88rem!important;line-height:1.35!important;margin-bottom:6px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .post-excerpt{display:none!important}
  .post-meta{margin-bottom:6px!important;min-height:0!important}
  .post-date{font-size:.64rem!important}
  .genre-tag{padding:3px 7px!important;font-size:.58rem!important;margin-right:3px!important;margin-bottom:4px!important}
  .genres-container{padding-top:3px!important;max-height:49px;overflow:hidden}
  .sidebar{min-width:0!important;margin-top:18px}
  .widget{border-radius:10px!important;margin-bottom:14px!important}
  .widget h3{font-size:.92rem!important}
  .widget-content{padding:12px!important}
  .search-status{padding:11px 12px!important;font-size:.82rem!important}
  .footer-ad-banner{padding:12px 5px!important;overflow:hidden}
}
@media (max-width: 380px){
  .posts-grid{gap:9px!important}
  .post-card-content{padding:8px!important}
  .post-card h3{font-size:.81rem!important}
}

/* Individual post pages */
@media (max-width: 700px){
  body:has(.post){padding:0!important;background:#fff!important}
  .post{width:100%!important;max-width:none!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
  .post>.header{padding:22px 16px!important;text-align:left!important}
  .post>.header h1{font-size:1.38rem!important;line-height:1.35!important;margin-bottom:10px!important;overflow-wrap:anywhere}
  .post .meta{font-size:.76rem!important;line-height:1.65!important}
  .post .content{padding:0 12px 22px!important}
  .post .thumb{margin:16px -12px 18px!important}
  .post .thumb img{display:block;width:100%!important;max-width:100%!important;border-radius:0!important;max-height:72vh;object-fit:cover}
  .post .info{border-radius:12px!important;margin-bottom:18px!important;overflow:hidden}
  .post .row{display:block!important}
  .post .label{width:100%!important;padding:9px 12px!important;font-size:.82rem!important}
  .post .val{padding:10px 12px!important;font-size:.88rem!important;line-height:1.65!important;overflow-wrap:anywhere}
  .post .download-section,.post .downloads{margin:18px 0 12px!important;padding:14px 10px!important;border-radius:14px!important}
  .post .download-title,.post .downloads h3{font-size:1.05rem!important;margin-bottom:14px!important}
  .post .download-item-modern,.post .download-item{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:10px!important;border-radius:11px!important;text-align:left!important}
  .post .download-label-modern,.post .download-label{font-size:.78rem!important;padding:4px 8px!important;min-width:0;overflow-wrap:anywhere}
  .post .download-btn-modern,.post .download-link{flex:0 0 auto!important;align-self:auto!important;padding:8px 12px!important;font-size:.78rem!important;min-height:38px}
  .post .note{padding:12px!important;font-size:.84rem!important;line-height:1.55!important}
  .post>.footer{margin-top:12px!important;padding:18px 12px 28px!important}
  .post .back{display:inline-flex;min-height:42px;align-items:center;padding:8px 18px!important}
}
@media (max-width: 380px){
  .post .download-item-modern,.post .download-item{flex-direction:column!important;align-items:stretch!important;text-align:center!important}
  .post .download-btn-modern,.post .download-link{justify-content:center!important;text-align:center!important}
}
