:root {
	--pm-dark: rgba(0, 0, 0, 0.72);
	--pm-panel: #e6e6e6;
	--pm-surface: #f9f9f9;
	--pm-border: #d0d0d0;
	--pm-link: #19527d;
	--pm-accent: #afd5cb;
}

* { box-sizing: border-box; }
body { min-width: 320px; }
button, input, select, textarea { font: inherit; }
#wrapper { width: min(1000px, 100%); }
#head, #toplogo { width: 100%; }
#head { left: 0; z-index: 20; }
#toplogo { display: flex; align-items: center; }
.logo { padding: 8px 55px 0 27px; flex: 0 0 auto; }
.logo img { display: block; width: auto; max-width: 160px; height: 42px; object-fit: contain; }
.logmenu { min-width: 0; flex: 1; }
.logmenu ul { display: flex; flex-wrap: wrap; }

#topmenu { min-height: 40px; overflow: visible; display: flex; align-items: stretch; position: relative; }
#topmenu .topmenu-links { position: static; flex: 1; min-width: 0; }
#topmenu .topmenu-links ul { display: flex; flex-wrap: wrap; }
#topmenu .topmenu-links li { float: none; }
#topmenu .topmenu-links li a { height: auto; padding: 10px 9px; }
.mobile-menu-toggle { display: none; color: #f9e3a7; border: 0; background: transparent; padding: 10px 14px; font-weight: bold; }

.header-auth { position: relative; margin-left: auto; color: #fff; flex: 0 0 auto; }
.header-auth summary { list-style: none; cursor: pointer; color: #fff; font-weight: bold; padding: 10px 14px; white-space: nowrap; }
.header-auth summary::-webkit-details-marker { display: none; }
.header-auth[open] summary { background: rgba(255,255,255,.1); }
.header-login-form, .header-user-menu { position: absolute; z-index: 50; right: 0; top: 100%; width: 245px; padding: 14px; background: #2d2d2d; border: 1px solid #111; border-radius: 0 0 6px 6px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.header-login-form label { display: block; margin: 7px 0 4px; color: #ddd; }
.header-login-form input { width: 100%; margin-bottom: 5px; }
.header-login-form div { margin-top: 10px; color: #aaa; }
.header-login-form a, .header-user-menu a { color: #f9e3a7; }
.header-user-menu a { display: block; padding: 7px 4px; border-bottom: 1px solid #444; }
.pm-badge { display: inline-block; min-width: 17px; padding: 1px 5px; border-radius: 9px; background: #d64a4a; text-align: center; font-size: 10px; }

#news { padding-bottom: 15px; }
#dle-content::after, .otnews::after, .comments-list::after { content: ""; display: table; clear: both; }
.category-intro { margin: 0 10px 12px; padding: 14px 16px; background: var(--pm-surface); border: 1px solid var(--pm-border); border-radius: 0 0 6px 6px; line-height: 1.6; }
.category-intro:empty { display: none; }
.category-intro h1 { display: block; margin: 0 0 8px; font-size: 24px; text-align: left; }
.category-intro p { padding: 0; }
.section-title { display: block; margin: 18px 12px 10px; padding: 9px 14px; background: var(--pm-accent); border-radius: 12px 12px 0 0; font-size: 17px; text-align: left; }
.section-title span { color: #60706b; font-size: 13px; }

.category-toggle { width: 100%; border: 0; border-top: 1px solid #bbb; background: #d5d5d5; color: #333; padding: 10px; font-weight: bold; }
.category-tree { position: static; width: auto; }
.category-tree .category-list { padding: 0; }
.category-tree .category-list ul { padding-left: 13px; border-left: 1px solid #c3c3c3; }
.category-tree .category-item { margin: 0; padding: 0; }
.category-tree .category-item > a { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 5px; color: #4b4b4b; font-weight: normal; line-height: 1.25; }
.category-tree .category-item > a span { width: auto; flex: 1; }
.category-tree .category-item small { color: #929292; font-size: 10px; }
.category-tree .category-item.active > a { color: #174e74; background: #f8f8f8; font-weight: bold; }

.play-card { position: relative; height: 316px; vertical-align: top; }
.play-card-link { display: block; color: inherit; }
.play-card-image, .play-card-placeholder { display: block; width: 183px; height: 205px; object-fit: cover; background: #303336; }
.play-card-placeholder { color: #fff; text-align: center; line-height: 205px; font-size: 22px; font-weight: bold; text-shadow: 0 1px 2px #000; background: #303336 url("../images/noise.png"); }
.play-card .snewslink { margin: 0; text-align: left; }
.play-card .snewscat { height: 27px; overflow: hidden; }
.play-card-meta { display: flex; justify-content: space-between; padding: 0 5px 7px; color: #888; font-size: 10px; }
.play-card-edit { position: absolute; top: 5px; right: 5px; padding: 3px 5px; background: #fff; border-radius: 3px; font-size: 10px; }

.full-news { padding: 12px; line-height: 1.55; }
.full-news h1 { display: block; margin: 0 0 8px; text-align: center; line-height: 1.15; }
.newstop { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 12px; }
.newstop .news1 { float: none; width: auto; flex: 1; order: 2; }
.newstop .news2 { float: none; width: 240px; flex: 0 0 240px; order: 1; }
.newstop .news2 img { display: block; width: 240px; height: 240px; object-fit: cover; }
.newstop .news1:only-child { order: 1; }
.short-description:empty { display: none; }
.short-description p, .normlist p { padding: 8px 0; }
.fulldate { margin: 12px 0; }
.game-embed { margin: 14px 0 0; overflow: hidden; }
.game-embed #game, .game-embed object, .game-embed iframe, .video-embed iframe { max-width: 100% !important; }
.game-embed iframe, .video-embed iframe { display: block; margin: 0 auto; }
.gameinfo { margin-bottom: 15px; min-height: 40px; }
.gameinfo .fullsrc { border: 0; color: #222; }
.full-description, .normlist { overflow-wrap: anywhere; }
.normlist h2 { padding: 13px 0 3px; }
.normlist img { max-width: 100%; height: auto; }
.newsScreens { margin-top: 18px; padding-top: 8px; border-top: 1px solid #c5c5c5; }
.newsScreens h2 { padding: 8px; text-align: center; }
.newsScreens img, .xfieldimagegallery img { width: auto; max-width: 240px; height: 160px; object-fit: cover; padding: 4px; }
.xfieldimagegallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.video-embed { margin: 18px auto; }
.key { box-sizing: content-box; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 7px; padding: 9px 12px; background: #d5d5d5; color: #666; font-size: 11px; }
.news-tags { padding: 7px 12px; }
.related-block { overflow: hidden; }
.related-card { height: 285px; }
.related-card a { display: block; color: inherit; }

.comments-section { clear: both; padding-top: 5px; }
.comment { align-items: flex-start; }
.comment > .avatar > div { display: none; }
.commentContent { min-width: 0; line-height: 1.5; }
.commentContent .text { margin: 9px 0; overflow-wrap: anywhere; }
.commentContent .text img { max-width: 100%; height: auto; }
.comment-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 7px; border-top: 1px solid #e2e2e2; color: #777; font-size: 11px; }
.comment-actions a { color: #666; }
.addComment { display: block; margin: 15px 10px; padding: 14px; background: var(--pm-surface); border: 1px solid var(--pm-border); border-radius: 6px; }
.add-comment-body { width: 100%; }
.add-comment-body h2 { padding: 0 0 12px; }
.comment-guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.comment-guest-fields input { width: 100%; }
.comment-upload, .comment-subscribe, .comment-captcha, .comment-question, .comment-submit { margin-top: 10px; }
.comment-question label { display: block; margin-bottom: 5px; }
.comment-submit { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.sec-code { display: flex; align-items: center; gap: 8px; }

.play-button, .btn, button[type="submit"] { border: 1px solid #276c91; border-radius: 4px; background: #337fa7; color: #fff; padding: 8px 13px; font-weight: bold; cursor: pointer; }
.play-button:hover, .btn:hover, button[type="submit"]:hover { background: #286b8f; }
.pagination { position: static; width: auto; display: flex; align-items: center; justify-content: center; gap: 7px; clear: both; margin: 12px 0; }
.pagination .pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.pagination span { margin: 0; padding: 0; }
.pagination a, .pagination .pages > span { margin: 2px; padding: 7px 10px; }

.content-panel, .box, .system-info, .berrors { margin: 10px; padding: 15px; background: var(--pm-surface); border: 1px solid var(--pm-border); border-radius: 6px; line-height: 1.55; }
.content-panel h1 { display: block; margin: 0 0 12px; }
.static-content img, .text img { max-width: 100%; height: auto; }
.system-info { border-left: 4px solid #3f8bb4; }
.system-info b { display: block; margin-bottom: 5px; }
.content-tools { float: right; }
.ui-form { list-style: none; }
.ui-form > li, .form-group { margin-bottom: 12px; }
.ui-form label, .form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.ui-form input[type="text"], .ui-form input[type="password"], .ui-form input[type="email"], .ui-form textarea, .ui-form select, .form-group input, .form-group textarea, .form-group select { width: 100%; max-width: 100%; }
.form_submit { margin-top: 14px; }
.icon { display: inline-block; width: 16px; height: 16px; fill: currentColor; vertical-align: middle; }
.story_icons, .meta ul { list-style: none; }
.grey { color: #888; }

@media (max-width: 1020px) {
	body { background-attachment: scroll; }
	#wrapper { padding: 0 10px; }
	#toplogo { width: 100%; }
	#right { width: calc(100% - 210px); }
	#left { width: 200px; }
	#freetop { height: 145px; }
}

@media (max-width: 760px) {
	#wrapper { padding: 0; }
	#head { position: relative; }
	#freetop { display: none; }
	#toplogo { height: auto; min-height: 64px; flex-wrap: wrap; padding: 5px 10px; }
	.logo { padding: 5px 15px 5px 5px; }
	.logmenu { display: none; width: 100%; flex: 0 0 100%; padding: 4px 0; order: 3; }
	.logmenu.open { display: block; }
	.logmenu ul { justify-content: center; }
	#topmenu { border-radius: 0; }
	.mobile-menu-toggle { display: block; }
	.topmenu-links { display: none; position: absolute !important; top: 40px; left: 0; right: 0; z-index: 40; background: #202020; }
	.topmenu-links.open { display: block; }
	#topmenu .topmenu-links ul { display: block; }
	#topmenu .topmenu-links li { float: none; }
	#middle { display: flex; flex-direction: column; }
	#right, #left { float: none; width: 100%; }
	#right { order: 1; }
	#left { order: 2; }
	.breadcrumbs { border-radius: 0; }
	#leftmenu { padding-bottom: 12px; }
	.category-tree { display: none; }
	.category-tree.open { display: block; }
	.main-sections { display: grid; grid-template-columns: 1fr 1fr; }
	.play-card { width: calc(50% - 14px); margin: 8px 7px; }
	.play-card-image, .play-card-placeholder { width: 100%; }
	.newstop { display: block; }
	.newstop .news2 { width: 100%; margin-bottom: 12px; }
	.newstop .news2 img { margin: auto; }
	.gameinfo { padding: 5px 10px; }
	.comment { margin: 10px 6px; }
	.comment .avatar { width: 64px; }
	.comment-guest-fields { grid-template-columns: 1fr; }
	#footer { margin-top: 0; height: auto; min-height: 48px; }
	.copyright { padding: 12px; line-height: 1.7; }
}

@media (max-width: 460px) {
	.play-card { width: calc(100% - 14px); height: auto; }
	.play-card-image, .play-card-placeholder { height: 240px; }
	.comment { display: block; }
	.comment .avatar { width: 100%; text-align: left; }
	.comment .avatar img { width: 44px; height: 44px; }
	.newsScreens img, .xfieldimagegallery img { width: 100%; max-width: 100%; height: auto; }
	.key { width: auto; padding-right: 12px; }
}
