/* Profile Page — Desktop */

.profile-container {
    max-width: 935px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Profile Header */
.profile-header {
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

.profile-avatar {
    width: 108px;
    height: 108px;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #444;
}

.profile-avatar-placeholder {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #333;
    border: 2px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-placeholder span {
    font-size: 42px;
    font-weight: 600;
    color: #aaa;
    text-transform: uppercase;
}

.profile-info {
    padding-left: 15px;
}

.profile-username-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.profile-username {
    font-size: 24px;
    font-weight: 300;
    color: #6ea8d9;
    margin: 0;
}

.profile-username-at {
    color: #888;
}

.profile-follow-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 108px;
    height: 32px;
    padding: 0 14px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(110, 168, 217, 0.45);
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.96), rgba(4, 4, 4, 0.98));
    color: #f5f8fb;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 8px 22px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
    isolation: isolate;
}

.profile-follow-btn:hover,
.profile-follow-btn:focus {
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

.profile-follow-btn:focus-visible {
    box-shadow: 0 0 0 2px rgba(110, 168, 217, 0.35), 0 8px 22px rgba(0, 0, 0, 0.35);
}

.profile-follow-btn:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.profile-follow-btn-glow {
    position: absolute;
    inset: -55% auto auto -20%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.34), transparent 62%);
    opacity: 0.55;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: -1;
}

.profile-follow-btn:hover .profile-follow-btn-glow {
    opacity: 0.85;
    transform: translateX(54px) translateY(10px) scale(1.12);
}

.profile-follow-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.08) inset;
    flex-shrink: 0;
}

.profile-follow-btn-icon svg {
    width: 12px;
    height: 12px;
}

.profile-follow-btn--follow {
    border-color: rgba(160, 170, 178, 0.42);
    background: linear-gradient(135deg, #30343a 0%, #191b1f 54%, #070809 100%);
    color: #c5cbd0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 0 18px rgba(160, 170, 178, 0.08), 0 8px 24px rgba(0, 0, 0, 0.42);
}

.profile-follow-btn--follow .profile-follow-btn-icon {
    background: rgba(255, 255, 255, 0.13);
    color: #dce4ea;
}

.profile-follow-btn--follow:hover,
.profile-follow-btn--follow:focus {
    border-color: rgba(110, 168, 217, 0.55);
    background: linear-gradient(135deg, #3a4048 0%, #20242a 54%, #0a0c0f 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 0 22px rgba(110, 168, 217, 0.14), 0 10px 28px rgba(0, 0, 0, 0.48);
}

.profile-follow-btn--following {
    border-color: rgba(110, 168, 217, 0.72);
    background: linear-gradient(135deg, rgba(9, 18, 28, 0.98), rgba(0, 0, 0, 0.98));
    color: #d8efff;
    box-shadow: 0 0 0 1px rgba(110, 168, 217, 0.12) inset, 0 0 22px rgba(110, 168, 217, 0.18), 0 8px 24px rgba(0, 0, 0, 0.42);
}

.profile-follow-btn--following .profile-follow-btn-icon {
    background: rgba(110, 168, 217, 0.2);
    color: #8fd0ff;
}

.profile-follow-btn--following:hover,
.profile-follow-btn--following:focus {
    border-color: rgba(46, 204, 113, 0.8);
    color: #effff6;
    box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.18) inset, 0 0 28px rgba(46, 204, 113, 0.2), 0 10px 28px rgba(0, 0, 0, 0.48);
}

.profile-follow-btn--following:hover .profile-follow-btn-icon {
    background: rgba(46, 204, 113, 0.22);
    color: #69f0a2;
}

.profile-follow-btn--requested {
    border-color: rgba(153, 116, 255, 0.64);
    background: linear-gradient(135deg, rgba(28, 18, 48, 0.98), rgba(0, 0, 0, 0.98));
    color: #e2d8ff;
    box-shadow: 0 0 0 1px rgba(153, 116, 255, 0.12) inset, 0 0 22px rgba(153, 116, 255, 0.16), 0 8px 24px rgba(0, 0, 0, 0.42);
}

.profile-follow-btn--requested .profile-follow-btn-icon {
    background: rgba(153, 116, 255, 0.2);
    color: #c8b6ff;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 8px;
}

.profile-stat {
    font-size: 14px;
    color: #888;
}

.profile-stat strong {
    color: #6ea8d9;
}

.profile-type-stats {
    display: flex;
    gap: 10px;
}

.badge-gif {
    background-color: #4a90d9;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
}

.profile-type-stats .badge-gif,
.profile-type-stats .badge-webp,
.image-detail-meta .badge-gif,
.image-detail-meta .badge-webp {
    position: relative;
    overflow: hidden;
    color: #f4f8ff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    padding: 5px 9px;
    border-radius: 3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.68);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.17) inset, 0 6px 15px rgba(0, 0, 0, 0.34);
}

.profile-type-stats .badge-gif,
.image-detail-meta .badge-gif {
    background: linear-gradient(135deg, #93d7ff 0%, #4a90d9 48%, #1f4fa3 100%);
}

.profile-type-stats .badge-webp,
.image-detail-meta .badge-webp {
    background: linear-gradient(135deg, #9dffca 0%, #2ecc71 48%, #117a4d 100%);
}

.badge-webp {
    background-color: #2ecc71;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
}

/* Image Grid */
.profile-grid-section {
    margin-top: 10px;
}

.profile-grid-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    background: #1a1a1a;
}

.profile-image-wrapper {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
}

.profile-grid-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.profile-grid-item:hover .profile-grid-img {
    opacity: 0.85;
}

.profile-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-grid-item:hover .profile-image-overlay {
    opacity: 1;
}

.profile-image-size {
    font-size: 11px;
    color: #ccc;
}

/* Load More */
.btn-load-more {
    padding: 8px 40px;
    font-size: 14px;
    border-radius: 4px;
}

/* Empty State */
.profile-empty {
    padding: 60px 20px;
}

.profile-empty p {
    font-size: 16px;
}

/* --- Image Detail Page --- */

.image-detail-bg {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

.image-detail-back {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 1.5rem;
}

.image-detail-back a {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.image-detail-back a:hover {
    color: #fff;
}

.image-detail-flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.image-detail-img-wrap {
    position: relative;
    align-self: center;
    display: block;
    text-align: center;
    line-height: 0; /* avoid baseline gap so arrows center exactly on image */
    min-width: 520px; /* keep prev/next arrows at least as wide as comments box for small images */
    max-width: 100%;
}

.image-detail-img-wrap > .image-detail-img {
    display: inline-block;
    max-width: 100%;
    width: auto;
}

@media (max-width: 540px) {
    .image-detail-img-wrap {
        min-width: 0;
    }
}

/* Zoomable image: cursor becomes a magnifying glass so the user can click
   anywhere on the image to view it at full size (desktop only). */
.image-detail-img.is-loading {
    cursor: wait;
}

.image-detail-img.is-zoomable {
    cursor: zoom-in;
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'><defs><linearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23c5cbd0'/><stop offset='100%25' stop-color='%236b747c'/></linearGradient><filter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='1' stdDeviation='1.6' flood-color='%23000000' flood-opacity='0.65'/></filter></defs><g filter='url(%23s)'><circle cx='21' cy='21' r='14' fill='rgba(10,14,20,0.32)' stroke='url(%23g)' stroke-width='3'/><path d='M14 16a9 9 0 0 1 9-6' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.4' stroke-linecap='round'/><line x1='31' y1='31' x2='46' y2='46' stroke='url(%23g)' stroke-width='3.5' stroke-linecap='round'/></g></svg>") 21 21, zoom-in;
}

/* Full-size overlay */
.image-fullsize-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #050608;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-fullsize-scroll {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 0;
    box-sizing: border-box;
}

.image-fullsize-scroll.is-actual {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'><defs><linearGradient id='h' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23c5cbd0'/><stop offset='100%25' stop-color='%236b747c'/></linearGradient><filter id='hs' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='0.8' stdDeviation='1.12' flood-color='%23000000' flood-opacity='0.65'/></filter></defs><g filter='url(%23hs)' fill='url(%23h)' stroke='rgba(0,0,0,0.35)' stroke-width='0.8'><rect x='11.2' y='16.8' width='12.8' height='11.2' rx='4'/><rect x='8' y='16' width='3.2' height='6.4' rx='1.6'/><rect x='12' y='10.4' width='3.2' height='7.2' rx='1.6'/><rect x='16' y='8.8' width='3.2' height='8.8' rx='1.6'/><rect x='20' y='10.4' width='3.2' height='7.2' rx='1.6'/></g></svg>") 18 18, grab;
}

.image-fullsize-scroll.is-actual.is-dragging {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'><defs><linearGradient id='h' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23c5cbd0'/><stop offset='100%25' stop-color='%236b747c'/></linearGradient><filter id='hs' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='0.8' stdDeviation='1.12' flood-color='%23000000' flood-opacity='0.65'/></filter></defs><g filter='url(%23hs)' fill='url(%23h)' stroke='rgba(0,0,0,0.35)' stroke-width='0.8'><rect x='9.6' y='14.4' width='16' height='12.8' rx='6.4'/><rect x='11.2' y='11.2' width='3.2' height='4.8' rx='1.6'/><rect x='14.8' y='9.6' width='3.2' height='6.4' rx='1.6'/><rect x='18.4' y='9.6' width='3.2' height='6.4' rx='1.6'/><rect x='22' y='11.2' width='3.2' height='4.8' rx='1.6'/><rect x='7.2' y='17.6' width='5.6' height='4.8' rx='2.4'/></g></svg>") 18 18, grabbing;
}

.image-fullsize-img {
    display: block;
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    /* Fit-to-screen mode: click the image to zoom back to actual size. */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'><defs><linearGradient id='g' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23c5cbd0'/><stop offset='100%25' stop-color='%236b747c'/></linearGradient><filter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='1' stdDeviation='1.6' flood-color='%23000000' flood-opacity='0.65'/></filter></defs><g filter='url(%23s)'><circle cx='21' cy='21' r='14' fill='rgba(10,14,20,0.32)' stroke='url(%23g)' stroke-width='3'/><path d='M14 16a9 9 0 0 1 9-6' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2.4' stroke-linecap='round'/><line x1='31' y1='31' x2='46' y2='46' stroke='url(%23g)' stroke-width='3.5' stroke-linecap='round'/></g></svg>") 21 21, zoom-in;
}

.image-fullsize-scroll.is-actual .image-fullsize-img {
    max-width: none;
    max-height: none;
    /* Actual-size mode: click the image to fit it back to the screen; drag to pan. */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'><defs><linearGradient id='h' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23c5cbd0'/><stop offset='100%25' stop-color='%236b747c'/></linearGradient><filter id='hs' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='0.8' stdDeviation='1.12' flood-color='%23000000' flood-opacity='0.65'/></filter></defs><g filter='url(%23hs)' fill='url(%23h)' stroke='rgba(0,0,0,0.35)' stroke-width='0.8'><rect x='11.2' y='16.8' width='12.8' height='11.2' rx='4'/><rect x='8' y='16' width='3.2' height='6.4' rx='1.6'/><rect x='12' y='10.4' width='3.2' height='7.2' rx='1.6'/><rect x='16' y='8.8' width='3.2' height='8.8' rx='1.6'/><rect x='20' y='10.4' width='3.2' height='7.2' rx='1.6'/></g></svg>") 18 18, grab;
}

.image-fullsize-scroll.is-actual.is-dragging .image-fullsize-img {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='35' height='35' viewBox='0 0 35 35'><defs><linearGradient id='h' x1='0%25' y1='0%25' x2='100%25' y2='100%25'><stop offset='0%25' stop-color='%23c5cbd0'/><stop offset='100%25' stop-color='%236b747c'/></linearGradient><filter id='hs' x='-50%25' y='-50%25' width='200%25' height='200%25'><feDropShadow dx='0' dy='0.8' stdDeviation='1.12' flood-color='%23000000' flood-opacity='0.65'/></filter></defs><g filter='url(%23hs)' fill='url(%23h)' stroke='rgba(0,0,0,0.35)' stroke-width='0.8'><rect x='9.6' y='14.4' width='16' height='12.8' rx='6.4'/><rect x='11.2' y='11.2' width='3.2' height='4.8' rx='1.6'/><rect x='14.8' y='9.6' width='3.2' height='6.4' rx='1.6'/><rect x='18.4' y='9.6' width='3.2' height='6.4' rx='1.6'/><rect x='22' y='11.2' width='3.2' height='4.8' rx='1.6'/><rect x='7.2' y='17.6' width='5.6' height='4.8' rx='2.4'/></g></svg>") 18 18, grabbing;
}


.image-fullsize-frame {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.image-fullsize-close-btn {
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(160, 170, 178, 0.42);
    background: linear-gradient(160deg, #30343a 0%, #191b1f 55%, #070809 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 4px 14px rgba(0,0,0,0.45);
    color: #c5cbd0;
    cursor: pointer;
    transition: all 0.18s ease;
    position: fixed;
    top: 22px;
    right: 26px;
    width: 38px;
    height: 38px;
}

.image-fullsize-close-btn:hover {
    background: linear-gradient(160deg, #3c4148 0%, #22262c 55%, #0d0f11 100%);
    border-color: rgba(184, 194, 204, 0.62);
    color: #e8edf2;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: opacity 0.2s;
    text-decoration: none;
    z-index: 2;
}

.image-nav-btn--prev {
    right: 100%;
    margin-right: 1rem;
}

.image-nav-btn--next {
    left: 100%;
    margin-left: 1rem;
}

.image-nav-btn:hover svg circle,
.image-nav-btn:hover svg polyline {
    stroke: #fff;
}

.image-detail-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

.image-detail-main {
    display: inline-flex;
    flex-direction: column;
    align-self: center;
    max-width: 100%;
}

.image-detail-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    align-self: center;
    height: auto;
}

.image-detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    color: #888;
    font-size: 0.85rem;
}

.image-detail-meta-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.image-detail-meta-item {
    color: #888;
}

.image-detail-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.image-detail-download-btn:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.image-detail-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.image-detail-download-btn svg {
    flex-shrink: 0;
}

.image-detail-title-section {
    width: 100%;
    margin-bottom: 0.5rem;
}

.image-title-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.image-title-text {
    color: #6ea8d9;
    font-size: 0.9rem;
    line-height: 1.4;
    word-break: break-word;
}

.image-title-edit-link {
    color: #888;
    text-decoration: none;
    flex-shrink: 0;
    padding: 2px;
    border-radius: 3px;
    transition: color 0.15s;
}

.image-title-edit-link:hover {
    color: #6c63ff;
    text-decoration: none;
}

.image-title-edit {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.image-title-input {
    flex: 1;
    background: transparent;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    padding: 5px 10px;
    font-size: 0.9rem;
    outline: none;
    min-width: 0;
}

.image-title-input:focus {
    border-color: #6c63ff;
}

.image-title-save-btn {
    background: linear-gradient(180deg, #6ea8d9 0%, #5a93c4 100%);
    border: 1px solid #5a93c4;
    color: #fff;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.image-title-save-btn:hover {
    background: linear-gradient(180deg, #7eb4e0 0%, #6ea8d9 100%);
    border-color: #7eb4e0;
    color: #fff;
    box-shadow: 0 2px 6px rgba(110, 168, 217, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.image-title-save-btn:active {
    background: linear-gradient(180deg, #5a93c4 0%, #4a83b4 100%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transform: translateY(1px);
}

.image-title-save-btn:disabled {
    background: #3a3a3a;
    border-color: #444;
    color: #777;
    cursor: not-allowed;
    box-shadow: none;
}

.image-title-cancel-link {
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.image-title-cancel-link:hover {
    color: #ccc;
    text-decoration: none;
}

.image-detail-description {
    width: 100%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    align-self: stretch;
}

.image-description-textarea {
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    border-radius: 4px;
    color: #ccc;
    padding: 0.5rem;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 2.5rem;
    transition: border-color 0.2s;
}

.image-description-textarea:focus {
    border-color: #888;
    outline: none;
}

.image-description-textarea::placeholder {
    color: #555;
}

.image-description-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: flex-end;
}

.image-description-status {
    font-size: 0.8rem;
}

.image-description-text {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
    white-space: pre-wrap;
    flex: 1;
}

.image-description-display {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.image-description-toggle {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.image-description-toggle:hover {
    text-decoration: underline;
    color: #aaa;
}

/* Empty-state "drop-zone" variant — invites the owner to add a description */
.image-description-toggle.image-description-toggle--empty {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 1.5px dashed #3a3a3a;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    color: #888;
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    box-sizing: border-box;
    transform-origin: center;
}

.image-description-toggle.image-description-toggle--empty:hover {
    border-color: #6ea8d9;
    background: rgba(110, 168, 217, 0.06);
    color: #6ea8d9;
    text-decoration: none;
}

.image-description-toggle.image-description-toggle--empty:focus-visible {
    outline: none;
    border-color: #6ea8d9;
    box-shadow: 0 0 0 3px rgba(110, 168, 217, 0.18);
}

.image-description-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid currentColor;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.image-description-toggle.image-description-toggle--empty:hover .image-description-empty-icon {
    transform: rotate(90deg);
}

.image-description-empty-text {
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    line-height: 1.2;
}

.image-description-toggle.image-description-toggle--empty:hover .image-description-empty-text {
    color: #6ea8d9;
}

.image-description-empty-hint {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    margin-left: auto;
    white-space: nowrap;
}

.image-description-toggle.image-description-toggle--empty:hover .image-description-empty-hint {
    color: #8bbde8;
}

/* Morph animation — drop-zone collapses, textarea blooms in */
.image-description-toggle.image-description-toggle--morphing {
    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    border-color: #6ea8d9;
}

.image-description-edit-section {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s;
}

.image-description-edit-section.image-description-edit-section--visible {
    opacity: 1;
    transform: translateY(0);
}

.image-description-edit-section {
    margin-top: 10px;
    width: 100%;
}

.image-description-cancel {
    color: #888;
    text-decoration: none;
    font-size: 13px;
}

.image-description-cancel:hover {
    color: #aaa;
    text-decoration: underline;
}

/* --- Image Actions Menu (Owner) --- */

.image-actions-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.image-actions-gear-btn {
    background: none;
    border: 1px solid #555;
    border-radius: 4px;
    color: #888;
    padding: 4px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s, border-color 0.2s;
}

.image-actions-gear-btn:hover {
    color: #fff;
    border-color: #888;
}

.image-actions-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 6px;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 6px;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 100;
    overflow: visible;
}

.image-actions-list {
    display: flex;
    flex-direction: column;
}

.image-actions-list .image-actions-item:last-child {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.image-actions-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #ccc;
    font-size: 0.85rem;
    text-decoration: none;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
}

.image-actions-item:hover {
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
}

.image-actions-delete-btn:hover {
    color: #d9534f;
}

/* Inline delete confirmation */
.image-actions-confirm {
    padding: 12px 14px;
    text-align: center;
}

.image-actions-confirm-text {
    display: block;
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.image-actions-confirm-btns {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.image-actions-confirm-yes {
    background: #d9534f;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
}

.image-actions-confirm-yes:hover {
    background: #c9302c;
}

.image-actions-confirm-no {
    background: none;
    color: #888;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 5px 16px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.image-actions-confirm-no:hover {
    color: #ccc;
    border-color: #888;
}

/* Custom URL section in gear dropdown */
.image-actions-custom-url {
    padding: 10px 12px;
}

.image-actions-custom-url-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.image-actions-custom-url-header svg {
    color: #888;
}

.image-actions-custom-url-input-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.image-actions-custom-url-input {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    padding: 5px 8px;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

.image-actions-custom-url-input:focus {
    border-color: #6c63ff;
}

.image-actions-custom-url-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.image-actions-custom-url-save {
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.image-actions-custom-url-save:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.image-actions-custom-url-save:not(:disabled):hover {
    background: #5a52d5;
}

.image-actions-custom-url-preview {
    font-size: 13px;
    color: #ccc;
    margin-top: 16px;
    margin-bottom: 12px;
    word-break: break-all;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.image-actions-custom-url-preview-text {
    min-width: 0;
    display: inline-block;
    max-width: 100%;
    padding: 4px 13px;
    border-radius: 999px;
    background: linear-gradient(160deg, #30343a 0%, #191b1f 55%, #070809 100%);
    border: 1px solid rgba(160, 170, 178, 0.42);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 2px 8px rgba(0, 0, 0, 0.4);
    color: #d3d9df;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.015em;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.image-actions-custom-url-preview-text:hover {
    border-color: rgba(184, 194, 204, 0.62);
}

.image-actions-custom-url-preview-slug {
    color: inherit;
}

.image-actions-custom-url-preview-slug.has-custom {
    color: #d4a017;
}

.image-actions-copy-url-btn {
    background: none;
    border: 1px solid #444;
    border-radius: 3px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    transition: color 0.15s, border-color 0.15s;
}

.image-actions-copy-url-btn svg {
    width: 16px;
    height: 16px;
}

.image-actions-copy-url-btn:hover {
    color: #ccc;
    border-color: #666;
}

.image-actions-copy-url-status {
    font-size: 10px;
    color: #28a745;
    white-space: nowrap;
    flex-shrink: 0;
}

.image-actions-custom-url-status {
    font-size: 12px;
    min-height: 16px;
    margin-left: auto;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.image-actions-custom-url-status.success {
    color: #28a745;
}

.image-actions-custom-url-status.error {
    color: #dc3545;
}

.image-actions-custom-url-remove {
    background: none;
    border: 1px solid #444;
    border-radius: 3px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}

.image-actions-custom-url-remove svg {
    width: 16px;
    height: 16px;
}

.image-actions-custom-url-remove:hover {
    color: #dc3545;
    border-color: #dc3545;
}

/* Owner gear dropdown — gif.run short link inline row (desktop) */
.image-actions-short-link-section {
    padding: 8px 0;
}

.image-actions-short-link-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.image-actions-short-link-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 18px;
    margin-bottom: 4px;
}

.image-actions-short-link-value {
    font-size: 13px;
    color: #ccc;
    position: relative;
    cursor: default;
    min-width: 0;
}

.image-actions-short-link-value strong {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    font-weight: 700;
    padding: 4px 13px;
    border-radius: 999px;
    background: radial-gradient(circle at 18% 16%, rgba(110, 168, 217, 0.18), transparent 38%),
        linear-gradient(160deg, #30343a 0%, #191b1f 55%, #070809 100%);
    border: 1px solid rgba(110, 168, 217, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 14px rgba(110, 168, 217, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.4);
    color: #8bbde8;
    letter-spacing: 0.02em;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.image-actions-short-link-value:hover strong {
    border-color: rgba(140, 190, 226, 0.78);
    color: #b6d8f5;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 0 18px rgba(110, 168, 217, 0.2),
        0 2px 10px rgba(0, 0, 0, 0.45);
}

.image-actions-short-link-tooltip {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 50;
    width: auto;
    white-space: nowrap;
    padding: 7px 12px;
    background: linear-gradient(135deg, #1f1b3d 0%, #2a2154 100%);
    border: 1px solid #6c63ff;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(108, 99, 255, 0.15);
    color: #e8e6ff;
    font-size: 11px;
    line-height: 1.45;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}

.image-actions-short-link-tooltip strong {
    display: block;
    color: #fff;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: 600;
}

.image-actions-short-link-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 18px;
    width: 8px;
    height: 8px;
    background: #2a2154;
    border-right: 1px solid #6c63ff;
    border-bottom: 1px solid #6c63ff;
    transform: translateY(-50%) rotate(45deg);
}

.image-actions-short-link-value:hover .image-actions-short-link-tooltip,
.image-actions-short-link-value:focus .image-actions-short-link-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.image-actions-short-link-copy-btn {
    background: none;
    border: 1px solid #444;
    border-radius: 3px;
    color: #aaa;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}

.image-actions-short-link-copy-btn svg {
    width: 16px;
    height: 16px;
}

.image-actions-short-link-copy-btn:hover {
    color: #ccc;
    border-color: #666;
}

.image-actions-short-link-status {
    font-size: 10px;
    color: #28a745;
    white-space: nowrap;
    flex-shrink: 0;
}

.image-actions-divider {
    height: 1px;
    background: #333;
    margin: 4px 0;
}

/* Created date pill — image settings gear dropdown */
.image-actions-created-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 8px 8px 8px auto;
    padding: 4px 10px;
    width: fit-content;
    max-width: calc(100% - 28px);
    border-radius: 999px;
    background: linear-gradient(160deg, #262a2f 0%, #1a1d20 55%, #101214 100%);
    border: 1px solid rgba(200, 205, 210, 0.24);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 3px 10px rgba(0,0,0,0.4);
    color: #b5bac0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: default;
}

.image-actions-created-pill svg {
    flex-shrink: 0;
    color: #999fa6;
    opacity: 0.85;
}

.image-actions-custom-url-limit {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    padding: 4px 0;
}

.image-actions-custom-url-upgrade {
    color: #6c63ff;
    font-weight: 600;
    text-decoration: underline;
}

.image-actions-custom-url-upgrade:hover {
    color: #5a52d5;
}

/* Temporary Profile Banner */
.temporary-profile-banner {
    background-color: #1a1a2e;
    border: 1px solid #6c3483;
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 20px;
}

.temporary-profile-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    font-size: 14px;
}

.temporary-profile-banner-content svg {
    color: #9b59b6;
    flex-shrink: 0;
}

.temporary-profile-banner-link {
    color: #9b59b6;
    text-decoration: underline;
    font-weight: 500;
}

.temporary-profile-banner-link:hover {
    color: #bb77d6;
}

.temporary-profile-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 13px 4px 27px;
    margin: 0 0 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(110, 168, 217, 0.48);
    border-radius: 999px;
    background: radial-gradient(circle at 18% 16%, rgba(110, 168, 217, 0.20), transparent 34%),
        linear-gradient(160deg, #30343a 0%, #191b1f 55%, #070809 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset,
        0 0 18px rgba(110,168,217,0.12),
        0 6px 18px rgba(0,0,0,0.46);
    color: #d8efff;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0,0,0,0.75);
}

.temporary-profile-title::before {
    content: "";
    position: absolute;
    left: 10px;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(110,168,217,0.65);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #d8efff 0%, #7ab8e8 38%, #1a2f42 72%, #070809 100%);
    box-shadow: 0 0 10px rgba(110,168,217,0.42);
}

/* Tags section in gear dropdown */
.image-actions-tags {
    padding: 10px 12px;
}

.image-actions-tags-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ccc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.image-actions-tags-header svg {
    color: #888;
}

.image-actions-tags-input-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.image-actions-tags-input {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    padding: 5px 8px;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

.image-actions-tags-input:focus {
    border-color: #6c63ff;
}

.image-actions-tags-add {
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.image-actions-tags-add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.image-actions-tags-add:not(:disabled):hover {
    background: #5a52d5;
}

.image-actions-tags-status {
    font-size: 11px;
    min-height: 14px;
    margin-bottom: 4px;
}

.image-actions-tags-status.success {
    color: #28a745;
}

.image-actions-tags-status.error {
    color: #dc3545;
}

.image-actions-tags-limit {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.image-actions-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.image-actions-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #2a2a3e;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    color: #ccc;
}

.image-actions-tag-remove {
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.image-actions-tag-remove:hover {
    color: #dc3545;
}

/* Tag suggestions dropdown */
.image-actions-tags-suggestions {
    display: none;
    background: #1a1a2e;
    border: 1px solid #444;
    border-radius: 4px;
    margin-bottom: 6px;
    max-height: 160px;
    overflow-y: auto;
}

.image-actions-tags-suggestion-item {
    padding: 5px 10px;
    font-size: 13px;
    color: #bbb;
    cursor: pointer;
}

.image-actions-tags-suggestion-item:hover {
    background: #2a2a3e;
    color: #eee;
}

/* Tag sidebar widget */
.profile-tags-sidebar {
    position: sticky;
    top: 80px;
    padding: 12px 0;
    background: linear-gradient(145deg, #151515, #0a0a0a);
    border: 1px solid #222;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(80, 80, 80, 0.3), 0 8px 50px rgba(60, 60, 60, 0.15), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.profile-tags-sidebar-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    padding: 0 12px 8px;
}

.profile-tags-sidebar-title-count {
    color: #6ea8d9;
    font-weight: 400;
}

.profile-tags-sidebar-search {
    width: calc(100% - 24px);
    margin: 0 12px 8px;
    padding: 6px 10px;
    font-size: 13px;
    color: #ccc;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
}

.profile-tags-sidebar-search::placeholder {
    color: #555;
}

.profile-tags-sidebar-search:focus {
    border-color: #6c63ff;
}

.profile-tags-sidebar-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #333 transparent;
}

.profile-tags-sidebar-list::-webkit-scrollbar {
    width: 5px;
}

.profile-tags-sidebar-list::-webkit-scrollbar-track {
    background: transparent;
}

.profile-tags-sidebar-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.profile-tags-sidebar-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.profile-tags-sidebar-no-results {
    padding: 12px;
    font-size: 13px;
    color: #555;
    text-align: center;
}

.profile-tags-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: background 0.15s;
}

.profile-tags-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #bbb;
    text-decoration: none;
}

.profile-tags-sidebar-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ccc;
    font-weight: 600;
}

.profile-tags-sidebar-tag {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-tags-sidebar-count {
    font-size: 12px;
    color: #6ea8d9;
    flex-shrink: 0;
    margin-left: 8px;
}

.profile-tags-sidebar-item.active .profile-tags-sidebar-count {
    color: #fff;
}

/* Follow list pages (Followers / Following) */
.follow-list-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.follow-list-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 2rem;
}

.follow-list-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
}

.follow-list-back-link:hover {
    color: #eee;
    text-decoration: none;
}

.follow-list-title {
    font-size: 1.5rem;
    color: #eee;
    margin: 0;
}

.follow-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s, border-color 0.15s;
}

.follow-user-card:hover {
    background: #222240;
    border-color: #6c63ff;
    text-decoration: none;
    color: inherit;
}

.follow-user-avatar {
    flex-shrink: 0;
}

.follow-user-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.follow-user-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ccc;
    font-weight: 600;
}

.follow-user-info {
    min-width: 0;
}

.follow-user-name {
    color: #eee;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follow-user-count {
    color: #888;
    font-size: 13px;
    margin-top: 2px;
}

.follow-list-empty {
    text-align: center;
    color: #888;
    padding: 4rem 0;
    font-size: 16px;
}

/* Profile stat links (owner only — followers/following counts as hyperlinks) */
.profile-stat-link {
    text-decoration: none;
    color: #888;
}

.profile-stat-link:hover {
    text-decoration: none;
    color: #6ea8d9;
}

/* ── Image Like — Heart icon in meta row ─────────────────────── */
.image-detail-meta-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.image-like-section {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.image-like-btn {
    background: none;
    border: none;
    padding: 3px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.18));
    transition: transform 0.15s ease, filter 0.15s ease;
}

.image-like-btn:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(255, 59, 48, 0.48));
}

.image-like-btn-active .image-like-heart {
    animation: heartPop 0.25s ease;
    filter: drop-shadow(0 0 7px rgba(255, 59, 48, 0.72));
}

.image-like-heart {
    transition: filter 0.15s ease, transform 0.15s ease;
}

@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.image-like-count {
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}

.image-like-count:hover {
    color: #eee;
    text-decoration: underline;
}

/* Tooltip */
.image-like-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #eee;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    margin-bottom: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Likers popup */
.image-like-popup {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 8px 0;
    min-width: 200px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 200;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.image-like-popup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    text-decoration: none;
    color: #eee;
}

.image-like-popup-item:hover {
    background: #222240;
    text-decoration: none;
    color: #eee;
}

.image-like-popup-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.image-like-popup-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ccc;
    font-weight: 600;
}

.image-like-popup-name {
    font-size: 13px;
    font-weight: 500;
}

/* Grid thumbnail like count (inline, between badge and file size) */
.image-grid-like-inline {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #fff;
    font-size: 11px;
}

/* ===== Comments section ===== */
.image-comments-section {
    max-width: 520px;
    margin: 20px auto 0 auto;
    padding: 0;
    width: 100%;
}

.image-comments-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    padding: 14px 16px 12px 16px;
    background: linear-gradient(135deg, #111 0%, #0f0f0f 100%);
    border-radius: 10px 10px 0 0;
    border: 1px solid #222;
    border-bottom: none;
}

.image-comments-title {
    font-size: 15px;
    font-weight: 600;
    color: #999;
}

.image-comments-count {
    font-size: 14px;
    color: #6ea8d9;
}

.image-comments-toggle {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    text-decoration: none;
    line-height: 1;
    margin-left: auto;
    display: inline-block;
    transform: rotate(0deg);
    transform-origin: 50% 50%;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms ease;
    will-change: transform;
}

.image-comments-toggle.expanded {
    transform: rotate(180deg);
}

.image-comments-toggle:hover {
    color: #aaa;
    text-decoration: none;
}

.image-comments-disabled-notice {
    font-size: 12px;
    color: #e74c3c;
    margin-left: auto;
    font-weight: 500;
    white-space: nowrap;
}

.image-comments-widget {
    max-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0d0d0d;
    border: 1px solid #222;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

.image-comments-scroll {
    overflow-y: auto;
    flex: 1;
    padding: 0 16px;
    scrollbar-width: thin;
    scrollbar-color: #222 transparent;
}

.image-comments-scroll::-webkit-scrollbar {
    width: 6px;
}

.image-comments-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.image-comments-scroll::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 3px;
}

.image-comments-scroll::-webkit-scrollbar-thumb:hover {
    background: #333;
}

.image-comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.image-comments-load-more {
    text-align: center;
    padding: 12px 0;
}

.image-comments-spinner {
    padding: 8px 0;
}

.image-comment {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.image-comment:last-child {
    border-bottom: none;
}

.image-comment-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.image-comment-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ccc;
    font-weight: 600;
    text-decoration: none;
}

.image-comment-body {
    flex: 1;
    min-width: 0;
}

.image-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.image-comment-username {
    font-size: 13px;
    font-weight: 600;
    color: #6ea8d9;
    text-decoration: none;
}

.image-comment-username:hover {
    text-decoration: underline;
    color: #8bbde8;
}

.image-comment-time {
    font-size: 12px;
    color: #666;
}

.image-comment-edited {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.image-comment-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.image-comment-text.deleted {
    color: #666;
    font-style: italic;
}

.image-comment-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
}

.image-comment-like-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease, transform 0.15s ease;
}

.image-comment-like-btn:hover {
    color: #e74c3c;
    transform: translateY(-1px);
}

.image-comment-like-btn.liked {
    color: #e74c3c;
}

.image-comment-like-btn.liked svg {
    fill: url(#gifrun-heart-gradient);
    filter: drop-shadow(0 0 5px rgba(255, 59, 48, 0.55));
}

.image-comment-reply-btn,
.image-comment-edit-btn,
.image-comment-delete-btn {
    background: none;
    border: none;
    color: #6ea8d9;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.image-comment-reply-btn:hover {
    color: #8bbde8;
}

.image-comment-edit-btn:hover {
    color: #8bbde8;
}

.image-comment-delete-btn:hover {
    color: #e74c3c;
}

.image-comment-replies-toggle {
    margin-top: 8px;
}

.view-replies-btn {
    color: #aaa;
    font-size: 13px;
    text-decoration: none;
}

.view-replies-btn:hover {
    text-decoration: underline;
    color: #ccc;
}

.image-comment-replies {
    margin-top: 8px;
    padding-left: 20px;
    border-left: 2px solid #222;
}

.image-comment-replies .image-comment {
    padding: 8px 0;
}

.image-comment-replies .image-comment-avatar-img {
    width: 26px;
    height: 26px;
}

.image-comment-replies .image-comment-avatar-placeholder {
    width: 26px;
    height: 26px;
    font-size: 12px;
}

.image-comments-input {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin-top: 0;
    padding: 12px 16px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, #0f0f0f 0%, #0d0d0d 100%);
    border-radius: 0 0 10px 10px;
}

.image-comment-textarea {
    flex: 1;
    background: #080808;
    border: 1px solid #282828;
    color: #ccc;
    padding: 10px;
    border-radius: 20px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    min-height: 38px;
    max-height: 120px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.image-comment-textarea::-webkit-scrollbar {
    display: none;
}

.image-comment-textarea:focus {
    outline: none;
    border-color: #444;
    background: #0c0c0c;
}

.image-comment-textarea::placeholder {
    color: #555;
}

.image-comment-post-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #222 !important;
    border: 1px solid #333 !important;
    color: #ccc !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.image-comment-post-btn:hover {
    background: #333 !important;
    color: #fff !important;
}

.image-comment-post-btn:disabled {
    background: #181818 !important;
    border-color: #222 !important;
    color: #555 !important;
    cursor: default;
}

.image-comment-reply-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    margin-top: 6px;
    background: #161616;
    border-radius: 4px;
    font-size: 13px;
    color: #888;
}

.image-comment-cancel-reply {
    color: #888;
    text-decoration: none;
    font-size: 14px;
}

.image-comment-cancel-reply:hover {
    color: #ccc;
}

.image-comments-signin {
    text-align: center;
    padding: 16px 16px;
    color: #666;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 0;
    background: linear-gradient(135deg, #0f0f0f 0%, #0d0d0d 100%);
    border-radius: 0 0 10px 10px;
}

.image-comments-signin a {
    color: #aaa;
    text-decoration: none;
}

.image-comments-signin a:hover {
    text-decoration: underline;
}

.image-comment-edit-textarea {
    width: 100%;
    background: #080808;
    border: 1px solid #282828;
    color: #ccc;
    padding: 8px;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
    font-family: inherit;
    min-height: 36px;
}

.image-comment-edit-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.image-comment-edit-save,
.image-comment-edit-cancel {
    background: none;
    border: none;
    font-size: 12px;
    cursor: pointer;
    padding: 2px 8px;
}

.image-comment-edit-save {
    color: #aaa;
}

.image-comment-edit-cancel {
    color: #888;
}

/* Delete confirmation modal */
.comment-delete-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: commentOverlayIn 0.15s ease-out;
}

@keyframes commentOverlayIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.comment-delete-modal {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 28px 32px 24px 32px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    animation: commentModalIn 0.15s ease-out;
}

@keyframes commentModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.comment-delete-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 6px;
}

.comment-delete-modal-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 22px;
}

.comment-delete-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.comment-delete-modal-confirm {
    padding: 8px 24px;
    background: #e74c3c;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-delete-modal-confirm:hover {
    background: #c0392b;
}

.comment-delete-modal-cancel {
    padding: 8px 24px;
    background: #222;
    border: 1px solid #333;
    border-radius: 20px;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.comment-delete-modal-cancel:hover {
    background: #333;
    color: #ccc;
}

/* Locked Private Profile */
.profile-locked {
    padding: 60px 20px;
    color: #999;
}

.profile-locked-icon {
    margin-bottom: 16px;
    color: #666;
}

.profile-locked-text {
    font-size: 18px;
    font-weight: 600;
    color: #ccc;
    margin-bottom: 4px;
}

.profile-locked-subtext {
    font-size: 14px;
    color: #888;
}
