* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Julius Sans One", sans-serif;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(90, 62, 38, 0.18), transparent 55%),
        radial-gradient(circle at center, #14110c 0%, #050403 72%);
    color: #f0e8dc;
	overflow-x: hidden; /* 👈 garde ça */
}

button, input, select, textarea {
    font-family: inherit;
}

button:first-child:hover {
    box-shadow: 0 0 25px rgba(212,175,55,0.4);
    border-color: rgba(212,175,55,0.8);
    color: #fff3c4;
}

button:last-child:hover {
    box-shadow: 0 0 25px rgba(255,0,80,0.5);
    border-color: rgba(255,0,80,0.9);
    color: #ffd0e0;
}


/* 👇 NOUVEAU LAYER */
body::before {
    content: "";
    position: fixed;
    inset: -50%;
    background: radial-gradient(circle, rgba(212,175,55,0.08), transparent 60%);
    animation: moveLight 12s linear infinite;
    z-index: -1;
}

@keyframes moveLight {
    0% { transform: translate(0%, 0%); }
    25% { transform: translate(10%, -10%); }
    50% { transform: translate(-10%, 10%); }
    75% { transform: translate(5%, 5%); }
    100% { transform: translate(0%, 0%); }
}

/* 🔥 GATE — Égypte ancienne, mystique */

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 0); }
    80% { transform: translate(1px, 0); }
    100% { transform: translate(0); }
}

#gate {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1s ease;
    overflow: hidden;
    background:
		radial-gradient(circle at center, rgba(255,255,255,0.04), transparent 60%),
		linear-gradient(160deg, #050505 0%, #0a0a0a 50%, #030303 100%);
}

#gate::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    opacity: 0.055;
    pointer-events: none;
}

#gate::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.015),
        rgba(255,255,255,0.015) 1px,
        transparent 1px,
        transparent 3px
    );
    pointer-events: none;
}

@keyframes gateSunPulse {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

.gate-frame {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 24px;
    padding: 2.5rem 2.25rem 2.75rem;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(0, 0, 0, 0.85),
        inset 0 0 0 1px rgba(255, 230, 180, 0.06),
        inset 0 -20px 50px rgba(0, 0, 0, 0.35);
    background:
        linear-gradient(180deg, rgba(35, 28, 18, 0.45) 0%, rgba(12, 10, 8, 0.75) 100%);
    backdrop-filter: blur(8px);
}

.gate-frame::before,
.gate-frame::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 72, 0.45), transparent);
    pointer-events: none;
}

.gate-frame::before { top: 0.85rem; }
.gate-frame::after { bottom: 0.85rem; }

.gate-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(201, 162, 72, 0.55);
    border-style: solid;
    pointer-events: none;
}

.gate-corner--tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.gate-corner--tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.gate-corner--bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.gate-corner--br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

.gate-content {
    text-align: center;
    color: #e8d4a8;
}

.gate-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(200, 200, 200, 0.6);
    margin: 0 0 1.35rem;
    opacity: 0.6;
    animation: fadeIn 1.6s ease 0.2s forwards;
}

.gate-hiero {
    display: block;
    font-family: "Noto Sans Egyptian Hieroglyphs", "Julius Sans One", sans-serif;
    font-size: 1.65rem;
    line-height: 1.4;
    letter-spacing: 0.35em;
    color: rgba(212, 175, 90, 0.55);
    margin-bottom: 1.1rem;
    text-shadow: 0 0 24px rgba(212, 175, 90, 0.25);
    opacity: 0;
    animation: fadeIn 2s ease 0.35s forwards;
}

#gate-text {
    font-size: clamp(1.45rem, 4vw, 1.85rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1.45;
    margin: 0;
    color: #f0e6d2;
    text-shadow:
        0 0 40px rgba(212, 175, 90, 0.25),
        0 2px 20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    display: inline-block;
    animation:
        fadeIn 2.2s ease 0.5s forwards,
        glitch 6s infinite 2.7s;
}

.gate-divider {
    width: 100px;
    height: 1px;
    margin: 1.5rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 72, 0.5), transparent);
    opacity: 0;
    animation: fadeIn 1.8s ease 0.9s forwards;
}

#gate .gate-btn {
    margin-top: 1.85rem;
    padding: 0.95rem 2rem;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    background: linear-gradient(180deg, rgba(55, 42, 26, 0.95) 0%, rgba(18, 14, 10, 0.98) 100%);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 245, 220, 0.08);
    transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    opacity: 0;
    animation: fadeIn 1.5s ease 1.1s forwards;
}

#gate .gate-btn:hover {
    color: #fff8e8;
    border-color: rgba(230, 200, 120, 0.95);
    box-shadow:
        0 0 32px rgba(212, 175, 90, 0.22),
        0 6px 28px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 245, 220, 0.12);
    transform: translateY(-2px);
}

#gate .gate-btn:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* STRUCTURE — thème album */
.wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.card {
    position: relative;
    padding: 2.5rem 2.25rem 3rem;
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 72, 0.28);
    background: linear-gradient(168deg, rgba(24, 20, 16, 0.96) 0%, rgba(10, 9, 8, 0.98) 100%);
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 245, 220, 0.04);
}

.hero {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cover {
        max-width: 420px;
        margin: 0 auto;
    }
    .meta {
        max-width: none;
        text-align: center;
    }
    .kicker { margin-left: auto; margin-right: auto; }
}

.cover {
    position: relative;
    display: block;
}

.cover img {
	transform: scale(1);
	transition: transform 6s ease;
    width: 100%;
    display: block;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 162, 72, 0.12);
}

.cover img:hover {
    transform: scale(1.03);
}

/* Paroles : bandeau en bas de la pochette uniquement */
#lyrics-overlay.cover-lyrics {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.meta { display: flex; flex-direction: column; justify-content: center; max-width: 420px; }

.kicker {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(212,175,55,0.22), rgba(212,175,55,0.05));
    color: #dfc278;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

h1 {
    margin: 0 0 12px;
    font-size: 2.7rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #f5ebd4;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.description {
	text-shadow: 0 0 12px rgba(212,175,55,0.12);
    margin-bottom: 20px;
    color: #c4b8a4;
    line-height: 1.65;
    font-size: 1.12rem;
}

#now-playing {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(201, 162, 72, 0.85);
    text-transform: uppercase;
}

h2 {
    position: relative;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: #ebe2d2;
}

h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background: #d4af37;
    margin-top: 8px;
}

/* 🎧 niveau audio — fine ligne sous le player (pas un grand bloc) */
#visualizer-track {
    margin-top: 14px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

#visualizer {
    --level: 0.35;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left center;
    transform: scaleX(var(--level));
    will-change: transform;
    background: linear-gradient(
        90deg,
        rgba(212, 175, 55, 0.9),
        rgba(212, 175, 55, 0.4)
    );
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
    opacity: 0;
    transition: opacity 0.35s ease;
}

#visualizer.is-active {
    opacity: 1;
}

audio {
    margin-top: 25px;
    width: 100%;
    border-radius: 20px;
}

/* PLAYLIST */
.playlist-section {
    margin-top: 4.5rem;
}

#playlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

#playlist li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    cursor: pointer;
}

.track-title {
    font-size: 1.14rem;
    flex: 1 1 12rem;
}

.track-hiero {
    font-family: "Noto Sans Egyptian Hieroglyphs", "Julius Sans One", sans-serif;
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    line-height: 1.35;
    letter-spacing: 0.12em;
    color: rgba(201, 162, 72, 0.55);
    text-shadow: 0 0 20px rgba(212, 175, 90, 0.15);
    flex-shrink: 0;
    max-width: 100%;
}

#playlist li:hover {
    color: #d4af37;
    transform: translateX(4px);
}

#playlist li:hover .track-title {
    color: #d4af37;
}

#playlist li:hover .track-hiero {
    color: rgba(230, 205, 130, 0.85);
}

.current .track-title {
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
}

.current .track-hiero {
    color: rgba(230, 205, 140, 0.92);
    text-shadow: 0 0 14px rgba(212, 175, 90, 0.25);
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

/* Paroles sur la pochette (bas de l’image), sync audio */
.lyric-float {
    width: 100%;
    box-sizing: border-box;
    padding: 0.85rem 0.75rem 1rem;
    font-family: "Julius Sans One", sans-serif;
    font-size: clamp(0.7rem, 1.65vw, 0.92rem);
    line-height: 1.4;
    text-align: center;
    color: rgba(248, 242, 228, 0.96);
    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(212, 175, 90, 0.25);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.5) 55%,
        transparent 100%
    );
    border: none;
    border-radius: 0;
    animation: lyricIn 0.45s ease forwards;
}

@keyframes lyricIn {
    from {
        opacity: 0;
        filter: blur(4px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

#playlist li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: #d4af37;
    transition: width 0.3s ease;
}

#playlist li:hover::after {
    width: 100%;
}

.about {
    margin: 18px 0 10px;
    color: #d6cbb5;
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.85;
}

#intro-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: introFade 4s forwards;
}

.intro-text {
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.6em;
    font-size: 1.1rem;
    opacity: 0;
    animation: textFade 3s forwards;
    font-family: 'Julius Sans One', sans-serif;
}

#gate {
    position: fixed;
    inset: 0;
    display: flex;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
}

#gate.visible {
    opacity: 1;
    pointer-events: auto;
}

.panel {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    transition: flex 0.6s ease, filter 0.6s ease;
    background-size: cover;
    background-position: center;
    filter: brightness(0.35);
}

.panel:hover {
    flex: 1.8;
    filter: brightness(0.95);
}

.panel:hover .overlay p {
    opacity: 1;
    transform: translateY(0);
}

.overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 4rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 55%);
}

.overlay h2 {
    color: white;
    margin: 0 0 1rem 0;
    font-size: 2rem;
    letter-spacing: 0.25em;
    font-family: 'Julius Sans One', sans-serif;
}

.overlay p {
    color: rgba(255,255,255,0.75);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    max-width: 280px;
    line-height: 1.5;
}

.senatu {
    background-image:
        linear-gradient(rgba(60,40,0,0.4), rgba(0,0,0,0.7)),
        url('cover.png');
}

.thorz {
    background-image:
        linear-gradient(rgba(70,0,0,0.45), rgba(0,0,0,0.8)),
        url('thorz/cover-thorz.png');
}

.anubis {
    background-image:
        linear-gradient(rgba(0,20,80,0.4), rgba(0,0,0,0.8)),
        url('images/anubis.jpg');
}

.bjarnulf {
    background-image:
        linear-gradient(rgba(0,30,60,0.45), rgba(0,0,0,0.8)),
        url('images/bjarnulf.jpg');
}

.coming-soon {
    background:
        linear-gradient(rgba(20,20,20,0.85), rgba(0,0,0,0.95));
}

@keyframes introFade {
    0%, 75% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes textFade {
    0% {
        opacity: 0;
        letter-spacing: 1em;
    }
    30%, 70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        letter-spacing: 0.6em;
    }
}

body.gate-active .wrapper,
body.gate-active #particles,
body.gate-active div[style*="Leave a comment"],
body.gate-active #visit-counter,
body.gate-active p a[href="confidentialite.html"] {
    opacity: 0;
    pointer-events: none;
}

body.gate-active .wrapper,
body.gate-active #particles {
    transition: opacity 0.6s ease;
}


/* --- Custom Player --- */
.custom-player {
  margin: 15px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}
.player-controls { display: flex; justify-content: center; align-items: center; gap: 20px; }
.ctrl-btn {
  background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
  opacity: 0.6; transition: all 0.3s ease; padding: 0; display: flex; align-items: center;
}
.ctrl-btn:hover { opacity: 1; color: #d4af37; transform: scale(1.1); }
.play-btn { font-size: 2.2rem; opacity: 0.9; color: #d4af37; }
.player-progress, .player-volume { display: flex; align-items: center; gap: 12px; font-family: 'Inter', sans-serif; font-size: 0.75rem; color: #888; }
.player-volume { justify-content: center; margin-top: 5px; opacity: 0.7; }
#seek-bar, #volume-bar {
  flex-grow: 1; -webkit-appearance: none; background: rgba(255,255,255,0.1); height: 4px; border-radius: 2px; outline: none; cursor: pointer;
}
#volume-bar { max-width: 100px; }
#seek-bar::-webkit-slider-thumb, #volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #d4af37; box-shadow: 0 0 8px #d4af37;
}
#visualizer-track { height: 100px; position: relative; overflow: hidden; border-radius: 8px; margin-top: 15px; background: rgba(0,0,0,0.2); }
#visualizer-canvas { width: 100%; height: 100%; display: block; }
/* --- Responsive Optimization --- */
@media (max-width: 600px) {
  .wrapper { padding: 40px 10px !important; }
  .card { padding: 1.5rem 1rem !important; border-radius: 12px !important; }
  .hero { gap: 2rem !important; }
  .custom-player { padding: 12px !important; gap: 8px !important; }
  .player-controls { gap: 15px !important; }
  .play-btn { font-size: 1.8rem !important; }
  .ctrl-btn { font-size: 1.2rem !important; }
  .player-volume { display: none !important; } /* Hide volume on mobile to save space */
  .player-progress { gap: 8px !important; font-size: 0.65rem !important; }
  h1 { font-size: 1.8rem !important; }
  .playlist-section { margin-top: 2.5rem !important; }
  #playlist li { padding: 10px 0 !important; }
}
