/*
 * Auto DJ 9000 — Frontend Schedule Shortcode Styles
 * All classes namespaced .autodj9000-sc- to avoid conflicts.
 */

/* ── Wrapper ────────────────────────────────────── */
.autodj9000-sc {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	box-sizing: border-box;
}

.autodj9000-sc *,
.autodj9000-sc *::before,
.autodj9000-sc *::after {
	box-sizing: border-box;
}

.autodj9000-sc--dark {
	color: #eee;
}

.autodj9000-sc__title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid currentColor;
	opacity: .85;
}

.autodj9000-sc__empty {
	color: #888;
	font-style: italic;
	padding: 12px 0;
}

/* ── Upcoming list ──────────────────────────────── */
.autodj9000-sc__upcoming {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.autodj9000-sc__show {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: 6px;
	background: #f9f9f9;
	transition: background .15s;
	position: relative;
}

.autodj9000-sc--dark .autodj9000-sc__show {
	background: #2a2a3e;
}

.autodj9000-sc__show--live {
	background: #f0fdf4;
	box-shadow: 0 0 0 1px #86efac;
}

.autodj9000-sc--dark .autodj9000-sc__show--live {
	background: #14532d33;
	box-shadow: 0 0 0 1px #16a34a;
}

.autodj9000-sc__show-color {
	flex-shrink: 0;
	width: 4px;
	border-radius: 2px;
	align-self: stretch;
	min-height: 40px;
}

.autodj9000-sc__show-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.autodj9000-sc__show-name {
	font-weight: 700;
	font-size: 14px;
	color: inherit;
}

.autodj9000-sc__show-name a {
	color: inherit;
	text-decoration: none;
}

.autodj9000-sc__show-name a:hover {
	text-decoration: underline;
}

.autodj9000-sc__on-air-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	background: #ef4444;
	color: #fff;
	padding: 1px 6px;
	border-radius: 10px;
	margin-left: 6px;
	vertical-align: middle;
	animation: autodj-sc-pulse 1.4s ease-in-out infinite;
}

@keyframes autodj-sc-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .55; }
}

.autodj9000-sc__show-meta {
	font-size: 12px;
	color: #777;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}

.autodj9000-sc--dark .autodj9000-sc__show-meta {
	color: #aaa;
}

.autodj9000-sc__show-time {
	font-weight: 600;
	color: #444;
}

.autodj9000-sc--dark .autodj9000-sc__show-time {
	color: #ccc;
}

.autodj9000-sc__show-desc {
	font-size: 12px;
	color: #888;
	font-style: italic;
	margin-top: 2px;
}

.autodj9000-sc--dark .autodj9000-sc__show-desc {
	color: #999;
}

.autodj9000-sc__show-art {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
	align-self: center;
}

/* ── On Air Now widget ──────────────────────────── */
.autodj9000-sc__current {
	min-height: 60px;
}

.autodj9000-sc__off-air {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: #f5f5f5;
	border-radius: 8px;
	color: #888;
	font-style: italic;
}

.autodj9000-sc--dark .autodj9000-sc__off-air {
	background: #2a2a3e;
	color: #777;
}

.autodj9000-sc__off-air-icon {
	font-size: 1.4rem;
	opacity: .5;
}

.autodj9000-sc__on-air-wrap {
	border-left: 4px solid #3498db;
	border-radius: 0 8px 8px 0;
	background: #fff;
	padding: 14px 16px;
	box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.autodj9000-sc--dark .autodj9000-sc__on-air-wrap {
	background: #1e1e2e;
	box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.autodj9000-sc__on-air-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}

.autodj9000-sc__on-air-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ef4444;
	flex-shrink: 0;
	animation: autodj-sc-pulse 1.4s ease-in-out infinite;
}

.autodj9000-sc__on-air-label {
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .8px;
	color: #ef4444;
}

.autodj9000-sc__on-air-body {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.autodj9000-sc__on-air-art {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

.autodj9000-sc__on-air-info {
	display: flex;
	flex-direction: column;
	gap: 3px;
	flex: 1;
	min-width: 0;
}

.autodj9000-sc__on-air-name {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.2;
}

.autodj9000-sc__on-air-name a {
	color: inherit;
	text-decoration: none;
}

.autodj9000-sc__on-air-name a:hover {
	text-decoration: underline;
}

.autodj9000-sc__on-air-host {
	font-size: 13px;
	color: #666;
}

.autodj9000-sc--dark .autodj9000-sc__on-air-host {
	color: #aaa;
}

.autodj9000-sc__on-air-time {
	font-size: 12px;
	color: #888;
	font-weight: 600;
}

.autodj9000-sc__on-air-desc {
	font-size: 12px;
	color: #999;
	font-style: italic;
	margin-top: 2px;
}

/* ── Week grid ──────────────────────────────────── */
.autodj9000-sc__week {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.autodj9000-sc__week-grid {
	display: flex;
	min-width: 420px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.autodj9000-sc--dark .autodj9000-sc__week-grid {
	border-color: #333;
}

.autodj9000-sc__week-timecol {
	width: 42px;
	flex-shrink: 0;
	border-right: 1px solid #e0e0e0;
}

.autodj9000-sc--dark .autodj9000-sc__week-timecol {
	border-color: #333;
}

.autodj9000-sc__week-daycol {
	flex: 1 1 0;
	border-right: 1px solid #eee;
	min-width: 52px;
}

.autodj9000-sc--dark .autodj9000-sc__week-daycol {
	border-color: #2a2a3e;
}

.autodj9000-sc__week-daycol:last-child {
	border-right: none;
}

.autodj9000-sc__week-daycol--today {
	background: rgba(52, 152, 219, .04);
}

.autodj9000-sc__week-hdr {
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	background: #f5f5f5;
	border-bottom: 1px solid #e0e0e0;
	color: #666;
}

.autodj9000-sc--dark .autodj9000-sc__week-hdr {
	background: #1a1a2e;
	border-color: #333;
	color: #888;
}

.autodj9000-sc__week-today-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #3498db;
	flex-shrink: 0;
}

.autodj9000-sc__week-timelabel {
	height: 56px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 4px;
	font-size: 9px;
	color: #aaa;
	border-bottom: 1px solid #f0f0f0;
}

.autodj9000-sc--dark .autodj9000-sc__week-timelabel {
	color: #555;
	border-color: #222;
}

.autodj9000-sc__week-body {
	position: relative;
	height: calc(var(--sc-hours, 24) * 56px);
	background-image: repeating-linear-gradient(
		to bottom, transparent, transparent 55px, #f0f0f0 55px, #f0f0f0 56px
	);
}

.autodj9000-sc--dark .autodj9000-sc__week-body {
	background-image: repeating-linear-gradient(
		to bottom, transparent, transparent 55px, #222 55px, #222 56px
	);
}

.autodj9000-sc__week-show {
	position: absolute;
	left: 2px;
	right: 2px;
	border-radius: 3px;
	padding: 3px 5px;
	overflow: hidden;
	cursor: default;
	transition: filter .15s;
}

.autodj9000-sc__week-show:hover {
	filter: brightness(.88);
	z-index: 5;
}

.autodj9000-sc__week-show-link {
	display: block;
	text-decoration: none;
	color: inherit;
	height: 100%;
}

.autodj9000-sc__week-show-name {
	display: block;
	font-size: 10px;
	font-weight: 700;
	color: rgba(255,255,255,.95);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	line-height: 1.3;
}

.autodj9000-sc__week-show-time {
	display: block;
	font-size: 9px;
	color: rgba(255,255,255,.78);
	line-height: 1.2;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
	.autodj9000-sc__show-art {
		display: none;
	}

	.autodj9000-sc__week-grid {
		min-width: 320px;
	}

	.autodj9000-sc__week-daycol {
		min-width: 38px;
	}

	.autodj9000-sc__on-air-art {
		width: 52px;
		height: 52px;
	}
}
