.footer { width: 100%; }

.parent-vowel {
    display: grid;
    grid-template-columns: 1fr 8fr 1fr 300px;
    grid-template-rows: 1fr;
    grid-column-gap: 2px;
    grid-row-gap: 2px;
}

.div1-vowel { grid-area: 1 / 1 / 2 / 2; }
.div2-vowel { grid-area: 1 / 3 / 2 / 4; }
.div3-vowel { grid-area: 1 / 2 / 2 / 3; }
#sidebar { grid-area: 1 / 4 / 2 / 5; }

.text { padding: 5px; }

.text ul,
.text ol {
    margin: 0 0 20px 35px;
    padding-left: 20px;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

.text ul {
    list-style-type: disc;
}

.text ol {
    list-style-type: decimal;
}

.text li {
    display: list-item;
    margin-bottom: 8px;
}

.text ul ul {
    list-style-type: circle;
}

.text ul ul ul {
    list-style-type: square;
}

.text table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.text th,
.text td {
    padding: 14px 18px;
    border: 1px solid #ccc;
    text-align: left;
    vertical-align: top;
}

.text th {
    font-weight: 600;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
}

.vc-container {
    max-width: none;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #FFFFFF;
}

.vc-title {
    font-size: 36px;
    color: #333;
    margin: 0 auto;
    text-align: center;
    padding: 10px 0;
}

.parent-vowel p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 300;
}

.text a { color: #1A73E8; }
.parent-vowel h2, h3 { margin-bottom: 20px; }

.input-block {
    width: 90%;
    margin-bottom: 18px;
}

.input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.input-inline-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    width: 100%;
}

.input-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.input-label-inline {
    margin: 0;
    text-align: left;
    white-space: nowrap;
}

.copy-btn {
    border: 1px solid #d0d7de;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s;
    white-space: nowrap;
    height: 44px;
    min-width: 88px;
    margin-left: auto;
}

.copy-btn:hover {
    background: #f8fafc;
    border-color: #bfc8d4;
}

.copy-btn:active {
    transform: translateY(1px);
}

#metaTitleInput,
#urlInput {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    font-size: 18px;
    line-height: 1.4;
    height: 52px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fff;
    color: #222;
}

#metaDescriptionInput {
    width: 100%;
    box-sizing: border-box;
    padding: 16px;
    font-size: 18px;
    line-height: 1.55;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: none;
    overflow-y: auto;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    background: #fff;
    color: #222;
    height: calc(1.55em * 3 + 32px);
    min-height: 0;
}

#metaTitleInput:focus,
#urlInput:focus,
#metaDescriptionInput:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.12);
}

.count-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
    margin-top: 10px;
}

.count-chip {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.count-chip-pixels {
    background: #f7f7f7;
    border-color: #ddd;
}

.count-label {
    font-size: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #555;
}

.count-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a73e8;
    white-space: nowrap;
}

.count-chip-pixels .count-label {
    color: #111111;
    font-weight: 400;
}

.count-chip-pixels .count-value {
    color: #111111 !important;
    font-weight: 400 !important;
}

.count-chip-pixels .count-value span {
    color: #111111 !important;
    font-weight: 400 !important;
}

.count-value-pixels {
    color: #111111 !important;
    font-weight: 400 !important;
}

.count-value-pixels span {
    color: #111111 !important;
    font-weight: 400 !important;
}

.count-recommendation {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.length-status {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
    line-height: 1.4;
}

.results-card {
    width: 90%;
    margin: 10px 0 20px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid #d6e6ff;
    background: #f3f8ff;
    box-shadow: 0 10px 30px rgba(26,115,232,0.10);
    display: block;
}

.results-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a73e8;
    text-align: center;
    margin-bottom: 14px;
}

.snippet-preview {
    width: 100%;
    max-width: 652px;
    margin: 0 auto;
    padding: 16px 18px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #fff;
    border-radius: 12px;
    text-align: left;
    box-sizing: border-box;
}

.snippet-top {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    max-width: 100%;
}

.snippet-branding {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.snippet-favicon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
    background: #e8eaed;
    display: inline-block;
}

.snippet-source {
    min-width: 0;
}

.snippet-site-name {
    font-size: 14px;
    line-height: 1.3;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.snippet-url-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.snippet-url {
    font-size: 14px;
    line-height: 1.3;
    color: #4d5156;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.snippet-more {
    border: none;
    background: transparent;
    color: #5f6368;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    padding: 0;
    flex-shrink: 0;
}

.snippet-more i {
    font-size: 16px;
    line-height: 1;
}

.snippet-title {
    font-size: 22px;
    line-height: 1.3;
    color: #1a0dab;
    margin-bottom: 6px;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 600px;
}

.snippet-description {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.58;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 600px;
}

@media (min-width: 1200px) {
    .div3-vowel { max-width: 900px; }
}

@media (max-width: 1200px) {
    .parent-vowel {
        display: grid;
        grid-template-columns: 1fr 300px;
        grid-template-rows: 1fr;
        grid-column-gap: 2px;
        grid-row-gap: 2px;
    }

    .div1-vowel,
    .div2-vowel {
        display: none;
    }

    .div3-vowel { grid-area: 1 / 1 / 2 / 2; }
    #sidebar { grid-area: 1 / 2 / 2 / 3; }
}

@media (max-width: 992px) {
    .vc-title { font-size: 34px; }
    .parent-vowel { grid-template-columns: 1fr; }
    .div3-vowel { grid-area: 1 / 1 / 2 / 2; }
    #sidebar { display: none; }

    .snippet-preview {
        max-width: 100%;
    }

    .input-inline-row {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .count-row {
        flex-wrap: wrap;
    }

    .copy-btn {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .input-block,
    .results-card {
        width: 100%;
    }

    .vc-title { font-size: 28px; }

    .input-inline-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #metaTitleInput,
    #urlInput {
        font-size: 16px;
        height: 48px;
        padding: 12px 14px;
    }

    #metaDescriptionInput {
        font-size: 17px;
        padding: 14px;
        height: calc(1.55em * 3 + 28px);
    }

    .count-row {
        flex-direction: column;
        align-items: stretch;
    }

    .count-chip,
    .copy-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .snippet-preview {
        padding: 14px;
    }

    .snippet-top {
        gap: 8px;
    }

    .snippet-branding {
        gap: 10px;
    }

    .snippet-favicon {
        width: 24px;
        height: 24px;
    }

    .snippet-title {
        font-size: 20px;
        max-width: 100%;
    }

    .snippet-description {
        max-width: 100%;
    }

    .text th,
    .text td {
        padding: 12px 14px;
    }
}

@media (max-width: 400px) {
    .vc-container { padding: 10px; }
    .text { padding: 5px; }

    .count-value {
        font-size: 18px;
    }

    .count-recommendation,
    .length-status {
        font-size: 13px;
    }

    .copy-btn {
        font-size: 13px;
        padding: 9px 12px;
    }

    .text th,
    .text td {
        padding: 10px 12px;
    }
}