:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f1f3f5;
    --text: #17202a;
    --muted: #667085;
    --border: #d8dee6;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --error: #dc2626;
}

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

html,
body {
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
}

.page {
    width: min(100%, 760px);
    display: grid;
    gap: 24px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.brand-divider {
    color: var(--muted);
    font-weight: 400;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-icon:hover {
    color: var(--primary);
    border-color: #b7c7f4;
    background: #f8faff;
}

main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.profile-column {
    display: grid;
    gap: 12px;
}

.profile-btn {
    width: 100%;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    background: var(--surface);
    font-family: inherit;
    text-align: left;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-btn:hover {
    border-color: #b7c7f4;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.profile-btn:active {
    transform: translateY(0);
}

.btn-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--primary);
    background: #eef4ff;
    font-size: 18px;
}

.btn-tag {
    display: inline-flex;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-label {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-foot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 13px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
}

.profile-btn:hover .btn-foot {
    background: var(--primary-hover);
}

.profile-btn.copied {
    border-color: rgba(22, 163, 74, 0.45);
}

.profile-btn.copied .btn-foot {
    background: var(--success);
}

.profile-btn.error {
    border-color: rgba(220, 38, 38, 0.45);
}

.profile-btn.error .btn-foot {
    background: var(--error);
}

.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #000000;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.bottom-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.bottom-bar a {
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    font-size: 0.94rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.bottom-bar a:hover {
    color: var(--primary);
    border-color: #b7c7f4;
    background: #f8faff;
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding: 24px 16px;
    }

    .top-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-icons {
        justify-content: flex-start;
    }

    main,
    .bottom-bar {
        grid-template-columns: 1fr;
    }
}
