:root {
    --card-width: 900px;
    --card-height: 300px;
    --accent: #4a90e2;
    --bg-url: "../img/bg.jpg";
}

* {
    box-sizing: border-box;
    font-family: Inter, Segoe UI, system-ui, Roboto, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif
}

body {
    margin: 20px;
    background: #f5f7fb;
    color: #111
}

.container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto
}

.controls {
    width: 320px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(10, 10, 20, 0.06)
}

.controls h2 {
    margin-top: 0;
    font-size: 18px
}

.controls label {
    display: block;
    margin: 10px 0;
    font-size: 14px
}

.controls input[type="text"],
.controls input[type="url"],
.controls textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #d6dbe6;
    border-radius: 6px
}

.controls input[type="file"] {
    width: 100%
}

.controls .or {
    text-align: center;
    color: #888;
    margin: 6px 0
}

.controls-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px
}

.controls-actions button {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 0;
    cursor: pointer
}

#btn-save {
    background: var(--accent);
    color: #fff
}

#btn-reset {
    background: #f0f2f6;
    color: #333
}

.preview-area {
    flex: 1
}

.preview-area h2 {
    margin-top: 0
}

.card {
    width: var(--card-width);
    height: var(--card-height);
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 20, 40, 0.12)
}

.card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.15)), url("../img/bg.jpg") center/cover no-repeat;
    filter: saturate(0.9);
    transform: translateZ(0)
}

.card-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    padding: 28px
}

.left {
    flex: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: center
}

.left h1 {
    margin: 0;
    font-size: 34px;
    letter-spacing: 0.5px
}

.left .mcid {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600
}

.tags {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
    align-items: center
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 13px
}

.tag-label {
    font-weight: 700;
    font-size: 12px;
    opacity: 0.95;
    white-space: nowrap
}

.tag-value {
    font-weight: 500;
    font-size: 13px
}

.left .item {
    margin: 6px 0;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    display: inline-block;
    border-radius: 999px
}

.left .desc {
    margin-top: 12px;
    max-width: 60%;
    line-height: 1.45
}

.social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
    align-items: center
}

.social-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95)
}

.social-label {
    font-weight: 700;
    opacity: 0.95;
    white-space: nowrap
}

.social-value {
    font-weight: 500;
    opacity: 0.95
}

.social-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #fff;
    opacity: 0.95
}

.hidden {
    display: none
}

.right {
    width: 240px;
    display: flex;
    align-items: center;
    justify-content: center
}

.avatar-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, 0.18)
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.card-credit {
    position: absolute;
    right: 12px;
    bottom: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.18);
    padding: 6px 8px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

@media(max-width:1000px) {
    .container {
        flex-direction: column;
        align-items: stretch
    }

    .controls {
        width: auto
    }

    .card {
        width: 100%;
        height: 360px
    }

    .left .desc {
        max-width: 100%
    }

    .right {
        width: 200px
    }
}