:root,
[data-theme="light"] {
    --bg-dark: #f6f5f0;
    --bg-card: #ffffff;
    --bg-sidebar: #f2efe9;
    --border-color: rgba(166, 138, 86, 0.22);
    --primary-gold: #a68a56;
    --primary-gold-hover: #8e7343;
    --text-color: #1c1c1c;
    --text-muted: #555555;
    --sidebar-width: 320px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-dark: #121214;
    --bg-card: #1c1c20;
    --bg-sidebar: #18181b;
    --border-color: rgba(197, 168, 128, 0.25);
    --primary-gold: #c5a880;
    --primary-gold-hover: #dfc49c;
    --text-color: #f3f3f3;
    --text-muted: #a0a0a8;
}

.theme-toggle-btn {
    background: rgba(197, 168, 128, 0.08);
    border: 1px solid var(--border-color);
    color: var(--primary-gold);
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background: var(--border-color);
    color: var(--text-color);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    margin-left: 6px;
}
.badge-yellow {
    background: #eab308;
    color: #1c1917;
}

.sidebar-social-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 1.2rem 0;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}
.sidebar-social-container a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
}
.sidebar-social-container a:hover {
    color: var(--primary-gold);
    transform: translateY(-2px);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Background elements */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.04) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 0;
}
.glow-1 { top: -200px; left: -100px; }
.glow-2 { bottom: -200px; right: -100px; }

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(197, 168, 128, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}

/* --- Mobile Header & Toggles --- */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--bg-sidebar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 1.5rem;
    align-items: center;
    justify-content: flex-start;
    z-index: 1000;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--primary-gold);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
}

/* --- Sidebar (Left Navigation) --- */
aside {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid var(--border-color);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: var(--transition);
}

.sidebar-header {
    padding: 2.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.sidebar-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
    letter-spacing: 1px;
}

.sidebar-logo span {
    font-size: 0.9rem;
    display: block;
    font-family: 'Inter', sans-serif;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 5px;
    text-transform: uppercase;
}

.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1rem;
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin-bottom: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.9rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.menu-link:hover, .menu-item.active > .menu-link {
    color: var(--text-color);
    background: rgba(197, 168, 128, 0.08);
    border-color: rgba(197, 168, 128, 0.15);
}

.menu-link i {
    font-size: 1.1rem;
}

.menu-link .arrow {
    font-size: 0.8rem;
    transition: var(--transition);
}

.menu-item.open > .menu-link .arrow {
    transform: rotate(90deg);
}

/* Submenu */
.submenu {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
    display: none;
}

.menu-item.open > .submenu {
    display: block;
}

.submenu-link {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.submenu-link:hover, .submenu-item.active > .submenu-link {
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.02);
}

/* --- Main Content Area (Right Side) --- */
main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 0.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: 10;
    position: relative;
}

.content-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
    padding: 6rem 2rem;
}

.welcome-logo {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(197,168,128,0.2);
}

.welcome-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Content Details */
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.content-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
    border-left: 2px solid var(--primary-gold);
    padding-left: 10px;
}

.lyrics-box {
    font-size: 1.15rem;
    line-height: 2.2;
    white-space: pre-line;
    color: var(--text-color);
    text-align: center;
    margin: 2.5rem 0;
    font-family: 'Georgia', serif;
}

/* Audio Player */
.audio-player-wrapper {
    background: rgba(197, 168, 128, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.audio-player-wrapper h4 {
    color: var(--primary-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

audio {
    width: 100%;
    outline: none;
}

/* Video Player */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- List of Items --- */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.item-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 20px rgba(197, 168, 128, 0.05);
}

.item-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
}

.item-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.02);
}

/* --- Responsive Layout --- */
@media (max-width: 992px) {
    body {
        flex-direction: column;
        padding-top: 64px;
    }

    aside {
        transform: translateX(-100%);
        height: calc(100vh - 64px);
        top: 64px;
        width: 280px;
    }

    aside.active {
        transform: translateX(0);
    }

    main {
        margin-left: 0;
        padding: 1.5rem;
    }

    .mobile-header {
        display: flex;
    }

    .welcome-screen {
        padding: 3rem 1rem;
    }

    .welcome-logo {
        font-size: 2.2rem;
    }
}
