* {
    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;
}

/* Enable pull-to-refresh on mobile */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
    
    .main-content {
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.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: 1.5rem 3rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 140, 60, 0.2);
    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: 1rem;
    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: 120px;
    text-align: center;
    text-decoration: none;
    display: block;
}

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

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff5964, #ff8c3c, #508cff);
    transition: width 0.3s ease;
}

.nav-item.active::after {
    width: 100%;
}

.nav-item:hover::after {
    width: 0;
}

.nav-item .english,
.nav-item .japanese {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.4s ease;
}

.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;
}

.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: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

.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: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 140, 60, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

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

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

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

/* Corner decorations */
.corner {
    position: fixed;
    width: 60px;
    height: 60px;
    border-style: solid;
    border-color: rgba(255, 140, 60, 0.5);
    z-index: 5;
    pointer-events: none;
}

.corner-tl {
    top: 100px;
    left: 20px;
    border-width: 3px 0 0 3px;
}

.corner-tr {
    top: 100px;
    right: 20px;
    border-width: 3px 3px 0 0;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-width: 0 0 3px 3px;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-width: 0 3px 3px 0;
}

/* 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;
}

/* Responsive Design */
@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: 0.8rem;
        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;
    }

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

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

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

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

    /* Logo central responsive */
    .center-logo {
        width: 200px;
        height: 200px;
        transition: all 0.3s ease;
    }

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

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

    /* Corners ajustés pour mobile */
    .corner {
        width: 40px;
        height: 40px;
        border-width: 2px !important;
        transition: all 0.3s ease;
    }

    .corner-tl {
        top: 80px;
        left: 15px;
        border-width: 2px 0 0 2px !important;
    }

    .corner-tr {
        top: 80px;
        right: 15px;
        border-width: 2px 2px 0 0 !important;
    }

    .corner-bl {
        bottom: 15px;
        left: 15px;
        border-width: 0 0 2px 2px !important;
    }

    .corner-br {
        bottom: 15px;
        right: 15px;
        border-width: 0 2px 2px 0 !important;
    }
}

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

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

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

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

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

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

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

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

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

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

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

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

    /* Corners encore plus petits pour très petits écrans */
    .corner {
        width: 25px;
        height: 25px;
    }

    .corner-tl,
    .corner-tr {
        top: 60px;
    }

    .corner-bl,
    .corner-br {
        bottom: 8px;
    }

    .corner-tl,
    .corner-bl {
        left: 8px;
    }

    .corner-tr,
    .corner-br {
        right: 8px;
    }
}

@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.4rem;
        margin-right: 0.1rem;
    }

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

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

    .content-container {
        padding: 1.2rem 0.8rem;
    }

    .corner {
        width: 20px;
        height: 20px;
    }

    .corner-tl,
    .corner-tr {
        top: 55px;
    }
}
