.seen-it-teaser {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: linear-gradient(135deg, #f7f9fc 0%, #eef3fa 100%);
}

.seen-it-teaser__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: #365a9c;
}

.seen-it-teaser__text {
    margin: 0 0 16px;
    color: #444;
}

.seen-it-teaser__posters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.seen-it-teaser__posters img {
    width: 64px;
    height: 96px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.seen-it-app {
    width: 100%;
}

.seen-it-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
}

.seen-it-progress {
    flex: 1 1 180px;
    min-width: 160px;
}

.seen-it-progress__label {
    font-weight: bold;
    margin-bottom: 6px;
}

.seen-it-progress__bar {
    height: 10px;
    background: #e9edf3;
    border-radius: 999px;
    overflow: hidden;
}

.seen-it-progress__fill {
    height: 100%;
    width: 0;
    background: #4a7c59;
    transition: width 0.25s ease;
}

.seen-it-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.seen-it-controls input[type="search"] {
    min-width: 200px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.seen-it-filter-btn {
    padding: 7px 12px;
    border: 1px solid #c5ccd8;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}

.seen-it-filter-btn.is-active {
    background: #365a9c;
    border-color: #365a9c;
    color: #fff;
}

.seen-it-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.seen-it-card {
    position: relative;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f4f5;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.seen-it-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.seen-it-card.is-seen {
    border-color: #4a7c59;
}

.seen-it-card__poster {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #ddd;
}

.seen-it-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 2 / 3;
    padding: 8px;
    text-align: center;
    font-size: 0.75rem;
    color: #666;
    background: #e9edf3;
}

.seen-it-card__meta {
    padding: 5px 7px 8px;
    font-size: 0.75rem;
    line-height: 1.22;
}

.seen-it-card__title {
    font-weight: 600;
    font-size: 0.74rem;
    line-height: 1.28;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.seen-it-card__year {
    color: #666;
}

.seen-it-card__check {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(74, 124, 89, 0.95);
    color: #fff;
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.seen-it-card.is-seen .seen-it-card__check {
    opacity: 1;
}

.seen-it-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.seen-it-result {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #f9fbff;
}

.seen-it-result__headline {
    margin: 0 0 8px;
    font-size: 1.6rem;
    color: #365a9c;
}

.seen-it-result__sub {
    margin: 0 0 16px;
    color: #555;
}

.seen-it-result__note {
    margin: 0 0 16px;
    color: #666;
    font-style: italic;
}

.seen-it-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.seen-it-result-grid img,
.seen-it-result-grid .seen-it-card__placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.seen-it-import-help {
    margin-top: 16px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
}

.seen-it-import-help summary {
    cursor: pointer;
    font-weight: bold;
}

.seen-it-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(120%);
    padding: 10px 16px;
    background: #222;
    color: #fff;
    border-radius: 6px;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 1000;
}

.seen-it-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.seen-it-error {
    padding: 16px;
    border: 1px solid #e0b4b4;
    background: #fff5f5;
    border-radius: 6px;
    color: #8a1f1f;
}

.seen-it-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .seen-it-grid {
        grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
        gap: 10px;
    }

    .seen-it-card__title {
        font-size: 0.72rem;
    }

    .seen-it-controls input[type="search"] {
        min-width: 140px;
        width: 100%;
    }
}
