/* ================= GLOBAL ================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0f0f0f;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ================= NAVBAR ================= */

.navbar-ott {
    transition: .3s ease;
    background: transparent;
    backdrop-filter: blur(8px);
}

.navbar-ott.scrolled {
    background: #0f0f0f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}

.navbar-brand img {
    height: 30px;
}

.navbar-nav .nav-link {
    opacity: .85;
    font-weight: 500;
    transition: .2s ease;
}

.navbar-nav .nav-link:hover {
    opacity: 1;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #5465ff;
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ================= HERO ================= */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

/* Background */
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
    opacity: .5;
    transition: 0.6s ease;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, .95) 0%,
            rgba(0, 0, 0, .85) 40%,
            rgba(0, 0, 0, .5) 70%,
            rgba(0, 0, 0, 0) 100%);
}

/* Layout stability */
.hero-row {
    min-height: 420px;
}

/* Title */
.hero-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 120px;
}

/* Description */
.hero-desc {
    font-size: 17px;
    opacity: .85;
    margin-top: 10px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 96px;
}

/* Buttons */
.hero-buttons {
    margin-top: 20px;
}

.hero-buttons button {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: .2s ease;
}

.btn-play {
    background: #fff;
    color: #000;
    margin-right: 12px;
}

.btn-play:hover {
    background: #e5e5e5;
}

.btn-hero-info {
    background: rgba(255, 255, 255, .3);
    color: #fff;
}

.btn-hero-info:hover {
    background: rgba(255, 255, 255, .5);
}

/* Image wrapper */
.hero-image-wrapper {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero image */
.hero-cover {
    width: 320px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .7);
}


/* ================= THUMBNAILS ================= */

.hero-thumbnails img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    opacity: .5;
    cursor: pointer;
    transition: .3s ease;
    border: 2px solid transparent;
}

.hero-thumbnails img.active {
    opacity: 1;
    border-color: #5465ff;
}

.hero-thumbnails img:hover {
    transform: scale(1.05);
}


/* ================= BOOK CARDS ================= */

.section {
    margin-top: 60px;
}

.book-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}

.book-card img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .8);
}

.book-hover {
    position: absolute;
    inset: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .95) 40%,
            rgba(0, 0, 0, .6) 70%,
            rgba(0, 0, 0, 0));
    opacity: 0;
    transition: .25s ease;
}

.book-card:hover .book-hover {
    opacity: 1;
}


/* ================= FOOTER ================= */

footer {
    background: #0b0b0b;
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 40px 0;
}

footer a {
    color: #9ca3af;
    transition: .2s ease;
}

footer a:hover {
    color: #ffffff;
}


/* ================= TOUCH DEVICES ================= */

@media (hover:none) {
    .book-hover {
        opacity: 1;
        background: rgba(0, 0, 0, .8);
    }
}


/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero-row {
        min-height: auto;
    }

    .hero-title {
        font-size: 28px;
        min-height: auto;
    }

    .hero-desc {
        font-size: 15px;
        min-height: auto;
    }

    .hero-cover {
        width: 240px;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {

    .hero-cover {
        width: 200px;
    }

}