/**
 * DJ Charts — Instagram Story Layout (1080x1920)
 * Hidden div rendered to PNG via html-to-image.
 * @package Yoyaku
 * @since 2.8.0
 */

.story-canvas {
	position: fixed;
	left: -9999px;
	top: 0;
	width: 1080px;
	height: 1920px;
	background: #1a1d21;
	font-family: 'Schibsted Grotesk', -apple-system, sans-serif;
	color: #EDEFF5;
	display: flex;
	flex-direction: column;
	padding: 60px;
	box-sizing: border-box;
	overflow: hidden;
}

.story-canvas.rendering {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 99999;
}

/* Logo */
.story-logo {
	text-align: center;
	margin-bottom: 24px;
}
.story-logo img {
	height: 36px;
	width: auto;
}

/* Artist header */
.story-artist {
	text-align: center;
	margin-bottom: 20px;
}
.story-artist-photo {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 12px;
	display: block;
	border: 3px solid rgba(255,255,255,0.1);
}
.story-artist-name {
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -0.5px;
	margin: 0;
}
.story-chart-subtitle {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 14px;
	color: #A8ADBB;
	margin-top: 4px;
}

/* Chart list */
.story-chart-list {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
	justify-content: center;
}

.story-chart-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 0;
}

.story-rank {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 22px;
	font-weight: 700;
	width: 40px;
	text-align: center;
	flex-shrink: 0;
	color: #A8ADBB;
}
.story-chart-item:nth-child(-n+3) .story-rank {
	color: #FF8C00;
}

.story-item-cover {
	width: 56px;
	height: 56px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}

.story-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.story-item-title {
	font-size: 13px;
	color: #EDEFF5;
	opacity: 0.6;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.story-item-artist {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.story-item-meta {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 11px;
	color: #EDEFF5;
	opacity: 0.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Footer */
.story-footer {
	text-align: center;
	font-family: 'Spline Sans Mono', monospace;
	font-size: 13px;
	color: #A8ADBB;
	padding-top: 16px;
}

/* Instagram handles panel (visible on page, not in story image) */
.story-handles-panel {
	display: none;
	margin-top: 16px;
	padding: 16px;
	background: rgba(30,144,255,0.08);
	border: 1px solid rgba(30,144,255,0.2);
	border-radius: 8px;
}
.story-handles-panel.visible {
	display: block;
}
.story-handles-title {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #A8ADBB;
	margin-bottom: 8px;
}
.story-handles-text {
	font-family: 'Spline Sans Mono', monospace;
	font-size: 13px;
	color: #1E90FF;
	word-break: break-word;
	line-height: 1.6;
}
.story-handles-missing {
	font-size: 11px;
	color: #A8ADBB;
	margin-top: 8px;
}
.story-copy-btn {
	margin-top: 8px;
	padding: 6px 14px;
	background: #1E90FF;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.story-copy-btn:hover { opacity: 0.85; }
