@media (max-width:991px) {
    body.poster {
        margin-top: 60vh;
    }
}

body.poster {
    background-attachment: fixed;
}

/* body {background: linear-gradient(to bottom, #003366, #001133);} */
body {
    background: linear-gradient(to bottom, #2E4272, #061539);
}

.top-5 {
    top: 5px;
}

.site-logo {
    width: 800px;
    height: auto;
}

.search-form {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.search-btn {
    width: 130px;
    border-bottom-right-radius: 16px;
    border-top-right-radius: 16px;
}

/* Match search input and button height on mobile */
@media (max-width: 768px) {
    .search-form,
    .search-btn {
        height: 48px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* Hide search text and show only larger dice icon on mobile */
    .search-text {
        display: none;
    }

    .search-btn .bi-dice-5 {
        font-size: 1.5rem;
        margin-right: 0 !important;
    }

    .search-btn {
        width: 60px;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: center;
    }
}

section#results-section {
    min-height: 350px;
}

/* .results-container {display:none;} */
.results-list-container {
    border-radius: 16px;
    background: #003366cc;
    border: 1px solid gold;
    box-shadow: 5px -6px 35px 0px rgba(0, 0, 0, 0.43);
}


.search-icon {
    height: 25px;
    width: auto;
}

.result-url-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.result-url-list li {
    display: flex;
    line-height: 36px;
    border-bottom: 0.5px solid gold;
}

.result-url-list a {
    color: #fff;
    text-decoration: none;
}

.result-url-list a:visited {
    color: gold;
}

.result-url-list li:last-child {
    border-bottom: 0px;
}

/* Bottom border on last visible collapsed item is handled by JS (applyItemVisibility) */

.item-inline {
    display: inline-block;
}

.line-links {
    width: calc(99% - 25px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-site-icon {
    text-align: center;
    width: 31px;
    margin-right: 3px;
}

/* .bg-primary  {background-color:#003366;} */

/* Item visibility (show/hide based on count) is handled by JS (applyItemVisibility) */

.results-list-container {
    position: relative;
}

.expand-collapse-btn {
    width: 95%;
    margin: 0 auto 20px auto;
    text-align: center;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    cursor: pointer;
    border-radius: 0 0 8px 8px;
}

.expand-collapse-btn.disabled {
    background: rgba(0,0,0,0.12);
    color: rgba(255,255,255,0.45);
    cursor: not-allowed;
    opacity: 0.65;
}

.global-expand-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid gold;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    transition: background 0.2s ease;
}

.global-expand-btn:hover {
    background: rgba(255, 215, 0, 0.1);
}

.dice-rotate {
    display: inline-block;
    transform: rotate(15deg);
}

