:root {
    --bg-dark: #0a0b10;
    --bg-surface: #12141c;
    --bg-surface-elevated: #1a1e2b;
    --bg-glass: rgba(22, 26, 38, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(230, 57, 70, 0.5);

    --primary: #e63946;
    --primary-hover: #ff4d5a;
    --primary-glow: rgba(230, 57, 70, 0.35);

    --accent-blue: #3a86ff;
    --accent-green: #06d6a0;
    --accent-purple: #8338ec;

    --text-primary: #f8f9fa;
    --text-secondary: #a0a6b5;
    --text-muted: #6c7285;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(230, 57, 70, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(230, 57, 70, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(58, 134, 255, 0.06) 0%, transparent 45%);
    background-attachment: fixed;
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 100px 24px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, #b5179e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-text h1 span {
    color: var(--primary);
    font-weight: 800;
}

.badge-subtitle {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-network-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(58, 134, 255, 0.12);
    border: 1px solid rgba(58, 134, 255, 0.3);
    color: #90b8f8;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-network-pill:hover {
    background: rgba(58, 134, 255, 0.22);
    border-color: rgba(58, 134, 255, 0.5);
    transform: translateY(-1px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.qr-icon {
    font-size: 1rem;
    margin-left: 2px;
    color: white;
}

.btn-pill-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-pill-counter:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Cards */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Input Card */
.input-header {
    margin-bottom: 20px;
}

.input-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.input-header h2 i {
    color: var(--primary);
}

.input-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-form {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.input-group {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.input-group input {
    width: 100%;
    height: 52px;
    padding: 0 50px 0 48px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.btn-icon {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: color 0.2s;
}

.btn-icon:hover {
    color: var(--text-primary);
}

.btn-primary {
    height: 52px;
    padding: 0 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #c1121f 100%);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

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

.quick-shortcuts {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.shortcut-label {
    color: var(--text-muted);
}

.pill-sample {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.pill-sample:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Anime Detail View */
.anime-detail-view {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
}

.anime-hero-banner {
    position: relative;
    padding: 36px 32px;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--border-color);
}

.btn-close-detail {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-close-detail:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--primary-glow);
}

.hero-overlay {

    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 11, 16, 0.6) 0%, rgba(18, 20, 28, 0.95) 100%);
    backdrop-filter: blur(8px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 28px;
    align-items: flex-end;
    width: 100%;
}

.anime-poster {
    width: 130px;
    height: 190px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.hero-info {
    flex: 1;
}

.meta-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.tag-type { background: rgba(58, 134, 255, 0.2); color: #70a6ff; }
.tag-age { background: rgba(230, 57, 70, 0.2); color: #ff7582; }
.tag-season { background: rgba(6, 214, 160, 0.2); color: #4ae1b9; }

.anime-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.anime-overview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-height: 70px;
    overflow-y: auto;
    line-height: 1.5;
}

/* Options Bar */
.options-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px 32px;
    background: var(--bg-surface-elevated);
    border-bottom: 1px solid var(--border-color);
}

.option-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.custom-select {
    width: 100%;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0 14px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.custom-select:focus {
    border-color: var(--primary);
}

/* Episodes Container */
.episodes-container {
    padding: 28px 32px 100px 32px;
}

.season-tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.season-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.season-tab {
    padding: 8px 18px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.season-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.selection-actions {
    display: flex;
    gap: 8px;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
    gap: 12px;
}

.episode-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    min-height: 74px;
    box-sizing: border-box;
}

.episode-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(30, 36, 52, 0.8);
    transform: translateY(-1px);
}

.episode-card.selected {
    border-color: var(--primary);
    background: rgba(230, 57, 70, 0.12);
}

.episode-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.episode-card.selected .episode-checkbox {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.episode-card.selected .episode-checkbox::after {
    content: "✓";
    font-size: 0.8rem;
    font-weight: 900;
}

.episode-meta {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ep-num {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
    display: block;
    line-height: 1.25;
}

.ep-title {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.3;
}

/* Sticky Download Bar */
.sticky-download-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 800px;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    padding: 12px 20px 12px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px var(--primary-glow);
    z-index: 100;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translate(-50%, 40px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.selected-count-badge {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    display: block;
}

.selected-info-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
}

.btn-glow-action {
    background: linear-gradient(135deg, var(--primary) 0%, #d90429 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all 0.25s ease;
}

.btn-glow-action:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(230, 57, 70, 0.6);
}

/* Tasks Card */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-item {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    position: relative;
    overflow: hidden;
}

.task-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.task-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.task-status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.status-queued { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }
.status-downloading { background: rgba(58, 134, 255, 0.2); color: #70a6ff; }
.status-muxing { background: rgba(131, 56, 236, 0.2); color: #c084fc; }
.status-completed { background: rgba(6, 214, 160, 0.2); color: #4ae1b9; }
.status-error { background: rgba(230, 57, 70, 0.2); color: #ff7582; }

.btn-task-dismiss {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-task-dismiss:hover {
    color: var(--primary);
    background: rgba(230, 57, 70, 0.15);
}

.task-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.task-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-blue) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.task-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Downloads Section */
.storage-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.2px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.storage-info-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(58, 134, 255, 0.4);
}

.storage-info-pill i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.storage-info-pill span {
    color: var(--text-primary);
    font-feature-settings: "tnum";
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.file-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(28, 33, 46, 0.9);
}

.file-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    overflow: hidden;
}

.file-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(6, 214, 160, 0.15);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-info {
    overflow: hidden;
}

.file-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.file-subinfo {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 3px;
}

.badge-sub {
    color: var(--accent-green);
    background: rgba(6, 214, 160, 0.12);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-ipad-download {
    background: linear-gradient(135deg, #06d6a0 0%, #05a077 100%);
    color: #03251e;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
    transition: all 0.2s;
}

.btn-ipad-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 214, 160, 0.45);
}

.btn-action-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.btn-action-icon.btn-delete:hover {
    background: rgba(230, 57, 70, 0.2);
    color: var(--primary);
    border-color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Tip Card */
.tip-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(58, 134, 255, 0.08);
    border-color: rgba(58, 134, 255, 0.25);
}

.tip-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(58, 134, 255, 0.2);
    color: #70a6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.tip-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #90b8f8;
    margin-bottom: 6px;
}

.tip-content p {
    font-size: 0.88rem;
    color: #c0d4f8;
    line-height: 1.6;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 440px;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-video {
    max-width: 800px;
    padding: 24px;
    text-align: left;
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 18px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.modal-icon {
    font-size: 2.2rem;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.qr-container {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    display: inline-block;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.url-copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.btn-copy {
    background: var(--primary);
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.modal-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-player-wrapper {
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: black;
}

.video-player-wrapper video {
    display: block;
    max-height: 65vh;
}

/* Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* Footer */
.app-footer {
    text-align: center;
    padding-top: 40px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Responsive (iPad & Mobile) */
@media (max-width: 768px) {
    .app-container {
        padding: 16px 16px 100px 16px;
    }

    .btn-close-detail {
        top: 12px;
        right: 12px;
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .meta-tags {
        justify-content: center;
    }

    .anime-poster {
        width: 120px;
        height: 175px;
    }

    .search-form {
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .file-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-ipad-download {
        flex: 1;
        justify-content: center;
    }

    .sticky-download-bar {
        border-radius: var(--radius-md);
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px;
        bottom: 12px;
        width: calc(100% - 24px);
    }

    .btn-glow-action {
        width: 100%;
        justify-content: center;
    }
}

/* Header Right Actions & Sort */
.header-right-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-pill-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pill-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.btn-icon-subtle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}

.btn-icon-subtle:hover {
    color: var(--text-primary);
}

/* Batch Actions Bar */
.batch-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.batch-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-batch-action {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.btn-batch-sequential {
    background: linear-gradient(135deg, var(--primary) 0%, #c1121f 100%);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-batch-sequential:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.45);
}

.btn-batch-zip {
    background: linear-gradient(135deg, #3a86ff 0%, #0050d8 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(58, 134, 255, 0.3);
}

.btn-batch-zip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(58, 134, 255, 0.45);
}

.btn-subtle-guide {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--accent-green);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-subtle-guide:hover {
    background: rgba(6, 214, 160, 0.1);
    border-color: var(--accent-green);
}

/* Modal Guide */
.modal-guide {
    max-width: 520px;
    text-align: left;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.step-card {
    display: flex;
    gap: 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-green);
    color: #03251e;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text strong {
    color: var(--text-primary);
    font-size: 0.92rem;
    display: block;
    margin-bottom: 4px;
}

.step-text p {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
}

/* Library Section */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.library-item {
    position: relative;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.library-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.library-poster-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: #181c28;
}

.library-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.library-item:hover .library-poster {
    transform: scale(1.06);
}

.library-item-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.library-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.library-item-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.library-delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: #ff7582;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    z-index: 5;
}

.library-item:hover .library-delete-btn {
    opacity: 1;
}

.library-delete-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.15);
}

.btn-batch-danger {
    background: rgba(230, 57, 70, 0.15);
    color: #ff7582;
    border: 1px solid rgba(230, 57, 70, 0.35);
}

.btn-batch-danger:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* ========================================================
   MyAnimeList (MAL) Styles
   ======================================================== */

.btn-mal-pill {
    background: rgba(46, 196, 182, 0.12);
    border: 1px solid rgba(46, 196, 182, 0.35);
    color: #48e5d6;
}

.btn-mal-pill:hover {
    background: rgba(46, 196, 182, 0.22);
    border-color: #48e5d6;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(46, 196, 182, 0.3);
}

.status-dot.dot-inactive {
    background: #64748b;
    box-shadow: none;
}

.status-dot.dot-active {
    background: #2ec4b6;
    box-shadow: 0 0 8px #2ec4b6;
}

/* Library Tabs */
.library-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.library-tabs-pills {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.lib-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lib-tab-btn:hover {
    color: var(--text-primary);
}

.lib-tab-btn.active {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-badge {
    padding: 2px 7px;
    font-size: 0.72rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.lib-tab-btn.active .tab-badge {
    background: var(--primary);
    color: white;
}

/* MAL Tag in Detail View */
.tag-mal {
    background: rgba(46, 196, 182, 0.15) !important;
    color: #38efd8 !important;
    border: 1px solid rgba(46, 196, 182, 0.4) !important;
    font-weight: 700;
}

/* Episode Watched Indicators */
.episode-card.is-watched {
    border-color: rgba(46, 196, 182, 0.35);
    background: linear-gradient(145deg, rgba(46, 196, 182, 0.05) 0%, rgba(18, 21, 31, 0.8) 100%);
}

.episode-card.is-next {
    border-color: var(--primary);
    box-shadow: 0 0 14px var(--primary-glow);
}

.ep-watched-tag,
.ep-next-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 4px;
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
    line-height: 1.25;
}

.ep-watched-tag {
    color: #38efd8;
    background: rgba(46, 196, 182, 0.18);
    border: 1px solid rgba(46, 196, 182, 0.35);
}

.ep-next-tag {
    color: #ff7582;
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid rgba(230, 57, 70, 0.35);
}

.btn-unwatched-select {
    background: rgba(46, 196, 182, 0.15) !important;
    color: #38efd8 !important;
    border: 1px solid rgba(46, 196, 182, 0.35) !important;
}

.btn-unwatched-select:hover {
    background: #2ec4b6 !important;
    color: #0b0f19 !important;
    box-shadow: 0 4px 14px rgba(46, 196, 182, 0.4) !important;
}

.badge-mal-track {
    color: #38efd8 !important;
    font-weight: 600;
}

/* MAL Modal */
.modal-mal {
    max-width: 500px;
    width: 95%;
}

.mal-view-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.mal-user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-surface-elevated);
    border: 1px solid rgba(46, 196, 182, 0.3);
    border-radius: var(--radius-md);
}

.mal-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(46, 196, 182, 0.2);
    color: #2ec4b6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.mal-user-details h4 {
    margin: 4px 0 2px 0;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.mal-badge-active {
    font-size: 0.72rem;
    color: #2ec4b6;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.mal-mode-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mal-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.mal-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mal-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mal-form-group input {
    height: 44px;
    padding: 0 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.mal-form-group input:focus {
    outline: none;
    border-color: #2ec4b6;
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.2);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-hint a {
    color: #2ec4b6;
    text-decoration: underline;
}

.mal-connect-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.connect-option-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.connect-option-card .opt-info strong {
    font-size: 0.92rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.connect-option-card .opt-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.or-divider {
    text-align: center;
    position: relative;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.or-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.or-divider span {
    position: relative;
    z-index: 2;
    background: var(--bg-surface);
    padding: 0 12px;
}

.inline-input-group {
    display: flex;
    gap: 8px;
}

.inline-input-group input {
    flex: 1;
    height: 42px;
    padding: 0 12px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.inline-input-group input:focus {
    outline: none;
    border-color: #2ec4b6;
}

.mal-status-msg {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 8px;
}

.mal-status-msg.success {
    background: rgba(46, 196, 182, 0.15);
    color: #38efd8;
    border: 1px solid rgba(46, 196, 182, 0.4);
}

.mal-status-msg.error {
    background: rgba(230, 57, 70, 0.15);
    color: #ff7582;
    border: 1px solid rgba(230, 57, 70, 0.4);
}

/* Mark as Watched Buttons */
.btn-card-mark-watched {
    margin-left: auto;
    background: rgba(46, 196, 182, 0.12);
    color: #38efd8;
    border: 1px solid rgba(46, 196, 182, 0.3);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-card-mark-watched:hover {
    background: #2ec4b6;
    color: #0c0e17;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(46, 196, 182, 0.4);
}

.episode-card.is-watched .btn-card-mark-watched {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border-color: rgba(255, 255, 255, 0.1);
}

.episode-card.is-watched .btn-card-mark-watched:hover {
    background: #2ec4b6;
    color: #0c0e17;
}

.btn-mark-file-watched {
    color: #38efd8;
    border-color: rgba(46, 196, 182, 0.35);
}

.btn-mark-file-watched:hover {
    background: #2ec4b6;
    color: #0c0e17;
    box-shadow: 0 2px 10px rgba(46, 196, 182, 0.4);
}

/* Floating Toast Notification */
.app-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: rgba(14, 20, 31, 0.95);
    color: #ffffff;
    border: 1px solid #2ec4b6;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(46, 196, 182, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
}

.app-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.app-toast i {
    color: #2ec4b6;
    font-size: 1.1rem;
}

/* MAL Mapping Button in Hero Meta Tags */
.btn-subtle-mal {
    background: rgba(46, 196, 182, 0.12);
    color: #38efd8;
    border: 1px solid rgba(46, 196, 182, 0.35);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    vertical-align: middle;
}

.btn-subtle-mal:hover {
    background: #2ec4b6;
    color: #0c0e17;
    box-shadow: 0 2px 10px rgba(46, 196, 182, 0.35);
}

/* MAL Mapping Modal */
.modal-mapping {
    max-width: 660px;
    width: 95%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.mapping-search-box {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 16px;
}

.mapping-search-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.mapping-search-input-wrap .search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.mapping-search-input-wrap input {
    width: 100%;
    height: 42px;
    padding-left: 38px;
    padding-right: 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.88rem;
}

.mapping-search-input-wrap input:focus {
    outline: none;
    border-color: #2ec4b6;
    box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.btn-search-candidates {
    height: 42px;
    padding: 0 18px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mapping-candidates-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.candidates-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.mapping-candidates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 50vh;
    padding-right: 4px;
}

.mapping-candidates-list::-webkit-scrollbar {
    width: 6px;
}

.mapping-candidates-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Candidate Card */
.candidate-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.candidate-card:hover {
    border-color: rgba(46, 196, 182, 0.5);
    background: rgba(25, 33, 46, 0.85);
}

.candidate-card.is-current-bound {
    border-color: #2ec4b6;
    background: rgba(46, 196, 182, 0.08);
}

.candidate-poster {
    width: 46px;
    height: 64px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #111420;
}

.candidate-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.candidate-title-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.candidate-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.confidence-pill {
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
    flex-shrink: 0;
}

.confidence-high {
    background: rgba(46, 196, 182, 0.2);
    color: #38efd8;
    border: 1px solid rgba(46, 196, 182, 0.45);
}

.confidence-med {
    background: rgba(255, 183, 3, 0.18);
    color: #ffb703;
    border: 1px solid rgba(255, 183, 3, 0.4);
}

.confidence-low {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.candidate-sub {
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.candidate-meta-tags {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2px;
}

.candidate-tag {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.candidate-tag-watching {
    background: rgba(46, 196, 182, 0.15);
    color: #38efd8;
    border: 1px solid rgba(46, 196, 182, 0.3);
}

.candidate-reason {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

.candidate-action {
    flex-shrink: 0;
}

.btn-bind-anime {
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(46, 196, 182, 0.15);
    color: #38efd8;
    border: 1px solid rgba(46, 196, 182, 0.4);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-bind-anime:hover {
    background: #2ec4b6;
    color: #0c0e17;
    box-shadow: 0 2px 10px rgba(46, 196, 182, 0.4);
}

.btn-bound-badge {
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(46, 196, 182, 0.2);
    color: #38efd8;
    border: 1px solid #2ec4b6;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    pointer-events: none;
}


