/* css/style.css */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #fafafa;
	color: #212121;
	padding: 0px;
	margin:0px;
	line-height: 1.4;
}

/* Material Design elevation shadows */
.md-elev-1 {
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

/* Section per server */
.server-section {
	margin-bottom: 24px;
}

.server-title {
	font-size: 18px;
	font-weight: 500;
	color: #424242;
	margin-bottom: 12px;
	text-transform: capitalize;
	letter-spacing: 0.3px;
}

/* Grid card s6: 6 kolom default (desktop) */
.card-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 12px;
}

/* Card Material */
.card {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
}

.card:hover {
	box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
	transform: translateY(-2px);
}

.card-thumb {
	width: 100%;
	height: auto;
	background: #eeeeee;
	object-fit: contain;    /* tidak crop, gambar tampil utuh */
	display: block;
}

.card-body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

/* Title pink + truncate */
.card-title {
	font-size: 13px;
	font-weight: 500;
	color: #e91e63; /* pink */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
}

.card-sub {
	font-size: 11px;
	color: #757575;
	text-transform: capitalize;
}

/* Tombol aksi space-between */
.card-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	gap: 8px;
}

.btn {
	flex: 1;
	border: none;
	border-radius: 4px;
	padding: 7px 10px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: background 0.2s ease, box-shadow 0.2s ease;
	display: inline-block;
}

.btn-save {
	background: #ffffff;
	color: #e91e63;
	border: 1px solid #e91e63;
}

.btn-save:hover {
	background: #fce4ec;
}

.btn-watch {
	background: #e91e63;
	color: #ffffff;
}

.btn-watch:hover {
	background: #d81b60;
	box-shadow: 0 2px 4px rgba(233,30,99,0.4);
}

/* Loading */
.loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 16px;
	color: #757575;
	font-size: 13px;
	gap: 12px;
	grid-column: 1 / -1;
}

.spinner {
	width: 32px;
	height: 32px;
	border: 3px solid #f0f0f0;
	border-top-color: #e91e63;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* Empty state */
.empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 24px;
	color: #9e9e9e;
	font-size: 13px;
}

/* ===== RESPONSIVE ===== */

/* Tablet besar: 5 kolom */
@media (max-width: 1200px) {
	.card-grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* Tablet: 4 kolom */
@media (max-width: 1024px) {
	.card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* Tablet kecil / HP besar: 3 kolom */
@media (max-width: 768px) {
	.card-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}
}

/* HP: 2 kolom */
@media (max-width: 480px) {
	body {
		padding: 0px;
	}

	.card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.server-title {
		font-size: 16px;
		margin-bottom: 10px;
	}

	.card-body {
		padding: 8px 10px 10px;
	}

	.card-title {
		font-size: 12px;
	}

	.card-sub {
		font-size: 10px;
	}

	.card-actions {
		gap: 6px;
	}

	.btn {
		font-size: 11px;
		padding: 6px 8px;
		letter-spacing: 0.3px;
	}
}

/* HP sangat kecil: tetap 2 kolom tapi lebih rapat */
@media (max-width: 340px) {
	.card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 6px;
	}

	.card-body {
		padding: 6px 8px 8px;
	}

	.card-title {
		font-size: 11px;
	}

	.btn {
		font-size: 10px;
		padding: 5px 6px;
	}
}
/* Toast di tengah layar */
.toast {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	background: rgba(33, 33, 33, 0.92);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	padding: 12px 20px;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 9999;
	white-space: nowrap;
}

.toast.show {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

/* ===== Player view ===== */
/* ===== Player view ===== */

/* Tombol download di bawah player */
/* ===== Player view ===== */

.player-actions {
	width: 100%;
	margin: 0;
	padding: 8px 12px;
	background: #ffffff;
}

.pink-text{
	color:#e91e63 ;

}
.pink{
	background:#e91e63;
	color:white;
	padding:3px;
	font-weight:bold;
}
.bold-text{
	font-weight:bold;
}
.player-actions .btn {
	width: 100%;
}

/* List tetap punya padding */
#list-view {
	padding: 12px;
}

/* Responsive: player tetap full width, tinggi menyesuaikan */
@media (max-width: 768px) {
	.player-wrap { height: 320px; }
}

@media (max-width: 480px) {
	.player-wrap { height: 240px; }
	#list-view { padding: 8px; }
}

/* ===== Nav actions (2 tombol space-between) ===== */
.nav-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	background: #fafafa;
	border-bottom: 1px solid #f0f0f0;
}

.nav-btn {
	flex: 1;
	text-align: center;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #e91e63;
	color: #e91e63;
	background: #ffffff;
	transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.nav-btn:active {
	transform: scale(0.97);
}

.nav-btn-chat:hover {
	background: #fce4ec;
}

/* Tombol simpan full color pink biar kontras */
.nav-btn-save {
	background: #e91e63;
	color: #ffffff;
	border-color: #e91e63;
}

.nav-btn-save:hover {
	background: #d81b60;
	box-shadow: 0 2px 6px rgba(233,30,99,0.35);
}

/* Responsive: tombol tetap rapi di HP */
@media (max-width: 480px) {
	.nav-actions {
		padding: 8px 10px;
		gap: 8px;
	}
	.nav-btn {
		font-size: 12px;
		padding: 9px 10px;
	}
}