:root {
    --bg: #0f1724;
    --surface: #0b1220;
    --card: #0f1724;
    --muted: #94a3b8;
    --accent: #4f46e5;
    --glass: rgba(255, 255, 255, 0.04);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, Segoe UI, Roboto, 'Helvetica Neue', Arial;
    background: linear-gradient(180deg, #071024 0%, #081126 60%);
    color: #e6eef8;
}

.container {
    max-width: 1100px;
    margin: 28px auto;
    padding: 20px
}

.header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 1.6rem
}

.subtitle {
    margin: 6px 0 14px;
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 18px;
    align-items: start
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03)
}

.reader {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    background: linear-gradient(90deg, #07112a, #081430);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    overflow: hidden
}

.controls {
    margin-top: 12px;
    display: flex;
    gap: 10px
}

button {
    appearance: none;
    border: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent), #06b6d4);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.18);
    transition: transform .12s ease, box-shadow .12s
}

button:hover {
    transform: translateY(-2px)
}

button.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted);
    box-shadow: none
}

button:disabled {
    opacity: .45;
    cursor: default;
    transform: none
}

.message {
    padding: 6px 0;
    color: var(--muted)
}

.info.hidden {
    display: none
}

.result-card h2 {
    margin: 0 0 8px
}

.info-grid {
    display: flex;
    gap: 12px;
    align-items: flex-start
}

.photo-wrap {
    width: 120px;
    height: 120px;
    background: var(--glass);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.details p {
    margin: 6px 0;
    color: #d6e6ff
}

.details p strong {
    color: #e6eef8
}

.actions {
    margin-top: 10px
}


/* Responsive */

@media (max-width:1000px) {
    .grid {
        grid-template-columns: 1fr 320px
    }
}

@media (max-width:820px) {
    .grid {
        grid-template-columns: 1fr;
    }
    .reader {
        height: 260px
    }
}

@media (max-width:420px) {
    .reader {
        height: 220px
    }
    .photo-wrap {
        width: 96px;
        height: 96px
    }
    button {
        padding: 9px 12px
    }
}


/* Small utility */

.hidden {
    display: none
}