:root {
    --image-height: 300px;
    --image-width: 200px;
}

/* ═══ Search Box – Antigravity Floating Panel ═══ */
.ag-search-float-panel {
    position: relative;
    z-index: 3;
}

#searchBox {
    margin: 10px 0 30px 0;
    border-radius: 0px;
    padding: 0px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s var(--ag-transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#searchBox:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.15), 0 4px 20px rgba(0, 0, 0, 0.4);
}

#searchBox div {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 100%;
    cursor: pointer;
    background: transparent;
}

#searchBox div img {
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: 0.3s;
}

#searchBox div:hover img {
    opacity: 1;
}

#searchBox input {
    flex-grow: 1;
    background: transparent;
    color: var(--text-primary);
    border: none;
    font-size: 16px;
}

#searchBox input:focus {
    outline: none;
}

/* ═══ Filters – Elevated Floating Layer ═══ */
.ag-filters-floating-layer {
    position: relative;
    z-index: 2;
    padding: 10px 0;
}

.info .fansub-logo img {
    height: 80px;
    width: 80px;
    border-radius: 0px;
    border: 2px solid var(--accent-primary);
}

.info .fansub-logo .fansub-name {
    font-size: 14px;
    color: var(--text-primary);
    background: rgba(10, 10, 10, 0.8);
    padding: 2px 8px;
    border-radius: 0px;
    margin-top: 4px;
}

.info {
    width: var(--image-width);
    background-color: var(--bg-card);
    margin: 10px;
    display: inline-grid;
    height: var(--image-height);
    border: 1px solid var(--border-color);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 0px;
    overflow: hidden;
    transition: all 0.35s var(--ag-transition);
}

.info:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 168, 83, 0.15);
    transform: translateY(-6px);
}


.anime-status {
    position: relative;
    bottom: -300px;
    margin-top: -62px;
    width: 200px;
}

.info * {
    opacity: 0;
    transition: .3s;
}

.info:hover * {
    opacity: 1;
}

.info a.genres {
    display: inline-block;
    border-radius: 0px;
    color: #0a0a0a;
    background-color: var(--accent-primary);
    margin: 3px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.info a.genres:hover {
    background-color: var(--accent-hover);
}

/* ═══ Results – Depth Grid Wrapper ═══ */
.ag-results-depth-grid {
    animation: ag-fade-depth 0.5s var(--ag-transition) both;
}

#results {
    margin-top: 30px;
}

.animes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 15px;
}

[group='type'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    margin: 4px;
    height: 40px;
    box-sizing: border-box;
    border-radius: 0px !important; /* KEY: sharp corners — no clipping gaps */
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: 'Arimo', Arimo, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ag-transition);
    outline: none !important;
    -webkit-appearance: none;
    appearance: none;
}

[group='type']:hover {
    color: var(--text-primary);
    background: rgba(212, 168, 83, 0.05);
    border-color: rgba(212, 168, 83, 0.3);
    border-radius: 0px !important;
}

[group='type'].selected {
    border: 2px solid var(--accent-primary) !important; /* Solid, complete 2px gold border */
    border-radius: 0px !important; /* Enforce sharp corners — prevents corner gaps */
    color: var(--accent-primary);
    background: rgba(212, 168, 83, 0.08);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.18);
    font-weight: 600;
}


#anime-type {
    padding-bottom: 5px;
    margin: 10px 0;
}

.info a {
    text-decoration: none;
    text-align: center;
}

.search-by {
    display: inline-block;
    margin-left: 10px;
    color: var(--text-secondary);
}

.info .search-top {
    font-size: 15px;
}

.fansub-by-name {
    color: var(--accent-primary);
    font-family: 'Arimo', Arimo, sans-serif;
    font-size: 16px;
    margin: 5px;
    font-weight: 700;
    text-shadow: none;
}


@media only screen and (max-width: 600px) {
    .animes {
        zoom: 0.85;
    }
}

@media only screen and (max-width: 500px) {
    .animes {
        zoom: 0.8;
    }
}

.info p.anime-name {
    margin: 0px;
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.7) 100%);
    text-align: center;
    padding: 8px 4px;
}

.info p.anime-name a {
    color: var(--text-primary);
    font-family: 'Arimo', Arimo, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.info .rate-button {
    min-width: 46px;
}

.info .main-box {
    height: 200px;
}