:root {
    --ink: #1a1a1a;
    --paper: #fdfdfc;
    --gold: #9d8053;
    --emerald: #1b5e20;
    --font-main: 'Crimson Pro', serif;
    --font-title: 'Playfair Display', serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--paper);
    color: var(--ink);
    line-height: 1.6;
}

.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-family: var(--font-title);
    font-size: 4rem;
    margin: 0;
    font-weight: 900;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--gold);
    margin-top: 5px;
    font-style: italic;
}

.main-layout {
    display: flex;
    gap: 60px;
}

.trope-sidebar { flex: 1; }
.trope-sidebar h3 { font-family: var(--font-title); font-size: 1.6rem; border-bottom: 1px solid #eee; padding-bottom: 10px; }

#trope-list { list-style: none; padding: 0; }
#trope-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.2s;
}
#trope-list li:hover { color: var(--gold); }
#trope-list li.selected { font-weight: bold; color: var(--emerald); }

.visualizer { flex: 2; text-align: center; }
.frame-container { background: transparent; margin-bottom: 40px; }
#trope-frame { max-width: 100%; height: auto; }

#play-btn {
    background: var(--ink);
    color: white;
    padding: 20px 80px;
    font-family: var(--font-title);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
}

.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 2000; display: flex; align-items: center; justify-content: center; }
.modal-content { max-width: 600px; text-align: center; }
.donate-button { display: inline-block; background: var(--emerald); color: white; padding: 18px 35px; text-decoration: none; font-weight: bold; margin: 30px 0; }