.main-content {
    margin-left: 95px;
    padding: 2rem;
    min-height: 100vh;
    transition: var(--transition);
}

.book-card {
    background: transparent;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    text-align: left;
}

.book-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.book-card:hover .book-cover-wrapper {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.book-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f8fafc;
    transition: var(--transition);
}

.book-lang-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}

.book-lang-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.book-stat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.book-stat-badge i {
    font-size: 0.7rem;
    color: var(--primary-color);
}

.book-info {
    padding: 0.8rem 0 0 5px;
}

.book-author-title {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-name {
    font-weight: 700;
    color: var(--text-main);
}

.separator {
    color: var(--text-muted);
    margin: 0 4px;
}

.title-text {
    font-weight: 400;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Premium Download Button */
.dl-button {
    --duration: 3000;
    --success: #3cc368;
    --grey-light: #99A3BA;
    --grey: #2c3e50;
    --grey-dark: #2c3e50;
    --light: #CDD9ED;
    position: absolute;
    bottom: 12px;
    right: 12px;
    text-decoration: none;
    perspective: 500px;
    z-index: 20;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dl-button:hover {
    transform: scale(1.05);
}

.dl-button>div {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    padding: 6px 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.dl-button .icon {
    --color: var(--grey);
    margin-right: 6px;
    position: relative;
    transform: translateZ(8px);
}

.dl-button .icon div {
    overflow: hidden;
    position: relative;
    width: 18px;
    height: 20px;
}

.dl-button .icon div:before,
.dl-button .icon div:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    top: 2px;
    transition: opacity .3s ease;
}

.dl-button .icon div:before {
    left: 5px;
    background-image: radial-gradient(circle at 0 100%, var(--color) 2px, #fff 0px);
}

.dl-button .icon div:after {
    right: 5px;
    background-image: radial-gradient(circle at 100% 100%, var(--color) 2px, #fff 0px);
}

.dl-button .icon svg {
    width: 18px;
    height: 16px;
    display: block;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.dl-button .icon svg.arrow {
    color: #fff;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    transform: translateY(-1px);
}

.dl-button .icon svg.shape {
    color: var(--color);
    transition: color .4s ease;
}

.dl-button .icon span {
    --s: 1;
    position: absolute;
    left: 1px;
    right: 1px;
    bottom: 2px;
    background: var(--color);
    height: 4px;
    border-radius: 50%;
    display: block;
    transform: translateY(0) scale(var(--s));
}

.dl-button .label {
    --color: var(--grey-dark);
    line-height: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color);
    position: relative;
    transition: color 0.4s ease, width 0.3s ease;
    transform: translateZ(8px);
    overflow: hidden;
    white-space: nowrap;
}

.dl-button .label>div {
    display: flex;
    align-items: center;
    transition: opacity .25s ease;
    white-space: nowrap;
}

.dl-button .label>div:not(.show) {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.dl-button .label>div.hide {
    opacity: 0;
}

.dl-button .label .counter {
    overflow: hidden;
    display: flex;
    height: 18px;
    line-height: 18px;
    position: relative;
    transition: opacity .3s ease;
}

.dl-button .label .counter:before,
.dl-button .label .counter:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1;
}

.dl-button .label .counter:before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.dl-button .label .counter:after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.dl-button .label .counter span {
    display: inline-block;
    margin: 0 4px 0 2px;
}

.dl-button .label .counter ul {
    --y: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 9px;
    height: 18px;
    transform: translateY(var(--y)) translateZ(0);
}

.dl-button .label .counter ul:nth-child(1) {
    transition: transform calc(var(--duration) * .2ms) ease-in-out;
}

.dl-button .label .counter ul:nth-child(2) {
    transition: transform calc(var(--duration) * .8ms) ease-in-out;
}

.dl-button .label .counter ul:nth-child(3) {
    transition: transform calc(var(--duration) * .8ms) ease-in-out;
}

.dl-button .label .counter ul li {
    width: 9px;
    height: 18px;
}

.dl-button .progress {
    --s: 0;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    transform-origin: 50% 100%;
    transform: scaleY(var(--s));
    transition: transform .4s ease;
}

.dl-button .progress:before,
.dl-button .progress:after {
    --sx: 1;
    content: '';
    background: var(--success);
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    transform-origin: 0 50%;
    transform: scaleX(var(--sx));
}

.dl-button .progress:before {
    opacity: .35;
}

.dl-button .progress:after {
    --sx: 0;
    transition: transform calc(var(--duration) * .9ms) ease-in-out;
}

.dl-button.active>div {
    animation: button-anim calc(var(--duration) * 1ms) linear forwards;
}

.dl-button.active .icon div:before,
.dl-button.active .icon div:after {
    opacity: 0;
    transition-delay: .4s;
}

.dl-button.active .icon svg.arrow {
    animation: arrow-anim calc(var(--duration) * .18ms) linear 4 calc(var(--duration) * .2ms);
}

.dl-button.active .icon span {
    animation: span-anim calc(var(--duration) * .18ms) linear 4 calc(var(--duration) * .2ms);
}

.dl-button.active .label .counter ul:nth-child(1) {
    --y: -18px;
    transition-delay: calc(var(--duration) * .72ms);
}

.dl-button.active .label .counter ul:nth-child(2) {
    --y: -180px;
    transition-delay: calc(var(--duration) * .09ms);
    animation: motion-anim calc(var(--duration) * .5ms) linear forwards calc(var(--duration) * .19ms);
}

.dl-button.active .label .counter ul:nth-child(3) {
    --y: -540px;
    transition-delay: calc(var(--duration) * .075ms);
    animation: motion-anim calc(var(--duration) * .8ms) linear forwards calc(var(--duration) * .075ms);
}

.dl-button.active .progress {
    --s: 1;
    transition-delay: .4s;
}

.dl-button.active .progress:after {
    --sx: 1;
    transition-delay: .4s;
}

.dl-button.done .icon {
    --color: var(--success);
}

.dl-button.done .label {
    --color: var(--success);
}

.dl-button.done .label .counter {
    display: none;
}

@keyframes arrow-anim {
    38% {
        transform: translateY(100%);
        opacity: 1;
    }

    39% {
        transform: translateY(100%);
        opacity: 0;
    }

    40% {
        transform: translateY(-100%);
        opacity: 0;
    }

    41% {
        transform: translateY(-100%);
        opacity: 1;
    }

    100% {
        transform: translateY(-1px);
        opacity: 1;
    }
}

@keyframes span-anim {
    25% {
        transform: translateY(2px) scale(var(--s));
    }

    55% {
        transform: translateY(2px) scale(var(--s));
    }

    80%,
    100% {
        transform: translateY(0) scale(var(--s));
    }
}

@keyframes motion-anim {

    20%,
    70% {
        filter: blur(.4px);
    }
}

@keyframes button-anim {
    0% {
        transform: translateX(0) scale(1) rotateY(0deg);
    }

    10% {
        transform: translateX(0) scale(.96) rotateY(0deg);
    }

    20% {
        transform: translateX(-4px) scale(1) rotateY(-8deg);
    }

    85% {
        transform: translateX(4px) scale(1) rotateY(8deg);
    }

    95% {
        transform: translateX(0) scale(1.05) rotateY(0deg);
    }

    100% {
        transform: translateX(0) scale(1) rotateY(0deg);
    }
}