/* style.css */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
}

.filter select {
    margin: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.weekdays {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.weekdays button {
    margin: 5px;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.weekdays button.active, .weekdays button:hover {
    background-color: #0056b3;
}

.anime-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.anime-item {
    margin: 10px;
    text-align: center;
    width: calc(100% / 7 - 20px);
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.anime-item:hover {
    transform: translateY(-5px);
}

.anime-item img {
    width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.popup h2 {
    margin-top: 0;
}

.popup a {
    display: inline-block;
    margin: 10px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.popup a:hover {
    background-color: #0056b3;
}

.popup .close-popup {
    display: inline-block;
    padding: 5px 10px;
    background-color: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup .close-popup:hover {
    background-color: #cc0000;
}

@media (max-width: 768px) {
    .anime-item {
        width: calc(100% / 3 - 20px);
    }
}

@media (max-width: 480px) {
    .anime-item {
        width: calc(100% / 2 - 20px);
    }

    .weekdays button {
        padding: 5px 10px;
    }
}
.modal-overlay {
    display: none; /* 默认不显示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* 半透明黑色 */
    z-index: 999; /* 确保它位于其他内容之上，但低于弹窗 */
}.popup {
    /* 省略其他样式 */
    z-index: 1000; /* 确保它位于遮罩层之上 */
}