* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ddd;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.header-titles {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-logo {
    width: 80px;
    height: auto;
}

.text-group h1, 
.text-group h4 {
    margin: 0;
}


.header-titles h1 {
    margin: 0;
    font-size: 22px;
    color: #2c3e50;
    font-weight: bold;
}

.header-titles h4 {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #7f8c8d;
    font-weight: normal;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box {
    width: 220px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    outline: none;
    border-radius: 0;
}

.search-box:focus {
    border-color: #3498db;
}

.credits-btn {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 0;
}

.credits-btn:hover {
    background-color: #2980b9;
}

.results-info {
    font-size: 13px;
    color: #7f8c8d;
    text-align: right;
    margin-bottom: 15px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.card-item {
    background: #fff;
    border: 1px solid #ddd;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    border-radius: 0;
}

.card-item:hover {
    border-color: #3498db;
}

.card-img-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 50%;
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2;
}

.fav-btn:hover {
    transform: scale(1.15);
    background: #ffffff;
}

.card-img {
    width: 130px;
    height: 180px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 0;
}

.card-info {
    width: 100%;
    text-align: center;
}

.card-title {
    font-size: 15px;
    font-weight: bold;
    color: #2c3e50;
    margin: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-series {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 6px;
}

.card-badges {
    margin-bottom: 8px;
}

.badge-yes {
    background-color: #2ecc71;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 0;
}

.badge-no {
    background-color: #95a5a6;
    color: white;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 0;
}

.card-price-main {
    font-size: 14px;
    font-weight: bold;
    color: #27ae60;
    background: #e8f8f5;
    padding: 6px;
    width: 100%;
    border-radius: 0;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-size: 16px;
    display: none;
}