/* Mobile nhỏ */
@media (max-width: 480px) {
	body {
		font-size: 14px;
	}
}

/* Tablet */
@media (min-width: 768px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 20px;
	}
	h2 {
		font-size: 18px;
	}
	h3 {
		font-size: 16px;
	}
	h4 {
		font-size: 14px;
	} /* ← quan trọng: h4 nhỏ hơn h3 */
}

/* Desktop */
@media (min-width: 1200px) {
	body {
		font-size: 16px;
	}
	h1 {
		font-size: 28px;
	}
	h2 {
		font-size: 24px;
	}
	h3 {
		font-size: 20px;
	}
	h4 {
		font-size: 16px;
	}
}
a {
	text-decoration: none;
	color: inherit;
}
.navbar2 {
	overflow: hidden;
	background-color: #333;
	position: fixed;
	bottom: 0;
	width: 100%;
	z-index: 999;
}

.navbar2 a {
	float: left;
	display: block;
	color: #f2f2f2;
	text-align: center;
	padding: 14px 16px;
	text-decoration: none;
	font-size: 17px;
}

.navbar2 a:hover {
	background: #f1f1f1;
	color: black;
}

.navbar2 a.active {
	background-color: #3f51b5;
	color: white;
}
.navbar2 a.active2 {
	background-color: #795548;
	color: white;
}
.navbar2 a.active3 {
	background-color: #3f51b5;
	color: white;
}
@media screen and (min-width: 900px) {
	.navbar2 {
		display: none;
	}
}

.audioRadius {
}

.embed-responsive {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	max-height: 450px;
}
/* Tablet */
@media (max-width: 1024px) {
	.embed-responsive {
		max-height: 400px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.embed-responsive {
		max-height: 350px;
	}
}

/* Mobile nhỏ hơn nữa (optional) */
@media (max-width: 480px) {
	.embed-responsive {
		max-height: 350px;
	}
}
.embed-responsive::before {
	display: block;
	content: "";
}
.embed-responsive .embed-responsive-item,
.embed-responsive embed,
.embed-responsive iframe,
.embed-responsive object,
.embed-responsive video {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 10px !important;
}
.embed-responsive-21by9::before {
	padding-top: 42.857143%;
}
.embed-responsive-16by9::before {
	padding-top: 56.25%;
}
.embed-responsive-4by3::before {
	padding-top: 75%;
}
.embed-responsive-1by1::before {
	padding-top: 100%;
}
.videotitle-channelicon {
	display: flex;
	align-items: flex-start;
	justify-content: left;
	margin-top: 12px;
}
.videotitle-channelicon a {
	text-decoration: none;
}
.videotitle {
	padding: 0px 5px;
	margin-left: 5px;
	font-family: "Roboto", "BPG Arial", Arial, sans-serif;
	font-weight: 500;
	color: #000;
	font-size: 14px;
}
.viewsandago {
	font-size: 14px;
	color: #606060;
}
.imenna-videotitle {
	min-height: 35px;
	word-wrap: anywhere;
}
.embed-responsive-item {
	display: flex;
	align-items: center;
	justify-content: center;
}
.embed-responsive-item img {
	height: auto;
	/*max-width: 100% !important;*/
}

/* Audio library */

.audioRadius {
	border-radius: 10px;
}

.audio_itemplay {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	z-index: 1;

	min-width: 70px;
	min-height: 70px;
	max-width: 70px;
	max-height: 70px;

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

	background: rgba(0, 0, 0, 0.1);
	border: 2px solid #fff;
	border-radius: 50%;
}

.audio_itemplay:hover {
	box-shadow: -3px 3px 88px 3px rgba(255, 255, 255, 1);
	-webkit-box-shadow: -3px 3px 88px 3px rgba(255, 255, 255, 1);
	-moz-box-shadow: -3px 3px 88px 3px rgba(255, 255, 255, 1);
	outline: 4px solid rgba(255, 255, 255, 0.1);
	outline-offset: 15px;
}

.audio_itemplay .material-icons {
	font-size: 50px;
	color: #fff;
}

.audio_itemplay:hover .material-icons {
	font-size: 60px;
	color: #fff;
}

.imenna-audiotitle {
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.audio_item_category {
	line-height: 1.1;
	background: rgb(0 0 0 / 13%);
	color: #fff;
	text-align: left;
	font-weight: bold;
	width: 100%;
	padding: 5px 8px 8px 8px;
	font-size: 13px;
	position: absolute;
	bottom: 4px;
	text-decoration: none;
	white-space: nowrap;        /* không xuống dòng */
	overflow: hidden;           /* ẩn phần dư */
	text-overflow: ellipsis;
}
.audio_item_category:hover {
	color: #fff;
}

.durationAppear2 {
	line-height: 1.1;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 9px;
	color: #fff;
	padding: 5px 8px 8px 8px;
	font-size: 12px;
	position: absolute;
	right: 10px;
	bottom: 10px;
}

.audio_item_views {
	line-height: 1.1;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 9px;
	color: #fff;
	padding: 5px 8px 8px 8px;
	font-size: 12px;
	position: absolute;
	left: 10px;
	top: 10px;
	display: flex;
	align-items: center;
}

.audio_top_views {
	line-height: 1.1;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 9px;
	color: #fff;
	padding: 5px 8px 8px 8px;
	font-size: 35px;
	position: absolute;
	left: 10px;
	top: 10px;
	display: flex;
	align-items: center;
}

.audio_item_views i {
	font-size: 16px;
	display: inline-block;
	margin-right: 5px;
}

.audio_item_likes i {
	font-size: 16px;
	display: inline-block;
	margin-right: 5px;
	margin-top: 2px;
}

.audio_item_likes {
	color: #fff;
	display: flex;
	align-items: center;
	font-size: 12px;
	position: absolute;
	right: 10px;
	top: 10px;
}

.filter_audio_categories {
	padding: 10px;
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.filterfull {
	min-width: 100% !important;
}

.filter_audio_categories > div {
	display: block;
	border-radius: 2px;
	padding: 12px 15px;
	line-height: 1;
	margin: 3px;
	white-space: nowrap;
	overflow: hidden;
}

.filter_audio_categories > .active,
.filter_audio_categories > div:hover {
	background: #f2f2f2;
}

.audio_item_current_time {
	line-height: 1.1;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 9px;
	color: #fff;
	padding: 5px 8px 8px 8px;
	display: flex;
	align-items: center;
	font-size: 12px;
	position: absolute;
	right: 10px;
	top: 10px;
}

/* AUDIO VIEW */
.audioHeader {
	padding: 15px;
}

.ah_top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.audio_author_avatar {
	min-width: 30px;
	max-width: 30px;
	min-height: 30px;
	max-height: 30px;
	border-radius: 50%;
	background: #ddd;
	overflow: hidden;
}

.audio_author_avatar img {
	max-width: 100%;
}

.ah_col_left {
	display: flex;
	align-items: center;
}

.ah_tby {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-left: 5px;
}

.ah_by a {
	font-size: 13px;
	color: #666;
	font-weight: bold;
	text-decoration: none;
}

.ah_download {
	background: #008000;
	padding: 7px 20px 9px 20px;
	border: none;
	border-radius: 50px;
	color: #fff;
	font-size: 12px;
	font-weight: bold;
}

.ah_download:hover {
	background: #ab68ef;
}

.ah_col {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.ah_share {
	background: hsl(0deg 0% 100% / 79%);
	border: 1px solid #ddd;
	border-radius: 50px;
	color: #1d21bb;
	margin-right: 10px;
	width: 50px;
	height: 50px;
}

.ah_share:hover {
	background: #f2f2f2;
}

.ah_share span {
	font-size: 20px;
	line-height: 1;
	display: block;
}

.viewaudio {
	max-width: 360px;
	margin: 20px auto 0px auto;
}

.av_actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.av_actions > div {
	font-size: 28px;
	color: #606060;
	text-align: center;
	min-height: 74px;
	min-width: 75px;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
}

.av_actions > div:hover {
	background: #f2f2f2;
	border-radius: 10px;
}

.av_actions span {
	display: inline-flex;
	padding: 10px;
}

@media (min-width: 425px) {
	.sidebarAudio {
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}
}

@media (min-width: 1288px) {
	.sidebarAudio > div {
		width: 50%;
	}
}

@media (min-width: 1090px) and (max-width: 1288px) {
	.sidebarAudio .audio_item_current_time {
		opacity: 0;
	}
}

@media (min-width: 1090px) {
	.sidebarAudio > div {
		min-width: 48%;
	}
}

@media (min-width: 991px) and (max-width: 1090px) {
	.sidebarAudio > div {
		min-width: 80%;
	}
}

@media (min-width: 620px) and (max-width: 991px) {
	.sidebarAudio > div {
		min-width: 33%;
		max-width: 33%;
	}
}

@media (min-width: 425px) and (max-width: 620px) {
	.sidebarAudio > div {
		min-width: 48;
		max-width: 48%;
	}
}

.sidebarAudio .audio_itemplay {
	min-width: 60px !important;
	min-height: 60px !important;
	max-width: 60px !important;
	max-height: 60px !important;
}

.sidebarAudio .audio_item_current_time {
	bottom: 30px !important;
}

.channel_avatar2 {
	border-radius: 50%;
	overflow: hidden;
}
.telegram-section {
	margin: 20px 0;
	text-align: center;
}

.telegram-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #0088cc;
	/* Albastru Telegram oficial */
	color: white;
	text-decoration: none;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(0, 136, 204, 0.25);
}

.telegram-button:hover {
	background-color: #0077b5;
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(0, 136, 204, 0.35);
}

.telegram-button svg {
	stroke-width: 1.8;
}

.website-section {
	margin: 12px 0;
	text-align: center;
}

.website-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #6a11cb, #2575fc);
	/* Gradient modern: violet → albastru */
	color: white;
	text-decoration: none;
	font-weight: 600;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px rgba(37, 117, 252, 0.25);
}

.website-button:hover {
	background: linear-gradient(135deg, #5a0dbd, #1a67e0);
	transform: translateY(-2px);
	box-shadow: 0 6px 8px rgba(37, 117, 252, 0.35);
}

.website-button svg {
	stroke-width: 1.8;
}
.bg-primary {
	background-color: #000000 !important;
}
.material-icons.playtrigericon {
	font-size: 50px;
	color: white;
	cursor: pointer;
}
/* ===== SIDEBAR STYLES ===== */
aside #topSongs {
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid #e0e4e8;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ===== LIST GROUP STYLES ===== */
.sb-list {
	border: none;
}

.sb-list .list-group-item {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: 0.5rem;
	padding: 0.75rem 1rem !important;
	transition: all 0.3s ease;
}

.sb-list .list-group-item:hover {
	background: #f0f1ff;
	border-color: #673ab7;
	transform: translateX(3px);
}

.sb-list .list-group-item a {
	text-decoration: none;
	color: inherit;
}

.list-m {
	align-items: center;
	gap: 0.5rem;
}

.list-group-item h4 {
	margin: 0;
	font-size: 0.95rem;
}

.list-group-item h4 p {
	margin: 0;
	color: #333;
	font-weight: 500;
	transition: all 0.3s ease;
}

.sb-list .list-group-item:hover h4 p {
	color: #673ab7;
}

.list-group-item i {
	color: #673ab7;
	font-size: 1rem;
	flex-shrink: 0;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 992px) {
	main.container {
		margin: 1rem auto !important;
	}

	h1[style*="color"] {
		font-size: 1.1rem;
		padding: 0.5rem 0.75rem !important;
	}

	h3 {
		font-size: 1rem;
	}

	.row.row-cols-2 {
	}
}

@media (max-width: 768px) {
	.float-end {
		float: none !important;
		margin-top: 1rem;
	}

	.sb-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
	}

	.sb-list .list-group-item {
		margin-bottom: 0;
	}

	center span {
		margin-top: 1rem;
	}
}
/* ===== CUSTOM SCROLLBAR ===== */
.sb-list::-webkit-scrollbar {
	width: 6px;
}

.sb-list::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 10px;
}

.sb-list::-webkit-scrollbar-thumb {
	background: #673ab7;
	border-radius: 10px;
}

.sb-list::-webkit-scrollbar-thumb:hover {
	background: #000260;
}

/* ===== UTILITY CLASSES ===== */
.audioRadius {
	border-radius: 8px;
	overflow: hidden;
}

.text-justify {
}

center {
	margin: 1.5rem 0;
}

br {
	display: none;
}

/* ===== EMBED RESPONSIVE FIXES ===== */
.embed-responsive {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
}

.embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.embed-responsive-1by1::before {
	display: block;
	padding-bottom: 100%;
	content: "";
}
#topSongs {
	background: #ffffff;
	border: 1px solid #e0e4e8;
	border-radius: 8px;
	padding: 1.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

#topSongs h3 {
	color: #000260;
	font-size: 1.1rem;
	font-weight: 700;
	text-transform: uppercase;
	margin: 0 0 1.5rem 0;
	padding: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 0.75rem;
}

#topSongs h3 i {
	color: #673ab7;
	margin-right: 0.5rem;
	font-size: 1.25rem;
}

#topSongs h3 span {
	margin-left: auto;
}

/* ===== LIST GROUP CATEGORIES ===== */
.sb-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.sb-list .list-group-item {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 0.75rem 1rem !important;
	margin: 0 !important;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.sb-list .list-group-item:hover {
	background: #f0f1ff;
	border-color: #673ab7;
	box-shadow: 0 4px 12px rgba(103, 58, 183, 0.1);
	transform: translateX(4px);
}

.sb-list .list-group-item a {
	text-decoration: none;
	color: inherit;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* ===== ICON STYLES ===== */
.sb-list .list-group-item i {
	color: #673ab7;
	font-size: 1rem;
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.sb-list .list-group-item:hover i {
	color: #000260;
	transform: translateX(3px);
}

/* ===== TEXT CONTAINER ===== */
.sb-list .ms-2 {
	flex: 1;
	min-width: 0;
}

.sb-list .list-group-item h4 {
	margin: 0;
	padding: 0;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
}

.sb-list .list-group-item h4 p {
	margin: 0;
	padding: 0;
	color: #333333;
	font-size: 0.95rem;
	font-weight: 500;
	transition: all 0.3s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sb-list .list-group-item:hover h4 p {
	color: #673ab7;
}

/* ===== TEXT TRUNCATE ===== */
.text-truncate {
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

/* ===== ALIGN SELF CENTER ===== */
.align-self-center {
	align-self: center !important;
}

/* ===== SEE ALL BUTTON AREA ===== */
.sb-list br {
	display: block;
	margin: 0.75rem 0;
	border: none;
	height: 1px;
	background: #e5e7eb;
}

.sb-list center {
	display: flex;
	justify-content: center;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #e5e7eb;
}

.sb-list center span {
	width: 100%;
}

/* ===== BUTTON IN SIDEBAR ===== */
.sb-list .btn {
	width: 100%;
}

/* ===== RESPONSIVE SIDEBAR ===== */
@media (max-width: 992px) {
	aside {
		position: static;
		top: auto;
	}

	#topSongs {
		margin-top: 2rem;
	}

	#topSongs h3 {
		flex-direction: column;
		align-items: flex-start;
	}

	#topSongs h3 span {
		margin-left: 0;
		margin-top: 1rem;
		width: 100%;
	}

	#topSongs h3 span a {
		width: 100%;
		display: block;
	}
}

@media (max-width: 768px) {
	#topSongs {
		padding: 1rem;
	}

	#topSongs h3 {
		font-size: 1rem;
		margin-bottom: 1rem;
	}

	.sb-list {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.5rem;
	}

	.sb-list .list-group-item {
		padding: 0.6rem 0.75rem !important;
	}

	.sb-list .list-group-item h4 p {
		font-size: 0.9rem;
	}

	.sb-list center {
		grid-column: 1 / -1;
		margin-top: 0.5rem;
	}
}

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

	#topSongs h3 span.float-end.d-none.d-sm-block {
		display: block !important;
		width: 100%;
		margin-top: 0.75rem;
	}

	#topSongs h3 span.float-end.d-none.d-sm-block a {
		display: block;
		width: 100%;
	}
}

/* ===== FLOAT END BUTTON ===== */
.float-end {
	float: right;
	display: inline-block;
	margin-left: auto;
}

.d-none {
	display: none !important;
}

.d-sm-block {
	display: flex !important;
}

/* ===== BUTTON STYLES FOR SIDEBAR ===== */
.btn-outline-primary {
	color: #000260 !important;
	border-color: #000260 !important;
	background-color: transparent;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.btn-outline-primary:hover {
	background-color: #000260;
	color: #ffffff !important;
	border-color: #000260;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 2, 96, 0.15);
}

.btn-xs {
	padding: 0.4rem 0.8rem !important;
	font-size: 0.8rem !important;
}

.btn-md {
	padding: 0.6rem 1.5rem !important;
	font-size: 0.95rem !important;
	width: 100%;
}

/* ===== MARGIN UTILS ===== */
.ms-2 {
	margin-left: 0.5rem !important;
}

.w-100 {
	width: 100% !important;
}

/* ===== FLEX UTILS ===== */
.d-flex {
	display: flex !important;
}

.list-m {
	align-items: center;
	gap: 0.75rem;
}
.singlepost .embed-responsive {
	max-height: 300px;
}
button.btn.btn-sm.btn-default {
	text-decoration: none;
	color: rgb(85, 85, 85);
	font-size: 14px;
	font-weight: 600;
	background-color: rgb(238, 238, 238);
	border-radius: 20px;
	white-space: nowrap;
	text-overflow: ellipsis;
	width: auto;
	padding: 0px 16px;
	-moz-box-align: center;
	align-items: center;
	display: inline-flex;
	height: 32px;
	margin: 5px;
}
button.btn.btn-sm.btn-default i {
	margin-right: 8px;
}

.pagination-wrapper {
}

.pagination {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.pagination .page-item {
	margin: 0;
}

.pagination .page-item a,
.pagination .page-item span {
	display: inline-block;
	padding: 0.6rem 1rem;
	background: #ffffff;
	border: 1px solid #000260;
	color: #000260;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
}

.pagination .page-item a:hover {
	background: #000260;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 2, 96, 0.15);
}

.pagination .page-item.active span {
	background: #000260;
	color: #ffffff;
	border-color: #000260;
}

.pagination .page-item.disabled span {
	background: #f0f0f0;
	color: #999;
	border-color: #e0e0e0;
	cursor: not-allowed;
}

/* ===== RESPONSIVE PAGINATION ===== */
@media (max-width: 768px) {
	.pagination {
		gap: 0.25rem;
	}

	.pagination .page-item a,
	.pagination .page-item span {
		padding: 0.5rem 0.8rem;
		font-size: 0.85rem;
	}
}

@media (max-width: 576px) {
	.pagination {
		gap: 0.2rem;
		justify-content: center;
	}

	.pagination .page-item a,
	.pagination .page-item span {
		padding: 0.4rem 0.6rem;
		font-size: 0.8rem;
	}
}

.pagination .page-item .current {
	background: #000260 !important;
	color: #ffffff !important;
	border-color: #000260 !important;
	font-weight: 700;
}

.pagination .page-item a,
.pagination .page-item span {
	display: inline-block;
	padding: 0.6rem 1rem;
	background: #ffffff;
	border: 2px solid #000260;
	color: #000260;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	min-width: 45px;
	text-align: center;
}

.pagination .page-item a:hover {
	background: #000260;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 2, 96, 0.15);
}

.pagination .page-item.disabled span {
	background: #f0f0f0;
	color: #999;
	border-color: #e0e0e0;
	cursor: not-allowed;
}

.pagination {
	list-style: none;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination .page-item {
	margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
	.pagination {
		gap: 0.25rem;
	}

	.pagination .page-item a,
	.pagination .page-item span {
		padding: 0.5rem 0.8rem;
		font-size: 0.85rem;
		min-width: 40px;
	}
}

@media (max-width: 576px) {
	.pagination {
		gap: 0.2rem;
	}

	.pagination .page-item a,
	.pagination .page-item span {
		padding: 0.4rem 0.6rem;
		font-size: 0.8rem;
		min-width: 35px;
	}
}
/* ==========================================
WALLPAPER GRID STYLES
========================================== */

/* Container chính */
#latestSongs {
	padding: 15px;
}

#latestSongs h3 {
	color: #1a237e;
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 10px;
}

#latestSongs h3 i {
	margin-right: 8px;
}

#latestSongs .card-text {
	color: #666;
	margin-bottom: 20px;
}

/* Search Form */
#search {
	margin-bottom: 25px;
}

#search .input-group {
	flex: 1;
}

#search .form-control {
	border: 1px solid #ddd;
	border-radius: 5px 0 0 5px;
	padding: 10px 15px;
	font-size: 14px;
}

#search .form-control:focus {
	box-shadow: none;
	border-color: #1a237e;
}

#search .btn-danger {
	background: #e53935;
	border: none;
	border-radius: 0 5px 5px 0;
	padding: 10px 25px;
	font-weight: 600;
}

#search .btn-danger:hover {
	background: #c62828;
}

/* Grid Layout */
#movie_grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -8px;
}

#movie_grid > div {
	padding: 8px;
	margin-bottom: 5px;
}

/* Card Styles */
#movie_grid .card {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	border: 3px solid transparent;
	transition: all 0.3s ease;
	height: 100%;
}

#movie_grid .card:hover {
	border-color: #e53935;
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Card Cover / Image Link */
.card__cover {
	display: block;
	position: relative;
	width: 100%;
	padding-bottom: 177.78%; /* Tỷ lệ 9:16 cho mobile wallpaper */
	overflow: hidden;
}

.card__cover img.movie_cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

#movie_grid .card:hover .card__cover img.movie_cover {
	transform: scale(1.05);
}

/* Camera Icon (ẩn mặc định, hiện khi hover) */
.card__cover .svg-icon {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	fill: #fff;
	opacity: 0;
	transition: opacity 0.3s ease;
	width: 40px;
	height: 40px;
	background: rgba(0, 0, 0, 0.5);
	border-radius: 50%;
	padding: 8px;
}

#movie_grid .card:hover .card__cover .svg-icon {
	opacity: 1;
}

/* Rating Badges - View Count */
.card__rating {
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 4px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
	z-index: 10;
}

.card__rating svg {
	width: 12px;
	height: 12px;
}

/* Rating Badges - Download Count */
.card__rating2 {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.7);
	color: #fff;
	padding: 4px 8px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 4px;
	z-index: 10;
}

.card__rating2 svg {
	width: 12px;
	height: 12px;
}

/* Title */
.titlu {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.9) 0%,
		rgba(0, 0, 0, 0.7) 50%,
		transparent 100%
	);
	padding: 30px 10px 12px 10px;
	z-index: 10;
}

.titlu a {
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.3s ease;
}

.titlu a:hover {
	color: #ff5252 !important;
}

/* ==========================================
PAGINATION STYLES
========================================== */
.pagination {
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin: 30px 0;
	gap: 5px;
}

.pagination li {
	display: inline-block;
}

.pagination li a,
.pagination li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
}

.pagination li a:hover {
	background: #1a237e;
	border-color: #1a237e;
	color: #fff;
}

.pagination li.active span {
	background: #1a237e;
	border-color: #1a237e;
	color: #fff;
}

/* ==========================================
SIDEBAR STYLES
========================================== */
#topSongs h3 {
	color: #1a237e;
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #1a237e;
}

.sb-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sb-list .list-group-item {
	border: none;
	border-bottom: 1px solid #eee;
	padding: 12px 0;
}

.sb-list .list-group-item:last-child {
	border-bottom: none;
}

.sb-list .list-m {
	display: flex;
	align-items: center;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
}

.sb-list .list-m:hover {
	transform: translateX(5px);
}

.sb-list .list-m img {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	object-fit: cover;
}

.sb-list .list-m h4 {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.sb-list .list-m p {
	font-size: 12px;
	color: #666;
	margin: 3px 0 0 0;
}

.sb-list .list-m p i {
	color: #e53935;
	margin-right: 3px;
}

/* ==========================================
RESPONSIVE STYLES
========================================== */
@media (max-width: 991px) {
	#movie_grid .col-lg-3 {
		flex: 0 0 33.333%;
		max-width: 50%;
	}
}

@media (max-width: 767px) {
	#movie_grid .col-sm-3 {
		flex: 0 0 50%;
		max-width: 50%;
	}

	#latestSongs h3 {
		font-size: 1.2rem;
	}

	.card__rating,
	.card__rating2 {
		font-size: 10px;
		padding: 3px 6px;
	}

	.titlu a {
		font-size: 12px;
	}
}

@media (max-width: 575px) {
	#movie_grid > div {
		padding: 5px;
	}

	#movie_grid .card {
		border-radius: 8px;
		border-width: 2px;
	}

	.card__rating,
	.card__rating2 {
		top: 5px;
		font-size: 9px;
		padding: 2px 5px;
	}

	.card__rating {
		left: 5px;
	}

	.card__rating2 {
		right: 5px;
	}

	.titlu {
		padding: 20px 8px 8px 8px;
	}

	.titlu a {
		font-size: 11px;
	}
}

/* ==========================================
CARD COLORED BORDERS (Random colors)
========================================== */
#movie_grid .card:nth-child(4n + 1):hover {
	border-color: #e91e63;
}

#movie_grid .card:nth-child(4n + 2):hover {
	border-color: #9c27b0;
}

#movie_grid .card:nth-child(4n + 3):hover {
	border-color: #2196f3;
}

#movie_grid .card:nth-child(4n + 4):hover {
	border-color: #ff9800;
}

/* ==========================================
LOADING ANIMATION (Optional)
========================================== */
.card__cover img.movie_cover {
	background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
}

.card__cover img.movie_cover[src] {
	animation: none;
	background: none;
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}
@media (max-width: 768px) {
	footer.bg-primary {
		padding-bottom: 50px;
	}
}
.nav-link {
	color: #fff !important;
}

.newbestSongs h2 {
	position: relative;
	display: inline-block;
	background: #000;
	color: #fff;
	padding: 12px 28px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .5px;
	border: 0.5px solid #000;
	border-radius:3px;
}

.newbestSongs h2::before,
.newbestSongs h2::after {
	content: "";
	position: absolute;
	top: 0;
	width: 10px;
	height: 100%;
	background: #000;
}

/* Bên trái - 5 răng cưa */
.newbestSongs h2::before {
	right: 100%;
	clip-path: polygon(
		100% 0,
		0 10%,
		100% 20%,
		0 30%,
		100% 40%,
		0 50%,
		100% 60%,
		0 70%,
		100% 80%,
		0 90%,
		100% 100%
	);
}

/* Bên phải - 5 răng cưa */
.newbestSongs h2::after {
	left: 100%;
	clip-path: polygon(
		0 0,
		100% 10%,
		0 20%,
		100% 30%,
		0 40%,
		100% 50%,
		0 60%,
		100% 70%,
		0 80%,
		100% 90%,
		0 100%
	);
}
.blog-card .card-body {
	background: #fff;
}

.blog-card h4 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Tối ưu cho blog cards */
.blog-card {
	transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-font-smoothing: subpixel-antialiased;
}

.blog-card-image {
	transform: translateZ(0);
	will-change: auto;
}

/* Giảm repainting */
.blog-card img {
	image-rendering: -webkit-optimize-contrast;
	transform: translateZ(0);
}

/* Smooth transitions */
.blog-card:hover {
	transform: translateY(-2px) translateZ(0);
	transition: transform 0.2s ease-out;
}
/* Responsive adjustments */
@media (max-width: 576px) {
	.blog-card-image {
		height: 150px !important;
	}

	.blog-card h4 {
		font-size: 14px !important;
	}
}
.blog-card {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border: none !important;
}
.blog-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}
.pagination .page-item.active .page-link {
	background-color: #673ab7;
	border-color: #673ab7;
}
.pagination .page-link {
	color: #673ab7;
}
.pagination .page-link:hover {
	background-color: #673ab7;
	color: #fff;
}

.custom-footer .ftlist a:hover {
	color: #191970;
}
.load-more-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	overflow: hidden;
}

.load-more-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.load-more-button:active {
	transform: translateY(0);
}

.load-more-button .btn-text {
	display: flex;
	align-items: center;
	gap: 8px;
}

.load-more-button svg {
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
	40% { transform: translateY(3px); }
	60% { transform: translateY(2px); }
}

/* Loading Spinner */
.spinner-dots {
	display: flex;
	gap: 6px;
	justify-content: center;
}

.spinner-dots span {
	width: 10px;
	height: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	animation: dotPulse 1.4s infinite ease-in-out both;
}

.spinner-dots span:nth-child(1) { animation-delay: -0.32s; }
.spinner-dots span:nth-child(2) { animation-delay: -0.16s; }
.spinner-dots span:nth-child(3) { animation-delay: 0; }

@keyframes dotPulse {
	0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
	40% { transform: scale(1); opacity: 1; }
}

/* No more posts */
.no-more-text {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #28a745;
	font-weight: 500;
	padding: 12px 24px;
	background: rgba(40, 167, 69, 0.1);
	border-radius: 50px;
	margin: 0 auto;
	width: fit-content;
}

.gallery-slider-wrapper {
	max-width: 100%;
	margin: 0 auto;
}

.gallery-slider-container {
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
}

.gallery-slider {
	flex: 1;
	overflow: hidden;
	border-radius: 12px;
}

.gallery-track {
	display: flex;
	transition: transform 0.4s ease;
}

.gallery-slide {
	min-width: 25%;
	padding: 5px;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.gallery-slide {
		min-width: 33.333%;
	}
}

@media (max-width: 480px) {
	.gallery-slide {
		min-width: 50%;
	}
}

.gallery-thumb {
	width: 100%;
	aspect-ratio: 9/16;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	border: 3px solid transparent;
	transition: all 0.3s ease;
	opacity: 0.7;
}

.gallery-thumb:hover {
	opacity: 1;
	transform: scale(1.02);
}

.gallery-thumb.active {
	border-color: #673ab7;
	opacity: 1;
	box-shadow: 0 4px 15px rgba(103, 58, 183, 0.4);
}

/* Arrows */
.slider-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0,0,0,0.2);
	flex-shrink: 0;
}

.slider-arrow:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.5);
}

.slider-arrow:disabled {
	opacity: 0.3;
	cursor: not-allowed;
	transform: none;
}

/* Dots */
.slider-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ddd;
	cursor: pointer;
	transition: all 0.3s ease;
}

.dot:hover {
	background: #999;
}

.dot.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	transform: scale(1.2);
}

