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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #fafafa;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2rem;
    letter-spacing: 0.05em;
    font-weight: 400;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.subtitle {
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

#poems-container {
    max-width: 720px;
    width: 100%;
}

.poem {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}

.poem:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.poem-title {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
    border-left: 3px solid #333;
    padding-left: 1rem;
}

.poem-text {
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 1rem;
}

.poem-author {
    text-align: right;
    font-style: italic;
    color: #777;
    font-size: 0.95rem;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}

footer {
    margin-top: 3rem;
    color: #aaa;
    font-size: 0.85rem;
}

/* Admin button */
#admin-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #222;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

#admin-btn:hover {
    transform: scale(1.1);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-content h2 {
    margin-bottom: 1rem;
    font-weight: 400;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.modal-content textarea {
    min-height: 120px;
    resize: vertical;
}

.modal-content button {
    margin: 0.5rem 0.25rem 0 0;
    padding: 0.5rem 1.5rem;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.modal-content button:hover {
    background: #444;
}

.modal-content button#cancel-password,
.modal-content button#close-admin {
    background: #bbb;
    color: #222;
}

.modal-content button#cancel-password:hover,
.modal-content button#close-admin:hover {
    background: #999;
}

.modal-content .error {
    color: #c33;
    margin-top: 0.5rem;
}

#admin-poem-list .admin-poem-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

#admin-poem-list .admin-poem-item span {
    font-size: 0.95rem;
}

#admin-poem-list .admin-poem-item button {
    background: #c33;
    color: #fff;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
}

#admin-poem-list .admin-poem-item button:hover {
    background: #a22;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.5rem;
    }
    .poem {
        padding: 1.25rem;
    }
}