:root {
    --primary: #5E5CE6;
    --secondary: #FF2D55;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Background animated shapes */
.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}

.shape1 {
    width: 300px;
    height: 300px;
    background: rgba(94, 92, 230, 0.3);
    top: -50px;
    left: -50px;
}

.shape2 {
    width: 250px;
    height: 250px;
    background: rgba(255, 45, 85, 0.2);
    bottom: 10%;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.hidden {
    display: none !important;
}

.active {
    display: flex !important;
}

/* Loading & Error Screens */
.loading-screen,
.error-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-gradient);
    z-index: 100;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Main Container */
.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--glass-shadow);
}

.glass-card-inner {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Profile Section */
.profile-card {
    text-align: center;
    margin-top: 20px;
}

.avatar-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 15px rgba(94, 92, 230, 0.3);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.student-name {
    font-size: 18px;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 8px;
    color: #1a1a1a;
    letter-spacing: 2px;
}

.student-motto {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 16px;
    font-style: italic;
}

/* Artwork Info Tags */
.artwork-info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.info-tag {
    background: rgba(94, 92, 230, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(94, 92, 230, 0.2);
}

/* Audio Player */
.audio-player {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(94, 92, 230, 0.4);
    transition: transform 0.2s, background 0.2s;
    flex-shrink: 0;
}

.play-btn:active {
    transform: scale(0.95);
}

.play-icon,
.pause-icon {
    width: 24px;
    height: 24px;
}

.audio-info {
    flex: 1;
}

.audio-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: width 0.1s linear;
}

/* Content Sections */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.student-text p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    text-align: justify;
    text-indent: 2em;
    margin-bottom: 0.8em;
}

.student-text p:last-child {
    margin-bottom: 0;
}

/* Gallery */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}

.footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-sub);
    margin-top: 20px;
    margin-bottom: 40px;
    opacity: 0.7;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}