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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
    overscroll-behavior-y: none;
}

body.biography-page {
    overflow-y: auto;
}

/* Enable pull-to-refresh on mobile */
@media (max-width: 768px) {
    body.biography-page .main-content {
        padding-top: 75px;
    }
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    animation: fadeInVideo 0.6s ease-in forwards;
}

@keyframes fadeInVideo {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Image Background for Biography */
.image-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    opacity: 100%;
}

.image-background::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.image-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    z-index: 2;
}

.image-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

@media (max-width: 768px) {
    .image-background::after {
        height: 90px;
    }

    .image-background img {
        object-position: center 30%;
    }
}

@media (max-width: 480px) {
    .image-background::after {
        height: 70px;
    }

    .image-background img {
        object-position: center 35%;
    }
}

.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 70%, transparent 100%);
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 3rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: padding 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    position: absolute;
    left: 3rem;
    width: 150px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo-icon:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ff8c3c, #508cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 0,5rem;
    align-items: center;
    transition: gap 0.3s ease;
}

.nav-item {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    min-width: 130px;
    text-align: center;
    text-decoration: none;

    .block-display {
        display: block;
    };
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-item:hover .english {
    color: #ff8c3c;
}

.nav-item .english,
.nav-item .japanese {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    transition: opacity 0.4s ease;
    white-space: nowrap;
}

.nav-item .english {
    opacity: 1;
}

.nav-item .japanese {
    opacity: 0;
}

.nav-item:hover .english {
    opacity: 0;
}

.nav-item:hover .japanese {
    opacity: 1;
}

/* Couleurs spécifiques pour chaque lien en japonais */
.nav-item:nth-child(1):hover .japanese {
    color: #ff8c3c;
}

.nav-item:nth-child(2):hover .japanese {
    color: #508cff;
}

.nav-item:nth-child(3):hover .japanese {
    color: #a855f7;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

body.biography-page .main-content {
    height: auto;
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 60px;
    justify-content: flex-start;
}

.artist-title {
    font-size: 3.5rem;
    letter-spacing: 8px;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 140, 60, 0.5);
    margin-top: 1rem;
}

/* Center Logo */
.center-logo {
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.center-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(255, 140, 60, 0.5));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Content Pages Styles */
.content-container {
    max-width: 900px;
    width: 90%;
    background: transparent;
    backdrop-filter: none;
    padding: 0 2rem 3rem;
    border-radius: 0;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
}

.page-title {
    font-size: 2.5rem;
    letter-spacing: 4px;
    color: #fff;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ff8c3c, #508cff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.bio-content,
.music-content,
.download-content {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1.1rem;
    transition: font-size 0.3s ease;
    text-align: center;
}

.bio-content p,
.music-content p,
.download-content p {
    margin-bottom: 2rem;
}

.bio-content .highlight {
    color: #ff8c3c;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 140, 60, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #ff8c3c, #508cff);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 1.2rem;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .logo-icon {
        position: static;
        width: 75px;
        height: 48px;
        flex-shrink: 0;
        margin-left: 0.3rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .mobile-menu-btn {
        display: none;
    }

    nav {
        position: static;
        display: flex;
        flex-direction: row;
        gap: 1.2rem;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        border: none;
        justify-content: flex-end;
        align-items: center;
        flex: 1;
        transition: none;
        margin-right: 0.3rem;
    }

    nav.active {
        right: auto;
    }

    .nav-item {
        min-width: auto;
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        white-space: nowrap;
        text-align: center;
        height: 2.5rem;
    }

    .nav-item .english,
    .nav-item .japanese {
        position: static;
        transform: none;
        opacity: 1 !important;
    }

    .nav-item .japanese {
        display: none;
    }

    .nav-item:hover .english {
        opacity: 1;
    }

    .artist-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .page-title {
        font-size: 2rem;
        letter-spacing: 3px;
        margin-bottom: 1.2rem;
    }

    /* Logo central responsive */
    .center-logo {
        width: 350px;
        height: 350px;
    }

    /* Content container responsive */
    .content-container {
        padding: 0 1.5rem 2rem;
        width: 92%;
    }

    .bio-content,
    .music-content,
    .download-content {
        font-size: 1rem;
        line-height: 1.7;
        text-align: justify;
        text-align-last: center;
    }

    /* Vidéo ajustée pour mobile */
    .video-background::before {
        height: 90px;
    }

    .video-background video {
        object-position: center 30%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.6rem 1rem;
        gap: 1rem;
    }

    .logo-icon {
        width: 65px;
        height: 42px;
        margin-left: 0.2rem;
    }

    nav {
        gap: 0.1rem;
        margin-right: 0.2rem;
    }

    .nav-item {
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        min-width: 68px;
        height: 2.2rem;
    }

    .nav-item::after {
        bottom: -5px;
    }

    .artist-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
    }

    .page-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }

    /* Logo central petit écran */
    .center-logo {
        width: 150px;
        height: 150px;
    }

    /* Content pages responsive */
    .content-container {
        padding: 0 1rem 1.5rem;
        width: 95%;
        max-width: 100%;
    }

    body.biography-page .main-content {
        padding-top: 70px;
    }

    .page-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin-bottom: 1rem;
    }

    .bio-content,
    .music-content,
    .download-content {
        font-size: 0.88rem;
        line-height: 1.8;
        text-align: justify;
        text-align-last: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .bio-content p,
    .music-content p,
    .download-content p {
        margin-bottom: 1.3rem;
    }

    /* Vidéo optimisée pour petits écrans */
    .video-background::before {
        height: 70px;
    }

    .video-background video {
        object-position: center 35%;
        transform: scale(1.1);
    }
}

@media (max-width: 360px) {
    header {
        padding: 0.5rem 0.8rem;
        gap: 0.8rem;
    }

    .logo-icon {
        width: 58px;
        height: 38px;
        margin-left: 0.1rem;
    }

    nav {
        gap: 0.5rem;
        margin-right: 0.1rem;
    }

    .nav-item {
        padding: 0.35rem 0.4rem;
        font-size: 0.65rem;
        min-width: 64px;
        height: 2rem;
    }

    .center-logo {
        width: 200px;
        height: 200px;
    }

    body.biography-page .main-content {
        padding-top: 65px;
    }

    .page-title {
        font-size: 1.3rem;
        letter-spacing: 1px;
        margin-bottom: 0.8rem;
    }

    .content-container {
        padding: 0 0.8rem 1.3rem;
        width: 96%;
    }

    .bio-content,
    .music-content,
    .download-content {
        font-size: 0.85rem;
        line-height: 1.75;
    }

    .bio-content p,
    .music-content p,
    .download-content p {
        margin-bottom: 1.1rem;
    }
}