:root {
    --bg-color: #0b0813;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #6d28d9;
    --primary-glow: rgba(109, 40, 217, 0.5);
    --accent: #06b6d4;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --danger: #ef4444;
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, .percentage {
    font-family: 'Outfit', sans-serif;
}

/* Background Blobs */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent), transparent);
    bottom: -50px;
    right: -50px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    border-bottom: 1px solid var(--card-border);
    background: rgba(11, 8, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-icon {
    font-size: 1.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.logo span {
    color: var(--accent);
    font-weight: 300;
}

.settings-toggle {
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.settings-toggle:hover {
    color: var(--text-main);
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.settings-panel.hidden {
    opacity: 0;
    pointer-events: none;
}

.panel-content {
    width: 90%;
    max-width: 400px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--accent);
}

small {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.3rem;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Glass Card Base */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Typography in Cards */
.glass-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: -webkit-linear-gradient(45deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #5b21b6;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-glow {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
    font-size: 1.1rem;
    padding: 1rem;
    border-radius: 12px;
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--primary-glow);
    transform: translateY(-2px);
}

/* Drop Zone */
.drop-zone {
    position: relative;
    border: 2px dashed var(--card-border);
    border-radius: 12px;
    padding: 3rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.05);
}

.upload-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

/* Spinner */
.status-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--accent);
    font-weight: 500;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(6, 182, 212, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Job Details */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.job-meta h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.job-meta .company {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.job-summary h4, .job-questions h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.job-questions ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.job-questions li {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Interview Placeholder */
.placeholder-state {
    text-align: center;
    padding: 2rem 0;
}

.icon-pulse {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

/* Active Interview */
.interview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.recruiter-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.avatar-ring {
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.9); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
}

.visualizer-container {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.bars {
    display: flex;
    gap: 6px;
    align-items: center;
}

.bar {
    width: 8px;
    height: 10px;
    background: var(--accent);
    border-radius: 4px;
    transition: height 0.1s ease;
}

.transcript-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 1rem;
    height: 150px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.transcript-box p {
    margin: 0;
    font-size: 0.85rem;
}

.system-msg { color: var(--accent); font-style: italic; }

.user-msg {
    color: #06b6d4;
    font-weight: 500;
}

.model-msg {
    color: #f8fafc;
}

/* Score Card */
.score-display {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 150px;
    max-height: 150px;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1.5s ease-out;
}

.score-excellent .circle { stroke: var(--success); }
.score-good .circle { stroke: var(--accent); }
.score-average .circle { stroke: #f59e0b; }
.score-poor .circle { stroke: var(--danger); }

.percentage {
    fill: var(--text-main);
    font-size: 10px;
    font-weight: bold;
    text-anchor: middle;
}

.feedback-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feedback-content ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feedback-content li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feedback-content li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.score-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.score-card:not(.hidden) .score-actions {
    display: flex !important;
}

.download-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--card-border);
}

.download-preview button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.6);
}

.question-selector {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

.question-selector h4 {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.question-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.2s ease;
}

.question-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.question-checkbox-item input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--accent);
    cursor: pointer;
}

.question-checkbox-item label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.selector-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.selector-actions .btn-text {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: var(--text-main);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease, opacity 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-secondary:disabled,
.btn-secondary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.04);
}

.score-actions .btn-secondary:not(:disabled) {
    background: rgba(109, 40, 217, 0.2);
    border-color: rgba(109, 40, 217, 0.5);
}

.score-actions .btn-secondary:not(:disabled):hover {
    background: rgba(109, 40, 217, 0.35);
}

/* Interview State Display */
.question-display {
    background: rgba(109, 40, 217, 0.08);
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.4s ease, background 0.4s ease;
}

.question-display.state-listening-active {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.3);
}

.question-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.interview-state-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.state-speaking {
    background: rgba(109, 40, 217, 0.2);
    color: #c4b5fd;
    border: 1px solid rgba(109, 40, 217, 0.4);
}

.state-listening {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    border: 1px solid rgba(6, 182, 212, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.35); }
}

.question-progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.question-display-text {
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding-left: 0.8rem;
    border-left: 2px solid rgba(109, 40, 217, 0.5);
    font-style: italic;
    opacity: 0.92;
}

/* Bouton de confirmation de réponse */
.btn-confirm {
    display: block;
    width: 100%;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 2px solid rgba(16, 185, 129, 0.45);
    font-size: 1rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, transform 0.15s;
    animation: pulse-confirm 1.6s ease-in-out infinite;
    margin-bottom: 0.8rem;
}

.btn-confirm:hover {
    background: rgba(16, 185, 129, 0.28);
    transform: scale(1.02);
}

@keyframes pulse-confirm {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.35); }
}

/* Réponse candidate en cours de capture */
.candidate-speaking {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding: 0.55rem 0.9rem;
    background: rgba(6, 182, 212, 0.07);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 8px;
}

.candidate-label {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.candidate-speaking p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.45;
}

/* Visualizer color : violet quand agent parle, cyan quand le candidat parle */
.bars.speaking .bar {
    background: var(--primary);
}

.bars.listening .bar {
    background: var(--accent);
}

/* Admin specific styles */
.admin-badge {
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    background: rgba(109, 40, 217, 0.2);
    border: 1px solid rgba(109, 40, 217, 0.5);
    color: #c4b5fd;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.admin-container {
    max-width: 800px;
    grid-template-columns: 1fr;
}

.admin-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.admin-form textarea:focus {
    border-color: var(--accent);
}

.admin-questions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-question-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
    transition: border-color 0.3s ease;
}

.admin-question-item:focus-within {
    border-color: rgba(109, 40, 217, 0.5);
}

.admin-question-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.admin-question-header input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.admin-question-header label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.admin-question-item textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
    resize: vertical;
}

.admin-question-item textarea:focus {
    border-color: var(--accent);
}

.question-count {
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
}

.admin-selector-actions {
    margin-top: 1.2rem;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.admin-back-link {
    text-decoration: none;
    text-align: center;
    width: 100%;
}

.error-message {
    margin-top: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-size: 0.9rem;
}

.status-error {
    color: #fca5a5;
}

/* History Section */
.history-empty {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
}

.history-empty p {
    margin: 0;
}

.history-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 700px;
}

.history-table thead {
    background: rgba(255, 255, 255, 0.05);
}

.history-table th,
.history-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.history-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.history-table tbody tr {
    transition: background 0.2s ease;
}

.history-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.history-table tbody tr:last-child td {
    border-bottom: none;
}

.history-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.history-actions .btn-text {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.status-badge-pending {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge-completed {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
}

.score-cell {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.score-cell-empty {
    color: var(--text-muted);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal-content {
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--card-border);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    background: -webkit-linear-gradient(45deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-header .modal-close {
    flex-shrink: 0;
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
}

.transcript-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.transcript-entry {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
}

.transcript-entry-user {
    border-left-color: var(--accent);
}

.transcript-entry-model {
    border-left-color: var(--primary);
}

.transcript-entry-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.transcript-entry-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-main);
}

.details-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.details-block h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.details-block p,
.details-block ul {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.details-block ul {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.details-block li {
    position: relative;
    padding-left: 1.3rem;
}

.details-block li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.details-score {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    background: rgba(109, 40, 217, 0.15);
    border: 1px solid rgba(109, 40, 217, 0.35);
    color: #c4b5fd;
    font-weight: 700;
    font-size: 1rem;
}

.audio-player {
    width: 100%;
    margin-top: 0.5rem;
}

.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(11, 8, 19, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--card-border);
    z-index: 100;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.app-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.app-footer a:hover {
    color: var(--accent);
}

.app-footer-version {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text-main);
}

/* Push main content above fixed footer */
main {
    padding-bottom: 3.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 100%;
        max-height: 90vh;
    }

    .modal-header,
    .modal-body {
        padding: 1rem 1.2rem;
    }

    .history-actions {
        flex-direction: column;
        gap: 0.3rem;
    }
}
