/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-red: #cc0000;
    --dark-red: #990000;
    --light-red: #ff3333;
    --red-gradient: linear-gradient(135deg, #cc0000 0%, #990000 50%, #800000 100%);
    --red-gradient-light: linear-gradient(135deg, rgba(204, 0, 0, 0.1) 0%, rgba(153, 0, 0, 0.1) 100%);
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-secondary: #4a5568;
    --bg-light: #f9f9f9;
    --bg-gradient: linear-gradient(180deg, #ffffff 0%, #f9f9f9 100%);
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-red: 0 4px 20px rgba(204, 0, 0, 0.25);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 0.51rem;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.section-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 2rem) 0 0 0;
}

/* Header Styles */
.header {
    background: #0f1013;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.51rem 0.51rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-container .nav-right {
    margin-left: auto;
}

.logo {
    padding-right: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.logo img {
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.2rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    margin-left: 0.5rem;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-right {
    display: flex;
    align-items: center;
    position: relative;
    gap: 0.5rem;
}

.search-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.85);
    border-radius: 999px;
}

.search-btn:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

.search-icon {
    font-size: 1.1rem;
}

.search-box {
    position: absolute;
    top: 130%;
    right: 0;
    max-width: 90vw;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box {
    position: absolute;
    top: 130%;
    right: 0;
    max-width: 90vw;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-box.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-box.active .search-submit {
    margin-top: calc((2.5rem - 40px) / 2);
}

.search-form {
    display: flex;
    gap: 0;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    border: 1px solid #000000;
    border-radius: 0;
    border-right: none;
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: #000000;
    background: #ffffff;
    transition: all 0.3s ease;
    height: 40px;
    box-sizing: border-box;
    max-width: 300px;
    min-width: 200px;
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

.search-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.search-submit {
    padding: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-red);
    color: #ffffff;
    border: 1px solid #000000;
    border-left: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-indent: -9999px;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
}

.search-submit:hover {
    background: var(--dark-red);
}

.search-submit i {
    text-indent: 0;
    display: block;
    color: #ffffff;
}

.search-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    color: #ffffff;
}

/* Featured Slider Section */
.featured-slider {
    background: var(--bg-gradient);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 0;
    box-shadow: var(--shadow-md);
    background: var(--primary-red);
    width: 100%;
    max-width: 100%;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
    max-width: 100%;
}

.slide {
    min-width: 100%;
    flex-shrink: 0;
    max-width: 100%;
    overflow: hidden;
}

.slide-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(clamp(100px, 18vw, 260px), clamp(140px, 22vw, 260px));
    gap: clamp(0.75rem, 2.5vw, 3rem);
    align-items: center;
    padding: clamp(0.3rem, 1vw, 0.8rem) clamp(1rem, 3vw, 1.5rem) clamp(0.3rem, 1vw, 0.8rem) clamp(2rem, 5vw, 4rem);
    background: transparent;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.slide-image {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    order: 2;
    height: 100%;
    align-self: stretch;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.slide-image .book-cover-wrapper {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-red) !important;
    padding: 0 !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}

.slide-image .book-cover-wrapper::before {
    display: none !important;
}

.slide-image .book-cover {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
    border-radius: 0 !important;
    border: 1px solid;
    box-sizing: border-box;
}

.slide-video {
    order: 2;
}

.slide-video iframe {
    width: 100%;
    height: 360px;
    border-radius: 16px;
}

.slide-info {
    padding: 0.5rem 0;
    order: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    align-items: center;
    justify-items: start;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.slide-info-bottom {
    grid-row: 3;
    align-self: end;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.2vw, 1.2rem);
    padding-bottom: 0.5rem;
}

.slide-synopsis {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.75rem, 2.2vw, 1.7rem);
    font-weight: 600;
    line-height: 1.7;
    color: #ffffff;
    max-width: clamp(280px, 50vw, 640px);
    margin-bottom: 0;
    grid-row: 1;
    align-self: start;
    padding-top: clamp(0.5rem, 1.5vw, 2.5rem);
}

.slide-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.1rem, 4vw, 2.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    display: inline-block;
    grid-row: 2;
    align-self: center;
    margin: 0;
    word-break: break-word;
    hyphens: auto;
    max-width: 100%;
}

.slide-author {
    font-size: clamp(0.75rem, 2.2vw, 1.7rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: 0;
    margin-top: -1rem;
}

.slide-author::before {
    content: 'By ';
}

.slide-btn {
    display: inline-block;
    padding: clamp(0.15rem, 0.4vw, 0.25rem) clamp(0.5rem, 1.2vw, 1rem);
    background: #0f1013;
    color: #ffffff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(0.55rem, 1vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    width: fit-content;
    white-space: nowrap;
}

.slide-info .slide-btn {
    margin: 0;
    display: inline-block;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    background: #1d1f24;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0;
    background: #0f1013;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.slider-btn {
    width: 36px;
    height: 36px;
    background: #0f1013;
    border: 1px solid #ffffff;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slider-btn i {
    font-size: inherit;
    line-height: 1;
}

.slider-btn-pause .pause-icon,
.slider-btn-pause .play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.7);
}

/* Section Styles */
.section {
    position: relative;
}

.section:nth-child(even) {
    background: none;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
}

.section-header {
    margin-bottom: 1rem;
    text-align: left;
}

.section-title {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--text-dark);
    text-align: left;
    position: relative;
    padding-bottom: 0;
    display: block;
    width: 100%;
}

.section-title span {
    background: var(--primary-red);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000000;
}

/* Book Grid */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2rem;
    margin-top: 0;
    align-items: stretch;
}

.book-grid .book-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-self: stretch;
}

.book-grid.home-book-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.book-grid.genres-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
}

.book-card {
    text-align: left;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.book-card a {
    display: grid;
    grid-template-rows: 1fr auto;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.book-cover-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: var(--red-gradient-light);
    box-shadow: 0 10px 7px 0 rgba(0, 0, 0, 0.24);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 2 / 3;
    width: 100%;
    grid-row: 1;
    align-self: end;
}


.book-cover-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 0;
}

.book-cover-wrapper:hover::before {
    opacity: 0.05;
}

.book-cover-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.book-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    z-index: 2;
    object-position: center bottom;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-cover-wrapper:hover .book-cover {
    transform: scale(1.01);
}

/* Placeholder backdrop for missing images */
.book-cover-wrapper:has(img[src=""]) .book-cover,
.book-cover-wrapper:has(img:not([src])) .book-cover,
.book-cover-wrapper:has(img[src*="placeholder"][src*="placeholder"]) .book-cover,
.book-cover[src=""],
.book-cover:not([src]),
.book-cover[src*="placeholder"] {
    background: var(--red-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.75rem;
    text-align: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.book-cover-wrapper:has(img[src*="placeholder"])::before,
.book-cover[src*="placeholder"]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(45deg, 
            rgba(255, 255, 255, 0.08) 0px, 
            rgba(255, 255, 255, 0.08) 1px, 
            transparent 1px, 
            transparent 15px
        );
    opacity: 0.4;
    z-index: 1;
}

/* This is for book grid cards, not book page */
.book-card .book-info {
    display: flex;
    flex-direction: column;
    margin-top: 0.75rem;
    grid-row: 2;
    min-height: 7rem;
}

.book-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
    line-height: 1.4;
    text-align: center;
    flex-shrink: 0;
}

.book-card:hover .book-title {
    color: var(--primary-red);
}

.book-author {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: normal;
    line-height: 1.4;
    text-align: center;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--red-gradient-light);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-title {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.video-description {
    padding: 0 1rem 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.video-description p {
    margin-bottom: 0.5rem;
}

.video-description p:last-child {
    margin-bottom: 0;
}

.video-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: var(--red-gradient);
    overflow: hidden;
    cursor: pointer;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 0px, 
            rgba(255, 255, 255, 0.1) 1px, 
            transparent 1px, 
            transparent 30px
        );
    opacity: 0.3;
    z-index: 1;
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.video-placeholder img[src=""],
.video-placeholder img:not([src]),
.video-placeholder img[src*="placeholder"] {
    opacity: 0;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.play-button i {
    margin-left: 3px;
    font-size: inherit;
    line-height: 1;
}

.play-button::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: var(--red-gradient);
    opacity: 0.2;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.play-button:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--white);
    box-shadow: var(--shadow-lg), var(--shadow-red);
}

.play-button:hover::before {
    opacity: 0.4;
}

/* Book Page Styles */
.breadcrumb {
    background: none;
    padding: 1rem 0.51rem;
}

.breadcrumb nav {
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary-red);
}

.breadcrumb span {
    margin: 0 0.5rem;
}

.breadcrumb nav > span:last-child {
    text-decoration: underline;
    color: var(--text-dark);
}

/* Book Hero Section */
.book-hero {
    padding: 3rem 0 0 0;
}

.book-hero-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 4rem;
    align-items: start;
}

.book-cover-large {
    position: sticky;
    top: 100px;
    align-self: start;
    padding-left: 4rem;
    padding-right: 4rem;
    max-width: 360px;
}

.book-cover-large-wrapper {
    width: 100%;
    aspect-ratio: 2 / 3;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    background: var(--red-gradient-light);
    box-shadow: 0 10px 7px 0 rgba(0, 0, 0, 0.24);
    transition: all 0.3s ease;
}

.book-cover-large-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.book-hero .book-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-top: 0 !important;
    grid-row: auto !important;
    min-height: auto !important;
    width: 100%;
}

@media (min-width: 1200px) {
    .book-hero-content {
        grid-template-columns: 360px 1fr;
        gap: 5rem;
    }
}

/* Image error handling - show backdrop when image fails to load */
img.book-cover[src=""],
img.book-cover:not([src]),
img.book-cover-img[src=""],
img.book-cover-img:not([src]) {
    background: var(--red-gradient);
}

.book-cover-large-wrapper .book-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: center;
    display: block;
}

/* Placeholder backdrop for book cover */
.book-cover-img[src=""],
.book-cover-img:not([src]),
.book-cover-img[src*="placeholder"] {
    background: var(--red-gradient);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.book-cover-img[src*="placeholder"]:before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 0px, 
            rgba(255, 255, 255, 0.1) 2px, 
            transparent 2px, 
            transparent 40px
        );
    opacity: 0.3;
}

.book-title-main {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}

.book-authors-main {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
}

.book-purchase-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.format-dropdown-wrapper {
    flex: 0 0 auto;
    min-width: 150px;
    max-width: 200px;
    position: relative;
}

.format-dropdown-btn {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.format-dropdown-btn:hover {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-red);
}

.format-dropdown-btn .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-dark);
}

.format-dropdown-wrapper.active .format-dropdown-btn .dropdown-arrow {
    transform: rotate(180deg);
}

.format-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.format-dropdown-wrapper.active .format-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.format-option {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: block;
}

.format-option:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

.format-option.active {
    background-color: var(--red-gradient-light);
    color: var(--primary-red);
    font-weight: 600;
}

.buy-dropdown-wrapper {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    position: relative;
}

.buy-dropdown-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.buy-dropdown-wrapper.active .dropdown-arrow {
    transform: rotate(180deg);
}

.buy-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow: hidden;
}

.buy-dropdown-wrapper.active .buy-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.store-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.store-link:last-child {
    border-bottom: none;
}

.store-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-red);
}

.store-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.store-name {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
}

.book-actions {
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .book-grid.home-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-purchase-group {
        flex-direction: row;
        gap: 1rem;
        width: 100%;
    }

    .format-dropdown-wrapper,
    .buy-dropdown-wrapper {
        flex: 1;
        min-width: 0;
        max-width: none;
    }

    .format-dropdown-btn,
    .buy-dropdown-btn {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        font-size: 0.85rem !important;
    }

    .format-dropdown-btn,
    .buy-dropdown-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .format-dropdown-btn span:first-child,
    .buy-dropdown-btn span:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
    }

    .format-dropdown-btn .dropdown-arrow,
    .buy-dropdown-btn .dropdown-arrow {
        flex-shrink: 0;
        margin-left: 0.5rem;
    }

    /* Hide desktop details on mobile */
    .book-details-desktop-date,
    .book-details-desktop-pages {
        display: none !important;
    }

    /* Show mobile details section */
    .book-details-mobile {
        display: block !important;
    }
}

.btn-primary {
    background: var(--red-gradient);
    color: var(--white);
    padding: 1.1rem 2.5rem;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-shadow: var(--shadow-md), var(--shadow-red);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--light-red) 0%, var(--primary-red) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 8px 30px rgba(204, 0, 0, 0.4);
    color: var(--white);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span {
    position: relative;
    z-index: 1;
}

/* Desktop: Date and Imprint under buttons */
.book-details-desktop-date {
    display: block;
}

.book-details-desktop-date .book-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.book-details-desktop-date .book-detail-item i {
    color: var(--text-light);
    font-size: 0.9rem;
}

.book-details-desktop-date .book-detail-item span {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Desktop: Pages and ISBN under synopsis */
.book-details-desktop-pages {
    margin-top: 1.5rem;
    display: block;
}

.book-details-desktop-pages .book-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}
.book-details-desktop-pages .book-detail-item span {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.book-details-desktop-pages .book-detail-item i {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Mobile: Details section */
.book-details-mobile {
    display: none;
}

.book-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.book-details-list .book-detail-item {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.book-details-list .book-detail-item strong {
    color: var(--text-dark);
    font-weight: 600;
    margin-right: 0.5rem;
}

.book-main-content section {
    margin-bottom: 4rem;
}

.book-main-content section:last-of-type {
    margin-bottom: 0;
}

.book-main-content .section-header {
    margin-bottom: 1rem;
}

.book-main-content h2.section-title {
    font-size: 1.4rem;
    margin-bottom: 0;
    color: var(--text-dark);
    text-align: left;
    position: relative;
    padding-bottom: 0;
    display: block;
    width: 100%;
}

.book-main-content h2.section-title span {
    background: var(--primary-red);
    color: #ffffff;
    padding: 0.3rem 0.6rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.book-main-content h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000000;
}

.quote-highlight {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-red);
    padding: 2rem 2rem 2rem 2.5rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.quote-highlight::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 1.5rem;
    font-size: 100px;
    color: var(--primary-red);
    opacity: 0.08;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    font-weight: 700;
}

.quote-highlight p {
    margin-bottom: 0.5rem;
}

.synopsis-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    column-count: 1;
    text-align: justify;
}

/* Desktop: 2-column layout for synopsis text */
@media (min-width: 769px) {
    .synopsis-text {
        column-count: 2;
        column-gap: 2rem;
        column-fill: balance;
        max-height: 500px;
        text-align: justify;
    }
    
    .synopsis-text p {
        text-align: justify;
    }
    
    /* Center align second column content vertically with first column */
    .synopsis-text::after {
        content: '';
        display: block;
        height: 0;
    }
}

.synopsis-text p {
    margin-bottom: 1.5rem;
    break-inside: avoid;
    text-align: justify;
}

.synopsis-text p:first-child {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.review-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem 2.5rem;
    border-left: 4px solid var(--primary-red);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-width: 5px;
}

.review-item p {
    margin-bottom: 1rem;
}

.review-item cite {
    display: block;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.about-author {
    margin-top: 1.5rem;
}

.author-bio {
    margin-top: 1.5rem;
}

.author-image {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--red-gradient-light);
    padding: 8px;
}

.author-image img {
    width: 100%;
    border-radius: 0;
    display: block;
}

.author-image img[src=""],
.author-image img:not([src]),
.author-image img[src*="placeholder"] {
    background: var(--red-gradient);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.author-image img[src*="placeholder"]:before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(45deg, 
            rgba(255, 255, 255, 0.1) 0px, 
            rgba(255, 255, 255, 0.1) 1px, 
            transparent 1px, 
            transparent 25px
        );
    opacity: 0.3;
}

.author-text {
    font-size: 1.05rem;
    line-height: 1.8;
    column-count: 1;
    text-align: justify;
}

/* Desktop: 2-column layout for author text */
@media (min-width: 769px) {
    .author-text {
        column-count: 2;
        column-gap: 2rem;
        column-fill: balance;
        max-height: 300px;
        text-align: justify;
    }
    
    .author-text p {
        text-align: justify;
    }
}

.author-text p {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.book-grid-related {
    margin-top: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    padding-left: 1rem;
}

.book-grid-related .book-card {
    text-align: left;
}

.book-enquiries {
    padding: 4rem 0;
    background-color: var(--white);
}

.book-enquiries .section-header {
    margin-bottom: 2.5rem;
}

.enquiries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.enquiry-item {
    padding: 2rem 2.5rem;
    background: rgba(249, 249, 249, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.enquiry-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.95);
    border-left-color: var(--primary-red);
}

.enquiry-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.enquiry-item p {
    line-height: 1.8;
    color: var(--text-dark);
}

.enquiry-item a {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Footer Styles */
.footer {
    background: linear-gradient(180deg, var(--text-dark) 0%, #0a0a0a 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 5rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(204, 0, 0, 0.5), transparent);
}

.footer-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-name {
    color: var(--white);
    font-weight: 600;
}

.footer-separator {
    color: #666666;
    margin: 0 0.5rem;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
}

.footer-copyright {
    color: #cccccc;
}

@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .book-grid.home-book-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .slide-content {
        grid-template-columns: minmax(0, 1fr) minmax(clamp(80px, 12vw, 160px), clamp(110px, 16vw, 220px));
        gap: clamp(0.6rem, 2vw, 2.5rem);
        padding: clamp(0.6rem, 2vw, 1.5rem) clamp(0.75rem, 2.5vw, 1.25rem) clamp(0.6rem, 2vw, 1.5rem) clamp(1.5rem, 4vw, 3rem);
        align-items: center;
        max-width: 100%;
    }

    .slide-image {
        height: auto;
        align-self: center;
    }
    
    .slide-image .book-cover-wrapper {
        height: auto;
        max-height: 100%;
    }

    .slide-synopsis {
        font-size: clamp(0.7rem, 2vw, 1.7rem);
        margin-bottom: clamp(0.5rem, 1.2vw, 1.5rem);
    }

    .slide-title {
        font-size: clamp(1rem, 3.5vw, 2rem);
        word-break: break-word;
        hyphens: auto;
        margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
        line-height: 1.3;
    }

    .slide-author {
        font-size: clamp(0.6rem, 1.6vw, 1.2rem);
        margin-top: 0;
        margin-bottom: clamp(0.3rem, 0.8vw, 0.6rem);
    }

    .slide-btn {
        padding: clamp(0.12rem, 0.35vw, 0.25rem) clamp(0.45rem, 1.1vw, 1rem);
        font-size: clamp(0.52rem, 0.95vw, 0.85rem);
    }

    .book-hero {
        padding: 2rem 0 0 0;
    }

    .book-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: center;
    }

    .book-cover-large {
        position: static;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }

    .book-hero .book-info {
        text-align: center;
        align-items: center;
    }

    .book-title-main {
        font-size: 2rem;
        text-align: center;
    }

    .book-authors-main {
        font-size: 1.2rem;
        text-align: center;
    }

    .book-purchase-group {
        width: 100%;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .format-dropdown-wrapper {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }

    .buy-dropdown-wrapper {
        flex: 1 !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }

    .author-bio {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .author-image {
        max-width: 180px;
        margin: 0 auto;
    }

    .book-main-content section {
        margin-bottom: 3rem;
    }

}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 65px;
        right: 0;
        width: 280px;
        background: #0f1013;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.25);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        max-height: calc(100vh - 50px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .search-box {
        width: calc(100vw - 2rem);
        right: 3.5rem;
        left: auto;
        max-width: calc(100vw - 2rem);
        top: 130%;
    }

    .search-input {
        min-width: 150px;
        max-width: calc(100vw - 6rem);
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        height: 40px;
    }

    .search-submit {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .search-box.active .search-submit {
        margin-top: 0;
    }

    .nav-right {
        align-items: center;
    }

    .search-btn,
    .mobile-menu-btn {
        height: auto;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-box {
        align-items: center;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .book-title-main {
        font-size: 2rem;
    }

    .book-authors-main {
        font-size: 1.2rem;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 2rem;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.video-modal-close:hover {
    background: var(--dark-red);
}

.video-modal-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.video-modal-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

#videoModalTitle {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

@media (max-width: 480px) {
    .page-container {
        padding: 0.75rem 0.75rem;
    }

    .book-grid.home-book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .nav-container {
        padding: 0.51rem 0.51rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .section {
        padding: 2rem 0;
    }
    
    .section.authors-page {
        padding: 3rem 0;
    }

    .book-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }

    .slider-container {
        padding: 0;
    }

    .slide-content {
        grid-template-columns: minmax(0, 1fr) minmax(clamp(60px, 10vw, 100px), clamp(80px, 12vw, 140px));
        gap: clamp(0.4rem, 1.2vw, 1.5rem);
        padding: clamp(0.5rem, 1.5vw, 1.25rem) clamp(0.4rem, 1.5vw, 0.8rem) clamp(0.5rem, 1.5vw, 1.25rem) clamp(0.8rem, 2.5vw, 2rem);
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .slide-info {
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .slide-image {
        flex-shrink: 0;
        min-width: 0;
        height: auto;
        align-self: center;
    }
    
    .slide-image .book-cover-wrapper {
        height: auto;
        max-height: 100%;
    }

    .slide-synopsis {
        font-size: clamp(0.65rem, 1.8vw, 1.7rem);
        margin-bottom: clamp(0.4rem, 1vw, 1.5rem);
        line-height: 1.5;
    }

    .slide-title {
        font-size: clamp(0.95rem, 3.5vw, 1.8rem);
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
        line-height: 1.3;
    }
    
    .slide-synopsis {
        max-width: 100%;
    }

    .slide-author {
        font-size: clamp(0.6rem, 1.5vw, 1.2rem);
        margin-top: 0;
        margin-bottom: clamp(0.3rem, 0.8vw, 0.6rem);
    }

    .slide-btn {
        padding: clamp(0.1rem, 0.3vw, 0.25rem) clamp(0.4rem, 1vw, 1rem);
        font-size: clamp(0.5rem, 0.9vw, 0.85rem);
    }

    .slider-btn {
        width: clamp(18px, 4.5vw, 36px);
        height: clamp(18px, 4.5vw, 36px);
        font-size: clamp(0.7rem, 1.8vw, 1.4rem);
    }

    .slider-controls {
        gap: clamp(0.3rem, 1.2vw, 1.5rem);
        padding: clamp(0.25rem, 0.8vw, 0.75rem) clamp(0.4rem, 1.5vw, 1.5rem);
    }

    .slider-dots {
        gap: clamp(0.3rem, 0.8vw, 0.75rem);
        padding: clamp(0.25rem, 0.8vw, 0.75rem) clamp(0.5rem, 1.5vw, 1.5rem);
    }

    .dot {
        width: clamp(5px, 1.2vw, 12px);
        height: clamp(5px, 1.2vw, 12px);
    }
}

@media (max-width: 390px) {
    .page-container {
        padding: 0.5rem 0.5rem;
    }

    .slider-container {
        padding: 0;
    }

    .slide-content {
        grid-template-columns: minmax(0, 1fr) minmax(clamp(50px, 8vw, 80px), clamp(60px, 10vw, 100px));
        gap: clamp(0.25rem, 0.8vw, 1rem);
        padding: clamp(0.3rem, 1vw, 0.8rem) clamp(0.3rem, 1.2vw, 0.6rem) clamp(0.3rem, 1vw, 0.8rem) clamp(0.6rem, 2vw, 1.5rem);
        align-items: center;
        max-width: 100%;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    .slide-info {
        max-width: 100%;
        overflow: hidden;
        min-width: 0;
    }
    
    .slide-image {
        flex-shrink: 0;
        min-width: 0;
        height: auto;
        align-self: center;
    }
    
    .slide-image .book-cover-wrapper {
        height: auto;
        max-height: 100%;
    }

    .slide-synopsis {
        font-size: clamp(0.55rem, 1.5vw, 1.2rem);
        padding-top: clamp(0.3rem, 1vw, 1.5rem);
        line-height: 1.4;
        max-width: 100%;
    }

    .slide-title {
        font-size: clamp(0.85rem, 3vw, 1.6rem);
        line-height: 1.3;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        margin-bottom: clamp(0.4rem, 1vw, 0.8rem);
    }

    .slide-author {
        font-size: clamp(0.55rem, 1.3vw, 1rem);
        margin-top: 0;
        margin-bottom: clamp(0.25rem, 0.6vw, 0.5rem);
    }

    .slide-btn {
        padding: clamp(0.08rem, 0.25vw, 0.2rem) clamp(0.3rem, 0.8vw, 0.8rem);
        font-size: clamp(0.45rem, 0.8vw, 0.75rem);
    }

    .slide-info-bottom {
        gap: clamp(0.3rem, 1vw, 1rem);
        padding-bottom: 0.3rem;
    }

    .slider-btn {
        width: clamp(16px, 4vw, 32px);
        height: clamp(16px, 4vw, 32px);
        font-size: clamp(0.6rem, 1.5vw, 1.2rem);
    }

    .slider-controls {
        gap: clamp(0.25rem, 1vw, 1.2rem);
        padding: clamp(0.2rem, 0.6vw, 0.6rem) clamp(0.3rem, 1.2vw, 1.2rem);
    }

    .slider-dots {
        gap: clamp(0.25rem, 0.6vw, 0.6rem);
        padding: clamp(0.2rem, 0.6vw, 0.6rem) clamp(0.4rem, 1.2vw, 1.2rem);
    }

    .dot {
        width: clamp(4px, 1vw, 10px);
        height: clamp(4px, 1vw, 10px);
    }
}

/* Authors Page */
.section.authors-page {
    padding: 0;
}

.section.authors-page .section-header {
    margin-bottom: 3rem;
}

.section.authors-page .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-weight: 400;
}

.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.author-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.author-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.author-image-wrapper {
    width: 100%;
    padding-bottom: 56.25%;
    position: relative;
    background: var(--red-gradient);
    overflow: hidden;
}

.author-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-card-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

.author-card-info {
    padding: 1.5rem;
}

.author-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
}

.author-card-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Authors Page Header */
.authors-header {
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.authors-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4rem;
    text-align: center;
}

.authors-search-results {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1rem;
}

/* Alphabet Filter */
.authors-alphabet-filter {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.alphabet-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.alphabet-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.alphabet-buttons > * {
    flex: 0 0 auto;
}

.alphabet-buttons > .alphabet-btn:first-child {
    padding-left: 0;
}

.alphabet-buttons > .alphabet-btn:last-child {
    padding-right: 0;
}

.alphabet-btn {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: #005e80;
    text-decoration: none;
    border: none;
    background: transparent;
    transition: color 0.2s;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}

.alphabet-btn:hover {
    color: #000000;
}

.alphabet-btn.active {
    color: #000000;
    text-decoration: none;
}

/* Featured Authors Section */
.featured-authors-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.featured-authors-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.featured-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.featured-author-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-author-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-author-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.featured-author-placeholder {
    width: 100%;
    height: 300px;
    background: var(--red-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.featured-author-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.featured-author-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 1rem;
}

.featured-author-link {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-red);
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
}

.featured-author-link:hover {
    text-decoration: underline;
}

/* Author Detail Page */
.author-hero {
    padding: 4rem 0;
    background: none;
}

.author-hero-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.author-image-large {
    width: 300px;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--red-gradient);
}

.author-image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-image-placeholder-large {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
}

.author-name-main {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.author-bio-full {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
}

.author-bio-full p {
    margin-bottom: 1rem;
}

.author-bio-full strong {
    color: var(--text-dark);
}

.author-books-section {
    margin-top: 3rem;
}

.author-books-title {
    font-size: 1.4rem;
    margin-bottom: 0;
    text-align: left;
    position: relative;
    padding-bottom: 0;
    display: block;
    width: 100%;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.author-books-title span {
    background: var(--primary-red) !important;
    color: #ffffff !important;
    padding: 0.3rem 0.6rem;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.author-books-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000000;
}

.author-books {
    padding: 4rem 0;
}

/* Author Books Slider */
.author-books-slider {
    position: relative;
    margin-top: 1.5rem;
}

.author-books-slider-wrapper {
    overflow: hidden;
    margin: 0 3rem;
}

.author-books-slider-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
}

.author-books-slide {
    flex: 0 0 calc((100% - 6rem) / 4);
    min-width: 0;
}

.author-book-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.author-book-card .book-cover-wrapper {
    margin-bottom: 1rem;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 10px 7px 0 rgba(0, 0, 0, 0.24);
    transition: transform 0.3s ease;
}

.author-book-card:hover .book-cover-wrapper {
    transform: translateY(-4px);
}

.author-book-card .book-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    font-family: 'Playfair Display', serif;
    line-height: 1.4;
}

.author-books-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    color: var(--text-dark);
}

.author-books-slider-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--white);
}

.author-books-slider-btn:disabled,
.author-books-slider-btn[style*="pointer-events: none"] {
    opacity: 0.5;
    cursor: not-allowed;
}

.author-books-slider-prev {
    left: 0;
}

.author-books-slider-next {
    right: 0;
}

.author-books-slider-btn i {
    font-size: 0.9rem;
}

/* Categories Page */
.categories-page {
    padding: 4rem 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red);
}

.category-card-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

.category-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.category-card-count {
    font-size: 0.95rem;
    color: var(--text-light);
}

.category-page {
    padding: 4rem 0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

.empty-state .btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: transform 0.2s;
}

.empty-state .btn-primary:hover {
    transform: translateY(-2px);
}

/* Search Page */
.search-page {
    padding: 2rem 0;
}

.search-header {
    margin-bottom: 3rem;
}

.search-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.search-results-count {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.search-section {
    margin-bottom: 4rem;
}

.search-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 0.5rem;
}

.search-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #000000;
}

.search-page .book-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3rem;
}

@media (max-width: 768px) {
    .search-title {
        font-size: 2rem;
    }

    .search-section-title {
        font-size: 1.2rem;
    }

    .search-page .book-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

/* Responsive - Authors & Categories */
@media (max-width: 768px) {
    .authors-title {
        font-size: 2rem;
        margin-bottom: 4rem;
    }

    .alphabet-buttons {
        gap: 0.4rem;
    }

    .alphabet-btn {
        padding: 0.4rem 0.8rem;
        font-size: 1.1rem;
    }

    .featured-authors-title {
        font-size: 1.75rem;
    }

    .featured-authors-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 2rem;
    }

    .featured-author-image,
    .featured-author-placeholder {
        height: 250px;
    }

    .author-hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .author-image-large {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .author-name-main {
        font-size: 2rem;
        text-align: left;
    }

    .author-books-slider-wrapper {
        margin: 0 2.5rem;
    }

    .author-books-slide {
        flex: 0 0 calc((100% - 2rem) / 2);
    }

    .author-books-slider-btn {
        width: 35px;
        height: 35px;
    }

    .authors-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .authors-title {
        font-size: 1.75rem;
        margin-bottom: 4rem;
    }

    .alphabet-buttons {
        gap: 0.3rem;
    }

    .alphabet-btn {
        padding: 0.35rem 0.7rem;
        font-size: 1rem;
    }

    .featured-authors-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .featured-author-name {
        font-size: 1.25rem;
    }

    .author-books-slider-wrapper {
        margin: 0 2rem;
    }

    .author-books-slide {
        flex: 0 0 calc((100% - 2rem) / 2);
    }

    .author-books-slider-btn {
        width: 32px;
        height: 32px;
    }

    .author-books-slider-btn i {
        font-size: 0.8rem;
    }

    .authors-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .author-name-main {
        font-size: 1.75rem;
    }
}

/* Genres Page Styles */
.genres-section {
    padding: 2rem 0;
}

.genres-header {
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.genres-header-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.genres-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4rem;
    text-align: center;
    grid-column: 2;
}

.genres-results {
    display: none;
}

.genres-results-mobile {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    text-align: right;
    white-space: nowrap;
    grid-column: 3;
    justify-self: end;
}

.books-available-mobile {
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.results-count {
    font-weight: 500;
}

.books-available {
    color: var(--text-light);
}

.genres-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
    position: relative;
}

.category-toggle-btn {
    display: none;
}

.sidebar-overlay {
    display: none;
}

.genres-sidebar {
    position: sticky;
    top: 100px;
    display: block;
}

.sidebar-header {
    display: none;
}

.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    display: block;
}

.sidebar-title-mobile {
    display: none;
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.sidebar-close-btn:hover {
    color: var(--primary-red);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.25rem;
}

.category-link {
    display: block;
    padding: 0.5rem 1rem 0.5rem 0;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 400;
}

.category-link:hover {
    background: var(--bg-light);
    color: var(--primary-red);
}

.category-link.active {
    background: none;
    color: #000000;
    font-weight: 700;
}

.category-count {
    color: var(--text-light);
    font-weight: 400;
    margin-left: 0.25rem;
}

.category-link.active .category-count {
    color: #000000;
    opacity: 0.7;
}

.genres-content {
    min-height: 400px;
    border-top: 1px solid #000000;
    padding-top: 2rem;
    padding-left: 2rem;
    position: relative;
}

.genres-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: -3rem;
    width: 1px;
    height: calc(100% + 3rem);
    background: #000000;
}


/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.pagination-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    background: var(--white);
}

.pagination-link:hover:not(.disabled) {
    background: var(--bg-light);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pagination-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.pagination-number:hover {
    background: var(--bg-light);
    border-color: var(--border-color);
}

.pagination-number.active {
    background: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: var(--text-light);
}

/* Responsive Genres Page */
@media (max-width: 968px) {
    .genres-layout {
        grid-template-columns: 200px 1fr;
        gap: 2rem;
    }

    .genres-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .book-grid.genres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }

    .genres-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .category-toggle-btn {
        display: block;
        background-color: #fff;
        border: 1px solid #666;
        border-bottom: none;
        border-radius: 6px;
        bottom: 50px;
        box-shadow: 0 10px 24px 0 rgba(0, 0, 0, .24);
        color: #666;
        font-family: avenir-next-lt-pro, arial, sans-serif;
        font-size: 15px;
        line-height: 15px;
        padding: 24px;
        position: fixed;
        left: -40px;
        right: auto;
        transform: rotate(90deg);
        transform-origin: center center;
        z-index: 1000;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .category-toggle-btn:hover {
        background-color: #f5f5f5;
        color: #000;
    }

    .category-toggle-btn i,
    .category-toggle-btn span {
        display: none;
    }

    .category-toggle-btn::before {
        content: "Categories";
    }

    .sidebar-overlay {
        display: block;
    }

    .genres-sidebar {
        position: fixed;
        top: 66px;
        left: -100%;
        width: 300px;
        height: calc(100vh - 75px);
        background: var(--white);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
        transition: left 0.3s ease;
        padding: 1.5rem;
    }

    .genres-sidebar.active {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-title-mobile {
        display: block;
        font-family: 'Inter', sans-serif;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-dark);
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .sidebar-close-btn {
        display: block;
    }

    .genres-content {
        order: 1;
        border-left: none;
        padding-left: 0;
    }

    .genres-content::before {
        display: none;
    }

    .genres-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 1rem;
    }

    .genres-title {
        font-size: 1.75rem;
        margin-bottom: 4rem;
        text-align: center;
        flex: 1;
    }

    .genres-results {
        display: none;
    }

    .genres-results-mobile {
        display: none;
    }

    .genres-header {
        position: relative;
        margin-bottom: 0;
        padding-bottom: 1rem;
    }

    .books-available-mobile {
        display: block;
        text-align: right;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        color: var(--text-light);
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination-numbers {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .genres-title {
        font-size: 1.5rem;
        margin-bottom: 4rem;
    }

    .pagination-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .pagination-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

