* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nothing-you-could-do-regular {
  font-family: "Nothing You Could Do", cursive;
  font-weight: 400;
  font-style: normal;
}

.indie-flower-regular {
  font-family: "Indie Flower", cursive;
  font-weight: 400;
  font-style: normal;
}

.square-peg-regular {
  font-family: "Square Peg", cursive;
  font-weight: 400;
  font-style: normal;
}

body {
    font-family: "Indie Flower", cursive;
    background: linear-gradient(
        135deg,
        #f8fafc 0%,
        #f1f5f9 50%,
        #e2e8f0 100%
    );
    overflow-x: hidden;
    min-height: 100vh;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.02);
    
    position: sticky;
    top: 0;
    z-index: 100;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -1.2px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-a {
    color: #0f172a;
}

.logo-t {
    color: #3b82f6;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.header-nav a:hover {
    color: #0f172a;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav a.active {
    color: #0f172a;
}

.header-nav a.active::after {
    width: 100%;
}

.add-btn {
    text-decoration: none;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 0.65rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 
        0 2px 8px rgba(15, 23, 42, 0.15),
        0 4px 16px rgba(15, 23, 42, 0.1);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(15, 23, 42, 0.2),
        0 8px 24px rgba(15, 23, 42, 0.15);
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.add-btn:active {
    transform: translateY(0);
}

.main-content {
    padding: 2.5rem 1.5rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.menu-section {
    max-width: 1200px;
    margin: 0 auto 4rem auto;
    padding: 2rem 2.5rem;
    
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 20px;
    
    /* Softer shadow */
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.03),
        0 2px 8px rgba(0, 0, 0, 0.02);
    
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.menu-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.menu-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.menu-header p {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.menu-search {
    display: flex;
    justify-content: center;
}

.menu-search input {
    width: 100%;
    max-width: 600px;
    padding: 0.9rem 1.8rem;
    font-size: 1rem;
    font-family: inherit;
    font-weight: bold;
    border-radius: 14px;
    border: 1.5px solid rgba(148, 163, 184, 0.2);
    
    background: white;
    color: #0f172a;
    
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.menu-search input::placeholder {
    color: #94a3b8;
    font-family: inherit;
}

.menu-search input:focus {
    border-color: #3b82f6;
    box-shadow: 
        0 0 0 4px rgba(59, 130, 246, 0.08),
        0 4px 12px rgba(59, 130, 246, 0.08);
    transform: translateY(-1px);
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    font-family: inherit;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
}

.group-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.pill {
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    
    border: 1.5px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.8);
    
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    
    cursor: pointer;
    white-space: nowrap;
    
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

.pill:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.pill:active {
    transform: translateY(0);
}

.pill.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.25),
        0 4px 16px rgba(59, 130, 246, 0.15);
}

.kanban-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 1rem;
    
    display: flex;
    flex-direction: column;
    gap: 5rem; 
}

.kanban-wrapper {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.kanban-wrapper.hidden-section {
    display: none;
}

/* Remove display: contents from kanban-section entirely */
.kanban-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-size: 2.25rem; 
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
    
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-count {
    font-size: 0.85rem;
    font-weight: 700;
    
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-row {
    display: flex;
    flex-direction: row;
    gap: 1.5rem; 
    align-items: stretch;
    
    padding: 1rem 0.5rem 1.5rem; 
    margin: 0 -0.5rem; 
    
    overflow-x: auto;
    overflow-y: visible;
    
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0.5rem;
    
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.card-row::-webkit-scrollbar {
    height: 6px;
}

.card-row::-webkit-scrollbar-track {
    background: transparent;
    margin: 0 0.5rem;
}

.card-row::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    transition: background 0.2s ease;
}

.card-row::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

.empty-state {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 3rem 2rem;
    text-align: center;
    font-style: italic;
}

.empty-state-large {
    text-align: center;
    padding: 5rem 2rem;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.empty-icon {
    font-size: 5rem;
    opacity: 0.5;
}

.empty-state-large h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.empty-state-large p {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    max-width: 400px;
}

.filter-empty-state {
    opacity: 0;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.series-card {
    flex: 0 0 380px; 
    min-height: 380px;
    
    background: white;
    border-radius: 20px; 
    
    display: flex;
    flex-direction: column;
    
    overflow: hidden;
    
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03);
    
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    scroll-snap-align: start;

    border: 1px solid rgba(148, 163, 184, 0.08);

    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.series-card.hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.series-card.hidden-display {
    display: none;
}

.series-card:hover {
    transform: translateY(-8px) scale(1.01); 
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.06);
    border-color: rgba(148, 163, 184, 0.15);
}

.card-image {
    height: 220px; 
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    position: relative;
}

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

.series-card:hover .card-image img {
    transform: scale(1.05); 
}

.image-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-content {
    flex: 1;
    padding: 1.5rem; 
    
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.card-title {
    font-size: 1.1rem; 
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
    flex: 1;
    
    word-break: break-word;
    hyphens: auto;
}

.media-badge {
    font-size: 0.7rem;
    font-weight: 700;
    
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-progress {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-top: 0.25rem;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.progress-text {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.badge-in_progress {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.12));
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-planned {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(124, 58, 237, 0.12));
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-on_hold {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.12));
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-completed {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.12));
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-dropped {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.12));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.card-footer {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: auto;
    font-weight: 500;
}

.last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.hidden {
    display: none;
}

@media (max-width: 1400px) {
    .kanban-container {
        max-width: 1400px;
    }
    
    .series-card {
        flex: 0 0 360px;
    }
}

@media (max-width: 1200px) {
    .app-header {
        padding: 1rem 2rem;
    }
    
    .main-content {
        padding: 2rem 1rem 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .series-card {
        flex: 0 0 340px;
    }
}

@media (max-width: 768px) {
    .app-header {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .header-nav {
        gap: 1.25rem;
        order: 3;
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
    }
    
    .menu-section {
        padding: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .kanban-container {
        gap: 3.5rem;
        padding: 0 0.5rem;
    }
    
    .series-card {
        flex: 0 0 300px;
        min-height: 360px;
    }
    
    .card-image {
        height: 180px;
    }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.pill:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

::selection {
    background: rgba(59, 130, 246, 0.2);
    color: #0f172a;
}

html {
    scroll-behavior: smooth;
}