* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	line-height: 1.6;
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	min-height: 100vh;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem;
}

.app-header {
	text-align: center;
	margin-bottom: 2.5rem;
	padding: 0 1rem;
}

.app-description {
	margin-top: 2rem;
}

.button-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 1.5rem;
}

.back-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.5rem;
	font-size: 0.95rem;
	background-color: #e63946;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(230,57,70,0.2);
}

.back-button:hover {
	background-color: #d64550;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(230,57,70,0.3);
}

.logo-container {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 1.5rem;
	margin-bottom: 0;
	padding: 1rem;
	background: rgba(255,255,255,0.8);
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(230,57,70,0.1);
}

.logo-wrapper {
	position: relative;
	width: 80px !important;
	height: 80px !important;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(230,57,70,0.2);
	border: 2px solid rgba(230,57,70,0.15);
	background: white;
	flex-shrink: 0;
}

.logo-inner {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem;
}

#app-logo {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
	margin: 0 !important;
	padding: 0 !important;
}



.logo-container:hover #app-logo {
	transform: scale(1.05);
}

.logo-section {
	text-align: left;
}

.logo-section h1 {
	color: #e63946;
	font-size: 2.8rem;
	font-weight: 700;
	margin-bottom: 0.3rem;
	text-transform: uppercase;
	letter-spacing: 2px;
	line-height: 1.1;
}

.logo-section h2 {
	color: #1d3557;
	font-size: 1.8rem;
	font-weight: 500;
	margin: 0;
}

@media (max-width: 768px) {
	.logo-container {
		flex-direction: column;
		gap: 1.5rem;
	}

	.logo-section {
		text-align: center;
	}

	.logo-wrapper {
		width: 70px !important;
		height: 70px !important;
	}


	.logo-section h1 {
		font-size: 2.2rem;
	}

	.logo-section h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 600px) {
	.logo-section h1 {
		font-size: 2.2rem;
	}
	
	.logo-section h2 {
		font-size: 1.6rem;
	}
}

.app-description {
	max-width: 800px;
	margin: 2rem auto 0;
	padding: 1.5rem;
	text-align: center;
	background: rgba(230,57,70,0.03);
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(230,57,70,0.05);
}

.app-description p {
	color: #2f3e46;
	font-size: 1.1rem;
	line-height: 1.6;
	margin: 0;
}

.search-section {
	display: flex;
	gap: 1rem;
	margin: 2.5rem auto;
	max-width: 1000px;
	padding: 0 2rem;
	align-items: center;
}

#searchInput {
	flex: 1;
	padding: 1.2rem 1.5rem;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 1.05rem;
	font-family: 'Poppins', sans-serif;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	min-width: 0;
}

#searchInput::placeholder {
	color: #666;
	opacity: 0.8;
}

#searchInput:focus {
	outline: none;
	border-color: #e63946;
	box-shadow: 0 2px 8px rgba(230,57,70,0.2);
}

#searchButton {
	padding: 1.2rem 2.5rem;
	font-size: 1.05rem;
	background-color: #e63946;
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(230,57,70,0.2);
}

#searchButton:hover {
	background-color: #d64550;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(230,57,70,0.3);
}

.results-section, .artist-section {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	overflow: hidden;
}

.artist-profile, .results-content {
	padding: 1.5rem;
}

.track-info {
	margin-bottom: 1.5rem;
	padding: 0;
	border: 1px solid #f1f1f1;
	border-radius: 12px;
	background: white;
	box-shadow: 0 2px 8px rgba(0,0,0,0.05);
	transition: transform 0.3s ease;
	overflow: hidden;
}

.track-info:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(230,57,70,0.15);
}

.track-header {
	display: flex;
	align-items: center;
	padding: 1.2rem;
	background: linear-gradient(to right, #e63946, #d64550);
	color: white;
	box-shadow: 0 2px 4px rgba(230,57,70,0.25);
	position: relative;
	gap: 1.5rem;
}

.track-title {
	flex: 1;
	position: relative;
	z-index: 2;
	padding-right: 1rem;
}

.track-title h2 {
	color: #ffffff;
	margin: 0;
	padding: 0;
	font-size: 1.8rem;
	line-height: 1.3;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
	letter-spacing: 0.5px;
}

.artist-name {
	color: #ffffff;
	margin: 0.5rem 0 0;
	font-size: 1.2rem;
	opacity: 0.95;
	font-weight: 500;
	text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.load-more-button {
	display: block;
	width: 100%;
	padding: 1rem;
	margin-top: 1rem;
	background: #e63946;
	color: white;
	border: none;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.load-more-button:hover {
	background: #d64550;
	box-shadow: 0 4px 8px rgba(230,57,70,0.3);
	transform: translateY(-1px);
}

.album-art {
	width: 120px;
	height: 120px;
	flex-shrink: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.2);
	border: 3px solid rgba(255,255,255,0.15);
	background: #f8f9fa;
}

.album-art img, .artist-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #f8f9fa;
}



.track-content {
	padding: 1.5rem;
}

.track-info h3 {
	color: #457b9d;
	margin: 1rem 0 0.5rem;
	font-size: 1.1rem;
	font-weight: 500;
}

.artist-details, .track-details, .summary {
	padding: 1.2rem;
	margin: 0 0 1rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.artist-details {
	border-left: 4px solid #e63946;
}

.track-details {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1.2rem;
	margin: 1rem 0;
	border-left: 4px solid #e63946;
}

.track-details h3 {
	color: #e63946;
	margin: 0 0 1rem;
	font-size: 1.2rem;
	font-weight: 600;
}

.track-details p {
	margin: 0.8rem 0;
	color: #2f3e46;
	font-size: 0.95rem;
	line-height: 1.6;
}

.summary {
	border-left: 4px solid #e63946;
	background: #f8f9fa;
}

.track-info p {
	margin: 0.5rem 0;
	color: #2f3e46;
	line-height: 1.8;
}

.preview-player {
	margin-top: 1.2rem;
	background: white;
	padding: 0.8rem;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.preview-player audio {
	width: 100%;
	height: 40px;
	border-radius: 20px;
}

.content-grid {
	display: none;
	grid-template-columns: 300px 1fr;
	gap: 2rem;
	margin-top: 2rem;
}

.content-grid.has-results {
	display: grid;
}

.artist-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.artist-section h2 {
    color: #1d3557;
    padding: 1.5rem;
    margin: 0;
    border-bottom: 2px solid #e63946;
}

.artist-profile {
    padding: 1.5rem;
}

.artist-image {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 16px rgba(230,57,70,0.15);
	border: 3px solid rgba(230,57,70,0.1);
	background: #f8f9fa;
}

.artist-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.artist-image:hover img {
	transform: scale(1.05);
}

.artist-info {
	padding-top: 1rem;
}

.artist-info > div {
	margin-bottom: 1.5rem;
}

.artist-info > div:last-child {
	margin-bottom: 0;
}

.artist-info h3 {
	color: #e63946;
	margin: 1rem 0;
	font-size: 1.6rem;
	font-weight: 600;
}

.artist-career-info, .artist-stats, .artist-impact {
	background: #fff;
	border-radius: 10px;
	padding: 1.4rem;
	margin: 1rem 0;
	border-left: 4px solid #e63946;
	box-shadow: 0 2px 8px rgba(230,57,70,0.1);
}

.artist-career-info h4, .artist-stats h4, .artist-impact h4 {
	color: #e63946;
	margin-bottom: 1rem;
	font-size: 1.1rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.artist-career-info h4::before {
	content: '🎯';
}

.artist-stats h4::before {
	content: '📊';
}

.artist-impact h4::before {
	content: '⭐';
}

.career-stats strong {
	display: inline-block;
	min-width: 100px;
}

.career-stats p {
	margin: 0.8rem 0;
	color: #2f3e46;
	font-size: 0.95rem;
	line-height: 1.6;
}

.artist-impact p {
	color: #2f3e46;
	font-size: 0.95rem;
	line-height: 1.6;
	font-style: italic;
}

.artist-biography {
	background: #fff;
	border-radius: 10px;
	padding: 1.4rem;
	margin: 1rem 0;
	border-left: 4px solid #e63946;
	box-shadow: 0 2px 8px rgba(230,57,70,0.1);
}

.artist-biography h4 {
	color: #e63946;
	margin-bottom: 1rem;
	font-size: 1.1rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.artist-biography h4::before {
	content: '📚';
}

.wiki-content {
	color: #2f3e46;
	font-size: 0.95rem;
	line-height: 1.8;
	max-height: 300px;
	overflow-y: auto;
	padding-right: 1rem;
}

.wiki-source {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(230,57,70,0.1);
	text-align: right;
}

.wiki-source a {
	color: #e63946;
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.wiki-source a::after {
	content: '↗';
	font-size: 1.1rem;
}

.wiki-source a:hover {
	text-decoration: underline;
}

.wiki-content::-webkit-scrollbar {
    width: 8px;
}

.wiki-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wiki-content::-webkit-scrollbar-thumb {
    background: #e63946;
    border-radius: 4px;
}

.wiki-content::-webkit-scrollbar-thumb:hover {
    background: #d64550;
}

.wiki-content p {
    margin-bottom: 1rem;
}

.wiki-content p:last-child {
    margin-bottom: 0;
}

.artist-stats .artist-genres {
	margin-top: 0.8rem;
}

.artist-stats p {
	margin: 0.8rem 0;
	color: #2f3e46;
	font-size: 0.95rem;
}

.artist-stats a {
	color: #e63946;
	text-decoration: none;
	font-weight: 500;
}

.artist-stats a:hover {
	text-decoration: underline;
}

.artist-info strong {
	color: #e63946;
	font-weight: 600;
}

.popularity-stars {
	color: #e63946;
	font-size: 1.2rem;
	letter-spacing: 2px;
	margin-left: 0.5rem;
}

.presenter-summary {
    background: #fff3f4;
    border-radius: 8px;
    padding: 1.2rem;
    margin: 1.2rem 0;
    border: 2px solid #e63946;
    box-shadow: 0 2px 4px rgba(230,57,70,0.1);
}

.presenter-summary h4 {
    color: #e63946;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.presenter-summary h4::before {
    content: '🎙️';
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.presenter-summary p {
    color: #2f3e46;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/* Adjust spacing for track content */
.track-content .presenter-summary {
    margin-bottom: 1.5rem;
}

/* Adjust spacing for artist info */
.artist-info .presenter-summary {
    margin: 1.5rem 0;
}

.artist-genres-section {
	margin: 1.5rem 0;
}

.artist-genres-section h4 {
	color: #e63946;
	margin-bottom: 0.8rem;
	font-size: 1.2rem;
	font-weight: 600;
}

.artist-genres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.artist-type {
	display: none;
}

.genre-tag {
	background: #e63946;
	color: white;
	padding: 0.4rem 1rem;
	border-radius: 20px;
	font-size: 0.9rem;
	font-weight: 500;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}


.error-message {
    background: #fff3f4;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    color: #2f3e46;
    text-align: center;
    font-size: 1.1rem;
    border: 2px solid #e63946;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.artist-section h2, .results-section h2 {
	background: linear-gradient(to right, #e63946, #d64550);
	box-shadow: 0 1px 3px rgba(230,57,70,0.2);
	color: white;
	margin: 0;
	padding: 1.2rem;
	border-radius: 8px 8px 0 0;
	text-shadow: 0 1px 2px rgba(0,0,0,0.15);
	font-weight: 600;
	letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .artist-section {
        position: relative;
        top: 0;
        max-height: none;
    }
}

@media (max-width: 600px) {
	.track-header {
		flex-direction: column;
		text-align: center;
		padding: 1.5rem;
		gap: 1.2rem;
	}

	.track-title {
		padding: 0;
	}

	.track-title h2 {
		font-size: 1.6rem;
	}

	.album-art {
		width: 180px;
		height: 180px;
		margin: 0 auto;
		border-width: 3px;
	}

	.artist-image {
		width: 200px;
		margin: 0 auto 1.5rem;
		border-width: 3px;
	}
}


@media (max-width: 768px) {
	.app-description {
		margin: 1.5rem 1rem 0;
		padding: 1.2rem;
	}
	
	.search-section {
		padding: 0 1rem;
		margin: 2rem auto;
		flex-direction: column;
	}
	
	#searchInput, #searchButton {
		padding: 1rem 1.5rem;
		font-size: 1rem;
	}
	
	.container {
		padding: 1rem;
	}
	
	#searchButton {
		width: 100%;
	}
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #e63946;
    font-weight: 500;
    position: relative;
}

.loading::after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid #e63946;
    border-radius: 50%;
    border-top-color: transparent;
    margin: 1rem auto 0;
    animation: spin 1s linear infinite;
}

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

/* Ensure proper font loading */
@font-face {
    font-display: swap;
    font-family: 'Poppins';
}

/* Improve mobile responsiveness */
@media (max-width: 480px) {
    .logo-section h1 {
        font-size: 2rem;
    }
    
    .logo-section h2 {
        font-size: 1.4rem;
    }
    
    .container {
        padding: 1rem 0.8rem;
    }
    
    .artist-career-info, .artist-stats, .artist-impact, .artist-biography {
        padding: 1rem;
    }
}

/* Ensure proper scrolling on iOS */
.wiki-content {
	-webkit-overflow-scrolling: touch;
}

.app-footer {
	text-align: center;
	padding: 2rem 0;
	margin-top: 3rem;
	color: #1d3557;
	font-size: 0.9rem;
	border-top: 1px solid rgba(230,57,70,0.1);
}

/* Update container to ensure footer stays at bottom */
.container {
	min-height: calc(100vh - 4rem);
	display: flex;
	flex-direction: column;
}

.content-grid {
	flex: 1;
}

@media (max-width: 480px) {
	.app-footer {
		padding: 1.5rem 0;
		margin-top: 2rem;
		font-size: 0.85rem;
	}
}

/* Override any potential server styles */
.logo-wrapper img,
.logo-inner img,
#app-logo {
    border: none !important;
    box-shadow: none !important;
    background: none !important;
}