.hotornot-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.hotornot-card {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hotornot-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 92, 92, .18), rgba(255, 190, 80, .18));
    border: 1px solid rgba(210, 70, 70, .28);
}

.hotornot-heading-icon {
    display: grid;
    place-items: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    font-size: 38px;
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 10px 24px rgba(90, 30, 30, .15);
}

.hotornot-heading h1,
.hotornot-heading p,
.hotornot-section-title h2,
.hotornot-section-title span,
.hotornot-gender-block h3 {
    margin: 0;
    overflow-wrap: anywhere;
}

.hotornot-heading h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
}

.hotornot-heading p {
    margin-top: 7px;
    font-size: clamp(1rem, 2vw, 1.18rem);
}

.hotornot-flash {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid;
    font-weight: 700;
    text-align: center;
    overflow-wrap: anywhere;
}

.hotornot-flash.is-success {
    color: #14552f;
    border-color: #45a96d;
    background: #e9fff1;
}

.hotornot-flash.is-error {
    color: #7d1f1f;
    border-color: #d26767;
    background: #fff0f0;
}

.hotornot-upload-section,
.hotornot-voting-section,
.hotornot-today-section {
    margin-top: 26px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .83);
    border: 1px solid rgba(35, 65, 110, .18);
    box-shadow: 0 12px 34px rgba(25, 45, 80, .09);
}

.hotornot-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(35, 65, 110, .13);
}

.hotornot-section-title h2 {
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.hotornot-section-title span {
    text-align: right;
}

.hotornot-login-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(50, 105, 210, .09);
}

.hotornot-login-box.is-warning {
    background: rgba(245, 165, 35, .13);
}

.hotornot-login-box p {
    margin: 0;
}

.hotornot-login-box a,
.hotornot-upload-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #d52828;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    white-space: normal;
    text-align: center;
}

.hotornot-upload-grid {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(280px, 1.4fr);
    gap: 22px;
    align-items: stretch;
}

.hotornot-own-preview {
    display: grid;
    grid-template-columns: minmax(110px, 165px) 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(20, 70, 140, .08);
}

.hotornot-own-preview img,
.hotornot-new-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
}

.hotornot-own-preview div {
    display: grid;
    gap: 7px;
}

.hotornot-upload-form {
    display: grid;
    gap: 12px;
    align-content: center;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 105, 80, .08);
}

.hotornot-upload-form label {
    font-weight: 800;
    font-size: 1.08rem;
}

.hotornot-upload-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 2px dashed rgba(185, 55, 55, .45);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}

.hotornot-upload-form p {
    margin: 0;
    line-height: 1.55;
}

.hotornot-new-preview {
    width: min(210px, 100%);
}

.hotornot-gender-block + .hotornot-gender-block {
    margin-top: 30px;
}

.hotornot-gender-block h3 {
    margin-bottom: 14px;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.hotornot-candidate-grid,
.hotornot-winner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hotornot-person-card,
.hotornot-winner-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(80, 65, 80, .2);
    box-shadow: 0 10px 25px rgba(50, 35, 60, .12);
}

.hotornot-vote-form {
    margin: 0;
}

.hotornot-image-button,
.hotornot-winner-image {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: #231e25;
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
}

.hotornot-image-button:disabled {
    cursor: default;
    opacity: .78;
}

.hotornot-image-button img,
.hotornot-winner-image img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center;
    transition: transform .2s ease;
}

.hotornot-image-button:not(:disabled):hover img,
.hotornot-image-button:not(:disabled):focus-visible img,
.hotornot-winner-image:hover img,
.hotornot-winner-image:focus-visible img {
    transform: scale(1.025);
}

.hotornot-click-label,
.hotornot-winner-image span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff;
    background: rgba(183, 20, 20, .92);
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .28);
    overflow-wrap: anywhere;
}

.hotornot-person-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px 12px;
    align-items: center;
    padding: 15px;
}

.hotornot-nickname,
.hotornot-winner-name {
    min-width: 0;
    color: #b51d2b;
    font-weight: 900;
    font-size: 1.12rem;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.hotornot-person-info > span {
    text-align: right;
}

.hotornot-person-info .hotornot-voted-note,
.hotornot-person-info .hotornot-vote-note {
    grid-column: 1 / -1;
    text-align: left;
    padding-top: 6px;
    border-top: 1px solid rgba(50, 50, 70, .13);
    font-size: .94rem;
}

.hotornot-voted-note {
    color: #6a3b13;
    font-weight: 700;
}

.hotornot-empty-card {
    display: grid;
    place-items: center;
    align-content: center;
    min-height: 390px;
    padding: 22px;
    text-align: center;
    box-sizing: border-box;
    background: rgba(235, 238, 245, .78);
}

.hotornot-empty-card span {
    max-width: 34ch;
    margin-top: 8px;
}

.hotornot-empty-image {
    display: grid;
    place-items: center;
    width: 110px;
    height: 145px;
    margin-bottom: 16px;
    border-radius: 16px;
    border: 3px dashed rgba(80, 80, 100, .3);
    font-size: 3rem;
    background: rgba(255, 255, 255, .55);
}

.hotornot-title-hot h2 {
    color: #b51d2b;
}

.hotornot-winner-card {
    position: relative;
    padding-bottom: 17px;
    text-align: center;
}

.hotornot-winner-kind {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(30, 30, 40, .78);
    font-weight: 800;
}

.hotornot-winner-name {
    display: block;
    margin: 14px 12px 6px;
    font-size: 1.3rem;
}

.hotornot-winner-card > strong {
    display: block;
    margin: 0 12px;
}

html.dark-mode .hotornot-heading,
html.dark-mode .hotornot-upload-section,
html.dark-mode .hotornot-voting-section,
html.dark-mode .hotornot-today-section,
html.dark-mode .hotornot-person-card,
html.dark-mode .hotornot-winner-card,
html.dark-mode .hotornot-upload-form,
html.dark-mode .hotornot-own-preview,
html.dark-mode .hotornot-login-box {
    color: #f4f4f4;
    background-color: rgba(22, 25, 32, .94);
    border-color: rgba(255, 255, 255, .16);
}

html.dark-mode .hotornot-upload-form input[type="file"] {
    color: #f4f4f4;
    background: rgba(5, 7, 10, .55);
}

html.dark-mode .hotornot-empty-card {
    color: #eee;
    background: rgba(35, 38, 46, .88);
}

html.dark-mode .hotornot-flash.is-success {
    color: #d7ffe5;
    background: #173b27;
}

html.dark-mode .hotornot-flash.is-error {
    color: #ffe4e4;
    background: #4b2020;
}

@media (max-width: 760px) {
    .hotornot-card,
    .hotornot-upload-section,
    .hotornot-voting-section,
    .hotornot-today-section {
        max-width: 100%;
        box-sizing: border-box;
    }

    .hotornot-card {
        padding-left: 8px;
        padding-right: 8px;
    }

    .hotornot-heading {
        align-items: flex-start;
        padding: 16px;
    }

    .hotornot-heading-icon {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .hotornot-upload-section,
    .hotornot-voting-section,
    .hotornot-today-section {
        padding: 15px;
        border-radius: 17px;
    }

    .hotornot-section-title,
    .hotornot-login-box {
        align-items: stretch;
        flex-direction: column;
    }

    .hotornot-section-title span {
        text-align: left;
    }

    .hotornot-upload-grid,
    .hotornot-candidate-grid,
    .hotornot-winner-grid {
        grid-template-columns: 1fr;
    }

    .hotornot-own-preview {
        grid-template-columns: minmax(90px, 130px) 1fr;
    }

    .hotornot-person-card,
    .hotornot-winner-card {
        width: 100%;
        max-width: 520px;
        margin-inline: auto;
    }

    .hotornot-empty-card {
        min-height: 310px;
    }
}

@media (max-width: 420px) {
    .hotornot-heading {
        gap: 11px;
    }

    .hotornot-heading-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 23px;
    }

    .hotornot-own-preview {
        grid-template-columns: 1fr;
    }

    .hotornot-own-preview img {
        width: min(210px, 100%);
        margin-inline: auto;
    }

    .hotornot-person-info {
        grid-template-columns: 1fr;
    }

    .hotornot-person-info > span {
        text-align: left;
    }
}
