* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f6f7fb;
    margin: 0;
    padding: 16px;
    color: #161616;
}

.container {
    width: 100%;
    max-width: 950px;
    margin: auto;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(22, 31, 48, 0.08);
}

input,
select,
textarea,
button {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    margin: 7px 0 14px;
    font-size: 16px;
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button {
    background: #ff4f8b;
    color: #fff;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.delete {
    background: #777;
}

.message,
.box,
.wish {
    width: 100%;
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.box {
    background: #ffffff;
    border-color: #dfe3ea;
}

.error {
    background: #ffe1e1;
    color: #900;
}

.success {
    background: #e0ffe9;
    color: #075c20;
}

.wish {
    display: block;
    background: #ffffff;
    border-color: #dfe3ea;
}

.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 8px 0 24px;
    padding: 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff0f6 0%, #f6f3ff 50%, #eaf8f3 100%);
    border: 1px solid #e2d8ee;
}

.page-hero h1 {
    margin: 0 0 8px;
}

.hero-event {
    max-width: 620px;
    color: #3e4b69;
    font-size: 16px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.hero-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.hero-stats span {
    min-width: 92px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(62, 75, 105, 0.14);
    color: #3e4b69;
    font-size: 14px;
    text-align: center;
}

.hero-stats strong {
    display: block;
    color: #161616;
    font-size: 22px;
    line-height: 1;
}

.wish h3 {
    margin: 0;
}

.wish p {
    margin: 8px 0;
}

.wish-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.found-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 8px;
    background: #e0ffe9;
    color: #075c20;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 8px;
    background: #eef2ff;
    color: #334155;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}

.provider-smule {
    background: #e8f5ff;
    color: #09638f;
}

.provider-karafun {
    background: #ffe8f1;
    color: #b01852;
}

.wish-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

.compact-meta {
    align-items: center;
    font-size: 15px;
    line-height: 1.35;
}

.compact-meta span {
    display: inline-flex;
    gap: 4px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.singalong {
    margin-top: 14px;
}

.request-panel {
    width: 100%;
    background: #ffffff;
    border: 1px solid #dfe3ea;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.request-panel summary,
.singalong summary {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef2ff;
    cursor: pointer;
    font-weight: bold;
}

.request-panel summary {
    background: #ff4f8b;
    color: #fff;
}

.request-panel[open] summary,
.singalong[open] summary {
    margin-bottom: 10px;
}

.wish-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.wish-actions form {
    width: auto;
    margin: 0;
}

.wish-actions button {
    width: auto;
    margin: 0;
    padding: 8px 12px;
}

.event-admin-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.event-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    flex: 1;
}

.event-delete-form {
    flex: 0 0 auto;
}

.event-admin-row input,
.event-admin-row button {
    margin: 0;
}

.event-admin-row button {
    width: auto;
}

.found-button {
    background: #169b62;
}

.found-note {
    display: flex;
    align-items: center;
    min-height: 38px;
    color: #075c20;
    font-size: 14px;
    font-weight: bold;
}

.comment {
    background: #eef2ff;
    padding: 10px;
    border-radius: 8px;
    margin: 8px 0;
    overflow-wrap: anywhere;
}

.empty-state {
    display: grid;
    gap: 6px;
    padding: 28px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px dashed #b7c7d8;
    color: #3e4b69;
}

.empty-state strong {
    color: #161616;
    font-size: 20px;
}

.external-note {
    color: #64748b;
    font-size: 13px;
}

.legal-page {
    line-height: 1.55;
}

.legal-page p {
    max-width: 760px;
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #dfe3ea;
}

.site-footer a {
    color: #64748b;
    font-size: 14px;
}

.small {
    color: #666;
    font-size: 14px;
}

a {
    color: #ff4f8b;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.adminbar {
    text-align: right;
    margin-bottom: 15px;
}

h1 {
    font-size: clamp(26px, 6vw, 38px);
}

h2 {
    font-size: clamp(21px, 5vw, 28px);
}

h3 {
    font-size: clamp(18px, 4vw, 23px);
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 14px;
        border-radius: 0;
    }

    .page-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .hero-stats {
        justify-content: flex-start;
        width: 100%;
    }

    .hero-stats span {
        flex: 1;
        min-width: 130px;
    }

    .event-admin-row,
    .event-edit-form {
        display: block;
    }

    .event-admin-row button {
        width: 100%;
        margin-bottom: 8px;
    }

    .event-admin-row input {
        margin-bottom: 8px;
    }

    .adminbar {
        text-align: left;
        line-height: 1.8;
    }

    .wish {
        padding: 12px;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px;
        padding: 13px;
    }

    .box,
    .message,
    .comment,
    .empty-state {
        padding: 12px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 0;
    }

    .container {
        padding: 12px;
    }

    input,
    select,
    textarea,
    button {
        font-size: 16px;
    }
}
