/*
 * RingVip Components Stylesheet
 * Contains layouts for ringtone items, details elements, and play controllers.
 */

/* Thẻ Nhạc Chuông (Item list) */
.ringtone-item {
	background: white;
	padding: 15px 20px;
	border-radius: var(--rv-radius);
	display: flex;
	align-items: center;
	margin-bottom: 15px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.02);
	transition: all 0.3s ease;
	border: 1px solid transparent;
}
.ringtone-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
	border-color: rgba(255, 71, 87, 0.1);
}
.ringtone-item.playing {
	border-color: var(--rv-primary);
	background-color: rgba(255, 71, 87, 0.02);
}

.play-btn {
	width: 50px;
	height: 50px;
	min-width: 50px;
	background: #f1f2f6;
	color: var(--rv-primary);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20px;
	cursor: pointer;
	margin-right: 20px;
	transition: all 0.3s;
}
.ringtone-item:hover .play-btn {
	background: var(--rv-primary);
	color: white;
}
.ringtone-item.playing .play-btn,
.play-btn.playing {
	background: var(--rv-primary);
	color: white;
	animation: rv-pulse 1.5s infinite;
}

@keyframes rv-pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4); }
	70% { box-shadow: 0 0 0 10px rgba(255, 71, 87, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.ringtone-item .info {
	flex: 1;
	overflow: hidden;
}
.ringtone-item .info h3 {
	font-size: 17px;
	margin-bottom: 6px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ringtone-item .info h3 a {
	color: var(--rv-text);
}
.ringtone-item .info h3 a:hover {
	color: var(--rv-primary);
}

.tags {
	display: flex;
	gap: 15px;
	font-size: 13px;
	color: #747d8c;
}
.tags span {
	display: flex;
	align-items: center;
	gap: 5px;
}

.ringtone-item .actions {
	display: flex;
	gap: 10px;
	margin-left: 15px;
}

.download-btn {
	padding: 10px 20px;
	background: var(--rv-accent);
	color: white;
	border-radius: 25px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	border: none;
}
.download-btn:hover {
	background: #3742fa;
	transform: scale(1.05);
	color: white;
}

.share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f1f2f6;
	color: #747d8c;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: 0.3s;
}
.share-btn:hover {
	background: #dfe4ea;
	color: var(--rv-text);
}

/* Detail view styling */
.back-btn {
	background: none;
	border: none;
	font-size: 16px;
	color: #636e72;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 20px 0;
	transition: 0.3s;
	font-weight: 500;
	padding: 10px 0;
}
.back-btn:hover {
	color: var(--rv-primary);
}

.detail-card {
	background: white;
	border-radius: var(--rv-radius);
	padding: 40px 20px;
	text-align: center;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.detail-artwork-large {
	width: 150px;
	height: 150px;
	background: linear-gradient(135deg, var(--rv-grad-start), var(--rv-grad-end));
	border-radius: 50%;
	margin: 0 auto 20px auto;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: 60px;
	box-shadow: 0 10px 20px rgba(255, 71, 87, 0.2);
	animation: rv-artwork-float 3s ease-in-out infinite;
}
@keyframes rv-artwork-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

.detail-card h2 {
	font-size: 24px;
	color: var(--rv-text);
	margin-bottom: 10px;
	font-weight: 600;
}
.detail-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 15px;
	color: #747d8c;
	font-size: 14px;
	margin-bottom: 30px;
}
.detail-player {
	background: #f8f9fa;
	padding: 25px;
	border-radius: var(--rv-radius);
}
.progress-bar {
	height: 6px;
	background: #dfe4ea;
	border-radius: 3px;
	margin-bottom: 10px;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}
.progress-bar .progress {
	height: 100%;
	width: 0%;
	background: var(--rv-primary);
	transition: width 0.1s linear;
}
.time-info {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #a4b0be;
	margin-bottom: 20px;
}
.player-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
}
.ctrl-btn {
	background: none;
	border: none;
	font-size: 20px;
	color: #636e72;
	cursor: pointer;
	transition: 0.2s;
}
.ctrl-btn:hover {
	color: var(--rv-primary);
}
.ctrl-btn.main-play {
	width: 60px;
	height: 60px;
	background: var(--rv-primary);
	color: white;
	border-radius: 50%;
	font-size: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
}
.ctrl-btn.main-play:hover {
	transform: scale(1.05);
	background: var(--rv-grad-start);
}

/* Sidebar structure */
.sidebar-widget {
	background: white;
	border-radius: var(--rv-radius);
	padding: 25px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	text-align: center;
}
.sidebar-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--rv-text);
	margin-bottom: 20px;
	text-align: left;
	border-left: 4px solid var(--rv-primary);
	padding-left: 10px;
}
.detail-download-options {
	display: flex;
	flex-direction: column;
	gap: 15px;
	margin-bottom: 25px;
}

/* Download format buttons - custom styled (NOT using Bootstrap btn-* classes) */
.dl-btn {
	padding: 15px;
	border-radius: 12px;
	border: none;
	color: white;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: 100%;
}
.dl-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	color: white;
}

/* Format-specific download button colors */
.dl-btn.dl-mp3 {
	background: #2ed573;
	box-shadow: 0 4px 12px rgba(46, 213, 115, 0.2);
}
.dl-btn.dl-mp3:hover {
	background: #27ae60;
}
.dl-btn.dl-m4r {
	background: #1e90ff;
	box-shadow: 0 4px 12px rgba(30, 144, 255, 0.2);
}
.dl-btn.dl-m4r:hover {
	background: #0984e3;
}
.dl-btn.dl-wav {
	background: #f39c12;
	box-shadow: 0 4px 12px rgba(243, 156, 18, 0.2);
}
.dl-btn.dl-wav:hover {
	background: #e67e22;
}
.dl-btn.dl-ogg {
	background: #6c757d;
	box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}
.dl-btn.dl-ogg:hover {
	background: #5a6268;
}
.dl-btn.dl-flac {
	background: #17a2b8;
	box-shadow: 0 4px 12px rgba(23, 162, 184, 0.2);
}
.dl-btn.dl-flac:hover {
	background: #138496;
}
.dl-btn.dl-default {
	background: #343a40;
	box-shadow: 0 4px 12px rgba(52, 58, 64, 0.2);
}
.dl-btn.dl-default:hover {
	background: #23272b;
}

.qr-code-section p {
	color: #636e72;
	font-size: 13px;
	margin-bottom: 10px;
}

/* Related items list */
.related-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #f1f2f6;
	text-align: left;
	cursor: pointer;
	transition: 0.2s;
}
.related-item:hover h4 {
	color: var(--rv-primary);
}
.related-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.related-icon {
	width: 45px;
	height: 45px;
	min-width: 45px;
	background: rgba(255, 71, 87, 0.05);
	color: var(--rv-primary);
	border-radius: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 18px;
}
.related-info h4 {
	font-size: 14px;
	font-weight: 500;
	color: var(--rv-text);
	margin-bottom: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 200px;
}
.related-info p {
	font-size: 12px;
	color: #a4b0be;
	margin-bottom: 0;
}

/* Related slider container & row styling */
.related-slider-container {
	position: relative;
	width: 100%;
	overflow: hidden;
}
.related-slider-row {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	padding: 5px 5px 15px 5px;
	margin-bottom: -10px;
	-webkit-overflow-scrolling: touch;
}
.related-slider-row::-webkit-scrollbar {
	height: 6px;
}
.related-slider-row::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.03);
	border-radius: 10px;
}
.related-slider-row::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.1);
	border-radius: 10px;
}
.related-slider-row::-webkit-scrollbar-thumb:hover {
	background: rgba(0,0,0,0.2);
}

/* Related card item styling */
.related-card-item {
	flex: 0 0 150px;
	width: 150px;
	background: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	padding: 14px 12px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.related-card-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
	border-color: rgba(255, 71, 87, 0.15);
}
.related-card-play-container {
	position: relative;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 71, 87, 0.05);
	color: var(--rv-primary);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 22px;
	margin-bottom: 12px;
	overflow: hidden;
}
.related-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.related-card-icon-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.related-card-info {
	width: 100%;
	display: flex;
	min-width: 0;
}
.related-card-title {
	font-size: 13.5px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 4px;
	width: 100%;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 38px;
	line-height: 1.4;
	text-align: center;
}
.related-card-artist {
	font-size: 11.5px;
	color: #64748b;
	margin-bottom: 4px;
	width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.related-card-meta {
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
	margin-bottom: 0;
	background: #f8fafc;
	padding: 2px 8px;
	border-radius: 20px;
	display: inline-block;
}
.related-card-top-stats {
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	width: 100%;
}
.related-card-top-stats span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f1f5f9;
	padding: 4px 6px;
	border-radius: 6px;
	transition: all 0.2s ease;
}
.related-card-top-stats i {
	font-size: 9.5px;
}
.related-card-top-stats .stat-views {
	color: #475569;
}
.related-card-top-stats .stat-downloads {
	color: var(--rv-primary);
}

/* Related nav buttons */
.related-nav-btn {
	background: #f1f2f6;
	border: none;
	color: #747d8c;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
}
.related-nav-btn:hover {
	background: var(--rv-primary);
	color: white;
}
.related-nav-btn i {
	font-size: 12px;
	line-height: 1;
}

/* Dark mode overrides for related card */
[data-bs-theme="dark"] .related-card-item {
	background: #1c1f23;
	border-color: rgba(255, 255, 255, 0.06);
}
[data-bs-theme="dark"] .related-card-item:hover {
	border-color: rgba(255, 71, 87, 0.3);
}
[data-bs-theme="dark"] .related-card-title {
	color: #ffffff;
}
[data-bs-theme="dark"] .related-card-artist {
	color: #94a3b8;
}
[data-bs-theme="dark"] .related-card-meta {
	background: #252a2e;
	color: #cbd5e1;
}
[data-bs-theme="dark"] .related-nav-btn {
	background: #252a2e;
	color: #a4b0be;
}
[data-bs-theme="dark"] .related-nav-btn:hover {
	background: var(--rv-primary);
	color: white;
}
[data-bs-theme="dark"] .related-card-top-stats span {
	background: #1e293b;
}
[data-bs-theme="dark"] .related-card-top-stats .stat-views {
	color: #cbd5e1;
}
[data-bs-theme="dark"] .related-card-top-stats .stat-downloads {
	color: var(--rv-primary);
}

/* Box description text styling */
.content-box {
	background: white;
	border-radius: var(--rv-radius);
	padding: 25px 30px;
	margin-top: 25px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.02);
	text-align: left;
}
.content-box-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--rv-text);
	margin-bottom: 15px;
	border-left: 4px solid var(--rv-primary);
	padding-left: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.seo-desc {
	font-size: 14.5px;
	color: #636e72;
	line-height: 1.7;
}

/* Favorite system button styling */
.favorite-btn-meta {
	cursor: pointer;
	border: 1px solid #dfe4ea;
	background: white;
	border-radius: 20px;
	padding: 8px 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #747d8c;
	transition: all 0.2s;
}
.favorite-btn-meta:hover, .favorite-btn-meta.favorited {
	border-color: var(--rv-primary);
	color: var(--rv-primary);
}
.favorite-btn-meta i {
	transition: transform 0.2s;
}
.favorite-btn-meta:hover i {
	transform: scale(1.2);
}

/* Weekly Top / BXH Rank badge styling */
.scoreboard-list .d-flex.align-items-center {
	margin-bottom: 0;
}
.rank-badge {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	z-index: 2;
	flex-shrink: 0;
	background: #f1f2f6;
	color: #747d8c;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rank-badge.rank-1,
.rank-badge.rank-2,
.rank-badge.rank-3 {
	background: var(--rv-primary);
	color: white;
}
.scoreboard-list .ringtone-item {
	margin-bottom: 10px;
}
.scoreboard-list.row .ringtone-item {
	margin-bottom: 0;
}

/* Responsive fixes */
@media (max-width: 768px) {
	.ringtone-item {
		padding: 12px 15px;
	}
	.ringtone-item .info h3 {
		font-size: 15px;
	}
	.tags {
		flex-wrap: wrap;
		gap: 8px;
		font-size: 11px;
	}
	.download-btn span {
		display: none; /* Icon only download buttons on mobile */
	}
	.download-btn {
		padding: 10px;
		width: 40px;
		height: 40px;
		justify-content: center;
	}
	.share-btn {
		display: none; /* Hide shares on tiny displays */
	}
	.play-btn {
		width: 42px;
		height: 42px;
		min-width: 42px;
		font-size: 16px;
		margin-right: 12px;
	}
	.detail-artwork-large {
		width: 100px !important;
		height: 100px !important;
		font-size: 38px !important;
		margin-bottom: 15px !important;
		box-shadow: 0 8px 20px rgba(255, 71, 87, 0.2) !important;
	}
	.detail-card {
		padding: 25px 15px !important;
	}
	.detail-card h1 {
		font-size: 20px !important;
		margin-bottom: 4px !important;
	}
	.detail-card p.text-secondary {
		font-size: 14px !important;
		margin-bottom: 12px !important;
	}
	.stats-pill {
		padding: 6px 16px !important;
		font-size: 12.5px !important;
		gap: 10px !important;
		margin-bottom: 20px !important;
	}
	.player-control-row {
		max-width: 300px !important;
		margin-bottom: 20px !important;
	}
	.ctrl-btn.main-play {
		width: 48px !important;
		height: 48px !important;
		min-width: 48px !important;
		font-size: 18px !important;
	}
	.ctrl-btn, .ctrl-btn-action {
		font-size: 18px !important;
		padding: 6px !important;
	}
	.detail-download-buttons-row {
		max-width: 100% !important;
		margin-top: 20px !important;
	}
	.detail-download-buttons-row .dl-btn {
		padding: 10px 8px !important;
		font-size: 12.5px !important;
		border-radius: 10px !important;
	}
	.related-info h4 {
		max-width: 150px;
	}
}

/* ==============================================
   DARK MODE COMPONENT OVERRIDES
   ============================================== */
[data-bs-theme="dark"] .share-btn {
	background: #252a2e;
	color: #a4b0be;
}
[data-bs-theme="dark"] .share-btn:hover {
	background: #2b3035;
	color: #ffffff;
}
[data-bs-theme="dark"] .rank-badge {
	background: #252a2e;
	color: #a4b0be;
}
[data-bs-theme="dark"] .rank-badge.rank-1,
[data-bs-theme="dark"] .rank-badge.rank-2,
[data-bs-theme="dark"] .rank-badge.rank-3 {
	background: var(--rv-primary);
	color: white;
}
[data-bs-theme="dark"] .progress-bar {
	background: #2b3035;
}
[data-bs-theme="dark"] .time-info {
	color: #a4b0be !important;
}
[data-bs-theme="dark"] .ctrl-btn {
	color: #dee2e6;
}
[data-bs-theme="dark"] .ctrl-btn:hover {
	color: var(--rv-primary);
}
[data-bs-theme="dark"] .seo-desc {
	color: #a4b0be;
}
[data-bs-theme="dark"] .back-btn {
	color: #dee2e6;
}
[data-bs-theme="dark"] .back-btn:hover {
	color: var(--rv-primary);
}
[data-bs-theme="dark"] .tags {
	color: #a4b0be;
}
[data-bs-theme="dark"] .qr-code-section p {
	color: #a4b0be;
}

/* ==============================================
   AFFILIATE REDIRECT MODAL STYLES ( ảnh 1 )
   ============================================== */
#ringvip-aff-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999999;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
#ringvip-aff-modal-overlay.show {
	opacity: 1;
}
#ringvip-aff-modal {
	background-color: #ffffff;
	border-radius: 28px;
	width: 90%;
	max-width: 380px;
	padding: 0 0 24px 0;
	text-align: center;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
	transform: scale(0.8);
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-in-out;
	overflow: hidden;
}
#ringvip-aff-modal-overlay.show #ringvip-aff-modal {
	transform: scale(1);
	opacity: 1;
}
.ringvip-modal-image-container {
	width: 100%;
	height: 180px;
	margin: 0 auto 20px auto;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	border: none;
	border-bottom: 1px solid #edf2f7;
}
.ringvip-modal-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ringvip-modal-content {
	padding: 0 24px;
}
.ringvip-modal-product-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ringvip-modal-subtitle-text {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	margin-bottom: 20px;
	line-height: 1.4;
	padding: 0 10px;
}
.ringvip-modal-separator {
	height: 1px;
	background-color: #f1f5f9;
	margin-bottom: 18px;
	width: 100%;
}
.ringvip-modal-prompt {
	font-size: 14.5px;
	color: #475569;
	margin-bottom: 24px;
	line-height: 1.6;
}
.ringvip-modal-platform {
	font-weight: 700;
	color: var(--rv-primary, #ff4757);
}
.ringvip-modal-btn {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}
.ringvip-modal-btn-confirm {
	background-color: var(--rv-primary, #ff4757);
	color: #ffffff !important;
	box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
	margin-bottom: 12px;
}
.ringvip-modal-btn-confirm:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
	filter: brightness(1.05);
}
.ringvip-modal-btn-cancel {
	background-color: #f1f5f9;
	color: #475569 !important;
}
.ringvip-modal-btn-cancel:hover {
	background-color: #e2e8f0;
	color: #1e293b !important;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] #ringvip-aff-modal {
	background-color: #1c1f23;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .ringvip-modal-product-title {
	color: #ffffff;
}
[data-bs-theme="dark"] .ringvip-modal-subtitle-text {
	color: #94a3b8;
}
[data-bs-theme="dark"] .ringvip-modal-separator {
	background-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .ringvip-modal-prompt {
	color: #cbd5e1;
}
[data-bs-theme="dark"] .ringvip-modal-btn-cancel {
	background-color: #2e353c;
	color: #cbd5e1 !important;
}
[data-bs-theme="dark"] .ringvip-modal-btn-cancel:hover {
	background-color: #3e464e;
	color: #ffffff !important;
}

/* ==============================================
   LOGIN / REGISTER AUTHENTICATION CARD
   ============================================== */
.auth-wrapper {
	max-width: 450px;
	margin: 0 auto;
}

.auth-card {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
	padding: 35px 30px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.auth-card:hover {
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.auth-header {
	text-align: center;
	margin-bottom: 30px;
}

.auth-tabs {
	display: flex;
	background: #f1f2f6;
	padding: 6px;
	border-radius: 14px;
	margin-bottom: 25px;
	position: relative;
}

.auth-tab-btn {
	flex: 1;
	border: none;
	background: none;
	padding: 10px;
	font-size: 14.5px;
	font-weight: 600;
	color: #747d8c;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.25s ease;
	text-align: center;
	z-index: 1;
}

.auth-tab-btn.active {
	background: #ffffff;
	color: var(--rv-primary);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.auth-form-group {
	margin-bottom: 20px;
	position: relative;
}

.auth-form-group label {
	display: block;
	font-size: 13.5px;
	font-weight: 500;
	color: #57606f;
	margin-bottom: 8px;
	transition: all 0.2s ease;
}

.auth-input-wrapper {
	position: relative;
}

.auth-input {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	font-size: 14.5px;
	outline: none;
	transition: all 0.25s ease;
	background-color: #ffffff;
	color: var(--rv-text);
}

.auth-input:focus {
	border-color: var(--rv-primary);
	box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.15);
}

.password-toggle-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #a4b0be;
	transition: color 0.2s;
	z-index: 10;
}

.password-toggle-icon:hover {
	color: var(--rv-primary);
}

.auth-btn {
	width: 100%;
	padding: 13px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--rv-grad-start), var(--rv-grad-end));
	color: #ffffff;
	border: none;
	font-weight: 600;
	font-size: 15.5px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(255, 71, 87, 0.2);
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.auth-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(255, 71, 87, 0.3);
}

.auth-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

.auth-alert {
	border-radius: 12px;
	padding: 12px 15px;
	font-size: 14px;
	margin-bottom: 20px;
	display: none;
	align-items: center;
	gap: 10px;
	animation: rvFadeIn 0.3s ease;
}

@keyframes rvFadeIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

.profile-card {
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 24px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
	padding: 30px;
}

.profile-info-list {
	list-style: none;
	padding: 0;
	margin: 20px 0 0 0;
}

.profile-info-item {
	display: flex;
	justify-content: space-between;
	padding: 12px 0;
	border-bottom: 1px solid #f1f2f6;
	font-size: 14px;
}

.profile-info-item:last-child {
	border-bottom: none;
}

.profile-info-label {
	color: #747d8c;
}

.profile-info-val {
	font-weight: 500;
	color: var(--rv-text);
}

.logout-btn-wrapper {
	margin-top: 25px;
	text-align: center;
}

/* ==============================================
   DARK MODE ADJUSTMENTS FOR AUTH CARD
   ============================================== */
[data-bs-theme="dark"] .auth-card,
[data-bs-theme="dark"] .profile-card {
	background: #1c1f23;
	border-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .auth-tabs {
	background: #252a2e;
}

[data-bs-theme="dark"] .auth-tab-btn.active {
	background: #1c1f23;
	color: var(--rv-primary);
}

[data-bs-theme="dark"] .auth-tab-btn {
	color: #a4b0be;
}

[data-bs-theme="dark"] .auth-input {
	background-color: #252a2e;
	border-color: #2f3542;
	color: #ffffff;
}

[data-bs-theme="dark"] .auth-input:focus {
	border-color: var(--rv-primary);
}

[data-bs-theme="dark"] .profile-info-item {
	border-bottom-color: #252a2e;
}

[data-bs-theme="dark"] .profile-info-val {
	color: #ffffff;
}

/* Compact search box and search header card */
.search-page-header-card {
	background: #ffffff;
	border-left: 4px solid var(--rv-primary) !important;
}
[data-bs-theme="dark"] .search-page-header-card {
	background: #1c1f23 !important;
	border-left: 4px solid var(--rv-primary) !important;
}

.search-box.compact {
	box-shadow: none;
	border: 1px solid rgba(0, 0, 0, 0.08);
	background: #f8f9fa;
}
.search-box.compact input {
	padding: 12px 20px;
	font-size: 15px;
	background: transparent !important;
}
.search-box.compact button {
	padding: 0 25px;
	font-size: 16px;
}
[data-bs-theme="dark"] .search-box.compact {
	border-color: rgba(255, 255, 255, 0.08);
	background: #252a2e;
}
[data-bs-theme="dark"] .search-box.compact input {
	color: #dee2e6 !important;
}

/* Stats Pill unified layout */
.stats-pill {
	background: #f8f9fa;
	border-radius: 30px;
	padding: 8px 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	color: #747d8c;
	font-size: 13.5px;
	border: 1px solid rgba(0, 0, 0, 0.02);
}
.stats-pill span {
	display: flex;
	align-items: center;
	gap: 6px;
}
.stats-pill .bullet-dot {
	color: #ced6e0;
	font-size: 14px;
}
[data-bs-theme="dark"] .stats-pill {
	background: #252a2e;
	border-color: rgba(255, 255, 255, 0.05);
	color: #a4b0be;
}
[data-bs-theme="dark"] .stats-pill .bullet-dot {
	color: #4a545e;
}

/* Unified Control Row style */
.player-control-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	max-width: 380px;
	margin: 0 auto;
}
.ctrl-btn-action {
	background: none;
	border: none;
	font-size: 20px;
	color: #747d8c;
	cursor: pointer;
	padding: 10px;
	border-radius: 50%;
	transition: all 0.2s;
	display: flex;
	justify-content: center;
	align-items: center;
}
.ctrl-btn-action:hover {
	color: var(--rv-primary);
	background: rgba(255, 71, 87, 0.05);
}
.ctrl-btn-action.favorited i {
	color: var(--rv-primary);
}
[data-bs-theme="dark"] .ctrl-btn-action {
	color: #a4b0be;
}
[data-bs-theme="dark"] .ctrl-btn-action:hover {
	background: rgba(255, 71, 87, 0.1);
}

/* Mockup Artwork override */
.detail-artwork-large {
	width: 140px;
	height: 140px;
	background: var(--rv-primary) !important;
	border-radius: 50%;
	margin: 0 auto 20px auto;
	display: flex;
	justify-content: center;
	align-items: center;
	color: white !important;
	font-size: 56px;
	box-shadow: 0 10px 30px rgba(255, 71, 87, 0.25);
	animation: none; /* disable animation for stability */
}
.detail-artwork-large.playing {
	animation: rv-artwork-rotate 10s linear infinite !important;
}
@keyframes rv-artwork-rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
.detail-artwork-large i {
	color: white !important;
}

/* Timeline adjustment */
.detail-player-container .progress-bar {
	overflow: visible !important;
	background-color: #f1f2f6 !important;
}
[data-bs-theme="dark"] .detail-player-container .progress-bar {
	background-color: #2b3035 !important;
}
/* Download Choice Modal Styles */
#ringvip-choice-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999999;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
#ringvip-choice-modal-overlay.show {
	opacity: 1;
}
#ringvip-choice-modal {
	background-color: #ffffff;
	border-radius: 28px;
	width: 90%;
	max-width: 380px;
	padding: 28px 28px;
	position: relative;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
	transform: scale(0.8);
	opacity: 0;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-in-out;
}
#ringvip-choice-modal-overlay.show #ringvip-choice-modal {
	transform: scale(1);
	opacity: 1;
}
.ringvip-choice-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 20px;
	color: #64748b;
	cursor: pointer;
	padding: 5px;
	line-height: 1;
	transition: color 0.2s;
}
.ringvip-choice-modal-close:hover {
	color: var(--rv-primary, #ff4757);
}
.ringvip-choice-modal-title {
	font-size: 19px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 4px;
	text-align: center;
}
.ringvip-choice-modal-subtitle {
	font-size: 13.5px;
	color: var(--rv-primary, #ff4757);
	margin-bottom: 15px;
	text-align: center;
	font-weight: 500;
}
.ringvip-choice-modal-separator {
	height: 1px;
	background-color: #f1f5f9;
	margin-bottom: 15px;
	width: 100%;
}
.ringvip-choice-modal-desc {
	font-size: 14px;
	font-weight: 500;
	color: #475569;
	text-align: center;
}
.ringvip-choice-list {
	width: 100%;
}
.ringvip-choice-item {
	transition: all 0.2s ease;
	border: none;
}
.ringvip-choice-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dark mode adjustments */
[data-bs-theme="dark"] #ringvip-choice-modal {
	background-color: #1c1f23;
	border: 1px solid rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .ringvip-choice-modal-title {
	color: #ffffff;
}
[data-bs-theme="dark"] .ringvip-choice-modal-close {
	color: #94a3b8;
}
[data-bs-theme="dark"] .ringvip-choice-modal-close:hover {
	color: var(--rv-primary, #ff4757);
}
[data-bs-theme="dark"] .ringvip-choice-modal-separator {
	background-color: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .ringvip-choice-modal-desc {
	color: #94a3b8 !important;
}
