.stories-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.story-card {
    background: rgba(26, 26, 46, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(138, 43, 226, 0.2);
}
.story-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(138, 43, 226, 0.4);
    border-color: rgba(138, 43, 226, 0.4);
}
.story-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}
.story-info {
    padding: 20px;
}
.story-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e0c3fc;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}
.story-author {
    color: #8ec5fc;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}
.author-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 24, 0.95);
    z-index: 1000;
    overflow-y: auto;
    padding: 30px 0;
}
.modal-content {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.3);
}
.modal-header {
    padding: 25px;
    background: linear-gradient(to right, #6A5ACD, #8A2BE2);
    position: relative;
}
.modal-title {
    color: white;
    font-size: 2rem;
    margin: 0;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.modal-body {
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
}
.modal-cover {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(138, 43, 226, 0.3);
}
.modal-details {
    flex: 1;
    min-width: 300px;
}
.modal-author {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}
.modal-author-name {
    font-size: 1.3rem;
    color: #8ec5fc;
    margin-left: 15px;
}
.modal-description {
    background: rgba(18, 18, 37, 0.6);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    line-height: 1.7;
    border: 1px solid rgba(106, 90, 205, 0.3);
}
.modal-age {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 30px;
    font-weight: bold;
    color: #e0c3fc;
}
.age-18 { background: rgba(255, 82, 82, 0.2); }
.age-16 { background: rgba(255, 193, 7, 0.2); }
.age-12 { background: rgba(76, 175, 80, 0.2); }
.age-0 { background: rgba(33, 150, 243, 0.2); }
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-cover {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
    .stories-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}