@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

:root {
	--bg: #121212;
	--surface: #1e1e1e;
	--surface-2: #282828;
	--border: #333;
	--text: #fff;
	--text-dim: #a7a7a7;
	--green: #1DB954;
	--green-dark: #1aa34a;
	--green-soft: rgba(29, 185, 84, 0.12);
	--sans: 'Figtree', -apple-system, sans-serif;
	--radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Header */
.header { padding: 16px 0; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 700; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 28px; height: 28px; }
.header-nav a { color: var(--text-dim); font-size: 14px; font-weight: 500; margin-left: 20px; }
.header-nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 70px 0 30px; text-align: center; }
.hero h1 {
	font-size: clamp(28px, 5vw, 42px); font-weight: 700; letter-spacing: -0.5px;
	margin-bottom: 12px;
	background: linear-gradient(135deg, var(--green), #1ed760);
	-webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { color: var(--text-dim); font-size: 17px; max-width: 500px; margin: 0 auto 36px; line-height: 1.6; }

/* Search */
.search-box {
	max-width: 620px; margin: 0 auto; display: flex;
	background: var(--surface-2); border: 2px solid var(--border); border-radius: 50px;
	overflow: hidden; transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.search-box input {
	flex: 1; min-width: 0; padding: 14px 20px; background: transparent; border: none;
	font-family: var(--sans); font-size: 15px; color: var(--text); outline: none;
}
.search-box input::placeholder { color: #666; }
.search-box button {
	padding: 14px 30px; background: var(--green); color: #000; border: none;
	font-family: var(--sans); font-size: 15px; font-weight: 700; border-radius: 50px;
	margin: 4px; cursor: pointer; transition: background 0.15s, transform 0.1s; white-space: nowrap;
}
.search-box button:hover { background: #1ed760; transform: scale(1.02); }
.search-box button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Status */
.status { max-width: 620px; margin: 10px auto 0; font-size: 14px; color: var(--text-dim); }
.status.error { color: #f15e6c; }

/* Result */
.result-section { padding: 16px 0; }

/* Steps */
.steps { padding: 50px 0; border-top: 1px solid var(--border); }
.steps h2 { text-align: center; font-size: 24px; margin-bottom: 32px; }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #000; font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* Features */
.features { padding: 40px 0 50px; border-top: 1px solid var(--border); }
.features h2 { text-align: center; font-size: 24px; margin-bottom: 32px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color 0.15s; }
.feat-card:hover { border-color: var(--green); }
.feat-card .icon { font-size: 24px; margin-bottom: 12px; }
.feat-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feat-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }

/* FAQ */
.faq { padding: 40px 0 50px; border-top: 1px solid var(--border); }
.faq h2 { text-align: center; font-size: 24px; margin-bottom: 32px; }
.faq-list { max-width: 660px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--border); text-align: center; }
.footer-links a { color: var(--text-dim); font-size: 13px; margin: 0 10px; font-weight: 500; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { font-size: 12px; color: #555; margin-top: 8px; }

/* Download Result */
.dl-info { margin-top: 20px; text-align: center; }
.dl-info img { max-height: 260px; border-radius: 8px; }
.dl-info h3 { font-size: 18px; margin: 12px 0 4px; }
.dl-info .artist { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.dl-btn {
	display: inline-block; padding: 12px 32px; background: var(--green); color: #000;
	border-radius: 50px; font-size: 14px; font-weight: 700; text-decoration: none;
	transition: background 0.15s, transform 0.1s; margin: 4px;
}
.dl-btn:hover { background: #1ed760; transform: scale(1.03); text-decoration: none; color: #000; }
.dl-btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.dl-btn.secondary:hover { border-color: var(--green); }
.dl-btn.loading { opacity: 0.5; pointer-events: none; }

/* Track list */
.track-list { margin-top: 16px; text-align: left; }
.track-item {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px;
	border-radius: 8px; transition: background 0.1s; cursor: default;
}
.track-item:hover { background: var(--surface-2); }
.track-item .num { color: var(--text-dim); font-size: 14px; width: 24px; text-align: center; flex-shrink: 0; }
.track-item img { width: 44px; height: 44px; border-radius: 4px; flex-shrink: 0; }
.track-item .info { flex: 1; min-width: 0; }
.track-item .info .name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-item .info .meta { font-size: 12px; color: var(--text-dim); }
.track-item .action { flex-shrink: 0; }
.track-item .action a, .track-item .action button {
	padding: 6px 16px; background: transparent; color: var(--text); border: 1px solid var(--border);
	border-radius: 50px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none;
	font-family: var(--sans); transition: border-color 0.15s;
}
.track-item .action a:hover, .track-item .action button:hover { border-color: var(--text); text-decoration: none; }

/* Responsive */
@media (max-width: 640px) {
	.hero { padding: 40px 0 20px; }
	.search-box { flex-direction: column; border-radius: var(--radius); }
	.search-box button { border-radius: var(--radius); margin: 0; }
	.steps-row { grid-template-columns: 1fr; }
	.header-nav { display: none; }
	.track-item img { display: none; }
}
