.release-rail {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 998;
    display: flex;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
}

.release-rail-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
}

.release-rail-link {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    color: var(--color-white);
    background: #5F2922;
    backdrop-filter: none;
    box-shadow: 0 8px 24px rgba(31, 34, 38, 0.1);
    pointer-events: auto;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.release-rail-link:hover {
    color: var(--color-white);
    background: #5F2922;
}

.release-rail-tag,
.release-rail-action {
    white-space: nowrap;
}

.release-rail-tag {
    grid-column: 1;
    justify-self: start;
    color: var(--color-white);
    font-size: 0.68rem;
    font-weight: 540;
    letter-spacing: 0.02em;
    line-height: 1;
    text-transform: none;
}

.release-rail-message {
    min-width: 0;
    max-width: none;
    overflow: hidden;
    color: var(--color-white);
    font-size: 0.68rem;
    font-weight: 560;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.release-rail-message-mobile {
    display: none;
}

.release-rail-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgb(253, 189, 112);
    font-size: 0.72rem;
    font-weight: 540;
    transition: color 0.2s ease, transform 0.2s ease;
}

.release-rail-action::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.release-rail-link:hover .release-rail-action {
    color: var(--color-white);
    transform: translateX(2px);
}

@media (max-width: 860px) {
    .release-rail-link {
        gap: 12px;
        min-height: 38px;
    }
}

@media (max-width: 560px) {
    .release-rail {
        right: 0;
        bottom: 0;
        left: 0;
    }

    .release-rail-link {
        min-height: 30px;
        padding: 0 14px;
        border-radius: 0;
        color: var(--color-white);
        background: #5F2922;
    }

    .release-rail-link:hover {
        color: var(--color-white);
        background: #5F2922;
    }

    .release-rail-tag {
        display: none;
    }

    .release-rail-message {
        max-width: 100%;
        color: var(--color-white);
        font-size: 0.68rem;
    }

    .release-rail-message-desktop {
        display: none;
    }

    .release-rail-message-mobile {
        display: inline;
    }

    .release-rail-action {
        display: none;
    }
}

@media (max-width: 768px) {
    body:has(#primaryNavPanel.open) .release-rail {
        opacity: 0;
        visibility: hidden;
        transform: translateY(100%);
    }
}
