.tp {
    display: inline-flex;
    align-items: center;
    background: var(--card-bg);
    padding: 8px 24px;
    border-radius: 99px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    font-family: system-ui, sans-serif;
    color: var(--text-color);
    font-size: 14px;
    gap: 15px;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.tp-d {
    font-weight: bold;
    color: #d32f2f;
}

.tp-s {
    width: 1px;
    height: 12px;
    background: var(--border-color);
}

.tp-t {
    color: var(--gray-color);
}

.tp-m {
    background: #fef2f2;
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.scroll-announcement {
    width: 100%;
    padding: 17px 0;
    overflow: hidden;
    background: #fef0f0;
    color: red;
    font-weight: bold;
    font-size: 30px;
    transition: background 0.3s;
}

[data-theme="dark"] .scroll-announcement {
    background: #3a2a2a;
    color: #ff6b6b;
}

.scroll-announcement-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 12s linear infinite;
}

@keyframes scroll {
    from {
        transform: translateX(100%)
    }
    to {
        transform: translateX(-100%)
    }
}

.reminder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px
}

.btn-reminder-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

[data-theme="dark"] .btn-reminder-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reminder-content {
    margin-bottom: 15px;
}

.reminder-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden
}

.reminder-content.expanded {
    max-height: 1000px;
    opacity: 1
}

.reminder-section {
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: background 0.3s;
}

[data-theme="dark"] .reminder-section {
    background: rgba(0, 0, 0, 0.2);
}

.reminder-section h4 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 15px
}

.reminder-section ul {
    margin: 0;
    padding-left: 20px
}

.reminder-section li {
    margin-bottom: 5px;
    color: white;
    line-height: 1.5
}

.reminder-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

@media (max-width: 768px) {
    .reminder-actions {
        flex-direction: column
    }

    .reminder-actions .btn {
        width: 100%
    }

    .tp {
        padding: 6px 14px;
        font-size: 12px;
        gap: 10px;
    }

    .tp-m {
        display: none;
    }

    #keyword-input {
        font-size: 16px !important;
        padding: 12px 16px !important;
        min-height: 48px !important;
        width: 100% !important;
    }

    #novel-search-form .form-group {
        margin-bottom: 15px;
    }

    .search-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .search-actions .btn-primary {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }

    .api-switcher {
        width: 100%;
    }

    #api-switch-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .api-switcher-hint {
        display: none;
    }

    .scroll-announcement {
        font-size: 22px;
        padding: 12px 0;
    }

    .reminder {
        padding: 15px;
    }

    .reminder-section {
        padding: 8px;
    }

    .reminder-section h4 {
        font-size: 14px;
    }

    .reminder-section li {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 12px;
    }

    header h1 {
        font-size: 20px;
    }

    .header-buttons {
        width: 100%;
    }

    .header-buttons a,
    .header-buttons button {
        flex: 1;
        min-width: 0;
    }

    #keyword-input {
        font-size: 16px !important;
    }

    .scroll-announcement {
        font-size: 18px;
    }

    .btn {
        padding: 12px 16px;
    }
}
