.layout_search {
    display: none;
    background: #272f37;
    padding: 15px 0;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    min-height: 80px;
}

.layout_search.is-open {
    display: block;
    height: auto;
    overflow: visible;
    position: relative;
}

.navbar,
.navbar-container {
    overflow: visible !important;
}

.search-box-full {
    position: relative;
    max-width: 600px;
    margin: auto;
    overflow: visible;
}

.search-box-full input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border-radius: 6px;
    border: 1px solid #141b23;
    font-size: 16px;
    background: #20292f;
    color: #fff;
    outline: none !important;
    box-shadow: none !important;
}

.search-box-full input:focus,
.search-box-full input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
    font-size: 14px;
    display: none;
    z-index: 10;
}
.clear-search:hover {
    color: #ff5252;
}

#results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    width: 100%;
    background: #1a2228;
    border: 1px solid #141b23;
    border-radius: 8px;
    max-height: 520px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 999999;
}

.result-item {
    padding: 12px;
    border-bottom: 1px solid #2c2c2c;
    cursor: pointer;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
}
.result-item:hover {
    background: #1e272e;
}
.result-item:last-child {
    border-bottom: none;
}

.result-link {
    display: flex;
    gap: 12px;
    color: inherit;
    text-decoration: none;
    width: 100%;
}

.result-item img {
    width: 70px;
    height: 95px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-code {
    font-weight: bold;
    color: #ff9800;
    font-size: 13px;
    margin-bottom: 4px;
}

.result-title {
    font-size: 14px;
    line-height: 1.4;
    color: #ddd;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster.green {
    border: 3px solid rgb(65, 73, 228);
}
.poster.orange {
    border: 3px solid rgb(255, 76, 0);
}

.no-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px 16px;
    text-align: center;
}

.no-result svg {
    opacity: 0.5;
    animation: noresult-pop 0.35s ease forwards;
}

.no-result span {
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
}

.no-result small {
    font-size: 12px;
    color: #555;
    margin-top: -6px;
}

@keyframes noresult-pop {
    0%   { transform: scale(0.6); opacity: 0; }
    70%  { transform: scale(1.1); opacity: 0.6; }
    100% { transform: scale(1);   opacity: 0.5; }
}

/* ===== Rate Limit Message ===== */
.rate-limit-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 36px 16px;
    text-align: center;
}

.rate-limit-message svg {
    opacity: 0.7;
    animation: pulse-clock 2s ease-in-out infinite;
}

.rate-limit-message span {
    font-size: 15px;
    font-weight: 600;
    color: #ff9800;
}

.rate-limit-message small {
    font-size: 12px;
    color: #aaa;
    margin-top: -6px;
}

.rate-limit-message strong {
    color: #ff9800;
    font-weight: 700;
    font-size: 14px;
}

.countdown-bar {
    width: 200px;
    height: 4px;
    background: #2c2c2c;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.countdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9800, #ffb74d);
    transition: width 1s linear;
    border-radius: 2px;
}

@keyframes pulse-clock {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50%       { opacity: 0.8; transform: scale(1.05); }
}

.view-all {
    padding: 12px;
    text-align: center;
    background: #0d1317;
    border-top: 1px solid #222;
    border-radius: 0 0 8px 8px;
}

.view-all a {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: color 0.2s;
}

.view-all a:hover {
    color: #ffb74d;
}