/*
Theme Name: Uploadhdporn
Description: Перенос шаблона DLE «MAIN-Shablon» со старого uploadhdporn.com. Стили — legacy/style/*.css.
Version: 1.0.1
Requires PHP: 8.0
*/
.ftags a{margin:0 2px}
.short-news .img-size img{max-width:100%;height:auto}
.full-news img{max-width:100%;height:auto}
/* ---- косметические правки 2026 ---- */
body{-webkit-font-smoothing:antialiased}
center h3.imfont a,.box h3.imfont a{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.short-news{box-shadow:0 1px 4px rgba(0,0,0,.08);margin-bottom:22px}
.short-news .img-size img{max-height:520px;width:auto;max-width:100%;height:auto;margin:0 auto}
.full-news img{max-width:100%;height:auto}
.download{float:none;text-align:center;margin:10px 0 6px}
.download a .imfont{display:inline-block;box-sizing:border-box;font-size:1.15em;padding:9px 46px 0 22px;text-align:left}
.horizontal ul li img{object-fit:cover}
img.broken{visibility:hidden}
#searchbar input{height:auto;line-height:20px}
@media (max-width:1000px){
 #header{height:220px;background-position:center}
 .logo .thd{width:100%;max-width:420px;background-size:contain;padding-top:60px;margin:10px 0 0}
 #searchbar{float:none;clear:both;margin:10px 0 0;display:flex}
 #searchbar input{flex:1;width:auto}
 .advsearch{display:none}
 .wrp{width:auto;padding:0 10px}
 #content{padding-left:0}
 #midside{float:none;width:auto}
 #sidebar{float:none;margin:20px 0 0;width:auto;padding:0}
 .horizontal ul{width:auto}
 .img-size{margin-left:0;margin-right:0}
 .full-news{margin:0;padding:12px}
 .full-news table,.full-news tbody,.full-news tr,.full-news td{display:block;width:auto!important}
 .short-news .img-size img{max-height:420px}
}
@media (max-width:600px){#header{height:150px}.news-head{padding:14px}#content h2{font-size:16px}}
@media (max-width:1000px){html{min-width:0}body{overflow-x:hidden}#searchbar .btn{flex:0 0 70px}.horizontal{height:auto}.horizontal .carousel_container{overflow-x:auto}}
.box h3.imfont,.box h3.imfont span{color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.45)}
.full-news .quote a{word-break:break-all}
@media (max-width:1000px){.box h3.imfont{height:auto!important;line-height:1.3;padding-top:8px;padding-bottom:8px}.full-news a{word-break:break-all}ul.related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;height:auto!important}ul.related li{width:auto!important;float:none!important;margin:0!important;height:auto!important}ul.related .rn-img,ul.related .rn-img img{width:100%!important;height:auto!important}ul.related .rn-title{white-space:normal}}
