.poetry-card {
    position: relative;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    background: linear-gradient(to right, #A8E6CF, #FFF8E1) !important;
}

.poem-title {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 32px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 16px;
    color: #2E8B57 !important;
    text-shadow: 0 0 10px rgba(255, 248, 225, 0.5);
    transition: all 0.3s ease-in-out;
}

.poem-title:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(199, 21, 133, 0.7);
}

.poem-line {
    position: relative;
    z-index: 10;
    padding: 10px;
    background: rgba(255, 248, 225, 0.2) !important;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #6B9F6B !important;
    font-family: 'Vazirmatn', sans-serif;
    transition: all 0.5s ease-in-out;
}

.poem-line:hover {
    background: rgba(199, 21, 133, 0.2) !important;
    box-shadow: 0 0 20px rgba(199, 21, 133, 0.4);
    transform: translateY(-10px) scale(1.1);
}

.poem-footer {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    color: rgba(107, 159, 107, 0.8) !important;
}

.poem-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, transparent, rgba(199, 21, 133, 0.3));
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 5;
}

.poetry-card:hover .poem-overlay {
    opacity: 0.3;
}

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

.poem-line:nth-child(1) { animation: float 3s infinite; }
.poem-line:nth-child(2) { animation: float 3.5s infinite; }
.poem-line:nth-child(3) { animation: float 4s infinite; }
.poem-line:nth-child(4) { animation: float 4.5s infinite; }
.poem-line:nth-child(5) { animation: float 5s infinite; }
.poem-line:nth-child(6) { animation: float 5.5s infinite; }

.music-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #FFF8E1 !important;
    color: #C71585 !important;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    transition: background 0.3s ease;
    z-index: 20;
}

.music-toggle:hover {
    background: rgba(199, 21, 133, 0.2) !important;
}

.poetry-error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid red;
    border-radius: 8px;
    padding: 16px;
}