/*
Theme Name: MyDonghua Theme
Theme URI: https://mydonghua.com
Template: generatepress
Author: MyDonghua Team
Author URI: https://mydonghua.com/about
Description: MyDonghua Theme is a lightweight, responsive and SEO-friendly WordPress theme designed specifically for video and anime websites. It supports third-party video embedding and optimized layout for both desktop and mobile. Developed with performance and clean code in mind.
Tags: anime, embed, seo, video-site, responsive, minimal, custom-header
Version: 1.5.6
*/

.widget-area .widget {
    padding: 15px;
}
.post-image:not(:first-child) {
    margin-top: 5px;
}
.global-after-header{
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    padding: 10px;
}
.entry-summary {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Ảnh đại diện */
.inside-article .post-image {
  order: -1;
  margin-bottom: 10px;
}

.post-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.post-image a {
	display: block;
	position: relative;
}

.post-image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.post-image a:hover img {
	transform: scale(1.03);
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 60px;
	height: 60px;
	background: rgba(0, 0, 0, 0.5);
	mask: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8 5v14l11-7z"/></svg>') center/contain no-repeat;
	-webkit-mask: url('data:image/svg+xml;utf8,<svg fill="white" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M8 5v14l11-7z"/></svg>') center/contain no-repeat;
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.post-image a:hover .play-button {
	opacity: 1;
}

.page-header-image-single {
    display: none !important;
}

/* Footer (category, comment link) */
.entry-meta[aria-label="Entry meta"] {
  font-size: 0.75rem;
  color: #999;
  margin: auto 12px 12px;
  border-top: 1px solid #eee;
  padding-top: 10px;
  display: none;	
}

.home-article-wrapper .entry-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 1.25rem; /* To hơn một chút */
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  word-break: break-word;  
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.home-article-wrapper .entry-title a {
  text-decoration: none;
  color: inherit;
}

.home-article-wrapper .entry-title:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}


.custom-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
	align-items: center;
}

.custom-post-meta span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #f4f4f4;
	padding: 6px 12px;
	border-radius: 20px;
	font-weight: 500;
}

.custom-post-meta i {
	color: #999;
}


/* Áp dụng cho vùng hiển thị danh sách bài viết */
.home .site-main {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr); /* Mặc định: 1 cột cho mobile */
  margin-top: 20px;
  margin-bottom: 20px;
}

.separate-containers .inside-article {
    padding: 5px;
}

/* Máy tính bảng: 2 cột */
@media (min-width: 600px) {
  .home .site-main {
    grid-template-columns: repeat(2, 1fr);
  }
	.home-article-wrapper .entry-title{
	font-size: 1.05rem;
	}
}

/* Máy tính để bàn: 3 cột */
@media (min-width: 960px) {
  .home .site-main {
    grid-template-columns: repeat(3, 1fr);
  }
	.home-article-wrapper .entry-title{
	font-size: 1.0rem;
	}
}

/* Optional: style cho mỗi ô bài viết */
.home .home-article-wrapper {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
	margin: 0;
}

.home .home-article-wrapper:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Breadrum */
#breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  background: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  color: #333;
  margin: 20px 0;
}

#breadcrumbs span[itemprop="itemListElement"] {
  display: flex;
  align-items: center;
}

#breadcrumbs a {
  color: #0073aa;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}
#breadcrumbs a:hover {
  color: #005177;
}

#breadcrumbs .breadcrumb-icon {
  display: inline-flex;
  margin-right: 4px;
  color: #0073aa;
}

#breadcrumbs span[itemprop="itemListElement"] + span[itemprop="itemListElement"]::before {
  content: "›";
  margin: 0 6px;
  color: #999;
  font-weight: bold;
}


/* Content-Single */
.post-single-wrapper h1.entry-title {
  font-size: clamp(1.6rem, 5vw, 2.8rem); /* Responsive kích thước */
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #222;
  background: linear-gradient(to right, #00dfd8, #007cf0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  word-break: break-word;
  border-left: 5px solid #00dfd8;
  padding-left: 14px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.post-single-wrapper h1.entry-title {
  font-size: 1.6rem;
}

@media (min-width: 600px) {
  .post-single-wrapper h1.entry-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .post-single-wrapper h1.entry-title {
    font-size: 2.6rem;
  }
}

/* Video embed */
.embed-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;background-color:#000}.embed-container iframe,.loading-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.loading-overlay{background:#000;display:flex;align-items:center;justify-content:center;z-index:10}.spinner{width:50px;height:50px;border:5px solid rgba(255,255,255,.3);border-radius:50%;border-top:5px solid #fff;animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}

/* Link Video embed */
.player-servers.player-servers {
    background: linear-gradient(135deg,#4aeadc 0,#6f3fc9 20%,#cf2aba 40%,#ee2c82 60%,#fb6962 80%,#4c9afe 100%);
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    border-radius: 0 0 3px 3px;
    padding: 10px;
}
.player-servers #servers-content {
    overflow: hidden;
    min-height: 80px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.player-servers .ps_-status {
    background: #f9f9f9;
    border: 1px solid #4db6ac;
    border-radius: 5px;
    padding: 0 10px;
    width: 40%;
    flex-shrink: 0;
}
.content {
    font-family: Arial,sans-serif;
    color: #00796b;
}
.note-c {
    color: red!important;
}
.ps_-status+.ps_-block {
    margin-top: 20px;
}
.player-servers .ps_-block {
    width: 55%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex-shrink: 0;
}
.ps_-block .server-item .btn:not(.active) {
    background-color: #ffb509 !important;
}

.ps_-block .server-item .btn:not(.active):hover{background-color:#e4ff03 !important;color:#000!important;}

.ps__-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    justify-content: center;
}
.player-servers .ps__-list .itemm .btn.active {
    background: #29b40e;
    color: #fff;
}
.player-servers .ps__-list .itemm .btn {
    font-size: 13px;
    box-shadow: none!important;
    font-weight: 800;
    padding: 0 10px;
    line-height: 30px;
    background: #343434;
    color: #000000;
    border: none!important;
    display: inline-block;
    border-radius: 3px;
    width: 100%;
    text-align: center;
}
a {
    text-decoration: none;
    color: #0050c7;
}
@media screen and (max-width: 768px) {
    .player-servers {
        flex-direction: column;
    }
    .player-servers .ps_-block, .player-servers .ps_-status {
        width: 100%;
        flex: 1 1 100%;
    }
    .player-servers .ps_-status .server-notice {
        transform: none;
        position: relative;
        top: auto;
        padding: 5px;
    }
    .itemm.server-item {
        margin-top: -30px;
        margin-bottom: 10px;
    }
}

/* Nav link */
.naveps {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}
.nvs {
    background: #ffffff;
    padding: 5px 20px;
    border-radius: 2px;
    border: 2px solid #a38f8f;
}
.nvs a {
    color: #000000;
    text-decoration: none;
    font-weight: 700;
}
.icol.expand, .iconx .icol span, .naveps.bignav .nvs .tex {
    display: inline!important;
}
.nvs.nvsc {
    background: linear-gradient(135deg,#fcb900 0,#ff6900 100%);
}
.ctstt {
    padding-top: 15px;
}
.content-status {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    padding: 5px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}
.content-status span {
    color: #ffeb3b;
    font-weight: 700;
    font-size: 20px;
}

@media (max-width: 768px) {
	#main {
        margin-left: 5px;
        margin-right: 5px;
    }
    .content-status {
        font-size: 15px;
    }
        .content-status span {
        font-size: 16px;
    }
}

.mobius {
    flex: 0 0 40%;
    display: flex;
    justify-content: flex-end;
}

.iconx {
    float: right;
    margin-left: 10px;
    overflow: hidden;
}
.iconx .icol {
    display: inline-block;
    margin-left: 7px;
    padding: 5px;
    font-size: 12.5px;
    cursor: pointer;
}
.iconx .icol .fa-expand {
    color: #00a58d;
}
.iconx .icol .fa, .iconx .icol .fas {
    font-size: 14px;
    font-weight: 700;
    margin-right: 2px;
}
.iconx .icol span {
    line-height: 20px;
}
.iconx .icol {
    display: inline-block;
    margin-left: 7px;
    padding: 5px;
    font-size: 12.5px;
    cursor: pointer;
}
.iconx .icol .fa-lightbulb {
    color: #ecbc2a;
}

@media only screen and (max-width: 800px) {
    .icol.expand {
        display: none;
    }
}

/* social share */
.socialts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px; 
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}
.socialts .sd-title {
    flex-basis: 100%;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    text-align: left;
    margin-bottom: 10px;
}

.socialts a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 5px;
    color: #fff;
    transition: all 0.3s ease-in-out;
}

.socialts a i {
    font-size: 16px;
}

.socialts a:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.socialts .fb {
    background: #1877f2;
}

.socialts .twt {
    background: #1da1f2;
}

.socialts .wa {
    background: #25d366;
}

.socialts .pntrs {
    background: #e60023;
}

.socialts .tlg {
    background: #0088cc;
}

@media (max-width: 768px) {
    .socialts a span {
        display: none;
    }
    .socialts a {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }
    .socialts a i {
        font-size: 20px;
    }
}