:root {
    --wtfw-bg-1: #111111;
    --wtfw-bg-2: #242424;
    --wtfw-surface: #181818;
    --wtfw-surface-2: #1f1f1f;
    --wtfw-border: #2f2f2f;
    --wtfw-text-color: #e6e6e6;
    --wtfw-muted: #b4b4b4;
    --wtfw-accent: #e63946;
    --wtfw-accent-2: #ff4d4d;
    --wtfw-card-bg: #181818;
    --wtfw-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.wtfw-container {
    display: grid;
    gap: 20px;
    margin: 80px 0;
    color: var(--wtfw-text-color);
}

.wtfw-container.wtfw-layout-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 2fr));
}

.wtfw-panel {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    gap: 20px;
    margin: 20px 0;
    color: var(--wtfw-text-color);
}

.wtfw-panel-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    width: 1200px;
}

.wtfw-panel-title {
    font-weight: 700;
    color: var(--wtfw-text-color);
}

.wtfw-panel-meta {
    font-size: 17px;
    font-weight: 400;
    color: var(--wtfw-muted);
}

.wtfw-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: linear-gradient(135deg, var(--wtfw-bg-1), var(--wtfw-bg-2));
    border-radius: 12px;
    box-shadow: var(--wtfw-shadow);
    padding: 16px;
    width: 1200px;
    align-items: center;
    border: 1px solid var(--wtfw-border);
}

.wtfw-control-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.wtfw-control-row .wtfw-control {
    flex: 1 1 240px;
    margin: 0;
}

.wtfw-control {
    display: grid;
    gap: 8px;
}

.wtfw-label {
    font-size: 0.9em;
    color: var(--wtfw-muted);
    margin-right: 10px;
}

.wtfw-input,
.wtfw-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--wtfw-border);
    background: var(--wtfw-surface-2);
    color: var(--wtfw-text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wtfw-input:focus,
.wtfw-select:focus {
    outline: none;
    border-color: var(--wtfw-accent);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.wtfw-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.wtfw-inline button{
    border-radius: 10px;
    border: 1px solid var(--wtfw-border);
    background: var(--wtfw-surface-2);
    color: var(--wtfw-text-color);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin: 10px 0px;
}

.wtfw-btn {
    border-radius: 10px;
    border: 1px solid var(--wtfw-border);
    background: var(--wtfw-surface-2);
    color: var(--wtfw-text-color);
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wtfw-btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.wtfw-btn-danger {
    background: linear-gradient(135deg, #2a0b0d, #3a0f12);
    border-color: #5a1d22;
    color: #ffd6d6;
}

.wtfw-btn-danger:hover {
    background: linear-gradient(135deg, #3a0f12, #4a1418);
    border-color: #7a262f;
    color: #ffe6e6;
}

.wtfw-card {
    background-color: var(--wtfw-card-bg);
    color: var(--wtfw-text-color);
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid var(--wtfw-border);
}

.wtfw-card-listbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, #1c1c1c, #212121);
    border-top: 1px solid var(--wtfw-border);
    border-bottom: 1px solid var(--wtfw-border);
}

.wtfw-card-listbar-label {
    flex: 1;
}

.wtfw-card-listbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wtfw-card-listbar-actions .wtfw-toggle {
    margin: 0;
}

.wtfw-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 16px;
    color: #f59e0b;
    margin-top: 6px;
}

.wtfw-star.is-empty { color: #e5e7eb; }
.wtfw-star.is-half { color: #f59e0b; opacity: 0.65; }

.wtfw-card-listbar-label {
    font-weight: 600;
    color: #f3f3f3;
    font-size: 14px;
}

.wtfw-love-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.wtfw-card:hover {
    transform: translateY(-5px);
}

.wtfw-card-thumb {
    display: block;
    height: 390px;
    width: 100%;
    background: #0f0f0f;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.wtfw-card-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wtfw-card:hover .wtfw-card-thumb-img {
    transform: scale(1.05);
}

.wtfw-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111, #242424);
}

.wtfw-card-content {
    padding: 15px;
    max-height: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(180deg, #181818, #121212);
}

.wtfw-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.wtfw-card-title a {
    color: #f8f8f8;
    text-decoration: none;
}

.wtfw-note {
    padding: 12px 0;
    color: var(--wtfw-muted);
    display: none;
}



.wtfw-card-excerpt {
    font-size: 13px;
    line-height: 1.45;
    color: #c7c7c7;
    margin-bottom: 10px;
}

.wtfw-card-meta {
    font-size: 15px;
    font-weight: 500;
    margin: 10px 0px ;
    color: #a3a3a3;
}

.wtfw-action {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wtfw-input.wtfw-input-sm {
    width: 90% !important;
}
.wtfw-select-inline {
    min-width: 160px;
    width: auto;
    padding: 8px 10px;
}

.wtfw-action .wtfw-btn,
.wtfw-action .wtfw-toggle {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.3;
}

.wtfw-action .wtfw-btn {
    border: 1px solid var(--wtfw-border);
    background: var(--wtfw-surface-2);
    color: var(--wtfw-text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wtfw-action .wtfw-btn:hover {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.wtfw-controls select,
.wtfw-card-content select {
    padding: 10px 12px ;
    border-radius: 10px;
    border: 1px solid var(--wtfw-border);
    background: var(--wtfw-surface-2);
    color: var(--wtfw-text-color);
}

/* Eye button */
.wtfw-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid var(--wtfw-border);
    background: var(--wtfw-surface-2);
    color: var(--wtfw-text-color);
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    margin: 10px 0px;
}

.wtfw-toggle:hover {
    background: #272727;
    border-color: #3a3a3a;
}

.wtfw-toggle.is-active {
    border-color: rgba(230, 57, 70, 0.7);
    background: rgba(230, 57, 70, 0.18);
    color: #ffe6ea;
}

.wtfw-toggle .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.wtfw-toggle-text {
    font-size: 16px;
}

.wtfw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wtfw-modal {
    background: var(--wtfw-surface);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    padding: 18px;
    width: min(440px, 90vw);
    display: grid;
    gap: 12px;
    border: 1px solid var(--wtfw-border);
    color: var(--wtfw-text-color);
}

.wtfw-manage-modal {
    width: min(720px, 94vw);
    gap: 16px;
}

.wtfw-manage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.wtfw-manage-subtitle {
    margin: 4px 0 0 0;
    color: #a3a3a3;
    font-size: 14px;
}

.wtfw-manage-body {
    display: grid;
    gap: 12px;
    max-height: 60vh;
    overflow: auto;
    padding-right: 4px;
}

.wtfw-manage-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--wtfw-border);
    border-radius: 10px;
    background: var(--wtfw-surface-2);
}

.wtfw-manage-handle {
    font-size: 18px;
    color: #8a8a8a;
    cursor: grab;
    user-select: none;
    padding: 8px 6px;
}

.wtfw-manage-row-main { flex: 1; display: grid; gap: 8px; }

.wtfw-manage-row-top { display: flex; gap: 8px; align-items: center; }

.wtfw-chip {
    background: #2a2a2a;
    color: #e0e0e0;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.wtfw-pill {
    background: rgba(230, 57, 70, 0.12);
    color: #ff9aa5;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.wtfw-manage-row-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wtfw-manage-row-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.wtfw-manage-row-meta { display: flex; gap: 6px; align-items: center; }

.wtfw-manage-add { display: flex; gap: 8px; align-items: center; }

.wtfw-manage-footer { justify-content: space-between; align-items: center; gap: 12px; }
.wtfw-manage-footer-actions { display: flex; gap: 8px; align-items: center; }

.wtfw-manage-placeholder {
    padding: 12px;
    color: #c7c7c7;
    background: #1d1d1d;
    border: 1px dashed var(--wtfw-border);
    border-radius: 10px;
}

.wtfw-btn-ghost {
    background: transparent;
    border: 1px solid var(--wtfw-border);
    color: var(--wtfw-text-color);
}

.wtfw-btn-ghost:hover {
    background: #242424;
    border-color: #3a3a3a;
}

.wtfw-btn-primary {
    background: linear-gradient(135deg, var(--wtfw-accent), var(--wtfw-accent-2));
    color: #fff;
    border: 1px solid #ff5c6c;
}

.wtfw-btn-primary:hover {
    background: linear-gradient(135deg, #ff4d5e, #ff6b7a);
    border-color: #ff8a98;
}

.wtfw-input-sm { padding: 8px 10px; }

.wtfw-modal h3 {
    margin: 0;
    font-size: 18px;
    color: var(--wtfw-text-color);
}

.wtfw-modal .wtfw-select {
    width: 100%;
}

.wtfw-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.wtfw-love {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--wtfw-border);
    background: var(--wtfw-surface-2);
    color: #ff6b81;
    padding: 6px 8px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    --wtfw-love-open-url: url("https://img.icons8.com/ios-glyphs/30/like--v2.png");
    --wtfw-love-closed-url: url("https://img.icons8.com/ios-glyphs/30/like--v1.png");
}

.wtfw-love.is-active {
    background: rgba(230, 57, 70, 0.16);
    border-color: rgba(230, 57, 70, 0.5);
}

.wtfw-love-icon {
    width: 17px;
    margin-top: 2px;
    height: 18px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: var(--wtfw-love-open-url);
    filter: invert(18%) sepia(86%) saturate(5457%) hue-rotate(332deg) brightness(92%) contrast(102%);
}

.wtfw-love.is-active .wtfw-love-icon {
    background-image: var(--wtfw-love-closed-url);
}

/* Toasts */
.wtfw-toast-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.wtfw-toast {
    background: #111111;
    color: #fff;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    opacity: 0.98;
    border: 1px solid #242424;
}

.wtfw-toast[data-kind="error"] { background: linear-gradient(135deg, #3a0f12, #5a1d22); }
.wtfw-toast[data-kind="success"] { background: linear-gradient(135deg, #0b2f1f, #0f3d29); }
.wtfw-toast[data-kind="info"] { background: linear-gradient(135deg, #0f1a2e, #132449); }

@media (max-width: 600px) {
    .wtfw-container.wtfw-layout-grid {
        grid-template-columns: 1fr;
    }

    .wtfw-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .wtfw-card-thumb {
        height: 200px;
    }
}