.poetry-listing {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
}

.poetry-listing .section-header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.poetry-layout {
    display: flex;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    min-height: 100vh;
}

.poetry-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
    width: 260px;
    flex-shrink: 0;
    padding-right: 40px;
    border-right: 1px solid var(--border);
}

.poetry-sidebar h2 {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.poetry-sidebar .sidebar-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.poetry-sidebar .sidebar-list li a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-left: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.poetry-sidebar .sidebar-list li a:hover,
.poetry-sidebar .sidebar-list li a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background: rgba(255, 255, 255, 0.03);
}

.poetry-sidebar .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    transition: color 0.3s ease, gap 0.3s ease;
}

.poetry-sidebar .back-link:hover {
    color: var(--accent);
    gap: 12px;
}

.poetry-content {
    flex: 1;
    padding-left: 50px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.poem-block {
    padding: 40px 0;
}

.poem-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    justify-content: center;
}

.poem-header h3 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent);
}

.poem-ig-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.poem-ig-link:hover {
    color: var(--accent);
    transform: scale(1.15);
}

.poem-ig-link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.poem-ig-link svg circle.ig-dot {
    fill: currentColor;
    stroke: none;
}

.poem-text {
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 2;
    max-width: 600px;
    white-space: pre-line;
}

.poem-text em {
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 900px) {
    .poetry-layout {
        flex-direction: column;
        padding-top: 100px;
    }

    .poetry-sidebar {
        position: relative;
        top: auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-right: 0;
        padding-bottom: 0;
        margin-bottom: 20px;
    }

    .poetry-sidebar h2 {
        display: none;
    }

    .sidebar-toggle {
        display: flex;
    }

    .poetry-sidebar .sidebar-list {
        flex-direction: column;
        max-height: 400px;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        padding: 10px 0;
    }

    .poetry-sidebar .sidebar-list.collapsed {
        max-height: 0;
        padding: 0;
    }

    .poetry-sidebar .sidebar-list li a {
        padding: 12px 16px;
        font-size: 0.8rem;
    }

    .poetry-content {
        padding-left: 0;
    }
}