#detailPanel {
    background: var(--theme-color);
}

#detailContent {
    background: var(--background-color);
    color: white;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
}

/* En-tête avec bouton fermer */
.detail-header {
    padding: 16px;
    position: relative;
    background: var(--theme-color);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.8em;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.detail-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    font-size: 0.6em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.detail-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.2;
}

.detail-subtitle {
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 4px;
    font-style: italic;
}

.detail-meta {
    font-size: 0.8em;
    opacity: 0.9;
    margin-top: 6px;
}

/* Sections alternées */
.detail-content {
    padding: 0;
}

.detail-content section {
    padding: 6px 8px;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: start;
}

.detail-content section:nth-child(odd) {
    background: rgba(0, 0, 0, 0.1);
}

.detail-content section:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.detail-content section:last-child {
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.15);
}

.detail-content h3 {
    margin: 0;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    /* letter-spacing: 0.5px; */
    padding-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon {
    font-size: 1.2em;
    opacity: 0.8;
}

.detail-content p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

/* Section créateurs spéciale */
.creators-section {
    display: block;
    padding: 10px 16px;
}

.creators-list {
    margin-left: 16px;
}

.creator-role-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 8px 12px;
    align-items: start;
}

/*.creator-role-row:first-child {*/
/*    border-top-left-radius: 20px;*/
/*    border-top-right-radius: 20px;*/
/*}*/

/*.creator-role-row:last-child {*/
/*    border-bottom-left-radius: 20px;*/
/*    border-bottom-right-radius: 20px;*/
/*}*/

.creator-role-row:nth-child(odd) {
    background: rgba(0, 0, 0, 0.15);
}

.creator-role-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.08);
}

.role-label {
    font-size: 0.85em;
    font-weight: 600;
    opacity: 0.8;
}

.creators-names {
    font-size: 0.9em;
}

/* Vues avec effet relief */
.views-section {
    display: block;
    margin: 30px 10px 10px 10px;
    border-radius: 15px;
    box-shadow: 0 0 7px 1px rgb(0 0 0 / 30%)
}

.views-section h3 {
    padding-top: 4px;
    margin: 0;
}

.views-container {
    margin-top: 8px;
}

.view-item {
    padding: 10px;
}

.view-item:nth-child(odd) {
    background: rgba(0, 0, 0, 0.1);
}

.view-item:last-child {
    margin-bottom: 0;
}

.view-header {
    /*display: flex;*/
    /*justify-content: space-between;*/
    /*font-size: 0.85em;*/
    /*margin-bottom: 4px;*/
    display: grid;
    grid-template-columns: auto 1fr auto; /* date, notes (centre flex), platform */
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
}

.view-header strong {
    font-weight: 600;
}

.view-header span {
    opacity: 0.8;
}

.view-date {
    font-weight: 600;
}

.view-grades {
    display: flex;
    gap: 8px;
    font-size: 0.9em;
    justify-content: center;
    margin: 4px 0;
}

.view-platform {
    text-align: right;
    opacity: 0.8;
    font-size: 0.9em;
}

.view-review {
    margin: 0;
    font-size: 0.85em;
    line-height: 1.3;
    text-align: left;
}

#debugDetail {
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 4px;
    text-align: left;
    text-wrap: auto;
}