/* Personal library controls and page. */
body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content .post-status .manga-action.personal-library-status {
	display: flex;
	align-items: stretch;
	gap: 12px;
	margin: 0;
	padding-top: 16px;
}

body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content .post-status .manga-action.personal-library-status::after {
	display: none;
}

body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content .post-status .manga-action.personal-library-status .count-comment {
	display: flex;
	flex: 0 0 88px;
	float: none;
	justify-content: center;
	flex-direction: column;
	width: auto;
	min-width: 0;
	padding: 0 12px 0 0;
	border-right: 1px solid #e1e1e1;
}

body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content .post-status .manga-action.personal-library-status .personal-library-actions {
	flex: 1 1 0;
	align-content: center;
	justify-content: flex-start;
	min-width: 0;
}

.personal-library-actions,
.personal-library-item-group {
	display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.personal-library-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #383838;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.personal-library-action-icon {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.personal-library-action:hover,
.personal-library-action:focus-visible,
.personal-library-action.is-active {
    border-color: #c41f32;
    background: #c41f32;
    color: #fff;
}

.personal-library-action:focus-visible,
.personal-library-clear:focus-visible,
.personal-library-tab:focus-visible,
.personal-library-pagination button:focus-visible {
    outline: 2px solid #c41f32;
    outline-offset: 2px;
}

.personal-library-action:disabled {
	opacity: .58;
	cursor: wait;
}

@media (max-width: 480px) {
	body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content .post-status .manga-action.personal-library-status {
		align-items: stretch;
		flex-direction: column;
	}

	body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content .post-status .manga-action.personal-library-status .count-comment {
		align-items: center;
		flex: 0 0 auto;
		justify-content: flex-start;
		flex-direction: row;
		gap: 8px;
		width: 100%;
		padding: 0 0 12px;
		border-right: 0;
		border-bottom: 1px solid #e1e1e1;
	}

	body.manga-page .profile-manga .tab-summary .summary_content_wrap .summary_content .post-status .manga-action.personal-library-status .personal-library-action {
		flex: 1 1 auto;
	}
}

.personal-library-episode-actions {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.personal-library-item-group {
    padding: 10px;
    border: 1px solid #d8d8dc;
    border-radius: 6px;
    background: #ebebeb;
}

.personal-library-item-label {
    margin-right: auto;
    color: #686868;
    font-size: 13px;
    font-weight: 700;
}

.personal-library-page {
    min-height: 480px;
    padding: 48px 0 70px;
    background: #f6f6f7;
}

.personal-library-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.personal-library-header h1 {
    margin: 0 0 8px;
    color: #1d1d25;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.personal-library-header p {
    margin: 0;
    color: #686868;
}

.personal-library-header .personal-library-eyebrow {
    margin: 0 0 7px;
    color: #c41f32;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.personal-library-clear {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #c41f32;
    border-radius: 5px;
    background: transparent;
    color: #d9202b;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.personal-library-clear:hover,
.personal-library-clear:focus-visible {
    border-color: #c41f32;
    background: #c41f32;
    color: #fff;
}

.personal-library-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    overflow-x: auto;
    border-bottom: 1px solid #dedede;
}

.personal-library-tab {
    flex: 0 0 auto;
    padding: 13px 16px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5f5f66;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.personal-library-tab.is-active {
    border-bottom-color: #c41f32;
    color: #1d1d25;
}

.personal-library-tab:hover,
.personal-library-tab:focus-visible {
    border-bottom-color: #c41f32;
    background: #c41f32;
    color: #fff;
}

.personal-library-tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    margin-left: 5px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e7e7e9;
    font-size: 11px;
}

.personal-library-tab:hover span,
.personal-library-tab:focus-visible span {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.personal-library-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin: 0 0 20px;
}

.personal-library-tools label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.personal-library-tools select {
    min-width: 140px;
    height: 40px;
    padding: 0 34px 0 12px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background-color: #fff;
}

.personal-library-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.personal-library-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .04);
}

.personal-library-card-link {
    display: block;
    color: #1d1d25;
    text-decoration: none;
}

.personal-library-card-link img,
.personal-library-card-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #dedee1;
    object-fit: cover;
}

.personal-library-card h3 {
    margin: 0;
    padding: 14px 14px 5px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    transition: color .2s ease;
}

.personal-library-card-link:hover h3,
.personal-library-card-link:focus-visible h3 {
    color: #eb3349;
}

.personal-library-card p {
    margin: 0;
    padding: 0 14px 15px;
    color: #777;
    font-size: 12px;
}

.personal-library-card-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(20, 20, 24, .82);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.personal-library-empty {
    margin: 30px 0;
    padding: 42px 20px;
    border: 1px dashed #d2d2d5;
    border-radius: 7px;
    background: #fff;
    color: #777;
    text-align: center;
}

.personal-library-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.personal-library-pagination button {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 5px;
    background: #1d1d25;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.personal-library-page[aria-busy="true"] .personal-library-grid {
    opacity: .62;
}

.nav-links {
    padding-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

@media (max-width: 991px) {
    .personal-library-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .personal-library-episode-actions {
        grid-template-columns: 1fr;
    }

    .personal-library-header {
        align-items: stretch;
        flex-direction: column;
    }

    .personal-library-clear {
        align-self: flex-start;
    }

    .personal-library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .personal-library-item-group {
        align-items: stretch;
    }

    .personal-library-item-label {
        width: 100%;
    }

    .personal-library-action {
        flex: 1 1 auto;
        padding-right: 9px;
        padding-left: 9px;
    }

    .personal-library-page {
        padding: 30px 0 50px;
    }
}

.menu_icon__open:hover {
    background: none;
}
