/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
}

.type-select-wrapper {
    position: relative;
    min-width: 52px;
    height: 48px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: var(--color-bg);
    box-shadow: 0 2px 4px var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
}

.type-select-wrapper:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 6px var(--shadow-md);
}

.type-select {
    width: 1px;
    height: 1px;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    cursor: pointer;
}

.type-select-options {
    overflow: hidden;
    margin: 0;
    padding: 3px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-md);
    margin-top: 8px;
    z-index: 10;
}

.type-select-wrapper.open .type-select-options {
    display: block;
}

.type-select-option {
    font-family: 'Material Symbols Rounded';
    font-size: 24px;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    color: var(--color-text-secondary);
    height: 36px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin: 4px;
}

.type-select-option:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.type-select-option.selected {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.typeelect option:ver,
.type-select option:checked {
    background: var(--color-primary-bg);
}

.type-select:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 6px var(--shadow-md);
}

.type-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--shadow-primary);
    outline: none;
}

.type-select-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-secondary);
    pointer-events: none;
    font-size: 24px;
    transition: all 0.3s ease;
}

.type-select-wrapper:hover .type-select-icon {
    color: var(--color-primary);
}

/* Search Container and Inputs */
.search-container {
    /* margin-bottom: 40px; */
    background: var(--color-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.search-group {
    margin-bottom: 15px;
}

@media (prefers-color-scheme: dark) {
    input {
        color-scheme: dark;
    }
}

.input-wrapper {
    position: relative;
    flex: 1;
    /* margin-bottom: 15px; */
}

.input-wrapper .material-symbols-rounded {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    pointer-events: none;
    transition: color 0.3s ease;
}

.search-input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--color-bg);
    box-shadow: 0 2px 4px var(--shadow-sm);
    color: var(--color-text);
    height: 48px;
}

/* Input placeholder styles */
.search-input::placeholder,
.sort-filter input::placeholder,
.rating-filter input::placeholder,
.rank-filter input::placeholder,
.date-filter input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

/* Dark mode specific input styles */
[data-theme="dark"] .search-input,
[data-theme="dark"] .sort-filter input,
[data-theme="dark"] .rating-filter input,
[data-theme="dark"] .rank-filter input,
[data-theme="dark"] .date-filter input {
    color: var(--color-text);
}

[data-theme="dark"] .search-input::placeholder,
[data-theme="dark"] .sort-filter input::placeholder,
[data-theme="dark"] .rating-filter input::placeholder,
[data-theme="dark"] .rank-filter input::placeholder,
[data-theme="dark"] .date-filter input::placeholder {
    color: #9CA3AF;
    opacity: 0.8;
}

.search-input:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 6px var(--shadow-md);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--shadow-primary);
    outline: none;
    background: var(--color-white);
}

.search-input:focus+.material-symbols-rounded {
    color: var(--color-primary);
}

/* Segmented Buttons */
.segmented-buttons {
    display: flex;
    gap: 0;
    background: var(--color-bg);
    padding: 4px;
    border-radius: 6px;
    border: 1px solid var(--color-border-light);
}

.segmented-button {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
}

.segmented-button .material-symbols-rounded {
    font-size: 18px;
}

.segmented-button:hover {
    background: var(--color-primary-bg);
}

.segmented-button.active {
    background: var(--color-primary);
    color: var(--color-white);
}

.segmented-button.active:hover {
    background: var(--color-primary-dark);
}

/* Filter Group */
.filter-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    padding: 25px;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-md);
    border: 1px solid var(--color-border-light);
    align-items: center;
    justify-content: center;
}

.sort-filter,
.rating-filter,
.date-filter,
.rank-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sort-filter,
.rating-filter label,
.date-filter label,
.rank-filter label {
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95em;
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-inputs input {
    flex: 1;
    min-width: 0;
}

.separator {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.sort-filter input,
.rating-filter input,
.rank-filter input,
.date-filter input {
    padding: 10px 12px;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    background: var(--color-bg);
    box-shadow: 0 2px 4px var(--shadow-sm);
}

.sort-filter input:hover,
.rating-filter input:hover,
.rank-filter input:hover,
.date-filter input:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 6px var(--shadow-md);
}

.sort-filter input:focus,
.rating-filter input:focus,
.rank-filter input:focus,
.date-filter input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--shadow-primary);
    outline: none;
    background: var(--color-white);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label span.material-symbols-rounded {
    font-size: 20px;
    color: var(--color-text-secondary);
}

.filter-group input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Search Button */
.search-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-primary-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-button:hover::before {
    opacity: 1;
}

.search-button .material-symbols-rounded {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.search-button:hover .material-symbols-rounded {
    transform: translateX(4px);
}

.search-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px var(--shadow-primary-lg);
}

.search-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px var(--shadow-primary-md);
}

/* Tags */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    min-height: 10px;
    padding: 5px;
}

.tag-container:empty {
    margin-bottom: 0px;
}

.tag {
    background-color: var(--color-bg);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-light);
    font-size: 0.9em;
    font-weight: 500;
    box-shadow: 0 2px 4px var(--shadow-sm);
}

.tag:hover {
    background-color: var(--color-primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-md);
    border-color: var(--color-primary-light);
}

.tag::before {
    content: '#';
    font-weight: 700;
    opacity: 0.6;
}

.tag-remove {
    cursor: pointer;
    color: var(--color-primary);
    font-weight: bold;
    transition: all 0.2s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: -2px;
}

.tag-remove:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

/* Results Summary */
.results-summary {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px 25px;
    border-radius: 12px;
    /* margin-bottom: 25px; */
    box-shadow: 0 4px 6px var(--shadow-md);
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
    font-size: 1.1em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.results-summary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            var(--color-primary-bg) 0%,
            transparent 100%);
    background: var(--color-white);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.results-summary::before {
    content: 'format_list_bulleted';
    font-family: 'Material Symbols Rounded';
    color: var(--color-primary);
    font-size: 1.2em;
    opacity: 0.9;
    background: var(--color-primary-bg);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 2px 4px var(--shadow-sm);
}

.results-summary span {
    position: relative;
    z-index: 1;
}

.results-summary strong {
    color: var(--color-primary);
    font-weight: 600;
    margin: 0 4px;
}

.results-summary-title {
    display: block;
    font-size: larger;
    font-weight: bold;
    color: var(--color-text);
    text-align: center;
    /* margin: 20px 0; */
}

/* .summary-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    font-size: 0.9em;
    color: var(--color-text-secondary);
    flex: 0 0 auto;
    flex-wrap: nowrap;
} */

/* .keyword-filter {
    background: var(--color-primary-bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
} */

.keyword-filter {
    color: var(--color-primary);
    background: var(--color-bg);
    border: 1px solid var(--color-primary-light);
}

[data-theme="dark"] .keyword-filter {
    background: var(--color-primary-bg);
    border-color: var(--color-primary);
    opacity: 0.9;
}

.results-summary:hover .keyword-filter {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px var(--shadow-sm);
}

.results-summary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--shadow-md);
    border-color: var(--color-primary-light);
    background: linear-gradient(to right,
            var(--color-bg),
            color-mix(in srgb, var(--color-primary-bg) 50%, var(--color-bg)));
}

.results-summary:hover::before {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.05);
    box-shadow: 0 4px 8px var(--shadow-primary-md);
}

.results-summary:hover::after {
    opacity: 0.4;
}

/* [data-theme="dark"] .results-summary {
    background: linear-gradient(to right,
            var(--color-bg),
            color-mix(in srgb, var(--color-primary-bg) 15%, var(--color-bg)));
    border-color: var(--color-border-light);
}

[data-theme="dark"] .results-summary:hover {
    border-color: var(--color-primary-light);
    background: linear-gradient(to right,
            var(--color-bg),
            color-mix(in srgb, var(--color-primary-bg) 25%, var(--color-bg)));
}

[data-theme="dark"] .results-summary::after {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--color-primary-bg) 30%, transparent) 0%,
            transparent 100%);
} */

/* Anime Cards */
.results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    /* min-height: 200px; */
    padding: 20px 0;
}

.results-container:empty {
    min-height: 0px;
}

.anime-card {
    background-color: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-light);
    position: relative;
    cursor: pointer;
}

.anime-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 12px var(--shadow-lg);
}

.anime-image-container {
    position: relative;
    width: 100%;
    height: 360px;
    background-color: var(--color-bg);
    overflow: hidden;
    background-image: linear-gradient(45deg, var(--color-border-light) 25%, transparent 25%),
        linear-gradient(-45deg, var(--color-border-light) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--color-border-light) 75%),
        linear-gradient(-45deg, transparent 75%, var(--color-border-light) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.anime-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: var(--color-white);
}

.anime-image.no-image {
    opacity: 0.8;
    filter: grayscale(1);
    background: linear-gradient(45deg, var(--color-bg) 25%, var(--color-border-light) 25%, var(--color-border-light) 50%, var(--color-bg) 50%, var(--color-bg) 75%, var(--color-border-light) 75%);
    background-size: 10px 10px;
    animation: moveBackground 30s linear infinite;
}

@keyframes moveBackground {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 50px 50px;
    }
}

.placeholder-icon {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2);
    font-size: 64px;
    color: var(--color-primary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.anime-image-container:hover .placeholder-icon {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(2.5);
}

/* .anime-image-container .no-image~.placeholder-icon::after {
    content: 'The Cover is Gone!';
    position: absolute;
    margin-top: 50%;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    white-space: nowrap;
    color: var(--color-text);
    font-weight: 500;
} */

.anime-card:hover .anime-image:not(.no-image) {
    transform: scale(1.05);
}

.anime-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    opacity: 0.94;
    /* border: 1px solid var(--color-primary-light); */
    box-shadow: 0 2px 4px var(--shadow-lg);
    z-index: 2;
}

.anime-rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--color-bg);
    color: var(--color-primary-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    opacity: 0.94;
    /* border: 1px solid var(--color-border-light); */
    box-shadow: 0 2px 4px var(--shadow-lg);
    z-index: 2;
}

.anime-info {
    padding: 20px;
    background: var(--color-white);
}

/* [data-theme="dark"] .anime-info {
    background: linear-gradient(to bottom,
            rgba(30, 30, 30, 0.95),
            var(--color-white));
} */

.anime-title {
    margin-bottom: 12px;
    position: relative;
    line-height: 1.4;
    height: auto;
    pointer-events: none;
}

.anime-title-main {
    font-weight: 600;
    font-size: 1.2em;
    color: var(--color-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-title-sub {
    font-weight: 500;
    font-size: 0.95em;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anime-title:hover::after {
    content: attr(data-title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-white);
    color: var(--color-text);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 6px var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

[data-theme="dark"] .anime-image-container .no-image~.placeholder-icon::after {
    color: var(--color-text-secondary);
}

[data-theme="dark"] .filter-group label span.material-symbols-rounded {
    color: var(--color-text-secondary);
    opacity: 0.8;
}

[data-theme="dark"] .input-wrapper .material-symbols-rounded {
    color: #9CA3AF;
}

[data-theme="dark"] .separator {
    color: var(--color-text-secondary);
    opacity: 0.7;
}

.anime-details {
    color: var(--color-text-secondary);
    font-size: 0.95em;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.anime-detail-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.anime-detail-item span {
    font-size: 1.1em;
    opacity: 0.7;
}

.anime-detail-item.date {
    padding: 4px 8px;
    background: var(--color-primary-bg);
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--color-text);
}

[data-theme="dark"] .anime-detail-item.date {
    background: var(--color-primary-bg);
    color: var(--color-text);
}

.anime-detail-item.episodes {
    padding: 4px 8px;
    background: var(--color-bg);
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--color-border-light);
}

.anime-rating {
    font-weight: 600;
    font-size: 1.1em;
}

/* Context Menu Styles */
.anime-card-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0.95;
}

.anime-card-menu-btn {
    color: var(--color-text-secondary);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-sm);
}

.anime-card-menu-btn:hover {
    /* background: var(--color-primary-bg); */
    /* border-color: var(--color-primary-light); */
    transform: scale(1.1);
}

.anime-card-menu-btn:active {
    transform: scale(0.95);
}

.anime-card-menu-content {
    position: absolute;
    right: 0;
    top: 40px;
    background: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow-md);
    border: 1px solid var(--color-border-light);
    min-width: 160px;
    overflow: hidden;
    z-index: 10;
    display: none;
}

.anime-card-menu-content.show {
    display: block;
}

.anime-card-menu-item {
    padding: 8px 16px;
    font-size: 0.9em;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.anime-card-menu-item:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.anime-card-menu-item:active {
    background: var(--color-primary);
    color: var(--color-white);
}

.anime-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 1px;
    max-height: 112px;
    overflow-y: auto;
    padding: 2px;
    /* Subtle scrollbar for better UX */
    scrollbar-width: auto;
    scrollbar-color: var(--color-primary) var(--color-primary-bg);
}

.anime-tags::-webkit-scrollbar {
    width: 6px;
}

.anime-tags::-webkit-scrollbar-track {
    background: var(--color-primary-bg);
    border-radius: 3px;
}

.anime-tags::-webkit-scrollbar-thumb {
    background-color: var(--color-primary-light);
    border-radius: 3px;
}

.anime-tag {
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--color-border-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-sm);
}

.anime-tag:hover {
    background-color: var(--color-primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-md);
    border-color: var(--color-primary-light);
}

.anime-tag::before {
    content: '# ';
    font-weight: 700;
    opacity: 0.6;
}

[data-theme="dark"] .anime-rating-badge {
    background: var(--color-primary-bg);
    color: var(--color-primary-light);
}

.float-btn {
    position: fixed;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    color: var(--color-white);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.float-btn:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow-lg);
}

.float-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px var(--shadow-md);
}

.float-btn-top {
    bottom: 100px;
}

.float-btn-bottom {
    bottom: 30px;
}

.float-btn-setting {
    top: 30px;
}

.float-btn .material-symbols-rounded {
    font-size: 28px;
}

@media (max-width: 768px) {
    .results-summary {
        padding: 12px 15px;
        font-size: 0.95em;
        margin-bottom: 15px;
        gap: 10px;
    }

    /* .summary-details {
        margin-left: 0;
        font-size: 0.85em;
        flex: 0 0 auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
    } */

    .keyword-filter {
        white-space: nowrap;
    }

    .results-summary::before {
        width: 32px;
        height: 32px;
        font-size: 1.1em;
    }

    /* .search-container {
        position: relative;
        max-width: 800px;
        margin: 0 auto 2rem;
        background: var(--bg-color);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        display: flex;
        align-items: stretch;
        gap: 0;
        padding: 8px;
    } */

    /* .type-select-wrapper {
        flex-shrink: 0;
        width: auto;
        min-width: 140px;
        height: auto;
        margin-right: -1px;
        border-radius: 8px 0 0 8px;
        border-right: none;
    }

    .type-select-wrapper:hover {
        z-index: 2;
    } */

    /* .search-input {
        border-radius: 0 8px 8px 0;
        padding-left: 52px;
    } */

    .input-wrapper {
        flex: 1;
    }

    .results-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }

    .anime-card {
        border-radius: 8px;
    }

    .anime-image-container {
        height: 250px;
    }

    .search-button {
        padding: 14px;
        font-size: 16px;
    }

    /* .float-btn {
        width: 40px;
        height: 40px;
        right: 25px;
    }

    .float-btn-top {
        bottom: 80px;
    }

    .float-btn-bottom {
        bottom: 25px;
    } */

    .float-btn-setting {
        display: none;
    }

    .search-input::placeholder {
        font-size: 0.9em;
    }
}

/* GitHub Link */
.github-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 6px;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-sm);
    vertical-align: middle;
}

.github-link:hover {
    color: var(--color-primary);
    background: var(--color-primary-bg);
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px var(--shadow-md);
}

.github-link .material-symbols-rounded {
    font-size: 20px;
}