/* CSS Reset & Variables */
:root {
    --bg-color: #08080c;
    --card-bg: rgba(20, 20, 32, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(168, 85, 247, 0.4);
    
    --primary-color: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.35);
    
    --secondary-color: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.35);
    
    --accent-color: #f43f5e;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-dark: #6b7280;
    
    --font-heading: 'Outfit', 'Space Grotesk', 'Noto Sans KR', sans-serif;
    --font-body: 'Noto Sans KR', 'Outfit', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.5);
    --shadow-neon-purple: 0 0 15px rgba(168, 85, 247, 0.4);
    --shadow-neon-teal: 0 0 15px rgba(6, 182, 212, 0.4);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.neon-text {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-glow), 0 0 20px var(--primary-glow);
    animation: neon-pulse 2s infinite alternate;
}

.badge {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.chat-btn-nav {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--primary-color);
    padding: 8px 18px;
    border-radius: 30px;
    color: var(--primary-color) !important;
}

.chat-btn-nav:hover {
    background: var(--primary-color);
    color: #fff !important;
    box-shadow: var(--shadow-neon-purple);
}

.chat-btn-nav::after {
    display: none;
}

/* Hero Section */
.hero {
    height: 90vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    margin-top: 70px;
    position: relative;
}

.hero-content {
    max-width: 650px;
    animation: fade-in-up 1s ease-out;
}

.tagline {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-shadow: 0 0 8px var(--secondary-glow);
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    color: #fff;
    box-shadow: var(--shadow-neon-purple);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Common Section Layout */
.section {
    padding: 100px 8%;
    border-bottom: 1px solid var(--card-border);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 300;
}

.neon-purple {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Chatbot Section */
.chatbot-section {
    background: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

.chat-container {
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
}

.chat-header {
    background: rgba(12, 12, 18, 0.7);
    padding: 15px 25px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-bot-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.bot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.bot-avatar i {
    color: #fff;
    font-size: 1.1rem;
}

.online-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border: 2px solid #08080c;
    border-radius: 50%;
}

.chat-bot-info h3 {
    font-size: 1rem;
    font-weight: 600;
}

.chat-bot-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.clear-chat {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.clear-chat:hover {
    color: var(--accent-color);
}

.chat-log {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    max-width: 80%;
    animation: fade-in 0.3s ease;
}

.bot-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
}

.msg-bubble {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    word-break: break-word;
}

.bot-message .msg-bubble {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    border-bottom-left-radius: 2px;
}

/* Styling markdown rendered inside bot message */
.bot-message .msg-bubble p {
    margin-bottom: 8px;
}
.bot-message .msg-bubble p:last-child {
    margin-bottom: 0;
}
.bot-message .msg-bubble ul, .bot-message .msg-bubble ol {
    margin-left: 20px;
    margin-bottom: 8px;
}
.bot-message .msg-bubble li {
    margin-bottom: 4px;
}
.bot-message .msg-bubble strong {
    color: var(--secondary-color);
}

.user-message .msg-bubble {
    background: linear-gradient(135deg, #7c3aed, var(--primary-color));
    color: #fff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.2);
}

/* Suggestion Chips */
.suggestion-chips {
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    background: rgba(8, 8, 12, 0.3);
    border-top: 1px solid var(--card-border);
}

.suggestion-chips::-webkit-scrollbar {
    height: 0px;
}

.chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chip:hover {
    background: rgba(168, 85, 247, 0.12);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

/* Chat Input Area */
.chat-input-area {
    padding: 15px 25px;
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 15px;
    background: rgba(12, 12, 18, 0.7);
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input-area input:focus {
    border-color: var(--primary-color);
}

.chat-input-area button {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input-area button:hover {
    background: #8b5cf6;
    box-shadow: var(--shadow-neon-purple);
    transform: scale(1.05);
}

/* Loading Bubbles */
.loading-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
}

.loading-bubble span {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-bubble span:nth-child(1) { animation-delay: -0.32s; }
.loading-bubble span:nth-child(2) { animation-delay: -0.16s; }

/* Members Section Grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.member-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(12px);
}

.member-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-neon-purple);
}

.member-icon {
    width: 70px;
    height: 70px;
    background: rgba(168, 85, 247, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.member-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.member-card:nth-child(2n) .member-icon {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}
.member-card:nth-child(2n) .member-icon i {
    color: var(--secondary-color);
}
.member-card:nth-child(2n):hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: var(--shadow-neon-teal);
}

.member-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.member-ja {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.member-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-card:nth-child(2n) .member-role {
    color: var(--primary-color);
}

.member-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 260px;
    flex-shrink: 0;
}

.member-card ul {
    list-style: none;
    text-align: left;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

.member-card li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    width: 100%;
}

.member-card li:last-child {
    margin-bottom: 0;
}

.member-card li strong {
    color: var(--text-primary);
    min-width: 75px;
    flex-shrink: 0;
    display: inline-block;
}

.member-card li span {
    flex: 1;
    text-align: left;
}

/* Albums Section Grid */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.album-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.album-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-md);
}

.album-info-header {
    background: rgba(12, 12, 18, 0.6);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.album-title-area h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.album-type {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.album-year {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 4px;
}

.album-card:nth-child(even) .album-type {
    color: var(--primary-color);
}

.album-tracks {
    padding: 20px 25px;
}

.album-tracks h4 {
    font-size: 0.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.album-tracks ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-tracks li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.album-tracks li i {
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* Notable Songs Section */
.songs-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.song-row {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
}

.song-row:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.1);
}

.song-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.15);
    min-width: 40px;
}

.song-main-info {
    flex: 1;
}

.song-main-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.song-year {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.song-description {
    flex: 2.5;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Footer styling */
footer {
    background: #040406;
    padding: 40px 5%;
    text-align: center;
    border-top: 1px solid var(--card-border);
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Spinner styling */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.loading-spinner i {
    margin-right: 8px;
}

/* Animations */
@keyframes neon-pulse {
    from {
        text-shadow: 0 0 8px var(--primary-glow), 0 0 15px var(--primary-glow);
    }
    to {
        text-shadow: 0 0 15px var(--primary-glow), 0 0 30px var(--primary-color);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* Hero Logo Styles */
.hero-logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: flex-start;
}

.hero-logo-img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border: none;
    filter: drop-shadow(0 0 10px var(--primary-glow)) drop-shadow(0 0 20px var(--primary-glow));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Member Photo Styles */
.member-photo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
    transition: all 0.3s ease;
}

.member-card:hover .member-photo {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: scale(1.05);
}

.member-card:nth-child(2n) .member-photo {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.member-card:nth-child(2n):hover .member-photo {
    border-color: var(--secondary-color);
    box-shadow: 0 0 20px var(--secondary-glow);
}

/* Album Cover Styles */
.album-cover {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.5s ease;
}

.album-card:hover .album-cover {
    transform: scale(1.05);
}

/* YouTube Listening Button */
.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.youtube-link i {
    font-size: 0.95rem;
}

.youtube-link:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.5);
    transform: translateY(-2px);
}

/* YouTube Channel Promo Section */
.youtube-channel-container {
    margin-top: 50px;
    text-align: center;
    padding: 35px 25px;
    background: rgba(20, 20, 32, 0.4);
    border: 1px dashed var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.youtube-channel-container:hover {
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 30px rgba(255, 0, 0, 0.05);
}

.channel-promo-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

.channel-btn {
    background: linear-gradient(135deg, #ff0000, #b30000);
    color: #fff;
    box-shadow: 0 4px 15px rgba(204, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 0.2);
}

.channel-btn:hover {
    background: linear-gradient(135deg, #ff3333, #cc0000);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

/* Interactive Components Placement */
.members-trivia-container, .albums-recommend-container {
    margin-top: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
}

.members-trivia-container .trivia-card, .albums-recommend-container .song-picker-card {
    max-width: 100%;
    width: 100%;
}

.interactive-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.song-picker-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-neon-purple);
}

.trivia-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: var(--shadow-neon-teal);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.song-picker-card .card-icon {
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.trivia-card .card-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.interactive-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.picker-desc, .trivia-intro-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 300;
    max-width: none;
    line-height: 1.5;
}

/* Recommended Song Display */
.recommend-display {
    width: 100%;
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: left;
    animation: fade-in-up 0.5s ease;
}

.recommend-display.hidden {
    display: none !important;
}

.recommend-display h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.recommend-display .recommend-year {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 12px;
    display: inline-block;
}

.recommend-display p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Loading Game Tip Card Style for Trivia */
.loading-tip-card {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.8), rgba(8, 8, 12, 0.95));
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), var(--shadow-neon-teal);
    width: 100%;
    overflow: hidden;
    transition: all 0.4s ease;
}

.loading-tip-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 50px rgba(6, 182, 212, 0.25), var(--shadow-neon-teal);
}

/* Progress Bar at the Top */
.loading-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.loading-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 10px var(--secondary-color);
}

/* Card Content Grid */
.tip-card-content {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 10px;
    min-height: 180px;
}

/* Mapped image (left side) */
.tip-image-area {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.tip-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Text Area (right side) */
.tip-text-area {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.tip-header-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 8px var(--secondary-glow);
}

.tip-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: opacity 0.4s ease;
}

.tip-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
    transition: opacity 0.4s ease;
}

/* Dot Indicators at the Bottom */
.tip-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.tip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tip-dot:hover {
    background: rgba(6, 182, 212, 0.5);
    transform: scale(1.2);
}

.tip-dot.active {
    background: var(--secondary-color);
    box-shadow: 0 0 8px var(--secondary-color);
    width: 20px;
    border-radius: 4px;
}

/* Animation classes for smooth transitions */
.fade-out {
    opacity: 0;
    transform: translateY(5px);
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-animations */
.fa-spin-hover {
    transition: transform 0.5s ease;
}
.song-picker-card:hover .fa-compact-disc {
    transform: rotate(180deg);
}

/* Responsiveness */
@media (max-width: 900px) {
    .interactive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    header {
        padding: 0 20px;
    }
    nav {
        gap: 15px;
    }
    nav a {
        font-size: 0.85rem;
    }
    .hero {
        padding: 0 5%;
        text-align: center;
        justify-content: center;
    }
    .hero-logo-container {
        justify-content: center;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    .song-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
    }
    .song-number {
        display: none;
    }
    
    /* Tip Card Mobile Adjustments */
    .tip-card-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .tip-image-area {
        width: 100px;
        height: 100px;
    }
    .tip-text-area {
        text-align: center;
    }
    .tip-header-badge {
        justify-content: center;
    }
}

/* ==========================================
   Gnu Playground & Interactive Style System
   ========================================== */

.playground-section {
    background: radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
}

.playground-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Tab controls */
.playground-tabs {
    display: flex;
    border-bottom: 1px solid var(--card-border);
    background: rgba(12, 12, 18, 0.7);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--primary-color);
    background: rgba(168, 85, 247, 0.05);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 0 8px var(--primary-color);
}

/* Tab content layout */
.playground-tab-content {
    display: none;
    padding: 45px 35px;
    animation: fade-in-up 0.4s ease;
}

.playground-tab-content.active {
    display: block;
}

/* LP Player styling */
.lp-container {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.lp-deck {
    flex: 1;
    max-width: 320px;
    display: flex;
    justify-content: center;
}

.turntable {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #1a1a24 0%, #0d0d14 70%, #050508 100%);
    border: 6px solid #2d2d3a;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 10px 30px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vinyl-disc {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #18181f 2px, #0f0f15 4px, #08080c 6px, #1c1c24 10%, #0c0c12 25%, #1c1c24 40%, #08080c 55%, #181822 75%, #050508 100%);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease-out;
}

.vinyl-disc.playing {
    animation: spin-vinyl 4s linear infinite;
}

.vinyl-grooves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: repeating-radial-gradient(circle, rgba(255,255,255,0.01) 0px, rgba(255,255,255,0.01) 1px, transparent 1px, transparent 4px);
    pointer-events: none;
}

.vinyl-sticker {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #000;
    position: relative;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    background-color: #222;
}

.vinyl-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #e2e8f0;
    border-radius: 50%;
    border: 2px solid #0f0f15;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.8);
    z-index: 5;
}

.tone-arm {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 80px;
    height: 180px;
    pointer-events: none;
    transform-origin: 40px 20px;
    transform: rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10;
}

.tone-arm.active {
    transform: rotate(32deg);
}

.arm-base {
    position: absolute;
    top: 5px;
    right: 25px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #64748b 0%, #334155 70%, #1e293b 100%);
    border: 2px solid #475569;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.arm-shaft {
    position: absolute;
    top: 25px;
    right: 37px;
    width: 6px;
    height: 120px;
    background: linear-gradient(to right, #94a3b8, #cbd5e1, #64748b);
    border-radius: 3px;
    transform-origin: top center;
}

.arm-head {
    position: absolute;
    bottom: 25px;
    right: 28px;
    width: 24px;
    height: 35px;
    background: #475569;
    border-radius: 4px;
    border: 1px solid #64748b;
    transform: rotate(-15deg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.arm-head::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 10px;
    width: 4px;
    height: 8px;
    background: #f43f5e;
    border-radius: 1px;
}

@keyframes spin-vinyl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.lp-controls {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.lp-now-playing h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.lp-song-artist {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.lp-select-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lp-select-container label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.lp-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lp-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.player-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.player-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-neon-purple);
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
}

.control-primary:hover {
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.control-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.control-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.lp-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-heading);
}

.lp-progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.lp-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* Soundboard styling */
.soundboard-container {
    text-align: center;
}

.soundboard-header {
    margin-bottom: 30px;
}

.soundboard-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 6px;
    color: #fff;
}

.soundboard-header p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.soundboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.sound-pad {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 25px 15px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.pad-key {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.75rem;
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 600;
}

.sound-pad i {
    font-size: 1.6rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.sound-pad span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Sound pad hot keys & glow classes */
.sound-pad:nth-child(3n+1):hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
}
.sound-pad:nth-child(3n+1):hover i, .sound-pad:nth-child(3n+1):hover span {
    color: var(--primary-color);
}
.sound-pad:nth-child(3n+1).active {
    background: var(--primary-color);
    color: #fff;
    transform: scale(0.94);
    box-shadow: 0 0 25px var(--primary-color);
}
.sound-pad:nth-child(3n+1).active i, .sound-pad:nth-child(3n+1).active span, .sound-pad:nth-child(3n+1).active .pad-key {
    color: #fff;
}

.sound-pad:nth-child(3n+2):hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--secondary-glow);
}
.sound-pad:nth-child(3n+2):hover i, .sound-pad:nth-child(3n+2):hover span {
    color: var(--secondary-color);
}
.sound-pad:nth-child(3n+2).active {
    background: var(--secondary-color);
    color: #fff;
    transform: scale(0.94);
    box-shadow: 0 0 25px var(--secondary-color);
}
.sound-pad:nth-child(3n+2).active i, .sound-pad:nth-child(3n+2).active span, .sound-pad:nth-child(3n+2).active .pad-key {
    color: #fff;
}

.sound-pad:nth-child(3n+3):hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.25);
}
.sound-pad:nth-child(3n+3):hover i, .sound-pad:nth-child(3n+3):hover span {
    color: var(--accent-color);
}
.sound-pad:nth-child(3n+3).active {
    background: var(--accent-color);
    color: #fff;
    transform: scale(0.94);
    box-shadow: 0 0 25px var(--accent-color);
}
.sound-pad:nth-child(3n+3).active i, .sound-pad:nth-child(3n+3).active span, .sound-pad:nth-child(3n+3).active .pad-key {
    color: #fff;
}

.sound-pad:nth-child(8):hover {
    border-color: #eab308;
    box-shadow: 0 0 15px rgba(234, 179, 8, 0.25);
}
.sound-pad:nth-child(8):hover i, .sound-pad:nth-child(8):hover span {
    color: #eab308;
}
.sound-pad:nth-child(8).active {
    background: #eab308;
    color: #fff;
    transform: scale(0.94);
    box-shadow: 0 0 25px #eab308;
}
.sound-pad:nth-child(8).active i, .sound-pad:nth-child(8).active span, .sound-pad:nth-child(8).active .pad-key {
    color: #fff;
}

/* Quiz styling */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quiz-state-panel {
    width: 100%;
    text-align: center;
    animation: fade-in-up 0.4s ease;
}

.quiz-state-panel.hidden {
    display: none !important;
}

.quiz-icon-header {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 15px var(--primary-glow);
}

.quiz-state-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.4;
}

.quiz-state-panel p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quiz-progress-bar {
    flex: 1;
    margin-left: 15px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.quiz-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: width 0.3s ease;
}

.quiz-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 25px;
}

.quiz-opt-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 15px 20px;
    color: var(--text-primary);
    text-align: left;
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-opt-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.2);
}

.quiz-opt-btn.correct {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: #22c55e !important;
    color: #22c55e !important;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
    font-weight: 600;
}

.quiz-opt-btn.incorrect {
    background: rgba(244, 63, 94, 0.15) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
    animation: shake-button 0.4s ease;
}

.quiz-explanation {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-align: left;
    animation: fade-in 0.3s ease;
}

.explanation-status {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.explanation-status.correct {
    color: #22c55e;
}

.explanation-status.incorrect {
    color: var(--accent-color);
}

.explanation-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px !important;
    line-height: 1.5;
}

.quiz-result-header {
    margin-bottom: 25px;
}

.quiz-trophy {
    font-size: 3rem;
    color: #eab308;
    text-shadow: 0 0 20px rgba(234, 179, 8, 0.4);
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite;
}

.quiz-score-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 6px 20px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 10px;
}

@keyframes shake-button {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@media (max-width: 768px) {
    .soundboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .tab-btn span {
        display: none;
    }
    .tab-btn i {
        font-size: 1.3rem;
    }
}

/* ==========================================
   Hit Songs Section Split Layout & LP Sync
   ========================================== */
.hit-songs-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1050px;
    width: 100%;
    margin: 40px auto 0;
}

.lp-player-container {
    flex: 1;
    max-width: 360px;
    background: linear-gradient(135deg, rgba(20, 20, 32, 0.6), rgba(8, 8, 12, 0.9));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.lp-player-controls {
    width: 100%;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.songs-list-container {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Make song rows interactive */
.songs-list-container .song-row {
    cursor: pointer;
    position: relative;
    border-left: 4px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.songs-list-container .song-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--secondary-color);
    transform: translateX(5px);
}

.songs-list-container .song-row.active {
    background: rgba(168, 85, 247, 0.08);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon-purple);
    border-left-width: 4px;
}

.songs-list-container .song-row.active .song-number {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Responsiveness adjustments for split layout */
@media (max-width: 900px) {
    .hit-songs-layout {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    
    .lp-player-container {
        max-width: 360px;
    }
}

