.title-share-menu-host {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.title-share-menu {
    position: relative;
}

.title-share-menu > summary {
    display: grid;
    list-style: none;
}

.title-share-menu > summary::-webkit-details-marker {
    display: none;
}

.title-share-options {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    width: min(208px, calc(100vw - 28px));
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: #211917;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.title-share-options button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #f5ede7;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-align: start;
    cursor: pointer;
}

.title-share-options button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.title-share-options button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.title-share-options button:focus-visible {
    outline: 2px solid #f25a00;
    outline-offset: 1px;
}

@media (pointer: coarse) {
    .title-share-options button {
        min-height: 44px;
    }
}

.title-rating-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
}

.title-rating-share-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.title-rating-share-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.title-rating-share-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 220px);
    margin-inline: auto;
    border-radius: 12px;
    object-fit: contain;
}

.title-rating-share-status,
.title-rating-share-error {
    padding: 36px 0;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

.title-rating-share-status {
    margin: 0;
    color: #cbbfb2;
}

.title-rating-share-error p {
    margin: 0 0 14px;
    color: #ffb0a0;
    overflow-wrap: anywhere;
}

.title-rating-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

.title-rating-share-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    color: #e9ddd4;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.title-rating-share-action svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.title-rating-share-action:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.08);
}

.title-rating-share-action:disabled {
    opacity: 0.55;
}

@media (pointer: coarse) {
    .title-rating-share-action {
        min-height: 44px;
    }
}

.title-rating-share-file-error {
    margin: 0;
    color: #ffb0a0;
    font-size: 13px;
    text-align: center;
}
