body {
    background-color: #000;
    font-family: 'Orbitron', sans-serif;
    color: #0ff;
    margin: 0;
}

.retrovault-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.retrovault-logo-wrapper {
    width: 100%;
    text-align: center;
}

.retrovault-logo {
    max-width: 200px;
    height: auto;
}

.retrovault-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 1rem;
}

.rv-button {
    padding: 0.5rem 1rem;
    border: 1px solid #00f6ff;
    background: none;
    color: #00f6ff;
    font-family: Orbitron, monospace;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    border-radius: 0.5rem;
    box-shadow: 0 0 5px #00f6ff;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    cursor: pointer;
}

.rv-button:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

.retrovault-search {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.retrovault-search input {
    width: 250px;
    padding: 0.5rem;
    background-color: #000;
    color: #0ff;
    border: 1px solid #00f6ff;
    font-family: monospace;
    box-shadow: 0 0 5px #00f6ff;
    transition: box-shadow 0.2s ease;
}

.retrovault-search input:focus {
    outline: none;
    box-shadow: 0 0 10px #00f6ff;
}

.rv-search-results {
    color: #00f6ff;
    text-align: center;
    margin: 1rem 0;
    font-family: Orbitron, monospace;
}

.rv-search-list {
    list-style: none;
    padding: 0;
    margin: 1rem auto 2rem auto;
    max-width: 600px;
    text-align: center;
}

.rv-search-list li {
    margin: 0.5rem 0;
    font-family: Orbitron, monospace;
    font-size: 1rem;
}

.rv-search-list a {
    color: #00f6ff;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.rv-search-list a:hover {
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
}

.retrovault-separator {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff00ff, #ff00ff66, #ff00ff);
    box-shadow: 0 0 15px #ff00ff;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.retrovault-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    width: 100%;
}

.rv-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.rv-tile {
    width: 200px;
    min-height: 120px;
    text-align: center;
    font-family: Orbitron, sans-serif;
    font-size: 1.4rem;
    color: #ff00ff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.rv-tile[style] {
    padding: 0;
    border: none;
    background-size: cover;
    background-position: center;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 0 10px #00f6ff66;
    border-radius: 12px;
    position: relative;
}

.rv-tile[style*="back.jpg"]::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 0;
    pointer-events: none;
}

.rv-tile-overlay {
    position: relative;
    z-index: 1;
    padding: 0.5rem 1rem;
    text-align: center;
    font-family: Orbitron, sans-serif;
    color: #ff00ff;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 1px #ff00ff, 0 0 1px #ff00ff;
    background: none;
}

.rv-tile[style]:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px #ff00ff;
}

.rv-fullcard-split {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #111;
    border: 2px solid #00f6ff;
    padding: 2rem;
    box-shadow: 0 0 12px #00f6ff66;
}

.rv-fullcard-photos {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
}

.rv-fullcard-img-main {
    width: 100%;
    border: 2px solid #00f6ff;
    box-shadow: 0 0 8px #00f6ff;
    margin-bottom: 1rem;
    cursor: pointer;
}

.rv-fullcard-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.rv-fullcard-img-thumb {
    width: 64px;
    height: auto;
    border: 1px solid #00f6ff;
    box-shadow: 0 0 5px #00f6ff88;
    transition: transform 0.2s;
    cursor: pointer;
}

.rv-fullcard-img-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 8px #ff00ff;
}

.rv-fullcard-details {
    flex: 2;
    min-width: 250px;
    color: #fff;
    font-family: Orbitron, sans-serif;
}

.rv-fullcard-details h2 {
    color: #ff00ff;
    font-size: 2rem;
    margin-top: 0;
    text-shadow: 0 0 5px #ff00ff88;
}

.rv-fullcard-details p {
    margin: 0.5rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

.rv-fullcard-details strong {
    color: #00f6ff;
}

.rv-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.rv-lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.rv-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 2rem;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

/* --- RetroVault header row: logo à droite + player à gauche --- */
.rv-header{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  position: relative; /* permet de placer le player à droite */
}

.rv-embed{
  width: min(25%, 520px);
/* min-width: 360px; */
  height: 140px;
  position: absolute; /* placement libre */
  right: 0; /* collé à droite */
  top: 50%;
  transform: translateY(-50%);
/*  flex: 0 0 auto; */
}

.rv-embed iframe{
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
  background: #000;
}


@media (max-width: 768px) {
    .retrovault-container {
        padding: 1rem;
    }

    .retrovault-controls {
        flex-direction: column;
        align-items: center;
    }

    .retrovault-search {
        width: 100%;
        justify-content: center;
    }

    .rv-row {
        flex-direction: column;
        align-items: center;
    }

    .rv-tile {
        width: 90%;
    }

    .rv-tile-overlay {
        font-size: 2.2rem;
    }

    .rv-button {
        width: 100%;
        text-align: center;
    }

    .rv-fullcard-split {
        flex-direction: column;
        align-items: center;
    }

    .rv-fullcard-photos,
    .rv-fullcard-details {
        width: 100%;
        max-width: none;
    }

    .rv-fullcard-img-thumb {
        width: 48px;
    }
}
