@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');
.manga {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: white;
    padding: 10px 20px;
    position: relative;
}

.manga-container {
    display: flex;
    justify-content: space-between;
    width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.left-column {
    display: flex;
    flex-direction: column;
    flex: 2;
    gap: 20px;
}

.popular-manga-container,
.latest-manga-container {
    gap: 38px;
    padding: 10px;
    border-radius: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    width: 100%;
}

.top-manga-container {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    height: 100%;
    margin-top: 15px;
}

.top-manga-item .manga-title {
    font-family: 'Noto Sans JP', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: left;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-manga-item.first {
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    background-color: #1e1e1e;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 8px;
}

.top-manga-item.first::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.top-manga-item.first img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.top-manga-item.first .rank {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    z-index: 2;
}

.top-manga-item.first .manga-title {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
    z-index: 2;
}

.top-manga-item.first .manga-rating {
    font-size: 14px;
    color: #ffc107;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.top-manga-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #444;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.top-manga-item:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.top-manga-item .hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
}

.top-manga-item:hover .hover-overlay {
    opacity: 1;
}

.top-manga-item .hover-overlay .overlay-content {
    text-align: center;
    color: #fff;
    padding: 15px;
}

.top-manga-item .hover-overlay .overlay-title {
    font-family: 'Noto Sans JP', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.top-manga-item .hover-overlay .overlay-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 14px;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.top-manga-item .rank {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #888;
    border: 1px solid #888;
    border-radius: 3px;
    margin-right: 15px;
}

.top-manga-item .image-container {
    width: 60px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.top-manga-item .image-container img {
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

.top-manga-item .manga-title {
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.top-manga-item {
    font-size: 14px;
    color: #888;
    text-align: left;
}

.top-manga-item .manga-rating {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #ffc107;
}

.top-manga-item .manga-rating .manga-star {
    margin-left: 0px;
    width: 16px;
    height: 16px;
    margin-right: 0px;
}

.top-manga-container h3.manga-title {
    background: #fff !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: goldShimmer 2.5s linear infinite !important;
}

.manga-popular-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 10px;
    padding: 0 10px;
}

.manga-latest-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 10px;
    margin-top: 10px;
    padding: 0;
}

.manga-top-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 10px;
    padding: 0;
}

.manga-series-list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 15px;
    padding: 0;
}

.manga-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
    margin: 0;
    margin-bottom: 15px;
    text-align: center;
    border-radius: 8px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manga-item-fake {
    flex: 0 1 calc(25% - 20px);
    max-width: calc(25% - 20px);
    margin: 0;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manga-item {
    cursor: pointer;
}

.manga-item img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.manga-item:hover {
    transform: none;
    box-shadow: none;
}

.manga-item:hover img {
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

.manga-item:hover .manga-title {
    color: #ffc107;
    transition: color 0.3s ease;
}

.manga-title {
    font-family: 'Noto Sans JP', 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: left;
    margin-bottom: 5px;
    line-height: 1.2em;
    display: block;
    padding-bottom: 2px;
    letter-spacing: 0.5px;
}

.manga-item .manga-title {
    color: #fff;
}

.latest-manga-container .manga-item,
.popular-manga-container .manga-item {
    position: relative;
}

.latest-manga-container .manga-item img,
.popular-manga-container .manga-item img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: filter 0.3s ease;
}

.latest-manga-container .manga-item .rating-overlay,
.popular-manga-container .manga-item .rating-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    padding: 15px;
    box-sizing: border-box;
}

.latest-manga-container .manga-item:hover .rating-overlay,
.popular-manga-container .manga-item:hover .rating-overlay {
    opacity: 1;
}

.latest-manga-container .manga-item:hover img,
.popular-manga-container .manga-item:hover img {
    filter: brightness(0.4);
}

.latest-manga-container .rating-overlay .rating-content,
.popular-manga-container .rating-overlay .rating-content {
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

.latest-manga-container .rating-overlay .overlay-title,
.popular-manga-container .rating-overlay .overlay-title {
    font-family: 'Noto Sans JP', 'Arial', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.2em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}


.latest-manga-container .rating-overlay .rating-row,
.popular-manga-container .rating-overlay .rating-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
}

.latest-manga-container .rating-overlay .stars,
.popular-manga-container .rating-overlay .stars {
    display: flex;

    gap: 1px;
}

.latest-manga-container .rating-overlay .manga-star,
.popular-manga-container .rating-overlay .manga-star {
    width: 16px;
    height: 16px;
}

.latest-manga-container .rating-overlay .manga-star.full,
.popular-manga-container .rating-overlay .manga-star.full {
    fill: #ffc107;
}

.latest-manga-container .rating-overlay .manga-star.empty,
.popular-manga-container .rating-overlay .manga-star.empty {
    fill: #444;
}

.latest-manga-container .rating-overlay .rating-number,
.popular-manga-container .rating-overlay .rating-number {
    font-size: 15px;
    font-weight: bold;
    color: #ffc107;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    min-width: 25px;
}

.popular-manga-container .manga-rating-container {
    display: flex;
    align-items: center;
    justify-content: center !important;
    margin-top: 0px;
    gap: 8px;
}

.simple-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    width: 100%;
}

.nav-btn {
    display: flex;
    align-items: center;
    background: #ffffff;
    color: #000000;
    padding: 8px 20px;
    border-radius: 2px;
    font-size: 13px;
    width: 110px;
    height: 32px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    margin: 0 2px;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

.nav-btn:hover:not(.disabled) {
    background: #f0f0f0;
    color: #000000;
    text-decoration: none;
}

.nav-btn:active:not(.disabled) {
    background: #e0e0e0;
}

.nav-btn.disabled {
    background: #666666;
    color: #999999;
    cursor: not-allowed;
    pointer-events: none;
}

.prev-btn svg {
    margin-right: 4px;
    width: 16px;
    height: 16px;
}

.next-btn svg {
    margin-left: 4px;
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .simple-pagination {
        padding: 15px;
    }
    
    .nav-btn {
        width: 100px;
        font-size: 12px;
        padding: 6px 16px;
    }
}

@media (max-width: 480px) {
    .simple-pagination {
        padding: 15px 10px;
    }
    
    .nav-btn {
        width: 90px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

.manga-rating-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 5px;
}

.stars {
    margin-right: 5px;
    display: flex;
    align-items: center;
}

.manga-star {
    height: 20px;
    width: 20px;
    color: yellow;
    fill: yellow;
}

.manga-rating {
    font-size: 14px;
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 0px;
}

.rating, .author {
    font-size: 14px;
    color: #ccc;
}

.no-data {
    font-size: 18px;
    color: #ccc;
    text-align: center;
    font-style: italic;
}

.divider {
    height: 1px;
    background-color: #fff;
    margin: 5px 0;
}

.toggle-description {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
}

.approval-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.approval-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.approval-buttons .btn-success {
    background-color: #28a745;
    color: #fff;
    border: none;
}

.approval-buttons .btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
}

.approval-buttons .btn:hover {
    opacity: 0.9;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2a2a2a;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 0;
    display: none;
    border: 1px solid #444;
}

#add-manga-popup[style*="display: block"],
#add-manga-popup.show {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
}

.popup-overlay.show {
    display: block;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.popup-content {
    padding: 40px;
    max-width: 90vw;
}

.popup h5 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    text-align: center;
    color: #fff;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-bottom: 15px;
    border-bottom: 2px solid #444;
}

.popup .close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup .close-btn:hover {
    background: rgba(147, 51, 234, 0.2);
    color: #9333ea;
    transform: rotate(90deg);
}

.popup form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.popup label {
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: -12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.popup input[type="text"],
.popup input[type="file"],
.popup textarea,
.popup select {
    width: 100%;
    padding: 16px 18px;
    margin: 0;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.popup input[type="text"]:focus,
.popup input[type="file"]:focus,
.popup textarea:focus,
.popup select:focus {
    outline: none;
    border-color: #9333ea;
    background-color: #252525;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.popup input[type="text"]:hover,
.popup textarea:hover,
.popup select:hover {
    border-color: #555;
}

.popup input[type="file"] {
    padding: 12px;
    cursor: pointer;
}

.popup input[type="file"]::file-selector-button {
    background-color: #444;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.popup input[type="file"]::file-selector-button:hover {
    background-color: #555;
}

.popup select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.popup select option {
    background-color: #1e1e1e;
    color: #fff;
    padding: 10px;
}

.popup small {
    display: block;
    color: #888;
    font-size: 13px;
    margin-top: -15px;
    font-style: italic;
}

.popup button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.popup button[type="submit"]:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.popup button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        padding: 25px;
    }
    
    .popup h5 {
        font-size: 20px;
        margin-bottom: 22px;
    }
    
    .popup form {
        gap: 18px;
    }
    
    .popup input[type="text"],
    .popup input[type="file"],
    .popup textarea,
    .popup select {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .popup button[type="submit"] {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .popup-content {
        padding: 18px;
    }
    
    .popup h5 {
        font-size: 18px;
    }
    
    .popup .close-btn {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 24px;
    }
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #666;
}

.popular-manga-container {
    margin-top: 15px;
    gap: 38px;
    padding: 10px;
    border-radius: 8px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    width: 100%;
}

.series-header .manga-title {
    margin-bottom: 0 !important;
}

.series-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 5px;
}

.series-header .manga-title {
    margin-bottom: 0 !important;
}

.filter-container {
    position: relative;
    display: inline-block;
    margin-left: auto;
}

.filter-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.filter-icon {
    width: 18px;
    height: 18px;
    fill: #fff;
    stroke: #fff;
    stroke-width: 1.5;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.filter-button:hover .filter-icon {
    fill: #ffc107;
    stroke: #ffc107;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.filter-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid #444;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: none;
    border: none;
    color: #ccc;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 0;
}

.filter-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-option.active {
    background-color: #ffc107;
    color: #000;
    font-weight: 500;
}

.filter-option:first-of-type {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.filter-option:last-of-type {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.filter-option .sort-indicator {
    float: right;
    font-size: 12px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .series-header {
        gap: 10px;
    }
    
    .filter-icon {
        width: 16px;
        height: 16px;
    }
    
    .filter-dropdown {
        min-width: 180px;
    }
}

.popular-manga-container h3.manga-title,
.latest-manga-container h3.manga-title,
.top-manga-container h3.manga-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    text-align: left !important;
    margin-bottom: 8px !important;
    line-height: 1.2em !important;
    display: block !important;
    padding-bottom: 5px !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
    margin-top: 0 !important;
}

.popular-manga-container h3.manga-title {
    background: #fff !important;
    background-size: 400% 400% !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    animation: popularGradient 3s ease-in-out infinite !important;
    margin-top: 10px !important;
    margin-left: 5px !important;
}

.latest-manga-container h3.manga-title {
    color:  #fff !important;
    background: none !important;
    margin-left: 5px !important;
    margin-top: 10px !important;
}

@keyframes popularGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (max-width: 768px) {
    .popular-manga-container h3.manga-title,
    .latest-manga-container h3.manga-title,
    .top-manga-container h3.manga-title {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 480px) {
    .popular-manga-container h3.manga-title,
    .latest-manga-container h3.manga-title,
    .top-manga-container h3.manga-title {
        font-size: 18px !important;
        letter-spacing: 0.8px !important;
    }
}