/* ========== VARIABLES & FONTS ========== */
:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(18, 26, 43, 0.7);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-gold: #fbbf24;
    --accent-gold-hover: #f59e0b;
    --accent-blue: #3b82f6;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== BACKGROUND CANVAS ========== */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* ========== TYPOGRAPHY & UTILS ========== */
h1,
h2,
h3,
h4,
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-hover));
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-secondary:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(226, 232, 240, 0.1);
}

.glow-effect {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    }

    100% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.8), 0 0 10px rgba(251, 191, 36, 0.5) inset;
    }
}

/* ========== HERO SECTION ========== */
.hero {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

/* Static Hero Background */
.animated-bg {
    background: url('assets/hero_bg.png') center 75%/cover no-repeat;
}

/* Gradient Overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Gradient beaucoup moins sombre en bas pour révéler la ville */
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.4) 0%, rgba(10, 14, 23, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    /* Assure qu'il est au-dessus du dégradé et de l'image de fond animée */
    z-index: 3;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--accent-gold);
    text-shadow: 0 2px 15px rgba(251, 191, 36, 0.3);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero .author {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.scroll-indicator a:hover {
    color: var(--accent-gold);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

/* ========== MAIN CONTENT ========== */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.synopsis-section {
    border-top: 1px solid rgba(251, 191, 36, 0.1);
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.synopsis-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.highlight-text {
    font-weight: 600;
    color: var(--accent-gold);
    font-style: italic;
    border-left: 3px solid var(--accent-gold);
    padding-left: 1rem;
}

.synopsis-image {
    position: relative;
}

.floating-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: floating 6s ease-in-out infinite;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ========== 3D BOOK =========== */
.book-container.floating-book {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floating 6s ease-in-out infinite;
    padding: 2rem;
    width: 100%;
    filter: drop-shadow(-15px 20px 15px rgba(0, 0, 0, 0.6));
}

.book {
    width: 260px;
    height: 380px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-30deg) rotateX(15deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Le hover est maintenant géré dynamiquement via JavaScript (tilt interaction) */
/* .book:hover {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.05);
} */

.book > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
}

/* Front */
.book-front {
    width: 260px;
    height: 380px;
    transform: translate(-50%, -50%) translateZ(25px);
    border-radius: 0 4px 4px 0;
    overflow: hidden;
    background-color: var(--bg-card);
}

.book-cover-design {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: center;
    padding: 2rem 1rem;
    z-index: 1;
}

.book-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.book-cover-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.book-cover-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Back */
.book-back {
    width: 260px;
    height: 380px;
    transform: translate(-50%, -50%) rotateY(180deg) translateZ(25px);
    border-radius: 4px 0 0 4px;
    background: #0f172a;
    overflow: hidden;
}

/* Spine */
.book-spine {
    width: 50px;
    height: 380px;
    transform: translate(-50%, -50%) rotateY(-90deg) translateZ(130px);
    background: #0f172a;
}

.book-spine-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 2rem 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}
.book-spine-content .spine-title {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Pages */
.book-pages {
    width: 48px;
    height: 376px;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(128px);
    background: repeating-linear-gradient(to right, #e2e8f0 0px, #f8fafc 2px, #e2e8f0 4px);
}

/* Top edge */
.book-top {
    width: 256px;
    height: 48px;
    transform: translate(-50%, -50%) rotateX(90deg) translateZ(188px);
    background: repeating-linear-gradient(to bottom, #e2e8f0 0px, #f8fafc 2px, #e2e8f0 4px);
}

/* Bottom edge */
.book-bottom {
    width: 256px;
    height: 48px;
    transform: translate(-50%, -50%) rotateX(-90deg) translateZ(188px);
    background: repeating-linear-gradient(to bottom, #e2e8f0 0px, #f8fafc 2px, #e2e8f0 4px);
}

.btn-social {
    background: rgba(18, 26, 43, 0.6);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding: 0;
    transition: var(--transition);
}

.btn-social:hover {
    background: var(--accent-gold);
    color: #1e293b;
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.4);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ========== TEASER SECTION ========== */
.teaser-section {
    padding: 5rem 0;
    background: linear-gradient(to bottom, transparent, rgba(18, 26, 43, 0.8), transparent);
}

.teaser-card {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid var(--accent-blue);
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.teaser-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.teaser-content {
    position: relative;
    z-index: 1;
}

.teaser-content h4 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.teaser-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

/* ========== QUOTES SECTION ========== */
.quotes-section {
    background: linear-gradient(to right, rgba(10, 14, 23, 0.9), rgba(18, 26, 43, 0.8), rgba(10, 14, 23, 0.9));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.book-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    text-align: center;
    color: var(--text-main);
    font-style: italic;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
    position: relative;
}

.book-quote::before,
.book-quote::after {
    content: '"';
    font-size: 4rem;
    color: rgba(251, 191, 36, 0.2);
    position: absolute;
    font-family: serif;
}

.book-quote::before {
    top: -2rem;
    left: -2rem;
}

.book-quote::after {
    bottom: -3rem;
    right: -2rem;
}

/* ========== FOOTER ========== */
footer {
    text-align: center;
    padding: 3rem 0;
    background: #05070a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ========== AUDIO & EXCERPT SECTION ========== */
.excerpt-section {
    background: var(--bg-card);
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

/* ========== BACKGROUND AUDIO REMOVED ========== */
.book-excerpt-container {
    background: rgba(5, 7, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow-y: auto;
    max-height: 600px;
    /* limit height and allow scroll */
}

/* Scrollbar stylisée pour l'extrait */
.book-excerpt-container::-webkit-scrollbar {
    width: 6px;
}

.book-excerpt-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.book-excerpt-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.excerpt-content p {
    margin-bottom: 1.2rem;
    color: #cbd5e1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.fade-out-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, transparent, rgba(5, 7, 10, 1));
    pointer-events: none;
}

/* ========== PLAYLIST SECTION ========== */
.playlist-section {
    padding: 5rem 0;
    position: relative;
}

.spotify-embed-container {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.spotify-embed-container:hover {
    transform: translateY(-5px);
}

/* ========== CONSTELLATION SECTION ========== */
.constellation-section {
    padding: 5rem 0;
    overflow: hidden;
}

.constellation-map {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 450;
    max-width: 800px;
    margin: 3rem auto;
}

/* L'aura en pseudo-élément permet de dépasser la boîte pour englober les étoiles dans les coins */
.constellation-map::before {
    content: '';
    position: absolute;
    top: -25%;
    left: -20%;
    right: -20%;
    bottom: -25%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 75%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.star-node {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-glow {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 0 4px #ffffff,
        0 0 12px var(--accent-gold),
        0 0 24px var(--accent-gold);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Diffraction spikes for realistic star look */
.star-glow::before,
.star-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--accent-gold);
    opacity: 0.5;
    border-radius: 50%;
    transition: all 0.4s ease;
    pointer-events: none;
}

.star-glow::before {
    width: 250%;
    height: 2px;
    filter: blur(1px);
}

.star-glow::after {
    height: 250%;
    width: 2px;
    filter: blur(1px);
}

.star-node:hover {
    z-index: 50;
}

.star-node:hover .star-glow {
    transform: scale(1.6) !important;
    background: #ffffff;
    box-shadow: 
        0 0 8px #ffffff,
        0 0 20px var(--accent-blue),
        0 0 40px var(--accent-blue);
}

.star-node:hover .star-glow::before,
.star-node:hover .star-glow::after {
    background: var(--accent-blue);
    opacity: 0.8;
}

.star-node:hover .star-glow::before {
    width: 350%;
}

.star-node:hover .star-glow::after {
    height: 350%;
}

.star-info {
    position: absolute;
    top: -10px;
    left: 30px;
    width: 250px;
    background: rgba(18, 26, 43, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid var(--accent-gold);
    border-radius: 8px;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 100;
    /* Force le popup de texte à être le plus haut possible */
}

.star-node:hover .star-info {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.star-info h4 {
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.star-info p {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

/* Custom tooltips directions */
.star-node.align-left .star-info {
    left: auto;
    right: 30px;
    transform: translateX(20px);
}
.star-node.align-left:hover .star-info {
    transform: translateX(0);
}

.star-node.align-center .star-info {
    left: 50%;
    top: auto;
    bottom: 30px;
    transform: translate(-50%, 20px);
}
.star-node.align-center:hover .star-info {
    transform: translate(-50%, 0);
}

.constellation-lines {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.constellation-lines line {
    stroke: rgba(251, 191, 36, 0.3);
    stroke-width: 1;
    stroke-dasharray: 4;
    animation: dash 40s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

/* ========== CASTING SECTION ========== */
.casting-section {
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(15, 23, 42, 0.8) 100%);
    position: relative;
    overflow: hidden;
    /* Prevent horizontal scroll on mobile */
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 3rem;
    padding: 0 1rem;
}

.carousel-btn {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    transition: var(--transition);
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-main);
    transform: scale(1.1);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.casting-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
    /* space for box-shadow hover */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: grab;
    /* Ajouté pour indiquer le drag possible */
}

.casting-track.active {
    cursor: grabbing;
    /* La main se ferme au clic */
}

.casting-track.ready {
    opacity: 1;
}

.casting-track::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.cast-card {
    background: rgba(10, 14, 23, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 auto;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    user-select: none;
    /* Empêche la sélection de texte au drag */
}

.cast-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(251, 191, 36, 0.15);
}

.cast-img-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: rgba(10, 14, 23, 1);
}

.cast-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 14, 23, 1) 0%, transparent 100%);
    z-index: 10;
    pointer-events: none;
}

.cast-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
    pointer-events: none;
    /* Évite que l'image soit glissée comme un fichier par le navigateur */
}

.cast-card:hover .cast-img {
    transform: scale(1.05);
}

.cast-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(10, 14, 23, 1);
    margin-top: -1px;
}

.cast-name {
    font-size: 2.5rem;
    color: var(--text-main);
    font-family: 'Great Vibes', cursive, var(--font-heading);
    margin-bottom: 0.2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.cast-name i {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.cast-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    margin-bottom: 1.5rem;
}

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

.cast-traits li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cast-traits li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1;
    top: -2px;
}

/* ========== AUTHOR SECTION ========== */
.author-section {
    background: var(--bg-card);
    padding: 5rem 0;
    border-top: 1px solid rgba(251, 191, 36, 0.1);
    border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

.author-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    .author-layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.author-image-wrapper {
    flex: 0 0 250px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.2);
    margin: 0 auto;
}

.author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.author-image-wrapper:hover .author-img {
    transform: scale(1.05);
}

.author-text {
    flex: 1;
}

.author-text .section-title {
    text-align: left;
}

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

.author-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.author-socials .btn {
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
}

/* ========== ANIMATIONS ON SCROLL ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    /* Removed constellation scale, aspect-ratio handles it now */
}

@media (max-width: 900px) {
    .animated-bg {
        background-position: center bottom;
    }

    section {
        padding: 4rem 0;
    }
    
    .grid-2-cols {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .synopsis-text {
        order: 2;
        text-align: center;
    }
    
    .synopsis-text .highlight-text {
        text-align: left;
    }

    .synopsis-image {
        order: 1;
        margin-bottom: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .book {
        transform: rotateY(-30deg) rotateX(15deg) scale(0.85);
    }
    
    .book-container.floating-book {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

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

    .book {
        transform: rotateY(-30deg) rotateX(15deg) scale(0.7);
    }

    .cta-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .cta-buttons .btn:not(.btn-social) {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn-social {
        width: 50px;
        height: 50px;
        margin: 0 0.5rem;
    }

    .book-excerpt-container {
        padding: 1.5rem;
    }
    
    .star-info {
        width: 180px;
        padding: 0.8rem;
    }
    
    .star-info h4 {
        font-size: 0.9rem;
    }
    
    .star-info p {
        font-size: 0.8rem;
    }
    
    .teaser-card {
        padding: 1.5rem;
    }

    .cast-card {
        min-width: 250px;
        max-width: 250px;
    }
    
    .author-layout {
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .author-image-wrapper {
        width: 150px;
        height: 150px;
        flex: 0 0 150px;
        margin: 0;
    }

    .author-text .section-title {
        text-align: left;
    }
    
    .author-text .author-bio {
        text-align: left;
    }
}

@media (max-width: 400px) {
    .book {
        transform: rotateY(-30deg) rotateX(15deg) scale(0.55);
    }
}